Skip to content
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

Godot exception while using SetScript #19406

Closed
xfactor2000 opened this issue Jun 7, 2018 · 9 comments
Closed

Godot exception while using SetScript #19406

xfactor2000 opened this issue Jun 7, 2018 · 9 comments
Assignees
Milestone

Comments

@xfactor2000
Copy link

Godot version:
Godot Mono 3.0.2 official

OS/device including version:
Manjaro Linux 17.1.10 Hakoila

Issue description:
I'm getting weird errors while dynamically setting script for a node. Right now, I try to generate a scene randomly. I have a class with a logic which eventually boils down to this:

public virtual Node2D GenerateTileScene(List<Decoration> decorations)
    {
        //first, we place the objects and then look for a spot for player
        scene.SetScript(GD.Weakref(this));
        scene.AddChild(this);
        scenePlacementLogic.PlaceDecorations(decorations);
        scenePlacementLogic.PlaceObject(player);
        return scene;
    }

This configuration gives me this weird Godot error:

Stacktrace:

  at <unknown> <0xffffffff>
munmap_chunk(): invalid pointer

However, if I move the first two lines to the end of the function, everything works:

    {
        //first, we place the objects and then look for a spot for player
        scenePlacementLogic.PlaceDecorations(decorations);
        scenePlacementLogic.PlaceObject(player);
        scene.SetScript(GD.Weakref(this));
        scene.AddChild(this);
        return scene;
    }

I thought it was connected to the fact that I shouldn't set script while the class instance was being busy placing objects on the scene, so I tried CallDeferred() but got the same error.

Please note that the scene object is not in the SceneTree while running this, the scene is only added to the tree once the decorations are set up and the SetScript is called.

