Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xdebug 3 support #497

Open
cprn opened this issue Jan 14, 2021 · 2 comments · May be fixed by #517
Open

Xdebug 3 support #497

cprn opened this issue Jan 14, 2021 · 2 comments · May be fixed by #517

Comments

@cprn
Copy link

cprn commented Jan 14, 2021

Hi. I updated xdebug from 2.9.8 to 3.0.2 and it started giving this error on almost every step, sometimes straight away when I start debugging:

- [ERROR] {Thu 14 2021 17:05:28} An error occured: <class 'UnicodeDecodeError'>
Traceback (most recent call last):
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/event.py", line 784, in dispatch_event
    Dispatcher.events[name](self.__session_handler).run(*args)
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/event.py", line 660, in run
    self.ui.windows.watch().accept_renderer(rend)
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/ui/vimui.py", line 619, in accept_renderer
    self.write(renderer.render())
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/ui/vimui.py", line 910, in render
    properties = self.response.get_context()
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/dbgp.py", line 125, in get_context
    self.create_properties(ContextProperty(c))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 1023: unexpected end of data

I'm trying to prepare a minimal example that triggers it but nothing "simple" seems to be working so I decided to ask - is this a known issue? The error doesn't prevent following the code step by step but the variable context is empty and pressing <F11> triggers same error again.

@vlada-dudr
Copy link

It can be easy reproduced by reading binary file content into variable.

@akabakass
Copy link

got the same error here, thus not in the same position or byte.
i've done several things before it broke (switching to php-fpm) and am not sure which one is at fault, but it was running on xdebug3 for me before. here is the tracecall:

- [ERROR] {jeu. 03 2022 16:27:42} An error occured: <class 'UnicodeDecodeError'>
Traceback (most recent call last):
  File "/home/jc/.vim/plug/vdebug/python3/vdebug/event.py", line 784, in dispatch_event
    Dispatcher.events[name](self.__session_handler).run(*args)
  File "/home/jc/.vim/plug/vdebug/python3/vdebug/event.py", line 660, in run
    self.ui.windows.watch().accept_renderer(rend)
  File "/home/jc/.vim/plug/vdebug/python3/vdebug/ui/vimui.py", line 619, in accept_renderer
    self.write(renderer.render())
  File "/home/jc/.vim/plug/vdebug/python3/vdebug/ui/vimui.py", line 910, in render
    properties = self.response.get_context()
  File "/home/jc/.vim/plug/vdebug/python3/vdebug/dbgp.py", line 125, in get_context
    self.create_properties(ContextProperty(c))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 12: invalid continuation byte

@vlada-dudr vlada-dudr linked a pull request Nov 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants