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

Editor crash when trying to use print() on a specific line #62409

Closed
KoBeWi opened this issue Jun 25, 2022 · 0 comments · Fixed by #62578
Closed

Editor crash when trying to use print() on a specific line #62409

KoBeWi opened this issue Jun 25, 2022 · 0 comments · Fixed by #62578

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jun 25, 2022

Godot version

21c79d7

System information

Windows 10 x64

Issue description

I have a script and tried to print something, but as soon as I typed print(, the editor crashed. Seems to always happen with this specific script, even when copied to empty project, so it should be easy to debug.

Stack trace:

CrashHandlerException: Program crashed
Engine version: Godot Engine v4.0.alpha.custom_build (462127eff08c8ca60a1e4a476153bdb60d63b890)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[0] GDScriptParser::parse_match (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1833)
[1] GDScriptParser::parse_match (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1833)
[2] GDScriptParser::parse_statement (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1560)
[3] GDScriptParser::parse_suite (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1464)
[4] GDScriptParser::parse_while (C:\godot_source\modules\gdscript\gdscript_parser.cpp:2073)
[5] GDScriptParser::parse_statement (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1556)
[6] GDScriptParser::parse_suite (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1464)
[7] GDScriptParser::parse_function (C:\godot_source\modules\gdscript\gdscript_parser.cpp:1355)
[8] GDScriptParser::parse_class_member<GDScriptParser::FunctionNode> (C:\godot_source\modules\gdscript\gdscript_parser.cpp:736)
[9] GDScriptParser::parse_class_body (C:\godot_source\modules\gdscript\gdscript_parser.cpp:800)
[10] GDScriptParser::parse_program (C:\godot_source\modules\gdscript\gdscript_parser.cpp:594)
[11] GDScriptParser::parse (C:\godot_source\modules\gdscript\gdscript_parser.cpp:374)
[12] GDScriptLanguage::complete_code (C:\godot_source\modules\gdscript\gdscript_editor.cpp:2592)
[13] ScriptTextEditor::_code_complete_script (C:\godot_source\editor\plugins\script_text_editor.cpp:736)
[14] CodeTextEditor::_complete_request (C:\godot_source\editor\code_editor.cpp:914)
[15] Callable::call (C:\godot_source\core\variant\callable.cpp:51)
[16] Object::emit_signalp (C:\godot_source\core\object\object.cpp:1155)
[17] CodeEdit::request_code_completion (C:\godot_source\scene\gui\code_edit.cpp:1820)
[18] Callable::call (C:\godot_source\core\variant\callable.cpp:51)
[19] Object::emit_signalp (C:\godot_source\core\object\object.cpp:1155)
[20] Object::emit_signal<> (C:\godot_source\core\object\object.h:778)
[21] Timer::_notificationv (C:\godot_source\scene\main\timer.h:37)
[22] Object::notification (C:\godot_source\core\object\object.cpp:884)
[23] SceneTree::_notify_group_pause (C:\godot_source\scene\main\scene_tree.cpp:849)
[24] SceneTree::process (C:\godot_source\scene\main\scene_tree.cpp:453)
[25] Main::iteration (C:\godot_source\main\main.cpp:2812)
[26] OS_Windows::run (C:\godot_source\platform\windows\os_windows.cpp:777)
[27] widechar_main (C:\godot_source\platform\windows\godot_windows.cpp:175)
[28] _main (C:\godot_source\platform\windows\godot_windows.cpp:199)
[29] main (C:\godot_source\platform\windows\godot_windows.cpp:211)
[30] __scrt_common_main_seh (D:\a01\_work\26\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[31] BaseThreadInitThunk
-- END OF BACKTRACE --

Steps to reproduce

  1. Download the script
  2. Try to use print in line 131
    image
    (the screenshot was taken 1 second before crashing)

Minimal reproduction project

Main.gd.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant