Skip to content

[BUG] Crash when editing Python file #902

@wkec

Description

@wkec

I have Python LSP server configured to use with ecode.
I was editing a Python file (a CLI tool using the Python Click library, nothing crazy).
An autocomplete was triggered for arguments of a Click library function.
Then the crash happened.

Log is shown below.
It looks like the EE::System::Zip::addFile function in the eepp library is the culprit

Stack trace (most recent call last):
#21 Object "KERNEL32", at 0x7ffb387e7374, in BaseThreadInitThunk
#20 Object "msvcrt", at 0x7ffb3893b02c, in endthreadex
#19 Object "msvcrt", at 0x7ffb3893af5a, in beginthreadex
#18 Object "eepp", at 0x7ffacdf72833, in EE::System::Zip::addFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
#17 Object "eepp", at 0x7fface579e01, in non-virtual thunk to EE::UI::HTMLTextInput::~HTMLTextInput()
#16 Object "eepp", at 0x7ffacdbf06ea, in EE::System::Process::startAsyncRead(std::function<void (char const*, unsigned long long)>, std::function<void (char const*, unsigned long long)>)
#15 Object "ecode", at 0x7ff6bcf8c4d4, in ecode::LSPClientServer::readStdOut(char const*, unsigned long long)
#14 Object "ecode", at 0x7ff6bcf60765, in ecode::LSPClientServer::workDoneProgress(ecode::LSPProgressParamsecode::LSPWorkDoneProgressValue const&)
#13 Object "ecode", at 0x7ff6bcf22c39, in ecode::LSPClientPlugin::update(EE::UI::UICodeEditor*)
#12 Object "ecode", at 0x7ff6bcfb4006, in ecode::PluginManager::sendResponse(ecode::Plugin*, ecode::PluginMessageType, ecode::PluginMessageFormat, void const*, ecode::PluginIDType const&)
#11 Object "ecode", at 0x7ff6bcd647c1, in ecode::AutoCompletePlugin::processResponse(ecode::PluginMessage const&)
#10 Object "ecode", at 0x7ff6bcd6389e, in ecode::AutoCompletePlugin::processResponse(ecode::PluginMessage const&)
#9 Object "ecode", at 0x7ff6bcd625e8, in ecode::AutoCompletePlugin::processSignatureHelp(ecode::LSPSignatureHelp const&)
#8 Object "eepp", at 0x7ffacdd32ff4, in EE::UI::Doc::TextDocument::getSelectedText(unsigned long long const&) const
#7 Object "eepp", at 0x7ffacdd32bc1, in EE::UI::Doc::TextDocument::getText(EE::UI::Doc::TextRange const&) const
#6 Object "eepp", at 0x7ffacdc70a08, in EE::String::reserve(unsigned long long)
#5 Object "eepp", at 0x7fface5a9c09, in non-virtual thunk to EE::UI::HTMLTextInput::~HTMLTextInput()
#4 Object "eepp", at 0x7fface579838, in non-virtual thunk to EE::UI::HTMLTextInput::~HTMLTextInput()
#3 Object "eepp", at 0x7fface572a33, in EE::System::Zip::addFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
#2 Object "eepp", at 0x7fface37a989, in EE::System::Zip::addFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
#1 Object "eepp", at 0x7fface413baa, in EE::System::Zip::addFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
#0 Object "msvcrt", at 0x7ffb3892f1fb, in abort

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions