-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
RichTextLabel::_process_line error makes Godot unresponsive during One-Click Deploy #17815
Comments
Sounds the same as #16072. |
I checked 16072. the only similarity is the error code. With my error it happens every time I send the program to my phone. |
I am really working hard to understand this bug to help Godot. The exact looping error is:
I opened the CPP file mentioned and it states:
I have painstakingly taken the only scene in my app that has any labels in it. That scene is called "HUD". It is an instance added to the MAIN scene and is a CanvasLayer that holds labels and buttons. I have deleted each child and script of the HUD scene with no luck. Finally I changed the PAUSE_MODE of the HUD scene to "stop" instead of "inherit" and now it runs fine. Could someone please look into this. I'll help however I can. |
Could you make a minimal project that isolates the issue? |
Yes, and with that it's likely they have the same root cause. The problem is not the error per se but the infinite loop that happens when the error is shown. |
I have whittled down the project. In its full form it errors every time, In it's smaller form it doesn't error out every time (dang it). However, after One-Click Deploying it 3 or 4 times to the android phone, it will error loop. One time it took 10 times running it on the phone to get the error loop. Here is the simple project. |
Could someone look at the little test project I put together? |
Did anyone try this? I know everyone is busy, but I am just trying to help Godot. It's been 25 days since I started the thread. :-( |
We are all trying to help Godot. But as you can see there are more than two years old issues still open. Only way to ensure bugfix is to provide the fix yourself. (even then it still takes time to review) I can't try this because I don't have a configured phone to do One-click deploy on. If you're on Linux, try using gdb to breakpoint on the error line and give us stack trace. That will help pinpointing the cause. I assume nothing is wrong with the project as there's no usage of RichTextLabel. |
Good point about issues over 2 years. The test project consistently gives me errors is I follow the steps I outlined. It is beyond my expertise as to why the looping error is occurring or how to fix it. |
@hpvb I think you were doing android export work recently, did you see any of this? |
#17465 seems related. #16072 has the same error code but happens in a different scenario. There definitely seems to be a potential infinite loop in |
I get this error when running but it doesn't happen consistently. It causes the editor to crash but I don't have any data loss so it seems it happens after the scene saving and during the deploy phase. |
As an additional data point, I have encountered the similar error message while using
I'm using the It occurred to me that I had the "Scroll Following" property enabled so I tried disabling scroll following and the error didn't seem to occur (with my limited testing). I wonder if there's some sort of race condition related to redraw/scroll interaction? Edited to add: This behavior most closely matches #24027 but this issue item seemed to be an umbrella item for the error message. |
Can anyone still reproduce this bug in the latest 3.2 builds? |
No answer and I haven't seen new reports about this in a while, so I'll assume that it got fixed at some point. Please comment if you can still reproduce it (or open a new issue if you can reproduce another |
@akien-mga I'm having exactly this error right now using latest 3.2.1.stable. I did custom build to incorporate my own C++ code, but I don't have any reason to think that it is my code that causes the error. The root cause of the infinite loop is simple, I think. For example:
while (y /* <-------> */ < size.height && from_line < main->lines.size()) {
visible_line_count += _process_line(main, text_rect.get_position(), y, /* <---- */ ...
while (y < text_rect.get_size().height && from_line < p_frame->lines.size()) {
_process_line(p_frame, text_rect.get_position(), y, ... btw, I'd suspect there are many more similar wrong uses of However, to this moment that's all I know about the error. Will post updates if find something useful... Also I will be very grateful if someone is to fix the issue asap. I'm not sure I can do it myself in some near future, as I have just started to use Godot a few days ago, but the issue is now blocking my progress completely... |
Btw, my use-case is very similar to #17465 (also Win7 x64, deploying to android 9 at htc u12+). Regarding the scene - I'm using almost completely "stock" The good thing is the issue seems to be definitely related to The bad thing - that's all know how to reproduce the bug. |
Related (likely duplicate, but both have useful debugging info) to #38058. |
Godot version:
3.02
Issue description:
I have changed nothing in my program, but out of nowhere I can't One-Click Deploy my app to my phone without Godot freezing and the terminal goes to an endless loop saying:
"error: richtextlabel::_process_line: index line=0 out of size"
This may not be enough info, but again everything was running fine, then out of nowhere this is occurring.
The text was updated successfully, but these errors were encountered: