godot icon indicating copy to clipboard operation
godot copied to clipboard

editor crash on Viewport own_world disable

Open pseidemann opened this issue 1 year ago • 2 comments

Godot version

v3.5.1.stable.official [6fed1ffa3]

System information

macOS 13.0.1 (22A400)

Issue description

while working on a 3d sky box, I managed to create a node structure which will crash the editor, once I select the checkbox own_world of a Viewport.

error message:

Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000002b0 Exception Codes: 0x0000000000000001, 0x00000000000002b0

Steps to reproduce

in the project attached, enable the own_world checkbox in the SkyBox2 node.

Minimal reproduction project

own_world_crash.zip

pseidemann avatar Dec 05 '22 20:12 pseidemann

servers/visual/visual_server_scene.cpp:1934:18: runtime error: member access within null pointer of type 'struct Scenario'

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v3.6.beta.custom_build (71f5bb391626b5d541a21885c846dca2b44dbb9a)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] godots() [0x1897926] (/home/runner/work/GodotBuilds/GodotBuilds/godot/platform/x11/crash_handler_x11.cpp:56)
[2] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fe844407520] (??:0)
[3] PortalRenderer::is_active() const (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/portals/portal_renderer.h:238)
[4] VisualServerScene::_cull_convex_from_point(VisualServerScene::Scenario*, Transform const&, CameraMatrix const&, Vector<Plane> const&, VisualServerScene::Instance**, int, int&, unsigned int) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_scene.cpp:1934)
[5] VisualServerScene::_prepare_scene(Transform, CameraMatrix const&, bool, RID, unsigned int, RID, RID, RID, int&) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_scene.cpp:3002 (discriminator 1))
[6] VisualServerScene::render_camera(RID, RID, Vector2, RID) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_scene.cpp:2893)
[7] VisualServerViewport::_draw_3d(VisualServerViewport::Viewport*, ARVRInterface::Eyes) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_viewport.cpp:68)
[8] VisualServerViewport::_draw_viewport(VisualServerViewport::Viewport*, ARVRInterface::Eyes) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_viewport.cpp:109)
[9] VisualServerViewport::draw_viewports() (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_viewport.cpp:344)
[10] VisualServerRaster::draw(bool, double) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_raster.cpp:116 (discriminator 4))
[11] VisualServerWrapMT::draw(bool, double) (/home/runner/work/GodotBuilds/GodotBuilds/godot/servers/visual/visual_server_wrap_mt.cpp:87)
[12] Main::iteration() (/home/runner/work/GodotBuilds/GodotBuilds/godot/main/main.cpp:2358)
[13] OS_X11::run() (/home/runner/work/GodotBuilds/GodotBuilds/godot/platform/x11/os_x11.cpp:4035)
[14] godots(main+0x357) [0x188d12d] (/home/runner/work/GodotBuilds/GodotBuilds/godot/platform/x11/godot_x11.cpp:61)
[15] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fe8443eed90] (??:0)
[16] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fe8443eee40] (??:0)
[17] godots(_start+0x2e) [0x188cd1e] (??:?)
-- END OF BACKTRACE --
================================================================

qarmin avatar Dec 06 '22 09:12 qarmin

thanks @qarmin.

backtrace for v3.5.1.stable.official [6fed1ffa3]:

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v3.5.1.stable.official (6fed1ffa313c6760fa88b368ae580378daaef0f0)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] 1   libsystem_platform.dylib            0x00007ff80a10fc1d _sigtramp + 29
[2] 2   ???                                 0x0000000000000000 0x0 + 0
[3] Physics2DServerWrapMT::bodyallocn()
[4] Physics2DServerWrapMT::bodyallocn()
[5] Physics2DServerWrapMT::bodyallocn()
[6] Physics2DServerWrapMT::bodyallocn()
[7] Physics2DServerWrapMT::bodyallocn()
[8] DirAccess* DirAccess::_create_builtin<DirAccessOSX>()
[9] DefaultAllocator::alloc(unsigned long)
[10] DirAccess* DirAccess::_create_builtin<DirAccessOSX>()
[11] 11  dyld                                0x00007ff809db4310 start + 2432
-- END OF BACKTRACE --
================================================================

pseidemann avatar Dec 12 '22 13:12 pseidemann