Game crashes when opening a scene that has the VoxelGI node in it
Tested versions
Godot v4.4.rc1
System information
Windows 10 (build 17134) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 (NVIDIA; 32.0.15.7247) - Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (4 threads)
Issue description
If I open a scene that has a Voxel GI node in it the game crashes, I tested this on 2 PCs and it only happens on my older PC.
Steps to reproduce
I created a scene with a world environment, a camera and some mesh instances, added a VoxelGI node and baked the light information. then just exported the project as a windows executable
the scene works fine on my new pc
Godot v4.4.rc1 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 32.0.15.6614) - AMD Ryzen 9 5900XT 16-Core Processor (32 threads)
but it crashes on my older pc
Godot v4.4.rc1 - Windows 10 (build 17134) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 (NVIDIA; 32.0.15.7247) - Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (4 threads)
Minimal reproduction project (MRP)
I can't reproduce this issue on my end.
Godot v4.4.rc1 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21921.1000) - AMD Ryzen 5 3600 6-Core Processor (12 threads)
Could you check if you're able to reproduce this crash with Godot 4.4 beta 1 and 4.3 stable?
Just tested it on 4.3 and the scene opened, it almost crashed but I gave it some time and it opened. the 4.4 scene just doesnt open
I sent the files to a friend, his laptop also crashes on 4.4 but not on 4.3: he has an Intel Core i9 processor 14900HX running on integrated graphics
I replaced the VoxelGI node with LightmapGI on 4.4 and it also crahes, I don't understand why, 4.3 doesn't crash also.
Could you test the versions between 4.3 stable and 4.4 rc 1 to find when the crash started?
ok just tested 4.4 beta 1, it almost crashed it took a really long time to open, but it eventually opened without crashing.
ok something interesting happened, after I opened the 4.4 beta 1 version on my old pc I tried the RC1 version again and this time it opened quickly and without crashing, could it be something related to shader compilation?
Ok I just tried doing the exact same thing with my game project instead of the test scene.
- made a copy of my game project and opened it with 4.4 beta 1 on my new pc, exported the game.
- ran the game on my old pc, it takes forever to load but eventually opens.
- then go back to my new pc and open the same project with 4.4 RC 1 and export,
- open that version on the old PC and for the first time it opens quickly and with no crashing.
deleting the VoxelGI node was also enough for the game to open fine on my old laptop without having to do all that. thats how I originally found this problem.
Just opened the 4.4 RC1 version again to confirm it was working. then deleted the shader chache, now its crashing again. I think its for sure something related to shader compilation
Just recorded what happens on my old PC with different Godot versions on my game project.
4.4 RC 1 with Voxel GI Enabled 4.4 RC 1 with Voxel GI Disabled 4.4 Beta 1 With Voxel GI Enabled
https://youtu.be/uOABLM2cIcE
the only one that crashes is 4.4 RC1 with voxel GI enabled.
Could test the beta 2, 3 and 4 to find which version started the crash?
Ok
Beta 2 takes a very long time to load but doesnt crash Beta 3 crashes Beta 4 crashes
@Calinou Something changed in 4.4 beta 3 that could explain this crash?
@Calinou Something changed in 4.4 beta 3 that could explain this crash?
Changelog between 4.4.beta2 and 4.4.beta3: https://godotengine.github.io/godot-interactive-changelog/#4.4-beta3
Looking at the changelog, I'm not sure what would cause this.
I suggest trying to run a debug build of the engine on the old PC from a terminal, so that you get a crash backtrace. I don't have one for 4.4.stable at https://github.com/Calinou/godot-debug-builds yet, but I'll try to make one this week.
Set up Lightmap GI and tested Mobile renderer on 4.4, no crashing. so far it only crashes with Forward+
Tested in 4.4.1 rc1, no more crashing!
cleared shader cache and tried again on my old laptop, it also loads fine in 4.4.1 rc1. it seems to be working fine again. I can't make it crash anymore.
Closing per the above comment.