Skip to content

Index out of bounds #433

Open
Open

Description

@Dornat

Currently I'm trying to debug remote php project in docker. And it runs great but every time I want to see properties and open them by pressing enter there is an error that shows up constantly:

Error detected while processing function provider#python3#Call:
line 18: Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/debugger_interface.py", line 72, in handle_return_keypress
    return self.event_dispatcher.by_position(self.session_handler)
  File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/event.py", line 543, in by_position
    return event.run()
  File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/event.py", line 151, in run
    self.ui.windows.watch().delete(lineno, lineno+1)
  File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/ui/vimui.py", line 465, in delete
    self._buffer.delete(start_line, end_line)
  File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/ui/vimui.py", line 357, in delete
    self._buffer[end_line]
  File "/usr/lib/python3.8/site-packages/pynvim/api/buffer.py", line 45, in __getitem__
    return self.request('nvim_buf_get_lines', i, i + 1, True)[0]
  File "/usr/lib/python3.8/site-packages/pynvim/api/common.py", line 58, in request
    return self._session.request(name, self, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Index out of bounds

And in log file there is this stuff.

- [Debug] {Sun 01 2019 23:31:08} User action in watch window, line 40
- [Debug] {Sun 01 2019 23:31:08} ** WatchWindowPropertyGetEvent
- [Debug] {Sun 01 2019 23:31:08} Command: property_get -i 41 -n "$this->*Zenith\\Library\\Http\\Dispatcher\\DispatcherAbstract*_router" -d 0
- [Debug] {Sun 01 2019 23:31:09} Response: <?xml version="1.0" encoding="iso-8859-1"?> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="41"><property name="$this-&gt;*Zenith\Library\Http\Dispatcher\     DispatcherAbstract*_router" fullname="$this-&gt;*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router" type="object" classname="AltoRouter" children="1" numchildren="4" page="0" pagesi     ze="32"><property name="routes" fullname="$this-&gt;*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router-&gt;routes" facet="protected" type="array" children="1" numchildren="275"></pr     operty><property name="namedRoutes" fullname="$this-&gt;*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router-&gt;namedRoutes" facet="protected" type="array" children="1" numchildren="     275"></property><property name="basePath" fullname="$this-&gt;*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router-&gt;basePath" facet="protected" type="string" size="0" encoding="bas     e64"><![CDATA[]]></property><property name="matchTypes" fullname="$this-&gt;*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router-&gt;matchTypes" facet="protected" type="array" childre     n="1" numchildren="16"></property></property></response>
 - [Info] {Sun 01 2019 23:31:09} Writing 5 properties to the window
 - [Debug] {Sun 01 2019 23:31:09} Writing to window:
    ▾ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router = (AltoRouter [4])
      ▸ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->routes = (array [275])
      ▸ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->namedRoutes = (array [275])
      ⬦ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->basePath = (string [0]) ``
      ▸ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->matchTypes = (array [16])

Maybe this line that says about "writing 5 properties to the window" but an array has only 4 elements can be somehow connected to this. Just shot in the dark.

Don't know where else to look.

Activity

  1. changed the title [-]Index out of bound[/-] [+]Index out of bounds[/+] on Dec 1, 2019
  2. gvanbeck commented on Jan 14, 2020

    @gvanbeck

    +1

  3. BlackIkeEagle commented on Feb 3, 2020

    @BlackIkeEagle
    Member

    Thanks I'll have a look

  4. nacknime-official commented on Aug 15, 2020

    @nacknime-official

    +1
    I use pydbgp.

  5. Mte90 commented on Aug 27, 2020

    @Mte90

    Screenshot_20200827_105715
    I got that today.

  6. Mte90 commented on Aug 27, 2020

    @Mte90

    Screenshot_20200827_110703
    Screenshot_20200827_110754
    I got also this error after this and issues on closing but I don't know if they are related

  7. nkoporec commented on Sep 8, 2020

    @nkoporec

    Have the same issue, when opening a larger array (php), any ideas on how to resolve this? I'm having this issue while using neovim, if I switch to vim, it works normally.

  8. BlackIkeEagle commented on Sep 27, 2020

    @BlackIkeEagle
    Member

    Someone a simple example to reproduce this, just opened a few large arrays in nvim without an issue

  9. perotta commented on Oct 5, 2022

    @perotta

    Hi @Dornat did you find a solution for this? I'm having the same problem. I don't know exactly how to reproduce it niether

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions