-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
4.0 beta 6 crash often with GPUParticles3D #69156
Comments
Possibly related to #65732 ? |
I updated the description for more info. And a simple project I've used to reproduce the crash. And here is a video for what I did to see the crash, hope it helps: godot-4.0-gpupartciles3d-crash.mp4 |
It may crash in different actions. But basically with stuffs mentioned in the list. Tweak here and there, then it happened. |
This is the backtrace I get when this bug occurs for me:
|
This works for me, but when i change the transparency in the StandardMaterial3D the editor freezes/crashes for me. |
I haven't edited any GPU particles in a few weeks until today. on today's current build I'm finding the process very unstable compared to the last time. for the longest time godot wouldn't crash but just report a bunch of errors (often "uniforms were never supplied") but those could be overcome by switching to another scene and then back again. now though I get full-on hangs or crashes when trying to change material options. I regressed to a754930 from dec 29 and I now get the wall of errors again but no crashes. my process to get the hangs or crashes was just creating a new GPUParticle3D, adding a pass 1 mesh, adding a material for that mesh. then just start messing with the material like what was noted above or in my case changing transparency or vertex color... update:
|
I had non-stop issues with mobile rendering but after switching to forward+ I haven't noticed any problems whatsoever with GPUParticles. |
After some investigation, this looks like a threading issue. My guess is that the material is getting freed/cleared after the rendering thread has been a reference to the material. The renderer isn't properly updating the reference in that case and then continues to try to use the old material/material information. My guess is that the solution will involve either: I think #67548 may have the same root cause |
Godot version
4.0.beta6.official.7f8ecffa5
System information
Arch Linux, Vulkan, NVIDIA GeForce RTX 2060
Issue description
Not sure what's the root trigger. It has many actions that can trigger crash or hang. Like swapping texture for the QuadMesh particle. But it's not always happen. Sometime a project restart will make the actions fine again.
The backtrace:
Steps to reproduce
Create a GPUParticles3D node. Use QuadMesh. Apply some textures and switch between textures. Maybe try different settings, transparency alpha, shading unshaded, blend mode add, particle billboard. I don't have a reliable way to reproduce for now.
Here is some steps that I did to see the crash, but it's not always happening.
If it's not crash after apply icon.svg. Try changing the shading mode, back and forth between different mode. And try reapply icon.svg from time to time.
Minimal reproduction project
godot-bug-gpuparticles.zip
The text was updated successfully, but these errors were encountered: