-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Game crash when using compatibility rendering method #79503
Comments
We need to know what is triggering this, so unless you can pin down what is causing it and make an MRP we can't help You will need to pick apart your project, or add parts one by one, until you cause the crash reliably, and then update your report, or search through other reports and see if any matches what you're experiencing, or can give you hints Unfortunately "it crashes with compatibility" doesn't give us any clues |
I just uploaded an MRP. Actually it's not very related to 2D.
|
Seems to be a limitation in the driver possibly, not the engine I suspect Can't confirm on my hardware/drivers, I'm on Windows 11, AMD graphics |
I agree with the above. I managed to import the above project in 4.1, switch to compatibility renderer (which restarts the editor) and run the game (F5) without any problems |
Related: #77929. I can't reproduce on my hardware either. PopOS 22.04, intel integrated GPU. I tested both 4.1-stable and 4.0.3 I wonder if this is related to multithreading specifically. It seems that those functions aren't part of the command queue, which means that they may be called from whichever thread the user script is called from edit: If someone who can reproduce this wants to attempt a fix. A good first thing to try would be to make: godot/servers/rendering/rendering_server_default.h Lines 976 to 979 in b8ed596
These functions (minus |
I think it is. the crash only happens when calling them in a thread. |
It does not crash on my system:
However both of the RenderingServer functions in question return empty string only when run in a Thread. |
I managed to fix this issue following @clayjohn sensei's instruction. Crashes are gone, although I'm not sure If I'm doing it right.
Do you mean minus get_rendering_info? |
Oops. I didn't mean to include get_rendering_info in the snippet. Neither get_rendering_info nor get_video_adapter_type need the changes as neither make any OpenGL calls |
I assume it will be harmless if I do the same thing to get_video_adapter_type? It looks more neat that way. |
Godot version
4.1 and 4.0.3 debug build
System information
OS: Manjaro Linux x86_64
Kernel: 6.1.38-1-MANJARO
CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz
GPU: NVIDIA GeForce RTX 3070 Ti
X11 backend
OpenGL API 3.3.0 NVIDIA 535.54.03
Issue description
Game crashes silently after switching to compatibility rendering method.
It's a pure 2D game. Forward+ and mobile work fine.
logs in console:
4.0.3 debug build:
4.1 official:
Steps to reproduce
Switch to compatibility rendering method and run game in editor.
Minimal reproduction project
signal11.zip
The text was updated successfully, but these errors were encountered: