-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
GUI editor issue while code editing and do Ctrl + S #24027
Comments
I tried the steps to reproduce but couldn't get it to trigger the infinite loop in the current master branch (7f92097). |
I tried just now with last https://hugo.pro/projects/godot-builds/ |
Hey, I know it might look like it's not related, but this error: In my case, I've started getting that message when I've implemented threads, and the only thing I do in the thread that might relate to RichTextLabel, is sending messages to the output window using It's just my grain of salt, I might be wrong. |
Tried against in the current master branch, I still can't reproduce the issue (on Linux). Might be specific to Windows with its slower I/O. Can you still reproduce it in the latest 3.2 build? |
No new answer, and I still can't reproduce the bug, so closing. If anyone can reproduce it, please comment and make sure that a project is attached that can reliably trigger the issue. |
Godot version:
latest 3.1 master 28-Nov-2018 built
GLES3 and GLES2 affected.
OS/device including version:
Windows 10 64bit, ver 1803
CPU: Intel Core i5-5200
GPU: Intel HD 5500(latest drivers ver. 20.19.15.5058)
Issue description:
While saving script in code editor often get infinite loop:
While don't have any rich_text_label node in project.
I tried to set breakpoints on line 166(and few lines before 166) in "scene/gui/rich_text_label.cpp" in Visual Studio 2017, no luck. Breakpoints doesn't work in debug mode in scene/gui/rich_text_label.cpp:166.
Please tell me why? (I'm not c++ developer, first time in my life compile project in Visual Studio)
Because breakpoints in main/main.cpp works.
I did some experiments:
Experiment N1. Swap lines:
and got good debug info in console:
ERROR: GDScript::reload: Method/Function Failed, returning: ERR_PARSE_ERROR At: modules\gdscript\gdscript.cpp:580 Loading resource: res://scn/Game.gd (cached) ERROR: CowData<int>::get: FATAL: Index p_index=0 out of size (size()=0) At: C:\temp\godot\core/cowdata.h:149 CrashHandlerException: Program crashed Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues [0] CowData<int>::get (c:\temp\godot\core\cowdata.h:149) [1] CowData<int>::get (c:\temp\godot\core\cowdata.h:149) [2] Vector<int>::operator[] (c:\temp\godot\core\vector.h:89) [3] RichTextLabel::_process_line (c:\temp\godot\scene\gui\rich_text_label.cpp:166) [4] RichTextLabel::_notification (c:\temp\godot\scene\gui\rich_text_label.cpp:856) [5] RichTextLabel::_notificationv (c:\temp\godot\scene\gui\rich_text_label.h:38) [6] Object::notification (c:\temp\godot\core\object.cpp:957) [7] CanvasItem::_update_callback (c:\temp\godot\scene\2d\canvas_item.cpp:447) [8] MethodBind0<CanvasItem>::call (c:\temp\godot\core\method_bind.gen.inc:139) [9] Object::call (c:\temp\godot\core\object.cpp:945) [10] MessageQueue::_call_function (c:\temp\godot\core\message_queue.cpp:256) [11] MessageQueue::flush (c:\temp\godot\core\message_queue.cpp:302) [12] SceneTree::iteration (c:\temp\godot\scene\main\scene_tree.cpp:477) [13] Main::iteration (c:\temp\godot\main\main.cpp:1834) [14] OS_Windows::run (c:\temp\godot\platform\windows\os_windows.cpp:2736) [15] widechar_main (c:\temp\godot\platform\windows\godot_win.cpp:150) [16] _main (c:\temp\godot\platform\windows\godot_win.cpp:172) [17] main (c:\temp\godot\platform\windows\godot_win.cpp:184) [18] __scrt_common_main_seh (d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288) [19] BaseThreadInitThunk -- END OF BACKTRACE --
Experiment N2. Comment lines 166/167:
and got graphic bug instead of freezing Godot and errors flow in GUI console(Output):
Experiment N3. More comment next if after 166 line:
//if (p_mode == PROCESS_CACHE) {
and graphic bug in GUI Output console is disappeared.
Steps to reproduce:
ERROR: _process_line: Index line=0 out of size (l.offset_caches.size()=0)
At: scene/gui/rich_text_label.cpp:166
Minimal reproduction project:
Tree.bug3.zip
The text was updated successfully, but these errors were encountered: