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

GDScript: crash when autocompleting with signal #40976

Closed
ThakeeNathees opened this issue Aug 2, 2020 · 0 comments · Fixed by #41547
Closed

GDScript: crash when autocompleting with signal #40976

ThakeeNathees opened this issue Aug 2, 2020 · 0 comments · Fixed by #41547

Comments

@ThakeeNathees
Copy link
Contributor

ThakeeNathees commented Aug 2, 2020

Godot version: v4.0.dev.custom_build 35ff38b

OS/device including version: windows 10

Issue description:

signal member_signal
class MemberClass:
    var x = ## <-- autocompletion crash here
signal member_signal
func ready():
    self.some_method( ## <-- autocompletion crash here

backtrace

[0] CowData<GDScriptParser::ClassNode::Member>::_get_size (C:\dev\__test_env\godot\core\cowdata.h:70)
[1] CowData<GDScriptParser::ClassNode::Member>::size (C:\dev\__test_env\godot\core\cowdata.h:127)
[2] Vector<GDScriptParser::ClassNode::Member>::size (C:\dev\__test_env\godot\core\vector.h:87)
[3] _find_identifiers_in_class (C:\dev\__test_env\godot\modules\gdscript\gdscript_editor.cpp:776)
[4] _find_identifiers (C:\dev\__test_env\godot\modules\gdscript\gdscript_editor.cpp:1020)
[5] GDScriptLanguage::complete_code (C:\dev\__test_env\godot\modules\gdscript\gdscript_editor.cpp:2471)
[6] ScriptTextEditor::_code_complete_script (C:\dev\__test_env\godot\editor\plugins\script_text_editor.cpp:705)
[7] ScriptTextEditor::_code_complete_scripts (C:\dev\__test_env\godot\editor\plugins\script_text_editor.cpp:694)
[8] CodeTextEditor::_complete_request (C:\dev\__test_env\godot\editor\code_editor.cpp:835)
[9] call_with_variant_args_helper<CodeTextEditor> (C:\dev\__test_env\godot\core\callable_method_pointer.h:136)
[10] call_with_variant_args<CodeTextEditor> (C:\dev\__test_env\godot\core\callable_method_pointer.h:158)
[11] CallableCustomMethodPointer<CodeTextEditor>::call (C:\dev\__test_env\godot\core\callable_method_pointer.h:185)
[12] Callable::call (C:\dev\__test_env\godot\core\callable.cpp:50)
[13] Object::emit_signal (C:\dev\__test_env\godot\core\object.cpp:1077)
[14] Object::emit_signal (C:\dev\__test_env\godot\core\object.cpp:1132)
[15] TextEdit::query_code_comple (C:\dev\__test_env\godot\scene\gui\text_edit.cpp:6383)
[16] CodeTextEditor::_code_complete_timer_timeout (C:\dev\__test_env\godot\editor\code_editor.cpp:825)
[17] call_with_variant_args_helper<CodeTextEditor> (C:\dev\__test_env\godot\core\callable_method_pointer.h:136)
[18] call_with_variant_args<CodeTextEditor> (C:\dev\__test_env\godot\core\callable_method_pointer.h:158)
[19] CallableCustomMethodPointer<CodeTextEditor>::call (C:\dev\__test_env\godot\core\callable_method_pointer.h:185)
[20] Callable::call (C:\dev\__test_env\godot\core\callable.cpp:50)
[21] Object::emit_signal (C:\dev\__test_env\godot\core\object.cpp:1077)
[22] Object::emit_signal (C:\dev\__test_env\godot\core\object.cpp:1132)
[23] Timer::_notification (C:\dev\__test_env\godot\scene\main\timer.cpp:61)
[24] Timer::_notificationv (C:\dev\__test_env\godot\scene\main\timer.h:37)
[25] Object::notification (C:\dev\__test_env\godot\core\object.cpp:808)
[26] SceneTree::_notify_group_pause (C:\dev\__test_env\godot\scene\main\scene_tree.cpp:820)
[27] SceneTree::idle (C:\dev\__test_env\godot\scene\main\scene_tree.cpp:446)
[28] Main::iteration (C:\dev\__test_env\godot\main\main.cpp:2333)
[29] OS_Windows::run (C:\dev\__test_env\godot\platform\windows\os_windows.cpp:627)
[30] widechar_main (C:\dev\__test_env\godot\platform\windows\godot_windows.cpp:163)
[31] _main (C:\dev\__test_env\godot\platform\windows\godot_windows.cpp:185)
[32] main (C:\dev\__test_env\godot\platform\windows\godot_windows.cpp:199)
[33] __scrt_common_main_seh (d:\A01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[34] BaseThreadInitThunk
-- END OF BACKTRACE --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants