srusskih / SublimeJEDI

awesome Python autocompletion with SublimeText
MIT License
938 stars 109 forks source link

v0.12.1 - stack overflow in plugin_host.exe (windows, st3 build 3176 x64) #257

Closed ethframe closed 5 years ago

ethframe commented 6 years ago

Sometimes when autocompletion is triggered, plugin_host.exe crashes with stack overflow in python33.dll. Setting the recursion limit back to 2000 here prevents plugin_host from crashing, as python raises RuntimeError before actual stack overflow. Maybe this change should be reverted?

srusskih commented 6 years ago

@ethframe thanks interesting. could you please try use version from master branch, we just updated jedi version, will works for you?

ethframe commented 6 years ago

@srusskih, tried it, plugin_host still crashes. I've managed to determine the code fragment that leads to seemingly infinite recursion in jedi, and reported the bug - https://github.com/davidhalter/jedi/issues/1173

mitchellsimmons commented 6 years ago

As of v0.12.1, hovering over a global variable would always result in this crash for me. I would get the log message: ‘Sending request to daemon for "docstring"’ Setting "enable_tooltip": false would prevent the issue. As of the new update I no longer get the hover issue however now as soon as I start typing it causes the same crash. Sorry if the information is not that useful, reverted to the previous version for now.

srusskih commented 6 years ago

@mitchellsimmons please check latest master

srusskih commented 6 years ago

@ethframe thanks for your investigation and bug report. Great job!