Also, I started getting this weird stacktrace while closing Godot window (definitely related to SetScript/WeakRef, because if I close the window before this line is called then no stacktrace is shown):

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Godot.NativeCalls.godot_icall_Object_Dtor (object,intptr) [0x00008] in <2ee46256f04a406885002fc72b63f3c0>:0
  at Godot.Object.Dispose (bool) [0x0002a] in /home/xxx/.local/share/godot/mono/solutions/5128684965136174502_1_1/GodotSharp/ObjectType/Object.cs:71
  at Godot.Object.Finalize () [0x00000] in /home/xxx/.local/share/godot/mono/solutions/5128684965136174502_1_1/GodotSharp/ObjectType/Object.cs:54
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) [0x0001f] in <9689214c1e4645be91df75196bac3cbb>:0
/proc/self/maps:
00400000-03445000 r-xp 00000000 08:01 20709464                           /opt/godot-mono-bin/godot/Godot_v3.0.2-stable_mono_x11.64
03645000-03651000 r--p 03045000 08:01 20709464                           /opt/godot-mono-bin/godot/Godot_v3.0.2-stable_mono_x11.64
03651000-0366e000 rw-p 03051000 08:01 20709464                           /opt/godot-mono-bin/godot/Godot_v3.0.2-stable_mono_x11.64
0366e000-0369e000 rw-p 00000000 00:00 0
036de000-086e3000 rw-p 00000000 00:00 0                                  [heap]
4002d000-400ce000 rw-p 00000000 00:00 0
40198000-401a8000 rwxp 00000000 00:00 0
40383000-40393000 rwxp 00000000 00:00 0
40ba2000-40c42000 rwxp 00000000 00:00 0
412b8000-412ba000 r-xs 00000000 00:29 414                                /tmp/.glwnXotw (deleted)
41675000-41685000 rwxp 00000000 00:00 0
7fa090000000-7fa090021000 rw-p 00000000 00:00 0
7fa090021000-7fa094000000 ---p 00000000 00:00 0
7fa098000000-7fa098021000 rw-p 00000000 00:00 0
7fa098021000-7fa09c000000 ---p 00000000 00:00 0
7fa09fc34000-7fa0a4000000 rw-p 00000000 00:00 0
7fa0a4000000-7fa0a4021000 rw-p 00000000 00:00 0
7fa0a4021000-7fa0a8000000 ---p 00000000 00:00 0
7fa0a8200000-7fa0a8400000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0a85fe000-7fa0a85ff000 ---p 00000000 00:00 0
7fa0a85ff000-7fa0a8600000 rw-p 00000000 00:00 0
7fa0a8600000-7fa0a8608000 ---p 00000000 00:00 0
7fa0a8608000-7fa0a97ff000 rw-p 00000000 00:00 0
7fa0a97ff000-7fa0a9800000 ---p 00000000 00:00 0
7fa0a9800000-7fa0aa400000 rw-p 00000000 00:00 0
7fa0aa5c9000-7fa0aa7c9000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0aa88f000-7fa0aa890000 ---p 00000000 00:00 0
7fa0aa890000-7fa0aa891000 rw-p 00000000 00:00 0
7fa0aa891000-7fa0aa899000 ---p 00000000 00:00 0
7fa0aa899000-7fa0aab10000 rw-p 00000000 00:00 0
7fa0aab13000-7fa0aab14000 rw-p 00000000 00:00 0
7fa0aab14000-7fa0aab73000 ---p 00000000 00:00 0
7fa0aab73000-7fa0aabf3000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0aabf3000-7fa0ac000000 rw-p 00000000 00:00 0
7fa0ac000000-7fa0b0000000 rw-s 00000000 00:05 137045                     /memfd:pulseaudio (deleted)
7fa0b0000000-7fa0b4000000 rw-s 00000000 00:05 17374                      /memfd:pulseaudio (deleted)
7fa0b4000000-7fa0b8000000 rw-s 00000000 00:05 140954                     /memfd:pulseaudio (deleted)
7fa0b8000000-7fa0b8021000 rw-p 00000000 00:00 0
7fa0b8021000-7fa0bc000000 ---p 00000000 00:00 0
7fa0bc027000-7fa0bc028000 ---p 00000000 00:00 0
7fa0bc028000-7fa0bcbec000 rw-p 00000000 00:00 0
7fa0bcbec000-7fa0bcbed000 ---p 00000000 00:00 0
7fa0bcbed000-7fa0bcc2d000 rw-p 00000000 00:00 0
7fa0bcc2d000-7fa0bcc2e000 ---p 00000000 00:00 0
7fa0bcc2e000-7fa0bd42e000 rw-p 00000000 00:00 0
7fa0bd42e000-7fa0c142e000 rw-s 00000000 00:05 140954                     /memfd:pulseaudio (deleted)
7fa0c142e000-7fa0c142f000 ---p 00000000 00:00 0
7fa0c142f000-7fa0c1588000 rw-p 00000000 00:00 0
7fa0c1588000-7fa0c1608000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1608000-7fa0c1688000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1688000-7fa0c1708000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1708000-7fa0c1808000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1808000-7fa0c1828000 rw-s 00000000 00:06 431                        /dev/nvidia0
7fa0c1828000-7fa0c1868000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1868000-7fa0c1888000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1888000-7fa0c18c8000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c18c8000-7fa0c1908000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1908000-7fa0c1ab9000 rw-p 00000000 00:00 0
7fa0c1ab9000-7fa0c1aca000 r-xp 00000000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7fa0c1aca000-7fa0c1cc9000 ---p 00011000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7fa0c1cc9000-7fa0c1cca000 r--p 00010000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7fa0c1cca000-7fa0c1ccb000 rw-p 00011000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7fa0c1ccb000-7fa0c1dd0000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c1dd0000-7fa0c2ea7000 r-xp 00000000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7fa0c2ea7000-7fa0c2ec8000 rwxp 010d7000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7fa0c2ec8000-7fa0c3589000 r-xp 010f8000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7fa0c3589000-7fa0c3789000 ---p 017b9000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7fa0c3789000-7fa0c3a8b000 rw-p 017b9000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7fa0c3a8b000-7fa0c3aa4000 rw-p 00000000 00:00 0
7fa0c3aa4000-7fa0c3aa7000 r-xp 00000000 08:01 7995454                    /usr/lib/tls/libnvidia-tls.so.396.24
7fa0c3aa7000-7fa0c3ca7000 ---p 00003000 08:01 7995454                    /usr/lib/tls/libnvidia-tls.so.396.24
7fa0c3ca7000-7fa0c3ca8000 rw-p 00003000 08:01 7995454                    /usr/lib/tls/libnvidia-tls.so.396.24
7fa0c3ca8000-7fa0c3d71000 r-xp 00000000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7fa0c3d71000-7fa0c3da5000 rwxp 000c9000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7fa0c3da5000-7fa0c3db9000 r-xp 000fd000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7fa0c3db9000-7fa0c3fb9000 ---p 00111000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7fa0c3fb9000-7fa0c3fde000 rw-p 00111000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7fa0c3fde000-7fa0c3fe5000 rw-p 00000000 00:00 0
7fa0c3fe5000-7fa0c4059000 rw-p 00000000 00:00 0
7fa0c4060000-7fa0c4073000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c4073000-7fa0c4093000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c4095000-7fa0c40ad000 rw-p 00000000 00:00 0
7fa0c40ad000-7fa0c40ae000 rw-s 00000000 00:15 140                        /dev/shm/mono.27201
7fa0c40ae000-7fa0c40b3000 rw-p 00000000 00:00 0
7fa0c40b3000-7fa0c40d3000 rw-s 00000000 08:01 24904325                   /home/anton/#24904325 (deleted)
7fa0c40d3000-7fa0c40f3000 r-xs 00000000 08:01 24904325                   /home/anton/#24904325 (deleted)
7fa0c415c000-7fa0c4160000 rw-p 00000000 00:00 0
7fa0c4162000-7fa0c4164000 rw-p 00000000 00:00 0
7fa0c41a4000-7fa0c41ec000 rw-p 00000000 00:00 0
7fa0c41ed000-7fa0c41ee000 rw-p 00000000 00:00 0
7fa0c41ef000-7fa0c4475000 rw-p 00000000 00:00 0
7fa0c4475000-7fa0c4494000 r-xp 00000000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7fa0c4494000-7fa0c4693000 ---p 0001f000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7fa0c4693000-7fa0c4694000 r--p 0001e000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7fa0c4694000-7fa0c4695000 rw-p 0001f000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7fa0c4695000-7fa0c46a8000 r-xp 00000000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7fa0c46a8000-7fa0c48a8000 ---p 00013000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7fa0c48a8000-7fa0c48a9000 r--p 00013000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7fa0c48a9000-7fa0c48aa000 rw-p 00014000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7fa0c48aa000-7fa0c48ac000 rw-p 00000000 00:00 0
7fa0c48ac000-7fa0c4939000 r-xp 00000000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7fa0c4939000-7fa0c4b38000 ---p 0008d000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7fa0c4b38000-7fa0c4b54000 r--p 0008c000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7fa0c4b54000-7fa0c4b55000 rw-p 000a8000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7fa0c4b55000-7fa0c4b7f000 r-xp 00000000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7fa0c4b7f000-7fa0c4d7f000 ---p 0002a000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7fa0c4d7f000-7fa0c4d80000 r--p 0002a000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7fa0c4d80000-7fa0c4d81000 rw-p 0002b000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7fa0c4d81000-7fa0c4d86000 r-xp 00000000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7fa0c4d86000-7fa0c4f86000 ---p 00005000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7fa0c4f86000-7fa0c4f87000 r--p 00005000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7fa0c4f87000-7fa0c4f88000 rw-p 00006000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7fa0c4f88000-7fa0c4ffe000 r-xp 00000000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7fa0c4ffe000-7fa0c51fe000 ---p 00076000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7fa0c51fe000-7fa0c51ff000 r--p 00076000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7fa0c51ff000-7fa0c5200000 rw-p 00077000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7fa0c5200000-7fa0c5315000 r-xp 00000000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7fa0c5315000-7fa0c5514000 ---p 00115000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7fa0c5514000-7fa0c5516000 r--p 00114000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7fa0c5516000-7fa0c551b000 rw-p 00116000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7fa0c551b000-7fa0c551c000 rw-p 00000000 00:00 0
7fa0c551c000-7fa0c5538000 r-xp 00000000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7fa0c5538000-7fa0c5737000 ---p 0001c000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7fa0c5737000-7fa0c5738000 r--p 0001b000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7fa0c5738000-7fa0c5739000 rw-p 0001c000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7fa0c5739000-7fa0c575e000 r-xp 00000000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7fa0c575e000-7fa0c595d000 ---p 00025000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7fa0c595d000-7fa0c595e000 r--p 00024000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7fa0c595e000-7fa0c595f000 rw-p 00025000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7fa0c595f000-7fa0c5964000 r-xp 00000000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7fa0c5964000-7fa0c5b63000 ---p 00005000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7fa0c5b63000-7fa0c5b64000 r--p 00004000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7fa0c5b64000-7fa0c5b65000 rw-p 00005000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7fa0c5b65000-7fa0c5bd8000 r-xp 00000000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7fa0c5bd8000-7fa0c5dd7000 ---p 00073000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7fa0c5dd7000-7fa0c5dda000 r--p 00072000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7fa0c5dda000-7fa0c5ddb000 rw-p 00075000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7fa0c5ddb000-7fa0c5ddd000 rw-p 00000000 00:00 0
7fa0c5ddd000-7fa0c5e60000 r-xp 00000000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7fa0c5e60000-7fa0c605f000 ---p 00083000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7fa0c605f000-7fa0c6062000 r--p 00082000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7fa0c6062000-7fa0c6063000 rw-p 00085000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7fa0c6063000-7fa0c6064000 rw-p 00000000 00:00 0
7fa0c6064000-7fa0c6069000 r-xp 00000000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7fa0c6069000-7fa0c6268000 ---p 00005000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7fa0c6268000-7fa0c6269000 r--p 00004000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7fa0c6269000-7fa0c626a000 rw-p 00005000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7fa0c626a000-7fa0c626c000 r-xp 00000000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7fa0c626c000-7fa0c646c000 ---p 00002000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7fa0c646c000-7fa0c646d000 r--p 00002000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7fa0c646d000-7fa0c646e000 rw-p 00003000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7fa0c646e000-7fa0c64b0000 r-xp 00000000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7fa0c64b0000-7fa0c64c9000 r-xp 00042000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7fa0c64c9000-7fa0c64dc000 r-xp 0005b000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7fa0c64dc000-7fa0c66db000 ---p 0006e000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7fa0c66db000-7fa0c6703000 r--p 0006d000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7fa0c6703000-7fa0c6704000 rw-p 00095000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7fa0c6704000-7fa0c6724000 rw-p 00000000 00:00 0
7fa0c6724000-7fa0c6734000 r-xp 00000000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7fa0c6734000-7fa0c6933000 ---p 00010000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7fa0c6933000-7fa0c6934000 r--p 0000f000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7fa0c6934000-7fa0c6935000 rw-p 00010000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7fa0c6935000-7fa0c6955000 rw-p 00000000 00:00 0
7fa0c6955000-7fa0c69a3000 r-xp 00000000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7fa0c69a3000-7fa0c6ba3000 ---p 0004e000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7fa0c6ba3000-7fa0c6ba5000 r--p 0004e000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7fa0c6ba5000-7fa0c6ba6000 rw-p 00050000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7fa0c6ba6000-7fa0c6c26000 r-xp 00000000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7fa0c6c26000-7fa0c6e26000 ---p 00080000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7fa0c6e26000-7fa0c6e28000 r--p 00080000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7fa0c6e28000-7fa0c6e29000 rw-p 00082000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7fa0c6e29000-7fa0c6e3a000 r-xp 00000000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7fa0c6e3a000-7fa0c7039000 ---p 00011000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7fa0c7039000-7fa0c703a000 r--p 00010000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7fa0c703a000-7fa0c703b000 rw-p 00011000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7fa0c703b000-7fa0c7040000 r-xp 00000000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7fa0c7040000-7fa0c723f000 ---p 00005000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7fa0c723f000-7fa0c7240000 r--p 00004000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7fa0c7240000-7fa0c7241000 rw-p 00005000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7fa0c7241000-7fa0c724a000 r-xp 00000000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7fa0c724a000-7fa0c744a000 ---p 00009000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7fa0c744a000-7fa0c744b000 r--p 00009000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7fa0c744b000-7fa0c744c000 rw-p 0000a000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7fa0c744c000-7fa0c7473000 r-xp 00000000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7fa0c7473000-7fa0c7673000 ---p 00027000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7fa0c7673000-7fa0c7674000 r--p 00027000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7fa0c7674000-7fa0c7675000 rw-p 00028000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7fa0c7675000-7fa0c76b8000 r-xp 00000000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7fa0c76b8000-7fa0c76d1000 r-xp 00043000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7fa0c76d1000-7fa0c76e5000 r-xp 0005c000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7fa0c76e5000-7fa0c78e4000 ---p 00070000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7fa0c78e4000-7fa0c78fe000 r--p 0006f000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7fa0c78fe000-7fa0c78ff000 rw-p 00089000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7fa0c78ff000-7fa0c7900000 rw-p 00000000 00:00 0
7fa0c7900000-7fa0c794f000 r-xp 00000000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7fa0c794f000-7fa0c7b4e000 ---p 0004f000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7fa0c7b4e000-7fa0c7b50000 r--p 0004e000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7fa0c7b50000-7fa0c7b51000 rw-p 00050000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7fa0c7b51000-7fa0c7b54000 r-xp 00000000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7fa0c7b54000-7fa0c7d53000 ---p 00003000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7fa0c7d53000-7fa0c7d54000 r--p 00002000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7fa0c7d54000-7fa0c7d55000 rw-p 00003000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7fa0c7d55000-7fa0c7e2c000 r-xp 00000000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7fa0c7e2c000-7fa0c802c000 ---p 000d7000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7fa0c802c000-7fa0c8034000 r--p 000d7000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7fa0c8034000-7fa0c8035000 rw-p 000df000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7fa0c8035000-7fa0c8044000 r-xp 00000000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7fa0c8044000-7fa0c8244000 ---p 0000f000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7fa0c8244000-7fa0c8245000 r--p 0000f000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7fa0c8245000-7fa0c8246000 rw-p 00010000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7fa0c8246000-7fa0c8250000 r-xp 00000000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7fa0c8250000-7fa0c844f000 ---p 0000a000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7fa0c844f000-7fa0c8450000 r--p 00009000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7fa0c8450000-7fa0c8451000 rw-p 0000a000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7fa0c8451000-7fa0c8453000 r-xp 00000000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7fa0c8453000-7fa0c8652000 ---p 00002000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7fa0c8652000-7fa0c8653000 r--p 00001000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7fa0c8653000-7fa0c8654000 rw-p 00002000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7fa0c8654000-7fa0c865d000 r-xp 00000000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7fa0c865d000-7fa0c885c000 ---p 00009000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7fa0c885c000-7fa0c885d000 r--p 00008000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7fa0c885d000-7fa0c885e000 rw-p 00009000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7fa0c885e000-7fa0c8997000 r-xp 00000000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7fa0c8997000-7fa0c8b97000 ---p 00139000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7fa0c8b97000-7fa0c8b98000 r--p 00139000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7fa0c8b98000-7fa0c8b9d000 rw-p 0013a000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7fa0c8b9d000-7fa0c8d50000 r-xp 00000000 08:01 3147640                    /usr/lib/libc-2.27.so
7fa0c8d50000-7fa0c8f4f000 ---p 001b3000 08:01 3147640                    /usr/lib/libc-2.27.so
7fa0c8f4f000-7fa0c8f53000 r--p 001b2000 08:01 3147640                    /usr/lib/libc-2.27.so
7fa0c8f53000-7fa0c8f55000 rw-p 001b6000 08:01 3147640                    /usr/lib/libc-2.27.so
7fa0c8f55000-7fa0c8f59000 rw-p 00000000 00:00 0
7fa0c8f59000-7fa0c90ec000 r-xp 00000000 08:01 3147293                    /usr/lib/libm-2.27.so
7fa0c90ec000-7fa0c92ec000 ---p 00193000 08:01 3147293                    /usr/lib/libm-2.27.so
7fa0c92ec000-7fa0c92ed000 r--p 00193000 08:01 3147293                    /usr/lib/libm-2.27.so
7fa0c92ed000-7fa0c92ee000 rw-p 00194000 08:01 3147293                    /usr/lib/libm-2.27.so
7fa0c92ee000-7fa0c92f5000 r-xp 00000000 08:01 3147322                    /usr/lib/librt-2.27.so
7fa0c92f5000-7fa0c94f4000 ---p 00007000 08:01 3147322                    /usr/lib/librt-2.27.so
7fa0c94f4000-7fa0c94f5000 r--p 00006000 08:01 3147322                    /usr/lib/librt-2.27.so
7fa0c94f5000-7fa0c94f6000 rw-p 00007000 08:01 3147322                    /usr/lib/librt-2.27.so
7fa0c94f6000-7fa0c94f9000 r-xp 00000000 08:01 3147306                    /usr/lib/libdl-2.27.so
7fa0c94f9000-7fa0c96f8000 ---p 00003000 08:01 3147306                    /usr/lib/libdl-2.27.so
7fa0c96f8000-7fa0c96f9000 r--p 00002000 08:01 3147306                    /usr/lib/libdl-2.27.so
7fa0c96f9000-7fa0c96fa000 rw-p 00003000 08:01 3147306                    /usr/lib/libdl-2.27.so
7fa0c96fa000-7fa0c9713000 r-xp 00000000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7fa0c9713000-7fa0c9912000 ---p 00019000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7fa0c9912000-7fa0c9913000 r--p 00018000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7fa0c9913000-7fa0c9914000 rw-p 00019000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7fa0c9914000-7fa0c9918000 rw-p 00000000 00:00 0
7fa0c9918000-7fa0c993d000 r-xp 00000000 08:01 3147641                    /usr/lib/ld-2.27.so
7fa0c993d000-7fa0c993f000 rw-p 00000000 00:00 0
7fa0c993f000-7fa0c9941000 rw-s 00000000 00:29 414                        /tmp/.glwnXotw (deleted)
7fa0c9941000-7fa0c9942000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c9942000-7fa0c9946000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c9946000-7fa0c9947000 rw-s 00000000 00:06 431                        /dev/nvidia0
7fa0c9947000-7fa0c9ae4000 r--p 00000000 08:01 3165726                    /usr/lib/locale/locale-archive
7fa0c9ae4000-7fa0c9af7000 rw-p 00000000 00:00 0
7fa0c9af7000-7fa0c9af8000 rw-s 00000000 00:06 431                        /dev/nvidia0
7fa0c9af8000-7fa0c9af9000 rw-s 00000000 00:06 431                        /dev/nvidia0
7fa0c9af9000-7fa0c9afa000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c9afa000-7fa0c9afb000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7fa0c9afb000-7fa0c9afc000 ---p 00000000 00:00 0
7fa0c9afc000-7fa0c9b3c000 rw-p 00000000 00:00 0
7fa0c9b3c000-7fa0c9b3d000 r--p 00024000 08:01 3147641                    /usr/lib/ld-2.27.so
7fa0c9b3d000-7fa0c9b3e000 rw-p 00025000 08:01 3147641                    /usr/lib/ld-2.27.so
7fa0c9b3e000-7fa0c9b3f000 rw-p 00000000 00:00 0
7ffdfe486000-7ffdfe48e000 ---p 00000000 00:00 0
7ffdfec60000-7ffdfec85000 rw-p 00000000 00:00 0                          [stack]
7ffdfeda7000-7ffdfedaa000 r--p 00000000 00:00 0                          [vvar]
7ffdfedaa000-7ffdfedac000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Native stacktrace:

        godot-mono() [0x834523]
        godot-mono() [0x79df38]
        godot-mono(__dynamic_cast+0xd) [0x23840ad]

Debug info from gdb:

[New LWP 27244]
[New LWP 27245]
[New LWP 27246]
[New LWP 27247]
[New LWP 27248]
[New LWP 27249]
[New LWP 27250]
[New LWP 27251]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x00007fa0c9709a52 in do_futex_wait () from /usr/lib/libpthread.so.0
  Id   Target Id         Frame
* 1    Thread 0x7fa0c9ae4800 (LWP 27201) "godot-mono" 0x00007fa0c9709a52 in do_futex_wait () from /usr/lib/libpthread.so.0
  2    Thread 0x7fa0c9b3b700 (LWP 27244) "godot-mono" 0x00007fa0c9709856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  3    Thread 0x7fa0c146e700 (LWP 27245) "godot-mono" 0x00007fa0c9709856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  4    Thread 0x7fa0bd42d700 (LWP 27246) "threaded-ml" 0x00007fa0c8c8aea9 in poll () from /usr/lib/libc.so.6
  5    Thread 0x7fa0bcc2c700 (LWP 27247) "godot-mono" 0x00007fa0c9706ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
  6    Thread 0x7fa0bc067700 (LWP 27248) "godot-mono" 0x00007fa0c8c628b0 in nanosleep () from /usr/lib/libc.so.6
  7    Thread 0x7fa0a9fff700 (LWP 27249) "SGen worker" 0x00007fa0c9706ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
  8    Thread 0x7fa0aaa8f700 (LWP 27250) "Finalizer" 0x00007fa0c970b3ea in waitpid () from /usr/lib/libpthread.so.0
  9    Thread 0x7fa0a87fe700 (LWP 27251) "Debugger agent" 0x00007fa0c970a877 in accept () from /usr/lib/libpthread.so.0

Thread 9 (Thread 0x7fa0a87fe700 (LWP 27251)):
#0  0x00007fa0c970a877 in accept () from /usr/lib/libpthread.so.0
#1  0x0000000000775865 in ?? ()
#2  0x000000000078a4b7 in ?? ()
#3  0x00000000009683c5 in ?? ()
#4  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7fa0aaa8f700 (LWP 27250)):
#0  0x00007fa0c970b3ea in waitpid () from /usr/lib/libpthread.so.0
#1  0x00000000008345ec in ?? ()
#2  0x000000000079df38 in ?? ()
#3  0x00000000023840ad in __dynamic_cast ()
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fa0a9fff700 (LWP 27249)):
#0  0x00007fa0c9706ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00000000009d4953 in ?? ()
#2  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7fa0bc067700 (LWP 27248)):
#0  0x00007fa0c8c628b0 in nanosleep () from /usr/lib/libc.so.6
#1  0x00007fa0c8c8da04 in usleep () from /usr/lib/libc.so.6
#2  0x00000000012c408f in JoypadLinux::monitor_joypads() ()
#3  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#4  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7fa0bcc2c700 (LWP 27247)):
#0  0x00007fa0c9706ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fa0c7933d89 in pa_threaded_mainloop_wait () from /usr/lib/libpulse.so.0
#2  0x00007fa0c7b52ae7 in pa_simple_write () from /usr/lib/libpulse-simple.so.0
#3  0x0000000000f0f7f3 in AudioDriverPulseAudio::thread_func(void*) ()
#4  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#5  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fa0bd42d700 (LWP 27246)):
#0  0x00007fa0c8c8aea9 in poll () from /usr/lib/libc.so.6
#1  0x00007fa0c7933773 in ?? () from /usr/lib/libpulse.so.0
#2  0x00007fa0c7924bd0 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007fa0c7925271 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007fa0c7925301 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007fa0c79336ae in ?? () from /usr/lib/libpulse.so.0
#6  0x00007fa0c6bfb81c in ?? () from /usr/lib/pulseaudio/libpulsecommon-11.1.so
#7  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fa0c146e700 (LWP 27245)):
#0  0x00007fa0c9709856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007fa0c9709958 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x0000000000e6ebfd in SemaphorePosix::wait() ()
#3  0x00000000020b53cc in VisualServerScene::_gi_probe_bake_thread() ()
#4  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#5  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fa0c9b3b700 (LWP 27244)):
#0  0x00007fa0c9709856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007fa0c9709958 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x0000000000e6ebfd in SemaphorePosix::wait() ()
#3  0x0000000002120657 in _IP_ResolverPrivate::_thread_function(void*) ()
#4  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#5  0x00007fa0c9701075 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fa0c8c9553f in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fa0c9ae4800 (LWP 27201)):
#0  0x00007fa0c9709a52 in do_futex_wait () from /usr/lib/libpthread.so.0
#1  0x00007fa0c9709b63 in __new_sem_wait_slow () from /usr/lib/libpthread.so.0
#2  0x00000000008c2ed3 in mono_domain_finalize ()
#3  0x0000000000a2d8de in GDMono::_unload_scripts_domain() ()
#4  0x0000000000a37016 in GDMono::~GDMono() ()
#5  0x0000000000a38771 in CSharpLanguage::finish() ()
#6  0x0000000001ee026e in ScriptServer::finish_languages() ()
#7  0x0000000001311655 in Main::cleanup() ()
#8  0x0000000000743686 in main ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
@xfactor2000 xfactor2000 changed the title Error while using SetScript Godot exception while using SetScript Jun 7, 2018
@akien-mga akien-mga added this to the 3.1 milestone Jun 7, 2018
@akien-mga
Copy link
Member

CC @neikeq

@neikeq neikeq self-assigned this Jun 7, 2018
@xfactor2000
Copy link
Author

xfactor2000 commented Jun 8, 2018

More observations:

If I try to store the generated scene (with added script) to a variable and switch to it it later on, it doesn't work:

if (targetScene !=null)
        {
           CallDeferred("SwitchScene",targetScene);
        }
        
    }

    public void SwitchScene(Node targetScene)
    {
        GD.Print($"Switching to: {targetScene}");
	var currentScene = GetTree().GetCurrentScene();
        GetTree().GetRoot().AddChild(targetScene);
        GetTree().SetCurrentScene(targetScene);
        eventBus.Publish(Address.GameEvents,new SceneChangedEvent(targetScene));
        currentScene.QueueFree();
    }

In the case of the stored scene, the targetScene will always be Null . Same function works perfectly in other cases.

If I try to get NativeInstance or even inspect the scene in VSCode debug console, I get the stacktrace (see below):

Plus, it seems that the game exits abruptly after some time with a similar stacktrace.

ERROR: godot_icall_0_3: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:26.
ERROR: godot_icall_0_2: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:19.
ERROR: godot_icall_0_14: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:125.
ERROR: godot_icall_0_9: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:86.
ERROR: godot_icall_0_9: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:86.
ERROR: godot_icall_0_14: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:125.
ERROR: godot_icall_0_221: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:2149.
ERROR: godot_icall_0_1: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:12.
ERROR: godot_icall_0_223: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:2164.
ERROR: godot_icall_0_204: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:1988.
ERROR: godot_icall_0_2: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:19.
ERROR: godot_icall_0_201: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:1961.
ERROR: godot_icall_0_552: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:5630.
ERROR: godot_icall_0_14: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:125.
ERROR: godot_icall_0_9: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:86.
ERROR: godot_icall_0_9: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:86.
ERROR: godot_icall_0_14: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:125.
ERROR: godot_icall_0_204: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:1988.
ERROR: godot_icall_0_3: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:26.
ERROR: godot_icall_0_3: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:26.
ERROR: godot_icall_0_221: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:2149.
ERROR: godot_icall_0_3: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:26.
ERROR: godot_icall_0_3: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:26.
ERROR: godot_icall_0_3: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:26.
ERROR: godot_icall_0_1: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:12.
ERROR: godot_icall_0_79: Parameter ' ptr ' is null.
   At: modules/mono/glue/mono_glue.gen.cpp:741.
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Godot.NativeCalls.godot_icall_NodePath_operator_String (intptr) [0x00007] in <2ee46256f04a406885002fc72b63f3c0>:0
  at Godot.NodePath.op_Implicit (Godot.NodePath) [0x00000] in /home/xxx/.local/share/godot/mono/solutions/5128684965136174502_1_1/GodotSharp/Core/NodePath.cs:65
  at Godot.NodePath.ToString () [0x00000] in /home/xxx/.local/share/godot/mono/solutions/5128684965136174502_1_1/GodotSharp/Core/NodePath.cs:70
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) [0x00020] in <2ee46256f04a406885002fc72b63f3c0>:0
  at <unknown> <0xffffffff>
  at SceneLoader.ProcessEvent (EventBusEvent) [0x002fa] in /home/xxx/godot/nuclear-nation/scripts/global/SceneLoader.cs:123
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) [0x00022] in <2882081770f54ae980f922985c4ee25c>:0
/proc/self/maps:
00400000-03445000 r-xp 00000000 08:01 20709464                           /opt/godot-mono-bin/godot/Godot_v3.0.2-stable_mono_x11.64
03645000-03651000 r--p 03045000 08:01 20709464                           /opt/godot-mono-bin/godot/Godot_v3.0.2-stable_mono_x11.64
03651000-0366e000 rw-p 03051000 08:01 20709464                           /opt/godot-mono-bin/godot/Godot_v3.0.2-stable_mono_x11.64
0366e000-0369e000 rw-p 00000000 00:00 0
0453a000-0971b000 rw-p 00000000 00:00 0                                  [heap]
4035c000-403fd000 rw-p 00000000 00:00 0
40821000-40831000 rwxp 00000000 00:00 0
40c21000-40c23000 r-xs 00000000 00:29 67                                 /tmp/.glOTFT7n (deleted)
41782000-41832000 rwxp 00000000 00:00 0
418c6000-418d6000 rwxp 00000000 00:00 0
41d6e000-41d7e000 rwxp 00000000 00:00 0
7f9057fff000-7f905c000000 rw-p 00000000 00:00 0
7f905c000000-7f905c02a000 rw-p 00000000 00:00 0
7f905c02a000-7f9060000000 ---p 00000000 00:00 0
7f9063c00000-7f9064000000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f9064000000-7f9064021000 rw-p 00000000 00:00 0
7f9064021000-7f9068000000 ---p 00000000 00:00 0
7f9068022000-7f906862a000 rw-p 00000000 00:00 0
7f9068832000-7f9068c32000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f9068c32000-7f9070000000 rw-p 00000000 00:00 0
7f9070000000-7f9070021000 rw-p 00000000 00:00 0
7f9070021000-7f9074000000 ---p 00000000 00:00 0
7f9074200000-7f9074400000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f9074400000-7f9074500000 rw-p 00000000 00:00 0
7f90745fe000-7f90745ff000 ---p 00000000 00:00 0
7f90745ff000-7f9074600000 rw-p 00000000 00:00 0
7f9074600000-7f9074608000 ---p 00000000 00:00 0
7f9074608000-7f9074fff000 rw-p 00000000 00:00 0
7f9074fff000-7f9075000000 ---p 00000000 00:00 0
7f9075000000-7f9075c00000 rw-p 00000000 00:00 0
7f9075d46000-7f9075f46000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f907600b000-7f907600c000 ---p 00000000 00:00 0
7f907600c000-7f907600d000 rw-p 00000000 00:00 0
7f907600d000-7f9076015000 ---p 00000000 00:00 0
7f9076015000-7f907628c000 rw-p 00000000 00:00 0
7f9076290000-7f9076291000 rw-p 00000000 00:00 0
7f9076291000-7f90762f0000 ---p 00000000 00:00 0
7f90762f0000-7f9078000000 rw-p 00000000 00:00 0
7f9078000000-7f907c000000 rw-s 00000000 00:05 127402                     /memfd:pulseaudio (deleted)
7f907c000000-7f9080000000 rw-s 00000000 00:05 18233                      /memfd:pulseaudio (deleted)
7f9080000000-7f9084000000 rw-s 00000000 00:05 134263                     /memfd:pulseaudio (deleted)
7f9084000000-7f9084021000 rw-p 00000000 00:00 0
7f9084021000-7f9088000000 ---p 00000000 00:00 0
7f9088020000-7f9088026000 rw-p 00000000 00:00 0
7f9088026000-7f9088027000 ---p 00000000 00:00 0
7f9088027000-7f9088067000 rw-p 00000000 00:00 0
7f9088067000-7f90880e7000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f90880e7000-7f9088368000 rw-p 00000000 00:00 0
7f9088368000-7f9088369000 ---p 00000000 00:00 0
7f9088369000-7f90883a9000 rw-p 00000000 00:00 0
7f90883a9000-7f90883aa000 ---p 00000000 00:00 0
7f90883aa000-7f9088baa000 rw-p 00000000 00:00 0
7f9088baa000-7f908cbaa000 rw-s 00000000 00:05 134263                     /memfd:pulseaudio (deleted)
7f908cbaa000-7f908cbab000 ---p 00000000 00:00 0
7f908cbab000-7f908cd04000 rw-p 00000000 00:00 0
7f908cd04000-7f908cd84000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908cd84000-7f908ce04000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908ce04000-7f908ce84000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908ce84000-7f908cf84000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908cf84000-7f908cfa4000 rw-s 00000000 00:06 431                        /dev/nvidia0
7f908cfa4000-7f908cfe4000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908cfe4000-7f908d004000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908d004000-7f908d044000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908d044000-7f908d084000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908d084000-7f908d235000 rw-p 00000000 00:00 0
7f908d235000-7f908d246000 r-xp 00000000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7f908d246000-7f908d445000 ---p 00011000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7f908d445000-7f908d446000 r--p 00010000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7f908d446000-7f908d447000 rw-p 00011000 08:01 3155099                    /usr/lib/libdrm.so.2.4.0
7f908d447000-7f908d54c000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908d54c000-7f908e623000 r-xp 00000000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7f908e623000-7f908e644000 rwxp 010d7000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7f908e644000-7f908ed05000 r-xp 010f8000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7f908ed05000-7f908ef05000 ---p 017b9000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7f908ef05000-7f908f207000 rw-p 017b9000 08:01 3153686                    /usr/lib/libnvidia-glcore.so.396.24
7f908f207000-7f908f220000 rw-p 00000000 00:00 0
7f908f220000-7f908f223000 r-xp 00000000 08:01 7995454                    /usr/lib/tls/libnvidia-tls.so.396.24
7f908f223000-7f908f423000 ---p 00003000 08:01 7995454                    /usr/lib/tls/libnvidia-tls.so.396.24
7f908f423000-7f908f424000 rw-p 00003000 08:01 7995454                    /usr/lib/tls/libnvidia-tls.so.396.24
7f908f424000-7f908f4ed000 r-xp 00000000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7f908f4ed000-7f908f521000 rwxp 000c9000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7f908f521000-7f908f535000 r-xp 000fd000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7f908f535000-7f908f735000 ---p 00111000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7f908f735000-7f908f75a000 rw-p 00111000 08:01 3153966                    /usr/lib/libGLX_nvidia.so.396.24
7f908f75a000-7f908f761000 rw-p 00000000 00:00 0
7f908f761000-7f908f7d5000 rw-p 00000000 00:00 0
7f908f7d6000-7f908f7da000 rw-p 00000000 00:00 0
7f908f7da000-7f908f7dc000 rw-p 00000000 00:00 0
7f908f7dc000-7f908f7ef000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908f7ef000-7f908f80f000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f908f80f000-7f908f829000 rw-p 00000000 00:00 0
7f908f829000-7f908f82a000 rw-s 00000000 00:15 249                        /dev/shm/mono.13419
7f908f82a000-7f908f82f000 rw-p 00000000 00:00 0
7f908f82f000-7f908f84f000 rw-s 00000000 08:01 24917860                   /home/xxx/#24917860 (deleted)
7f908f84f000-7f908f86f000 r-xs 00000000 08:01 24917860                   /home/xxx/#24917860 (deleted)
7f908f86f000-7f908fbf1000 rw-p 00000000 00:00 0
7f908fbf1000-7f908fc10000 r-xp 00000000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7f908fc10000-7f908fe0f000 ---p 0001f000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7f908fe0f000-7f908fe10000 r--p 0001e000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7f908fe10000-7f908fe11000 rw-p 0001f000 08:01 3165729                    /usr/lib/libgpg-error.so.0.24.2
7f908fe11000-7f908fe24000 r-xp 00000000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7f908fe24000-7f9090024000 ---p 00013000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7f9090024000-7f9090025000 r--p 00013000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7f9090025000-7f9090026000 rw-p 00014000 08:01 3147339                    /usr/lib/libresolv-2.27.so
7f9090026000-7f9090028000 rw-p 00000000 00:00 0
7f9090028000-7f90900b5000 r-xp 00000000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7f90900b5000-7f90902b4000 ---p 0008d000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7f90902b4000-7f90902d0000 r--p 0008c000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7f90902d0000-7f90902d1000 rw-p 000a8000 08:01 3160776                    /usr/lib/libvorbisenc.so.2.0.11
7f90902d1000-7f90902fb000 r-xp 00000000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7f90902fb000-7f90904fb000 ---p 0002a000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7f90904fb000-7f90904fc000 r--p 0002a000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7f90904fc000-7f90904fd000 rw-p 0002b000 08:01 3160774                    /usr/lib/libvorbis.so.0.4.8
7f90904fd000-7f9090502000 r-xp 00000000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7f9090502000-7f9090702000 ---p 00005000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7f9090702000-7f9090703000 r--p 00005000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7f9090703000-7f9090704000 rw-p 00006000 08:01 3151702                    /usr/lib/libogg.so.0.8.3
7f9090704000-7f909077a000 r-xp 00000000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7f909077a000-7f909097a000 ---p 00076000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7f909097a000-7f909097b000 r--p 00076000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7f909097b000-7f909097c000 rw-p 00077000 08:01 3160914                    /usr/lib/libFLAC.so.8.3.0
7f909097c000-7f9090a91000 r-xp 00000000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7f9090a91000-7f9090c90000 ---p 00115000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7f9090c90000-7f9090c92000 r--p 00114000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7f9090c92000-7f9090c97000 rw-p 00116000 08:01 3162347                    /usr/lib/libgcrypt.so.20.2.2
7f9090c97000-7f9090c98000 rw-p 00000000 00:00 0
7f9090c98000-7f9090cb4000 r-xp 00000000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7f9090cb4000-7f9090eb3000 ---p 0001c000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7f9090eb3000-7f9090eb4000 r--p 0001b000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7f9090eb4000-7f9090eb5000 rw-p 0001c000 08:01 3164499                    /usr/lib/liblz4.so.1.8.2
7f9090eb5000-7f9090eda000 r-xp 00000000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7f9090eda000-7f90910d9000 ---p 00025000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7f90910d9000-7f90910da000 r--p 00024000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7f90910da000-7f90910db000 rw-p 00025000 08:01 3147113                    /usr/lib/liblzma.so.5.2.4
7f90910db000-7f90910e0000 r-xp 00000000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7f90910e0000-7f90912df000 ---p 00005000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7f90912df000-7f90912e0000 r--p 00004000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7f90912e0000-7f90912e1000 rw-p 00005000 08:01 3161220                    /usr/lib/libasyncns.so.0.3.1
7f90912e1000-7f9091354000 r-xp 00000000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7f9091354000-7f9091553000 ---p 00073000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7f9091553000-7f9091556000 r--p 00072000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7f9091556000-7f9091557000 rw-p 00075000 08:01 3161845                    /usr/lib/libsndfile.so.1.0.28
7f9091557000-7f9091559000 rw-p 00000000 00:00 0
7f9091559000-7f90915dc000 r-xp 00000000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7f90915dc000-7f90917db000 ---p 00083000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7f90917db000-7f90917de000 r--p 00082000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7f90917de000-7f90917df000 rw-p 00085000 08:01 3151677                    /usr/lib/libsystemd.so.0.22.0
7f90917df000-7f90917e0000 rw-p 00000000 00:00 0
7f90917e0000-7f90917e5000 r-xp 00000000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7f90917e5000-7f90919e4000 ---p 00005000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7f90919e4000-7f90919e5000 r--p 00004000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7f90919e5000-7f90919e6000 rw-p 00005000 08:01 3151379                    /usr/lib/libXdmcp.so.6.0.0
7f90919e6000-7f90919e8000 r-xp 00000000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7f90919e8000-7f9091be8000 ---p 00002000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7f9091be8000-7f9091be9000 r--p 00002000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7f9091be9000-7f9091bea000 rw-p 00003000 08:01 3147530                    /usr/lib/libXau.so.6.0.0
7f9091bea000-7f9091c2c000 r-xp 00000000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7f9091c2c000-7f9091c45000 r-xp 00042000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7f9091c45000-7f9091c58000 r-xp 0005b000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7f9091c58000-7f9091e57000 ---p 0006e000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7f9091e57000-7f9091e7f000 r--p 0006d000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7f9091e7f000-7f9091e80000 rw-p 00095000 08:01 3148404                    /usr/lib/libGLdispatch.so.0.0.0
7f9091e80000-7f9091ea0000 rw-p 00000000 00:00 0
7f9091ea0000-7f9091eb0000 r-xp 00000000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7f9091eb0000-7f90920af000 ---p 00010000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7f90920af000-7f90920b0000 r--p 0000f000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7f90920b0000-7f90920b1000 rw-p 00010000 08:01 3149530                    /usr/lib/libGLX.so.0.0.0
7f90920b1000-7f90920d1000 rw-p 00000000 00:00 0
7f90920d1000-7f909211f000 r-xp 00000000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7f909211f000-7f909231f000 ---p 0004e000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7f909231f000-7f9092321000 r--p 0004e000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7f9092321000-7f9092322000 rw-p 00050000 08:01 3146193                    /usr/lib/libdbus-1.so.3.19.7
7f9092322000-7f90923a2000 r-xp 00000000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7f90923a2000-7f90925a2000 ---p 00080000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7f90925a2000-7f90925a4000 r--p 00080000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7f90925a4000-7f90925a5000 rw-p 00082000 08:01 4075601                    /usr/lib/pulseaudio/libpulsecommon-11.1.so
7f90925a5000-7f90925b6000 r-xp 00000000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7f90925b6000-7f90927b5000 ---p 00011000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7f90927b5000-7f90927b6000 r--p 00010000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7f90927b6000-7f90927b7000 rw-p 00011000 08:01 3151380                    /usr/lib/libXext.so.6.4.0
7f90927b7000-7f90927bc000 r-xp 00000000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7f90927bc000-7f90929bb000 ---p 00005000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7f90929bb000-7f90929bc000 r--p 00004000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7f90929bc000-7f90929bd000 rw-p 00005000 08:01 3147588                    /usr/lib/libXfixes.so.3.1.0
7f90929bd000-7f90929c6000 r-xp 00000000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7f90929c6000-7f9092bc6000 ---p 00009000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7f9092bc6000-7f9092bc7000 r--p 00009000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7f9092bc7000-7f9092bc8000 rw-p 0000a000 08:01 3161199                    /usr/lib/libXrender.so.1.3.0
7f9092bc8000-7f9092bef000 r-xp 00000000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7f9092bef000-7f9092def000 ---p 00027000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7f9092def000-7f9092df0000 r--p 00027000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7f9092df0000-7f9092df1000 rw-p 00028000 08:01 3150109                    /usr/lib/libxcb.so.1.1.0
7f9092df1000-7f9092e34000 r-xp 00000000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7f9092e34000-7f9092e4d000 r-xp 00043000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7f9092e4d000-7f9092e61000 r-xp 0005c000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7f9092e61000-7f9093060000 ---p 00070000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7f9093060000-7f909307a000 r--p 0006f000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7f909307a000-7f909307b000 rw-p 00089000 08:01 3149531                    /usr/lib/libGL.so.1.0.0
7f909307b000-7f909307c000 rw-p 00000000 00:00 0
7f909307c000-7f90930cb000 r-xp 00000000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7f90930cb000-7f90932ca000 ---p 0004f000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7f90932ca000-7f90932cc000 r--p 0004e000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7f90932cc000-7f90932cd000 rw-p 00050000 08:01 3155836                    /usr/lib/libpulse.so.0.20.2
7f90932cd000-7f90932d0000 r-xp 00000000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7f90932d0000-7f90934cf000 ---p 00003000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7f90934cf000-7f90934d0000 r--p 00002000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7f90934d0000-7f90934d1000 rw-p 00003000 08:01 3155839                    /usr/lib/libpulse-simple.so.0.1.1
7f90934d1000-7f90935a8000 r-xp 00000000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7f90935a8000-7f90937a8000 ---p 000d7000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7f90937a8000-7f90937b0000 r--p 000d7000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7f90937b0000-7f90937b1000 rw-p 000df000 08:01 3146149                    /usr/lib/libasound.so.2.0.0
7f90937b1000-7f90937c0000 r-xp 00000000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7f90937c0000-7f90939c0000 ---p 0000f000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7f90939c0000-7f90939c1000 r--p 0000f000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7f90939c1000-7f90939c2000 rw-p 00010000 08:01 3161193                    /usr/lib/libXi.so.6.1.0
7f90939c2000-7f90939cc000 r-xp 00000000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7f90939cc000-7f9093bcb000 ---p 0000a000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7f9093bcb000-7f9093bcc000 r--p 00009000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7f9093bcc000-7f9093bcd000 rw-p 0000a000 08:01 3158987                    /usr/lib/libXrandr.so.2.2.0
7f9093bcd000-7f9093bcf000 r-xp 00000000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7f9093bcf000-7f9093dce000 ---p 00002000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7f9093dce000-7f9093dcf000 r--p 00001000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7f9093dcf000-7f9093dd0000 rw-p 00002000 08:01 3162696                    /usr/lib/libXinerama.so.1.0.0
7f9093dd0000-7f9093dd9000 r-xp 00000000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7f9093dd9000-7f9093fd8000 ---p 00009000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7f9093fd8000-7f9093fd9000 r--p 00008000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7f9093fd9000-7f9093fda000 rw-p 00009000 08:01 3159461                    /usr/lib/libXcursor.so.1.0.2
7f9093fda000-7f9094113000 r-xp 00000000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7f9094113000-7f9094313000 ---p 00139000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7f9094313000-7f9094314000 r--p 00139000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7f9094314000-7f9094319000 rw-p 0013a000 08:01 3151376                    /usr/lib/libX11.so.6.3.0
7f9094319000-7f90944cc000 r-xp 00000000 08:01 3147640                    /usr/lib/libc-2.27.so
7f90944cc000-7f90946cb000 ---p 001b3000 08:01 3147640                    /usr/lib/libc-2.27.so
7f90946cb000-7f90946cf000 r--p 001b2000 08:01 3147640                    /usr/lib/libc-2.27.so
7f90946cf000-7f90946d1000 rw-p 001b6000 08:01 3147640                    /usr/lib/libc-2.27.so
7f90946d1000-7f90946d5000 rw-p 00000000 00:00 0
7f90946d5000-7f9094868000 r-xp 00000000 08:01 3147293                    /usr/lib/libm-2.27.so
7f9094868000-7f9094a68000 ---p 00193000 08:01 3147293                    /usr/lib/libm-2.27.so
7f9094a68000-7f9094a69000 r--p 00193000 08:01 3147293                    /usr/lib/libm-2.27.so
7f9094a69000-7f9094a6a000 rw-p 00194000 08:01 3147293                    /usr/lib/libm-2.27.so
7f9094a6a000-7f9094a71000 r-xp 00000000 08:01 3147322                    /usr/lib/librt-2.27.so
7f9094a71000-7f9094c70000 ---p 00007000 08:01 3147322                    /usr/lib/librt-2.27.so
7f9094c70000-7f9094c71000 r--p 00006000 08:01 3147322                    /usr/lib/librt-2.27.so
7f9094c71000-7f9094c72000 rw-p 00007000 08:01 3147322                    /usr/lib/librt-2.27.so
7f9094c72000-7f9094c75000 r-xp 00000000 08:01 3147306                    /usr/lib/libdl-2.27.so
7f9094c75000-7f9094e74000 ---p 00003000 08:01 3147306                    /usr/lib/libdl-2.27.so
7f9094e74000-7f9094e75000 r--p 00002000 08:01 3147306                    /usr/lib/libdl-2.27.so
7f9094e75000-7f9094e76000 rw-p 00003000 08:01 3147306                    /usr/lib/libdl-2.27.so
7f9094e76000-7f9094e8f000 r-xp 00000000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7f9094e8f000-7f909508e000 ---p 00019000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7f909508e000-7f909508f000 r--p 00018000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7f909508f000-7f9095090000 rw-p 00019000 08:01 3147875                    /usr/lib/libpthread-2.27.so
7f9095090000-7f9095094000 rw-p 00000000 00:00 0
7f9095094000-7f90950b9000 r-xp 00000000 08:01 3147641                    /usr/lib/ld-2.27.so
7f90950b9000-7f90950bb000 rw-p 00000000 00:00 0
7f90950bb000-7f90950bd000 rw-s 00000000 00:29 67                         /tmp/.glOTFT7n (deleted)
7f90950bd000-7f90950be000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f90950be000-7f90950c2000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f90950c2000-7f90950c3000 rw-s 00000000 00:06 431                        /dev/nvidia0
7f90950c3000-7f9095260000 r--p 00000000 08:01 3165726                    /usr/lib/locale/locale-archive
7f9095260000-7f9095273000 rw-p 00000000 00:00 0
7f9095273000-7f9095274000 rw-s 00000000 00:06 431                        /dev/nvidia0
7f9095274000-7f9095275000 rw-s 00000000 00:06 431                        /dev/nvidia0
7f9095275000-7f9095276000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f9095276000-7f9095277000 rw-s 00000000 00:06 430                        /dev/nvidiactl
7f9095277000-7f9095278000 ---p 00000000 00:00 0
7f9095278000-7f90952b8000 rw-p 00000000 00:00 0
7f90952b8000-7f90952b9000 r--p 00024000 08:01 3147641                    /usr/lib/ld-2.27.so
7f90952b9000-7f90952ba000 rw-p 00025000 08:01 3147641                    /usr/lib/ld-2.27.so
7f90952ba000-7f90952bb000 rw-p 00000000 00:00 0
7ffeae30e000-7ffeae316000 ---p 00000000 00:00 0
7ffeaeae8000-7ffeaeb0d000 rw-p 00000000 00:00 0                          [stack]
7ffeaeb73000-7ffeaeb76000 r--p 00000000 00:00 0                          [vvar]
7ffeaeb76000-7ffeaeb78000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Native stacktrace:

        godot-mono() [0x834523]
        godot-mono() [0x79df38]
        godot-mono(_ZNK8NodePathcv6StringEv+0x14) [0x1f0e224]
        godot-mono(_Z36godot_icall_NodePath_operator_StringP8NodePath+0x10) [0xa278c0]
        [0x4180f054]

Debug info from gdb:

[New LWP 13449]
[New LWP 13452]
[New LWP 13453]
[New LWP 13454]
[New LWP 13455]
[New LWP 13456]
[New LWP 13459]
[New LWP 13460]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x00007f9094e873ea in waitpid () from /usr/lib/libpthread.so.0
  Id   Target Id         Frame
* 1    Thread 0x7f9095260800 (LWP 13419) "godot-mono" 0x00007f9094e873ea in waitpid () from /usr/lib/libpthread.so.0
  2    Thread 0x7f90952b7700 (LWP 13449) "godot-mono" 0x00007f9094e85856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  3    Thread 0x7f908cbea700 (LWP 13452) "godot-mono" 0x00007f9094e85856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  4    Thread 0x7f9088ba9700 (LWP 13453) "threaded-ml" 0x00007f9094406ea9 in poll () from /usr/lib/libc.so.6
  5    Thread 0x7f90883a8700 (LWP 13454) "godot-mono" 0x00007f9094e82ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
  6    Thread 0x7f9088066700 (LWP 13455) "godot-mono" 0x00007f90943de8b0 in nanosleep () from /usr/lib/libc.so.6
  7    Thread 0x7f90757ff700 (LWP 13456) "SGen worker" 0x00007f9094e82ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
  8    Thread 0x7f907620b700 (LWP 13459) "Finalizer" 0x00007f9094e85856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  9    Thread 0x7f90747fe700 (LWP 13460) "Debugger agent" 0x00007f9094e869ce in recv () from /usr/lib/libpthread.so.0

