godot icon indicating copy to clipboard operation
godot copied to clipboard

Game crashes when opening a scene that has the VoxelGI node in it

Open Kekitopu opened this issue 10 months ago • 4 comments

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

Image

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)

GI test.zip

Kekitopu avatar Feb 23 '25 19:02 Kekitopu

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?

matheusmdx avatar Feb 23 '25 20:02 matheusmdx

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

Kekitopu avatar Feb 23 '25 22:02 Kekitopu

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

Kekitopu avatar Feb 23 '25 23:02 Kekitopu

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.

Kekitopu avatar Feb 24 '25 01:02 Kekitopu

Could you test the versions between 4.3 stable and 4.4 rc 1 to find when the crash started?

matheusmdx avatar Feb 24 '25 10:02 matheusmdx

ok just tested 4.4 beta 1, it almost crashed it took a really long time to open, but it eventually opened without crashing.

Kekitopu avatar Feb 24 '25 16:02 Kekitopu

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?

Kekitopu avatar Feb 24 '25 16:02 Kekitopu

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.

Kekitopu avatar Feb 24 '25 16:02 Kekitopu

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

Kekitopu avatar Feb 24 '25 18:02 Kekitopu

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.

Kekitopu avatar Feb 25 '25 20:02 Kekitopu

Could test the beta 2, 3 and 4 to find which version started the crash?

matheusmdx avatar Feb 25 '25 21:02 matheusmdx

Ok

Kekitopu avatar Feb 25 '25 22:02 Kekitopu

Beta 2 takes a very long time to load but doesnt crash Beta 3 crashes Beta 4 crashes

Kekitopu avatar Feb 25 '25 22:02 Kekitopu

@Calinou Something changed in 4.4 beta 3 that could explain this crash?

matheusmdx avatar Feb 26 '25 00:02 matheusmdx

@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.

Calinou avatar Mar 05 '25 02:03 Calinou

Set up Lightmap GI and tested Mobile renderer on 4.4, no crashing. so far it only crashes with Forward+

Kekitopu avatar Mar 12 '25 02:03 Kekitopu

Tested in 4.4.1 rc1, no more crashing!

Kekitopu avatar Mar 16 '25 19:03 Kekitopu

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.

Kekitopu avatar Mar 16 '25 20:03 Kekitopu

Closing per the above comment.

Calinou avatar Mar 17 '25 01:03 Calinou