godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.83k stars 21.13k forks source link

Crash after setting probe data #46570

Open qarmin opened 3 years ago

qarmin commented 3 years ago

Godot version: 3.2.4.rc.custom_build. 8385a0d8a

Issue description: After setting probe data, Godot crash with this backtrace

[1] /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7fac21f38210] (??:0)
[2] VisualServerScene::_gi_probe_fill_local_data(int, int, int, int, int, VisualServerScene::GIProbeDataCell const*, VisualServerScene::GIProbeDataHeader const*, VisualServerScene::InstanceGIProbeData::LocalData*, Vector<unsigned int>*) (/mnt/Miecz/godot3.2/servers/visual/visual_server_scene.cpp:2461)
[3] VisualServerScene::_setup_gi_probe(VisualServerScene::Instance*) (/mnt/Miecz/godot3.2/servers/visual/visual_server_scene.cpp:2529 (discriminator 1))
[4] VisualServerScene::render_probes() (/mnt/Miecz/godot3.2/servers/visual/visual_server_scene.cpp:3391)
[5] VisualServerRaster::draw(bool, double) (/mnt/Miecz/godot3.2/servers/visual/visual_server_raster.cpp:110 (discriminator 1))
[6] VisualServerWrapMT::draw(bool, double) (/mnt/Miecz/godot3.2/servers/visual/visual_server_wrap_mt.cpp:104)
[7] Main::iteration() (/mnt/Miecz/godot3.2/main/main.cpp:2131)
[8] OS_X11::run() (/mnt/Miecz/godot3.2/platform/x11/os_x11.cpp:3628)
[9] /usr/bin/godot(main+0x125) [0x16ff90b] (/mnt/Miecz/godot3.2/platform/x11/godot_x11.cpp:57)
[10] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fac21f190b3] (??:0)
[11] /usr/bin/godot(_start+0x2e) [0x16ff72e] (??:?)

Steps to reproduce: Run project

Minimal reproduction project: GDScript.zip

qarmin commented 3 years ago

Crash still happens with Godot 3.4 beta

ERROR: Size of PoolVector cannot be negative.
   at: resize (./core/pool_vector.h:501)
servers/visual/visual_server_scene.cpp:2903:33: runtime error: member access within null pointer of type 'struct LocalData'

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v3.4.beta.custom_build (316b5dad2dfcd8758372b728fb059b067b57650c)
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] godots() [0x17cc10a] (/mnt/Miecz/godot3.2/platform/x11/crash_handler_x11.cpp:56)
[2] /lib/x86_64-linux-gnu/libc.so.6(+0x41040) [0x7f9cc45c3040] (??:0)
[3] VisualServerScene::_gi_probe_fill_local_data(int, int, int, int, int, VisualServerScene::GIProbeDataCell const*, VisualServerScene::GIProbeDataHeader const*, VisualServerScene::InstanceGIProbeData::LocalData*, Vector<unsigned int>*) (/mnt/Miecz/godot3.2/servers/visual/visual_server_scene.cpp:2903)
[4] VisualServerScene::_setup_gi_probe(VisualServerScene::Instance*) (/mnt/Miecz/godot3.2/servers/visual/visual_server_scene.cpp:2973 (discriminator 1))
[5] VisualServerScene::render_probes() (/mnt/Miecz/godot3.2/servers/visual/visual_server_scene.cpp:3801)
[6] VisualServerRaster::draw(bool, double) (/mnt/Miecz/godot3.2/servers/visual/visual_server_raster.cpp:109 (discriminator 4))
[7] VisualServerWrapMT::draw(bool, double) (/mnt/Miecz/godot3.2/servers/visual/visual_server_wrap_mt.cpp:92)
[8] Main::iteration() (/mnt/Miecz/godot3.2/main/main.cpp:2197)
[9] OS_X11::run() (/mnt/Miecz/godot3.2/platform/x11/os_x11.cpp:3641)
[10] godots(main+0x326) [0x17c2d8c] (/mnt/Miecz/godot3.2/platform/x11/godot_x11.cpp:57)
[11] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xd5) [0x7f9cc45aa565] (??:0)
[12] godots(_start+0x2e) [0x17c29ae] (??:?)
-- END OF BACKTRACE --