Thread 9 (Thread 0x7f90747fe700 (LWP 13460)):
#0  0x00007f9094e869ce in recv () from /usr/lib/libpthread.so.0
#1  0x0000000000786477 in ?? ()
#2  0x000000000078a594 in ?? ()
#3  0x00000000009683c5 in ?? ()
#4  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7f907620b700 (LWP 13459)):
#0  0x00007f9094e85856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007f9094e85958 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x00000000008c265c in ?? ()
#3  0x00000000009683c5 in ?? ()
#4  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7f90757ff700 (LWP 13456)):
#0  0x00007f9094e82ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00000000009d4953 in ?? ()
#2  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f9088066700 (LWP 13455)):
#0  0x00007f90943de8b0 in nanosleep () from /usr/lib/libc.so.6
#1  0x00007f9094409a04 in usleep () from /usr/lib/libc.so.6
#2  0x00000000012c408f in JoypadLinux::monitor_joypads() ()
#3  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#4  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7f90883a8700 (LWP 13454)):
#0  0x00007f9094e82ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f90930afd89 in pa_threaded_mainloop_wait () from /usr/lib/libpulse.so.0
#2  0x00007f90932ceae7 in pa_simple_write () from /usr/lib/libpulse-simple.so.0
#3  0x0000000000f0f7f3 in AudioDriverPulseAudio::thread_func(void*) ()
#4  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#5  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7f9088ba9700 (LWP 13453)):
#0  0x00007f9094406ea9 in poll () from /usr/lib/libc.so.6
#1  0x00007f90930af773 in ?? () from /usr/lib/libpulse.so.0
#2  0x00007f90930a0bd0 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007f90930a1271 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f90930a1301 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f90930af6ae in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f909237781c in ?? () from /usr/lib/pulseaudio/libpulsecommon-11.1.so
#7  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f908cbea700 (LWP 13452)):
#0  0x00007f9094e85856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007f9094e85958 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x0000000000e6ebfd in SemaphorePosix::wait() ()
#3  0x00000000020b53cc in VisualServerScene::_gi_probe_bake_thread() ()
#4  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#5  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f90952b7700 (LWP 13449)):
#0  0x00007f9094e85856 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007f9094e85958 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x0000000000e6ebfd in SemaphorePosix::wait() ()
#3  0x0000000002120657 in _IP_ResolverPrivate::_thread_function(void*) ()
#4  0x0000000000f12ba1 in ThreadPosix::thread_callback(void*) ()
#5  0x00007f9094e7d075 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f909441153f in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f9095260800 (LWP 13419)):
#0  0x00007f9094e873ea in waitpid () from /usr/lib/libpthread.so.0
#1  0x00000000008345ec in ?? ()
#2  0x000000000079df38 in ?? ()
#3  0x0000000001f0e224 in NodePath::operator String() const ()
#4  0x0000000000a278c0 in godot_icall_NodePath_operator_String(NodePath*) ()
#5  0x000000004180f054 in ?? ()
#6  0x000000000953bec0 in ?? ()
#7  0x00007ffeaeb05798 in ?? ()
#8  0x00007ffeaeb056c0 in ?? ()
#9  0x00007f907598af78 in ?? ()
#10 0x000000004180ee60 in ?? ()
#11 0x000000000366e998 in ?? ()
#12 0x000000000366e9a0 in ?? ()
#13 0x00007ffeaeb05810 in ?? ()
#14 0x00007ffeaeb054b0 in ?? ()
#15 0x00007ffeaeb05370 in ?? ()
#16 0x000000000366e9a0 in ?? ()
#17 0x000000004180ef84 in ?? ()
#18 0x000000000366e998 in ?? ()
#19 0x000000000366e9a0 in ?? ()
#20 0x00007f907598af78 in ?? ()
#21 0x00000000021010c3 in Logger::logf_error(char const*, ...) ()
#22 0x0000000000000000 in ?? ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

@xfactor2000
Copy link
Author

xfactor2000 commented Jun 8, 2018

And another observation - this behavior seems to corrupt .mono folder. If I open Godot itself after the exception (I usually build and run with msbuild via command line), it will close almost instantly. To fix it, I need to delete .mono folder, reopen Godot and run the script from there so that it rebuilds the required files.

@neikeq
Copy link
Contributor

neikeq commented Jun 8, 2018

For easier testing, could you share a minimal example project to reproduce the bug?

@xfactor2000
Copy link
Author

example.zip
This one generates the exception, just hit the "Start" button.

I don't see the output of exception in Godot console, although Godot does close abruptly. I generally see the output by running

TERM=xterm && cd ~/example && msbuild . /p:Configuration=Tools && godot-mono

and then watching the terminal

@aaronfranke
Copy link
Member

aaronfranke commented Jan 27, 2019

@xfactor2000 Consider moving your log outputs into GitHub Gists.

Also, I can't reproduce with the example project because GD.Weakref() does not exist in 3.1 beta 2.

@neikeq
Copy link
Contributor

neikeq commented Jan 27, 2019

I think Weakref() was moved to Godot.Object.

@neikeq
Copy link
Contributor

neikeq commented Feb 4, 2019

Can anyone give me an update of the state of this issue on latest master? Specially if the backtrace at the end is still reproducible.

Regarding SetScript, you have to be careful how you use it. You cannot asume the managed object you are calling it on will be usable after that. If previous to the call it had a C# script attached, then it will be disposed. Hence the Parameter ' ptr ' is null errors (which should be change to be an ObjectDisposedException instead).

@akien-mga
Copy link
Member

Doesn't seem to crash anymore in 3.1 beta 6, after changing GD.Weakref() to Godot.Object.WeakRef().
It compiles and runs fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants