Godot Version
4.2.1
Question
When I launch game from editor, title screens shows up, I click “go” on my menu, this executes a get_tree().change_scene_to_file() method with path to Level scene passed.
The last line in the Level scene’s _ready() method does execute, I know this b/c it’s BackgroundMusic.play() (BM is my singleton) and the music does begin to play. So I know it’s good thus far.
But then the whole thing crashes before any of the Level scene is rendered/shown.
This exact codebase works fine in 4.2. I have both versions installed and switched back and forth between the two a few times to make sure.
Stack trace (click to expand)
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Godot [14317]
Path: /Applications/Godot.app/Contents/MacOS/Godot
Identifier: org.godotengine.godot
Version: 4.2.1 (4.2.1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2023-12-21 20:13:11.6095 +0700
OS Version: macOS 14.2 (23C64)
Report Version: 12
Anonymous UUID: <redacted>
Sleep/Wake UUID: <redacted>
Time Awake Since Boot: 430000 seconds
Time Since Wake: 6264 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Codes: 0x0000000000000001, 0x0000000000000010
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Godot [14317]
VM Region Info: 0x10 is not in any region. Bytes before following region: 4331290608
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 1022a4000-107d78000 [ 90.8M] r-x/r-x SM=COW ...s/MacOS/Godot
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x18189e0dc __pthread_kill + 8
1 libsystem_pthread.dylib 0x1818d5cc0 pthread_kill + 288
2 libsystem_c.dylib 0x1817e1a40 abort + 180
3 Godot 0x1029dd0ec 0x1022a4000 + 7573740
4 libsystem_platform.dylib 0x181905a24 _sigtramp + 56
5 libGLProgrammability.dylib 0x1ea0d19ac glpLLVMCGSwitchStatement + 176
6 libGLProgrammability.dylib 0x1ea0c822c glpLLVMCGNode + 588
7 libGLProgrammability.dylib 0x1ea0d1590 glpLLVMCGBlock + 444
8 libGLProgrammability.dylib 0x1ea0c81fc glpLLVMCGNode + 540
9 libGLProgrammability.dylib 0x1ea0d1590 glpLLVMCGBlock + 444
10 libGLProgrammability.dylib 0x1ea0c81fc glpLLVMCGNode + 540
11 libGLProgrammability.dylib 0x1ea0e4068 glpLLVMCGIfStatementShortCircuit + 208
12 libGLProgrammability.dylib 0x1ea0c820c glpLLVMCGNode + 556
13 libGLProgrammability.dylib 0x1ea0d1590 glpLLVMCGBlock + 444
14 libGLProgrammability.dylib 0x1ea0c81fc glpLLVMCGNode + 540
15 libGLProgrammability.dylib 0x1ea0d119c glpLLVMCGFunctionDefinition + 2664
16 libGLProgrammability.dylib 0x1ea0c6e88 glpLLVMCGTopLevel + 1480
17 libGLProgrammability.dylib 0x1ea0ee814 glpLinkProgram + 9992
18 libGLProgrammability.dylib 0x1ea1086bc ShLink + 208
19 GLEngine 0x1ea2adafc gleLinkProgram + 1128
20 GLEngine 0x1ea226fcc glLinkProgramARB_Exec + 180
21 Godot 0x1036239c0 0x1022a4000 + 20445632
22 Godot 0x103626710 0x1022a4000 + 20457232
23 Godot 0x103664090 0x1022a4000 + 20709520
24 Godot 0x1036670c4 0x1022a4000 + 20721860
25 Godot 0x1055307d4 0x1022a4000 + 53004244
26 Godot 0x102a2cc10 0x1022a4000 + 7900176
27 Godot 0x1029d953c 0x1022a4000 + 7558460
28 Godot 0x102a0aa1c 0x1022a4000 + 7760412
29 dyld 0x1815550e0 start + 2360
Thread 1:
0 libsystem_pthread.dylib 0x1818d0e28 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x1818d0e28 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x1818d0e28 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x1818d0e28 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105ba4eec _IP_ResolverPrivate::_thread_function(void*) + 152
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 6:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 7:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 8:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 9:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 10:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 11:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 12:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 13:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x105fd40dc 0x1022a4000 + 64159964
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 14:
0 libsystem_kernel.dylib 0x181898e68 __semwait_signal + 8
1 libsystem_c.dylib 0x1817782f8 nanosleep + 220
2 Godot 0x10355c988 0x1022a4000 + 19630472
3 Godot 0x105c38cc8 0x1022a4000 + 60378312
4 Godot 0x105aaf37c 0x1022a4000 + 58766204
5 Godot 0x105aaf6e4 0x1022a4000 + 58767076
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 15:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x181895874 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1818a7cf0 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x18189e4b0 mach_msg_overwrite + 476
3 libsystem_kernel.dylib 0x181895bf8 mach_msg + 24
4 CoreFoundation 0x1819b3bf4 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x1819b24bc __CFRunLoopRun + 1208
6 CoreFoundation 0x1819b19ac CFRunLoopRunSpecific + 608
7 AppKit 0x1852b8510 _NSEventThread + 144
8 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
9 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 16:: caulk.messenger.shared:17
0 libsystem_kernel.dylib 0x1818957f0 semaphore_wait_trap + 8
1 caulk 0x18bc5c690 caulk::semaphore::timed_wait(double) + 212
2 caulk 0x18bc5c544 caulk::concurrent::details::worker_thread::run() + 36
3 caulk 0x18bc5c244 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
5 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 17:: caulk.messenger.shared:high
0 libsystem_kernel.dylib 0x1818957f0 semaphore_wait_trap + 8
1 caulk 0x18bc5c690 caulk::semaphore::timed_wait(double) + 212
2 caulk 0x18bc5c544 caulk::concurrent::details::worker_thread::run() + 36
3 caulk 0x18bc5c244 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
5 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 18:: caulk::deferred_logger
0 libsystem_kernel.dylib 0x1818957f0 semaphore_wait_trap + 8
1 caulk 0x18bc5c690 caulk::semaphore::timed_wait(double) + 212
2 caulk 0x18bc5c544 caulk::concurrent::details::worker_thread::run() + 36
3 caulk 0x18bc5c244 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
5 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 19:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x181895874 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1818a7cf0 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x18189e4b0 mach_msg_overwrite + 476
3 libsystem_kernel.dylib 0x181895bf8 mach_msg + 24
4 CoreAudio 0x18421fca0 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 96
5 CoreAudio 0x1840f6b84 HALC_ProxyIOContext::IOWorkLoop() + 4260
6 CoreAudio 0x1840f53b0 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 108
7 CoreAudio 0x184274564 HALC_IOThread::Entry(void*) + 88
8 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
9 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 20:
0 libsystem_pthread.dylib 0x1818d0e28 start_wqthread + 0
Thread 21:
0 libsystem_pthread.dylib 0x1818d0e28 start_wqthread + 0
Thread 22:
0 libsystem_kernel.dylib 0x18189906c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1818d65fc _pthread_cond_wait + 1228
2 libc++.1.dylib 0x1817fd4dc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 Godot 0x1032a3f10 0x1022a4000 + 16776976
4 Godot 0x1032a3d9c 0x1022a4000 + 16776604
5 Godot 0x1032a3d24 0x1022a4000 + 16776484
6 libsystem_pthread.dylib 0x1818d6034 _pthread_start + 136
7 libsystem_pthread.dylib 0x1818d0e3c thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000004 x5: 0x000000006ae00000 x6: 0x0000600002f3a600 x7: 0x0000000000000000
x8: 0x456cf27574a556a5 x9: 0x456cf274acae06a5 x10: 0x0000000000000002 x11: 0x00000000fffffffd
x12: 0x0000010000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001e1127340 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001d80b5000 x21: 0x0000000000000103 x22: 0x00000001d80b50e0 x23: 0x000000000000001b
x24: 0x0000000107ae5a4f x25: 0x0000000107ae5a6f x26: 0x000000016db58a68 x27: 0x0000000107ae5a64
x28: 0x0000000000000000 fp: 0x000000016db58160 lr: 0x00000001818d5cc0
sp: 0x000000016db58140 pc: 0x000000018189e0dc cpsr: 0x40001000
far: 0x0000000000000000 esr: 0x56000080 Address size fault
Binary Images:
0x11383c000 - 0x113973fff com.apple.audio.units.Components (1.14) <06275638-4d71-370d-bf96-b30a567270e1> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x112144000 - 0x1121affff com.apple.AppleMetalOpenGLRenderer (1.0) <41cb4d99-6a07-366a-9e97-d047ce10daa2> /System/Library/Extensions/AppleMetalOpenGLRenderer.bundle/Contents/MacOS/AppleMetalOpenGLRenderer
0x10baac000 - 0x10bab7fff libobjc-trampolines.dylib (*) <7778e0d7-361a-378d-9438-3b2bb48c2154> /usr/lib/libobjc-trampolines.dylib
0x1022a4000 - 0x107d77fff org.godotengine.godot (4.2.1) <b5054342-bde5-37a3-aa96-222efb3e1083> /Applications/Godot.app/Contents/MacOS/Godot
0x181894000 - 0x1818cefff libsystem_kernel.dylib (*) <ca94fc21-bc40-3b43-b65d-b87ece9e1d48> /usr/lib/system/libsystem_kernel.dylib
0x1818cf000 - 0x1818dbff3 libsystem_pthread.dylib (*) <a7d94c96-7b1f-3229-9bea-048d037c3292> /usr/lib/system/libsystem_pthread.dylib
0x18176b000 - 0x1817e9ffb libsystem_c.dylib (*) <ab8a0a0b-9a1e-3284-9243-5a0334468ae5> /usr/lib/system/libsystem_c.dylib
0x181902000 - 0x181908ffb libsystem_platform.dylib (*) <e1840daa-9c10-393d-a3a3-94dde6fe0011> /usr/lib/system/libsystem_platform.dylib
0x1ea047000 - 0x1ea1a4ff7 libGLProgrammability.dylib (*) <33857973-8415-3f46-ae21-741316666e18> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x1ea1af000 - 0x1ea30efff GLEngine (*) <aa95cc10-a86e-3c74-9556-32b099e7daf0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
0x18154f000 - 0x1815e3347 dyld (*) <324e4ad9-e01f-3183-b09f-3e20b326643a> /usr/lib/dyld
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x1817ea000 - 0x181877ff7 libc++.1.dylib (*) <375254eb-5a65-35d0-b6b4-773e6763d289> /usr/lib/libc++.1.dylib
0x181936000 - 0x181e0dfff com.apple.CoreFoundation (6.9) <47e4ec09-8f6e-30a8-99d0-34024d4f8122> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x185155000 - 0x18646ffff com.apple.AppKit (6.9) <f3527312-e426-3f7c-b77b-2bf49d1b7c04> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x18bc5a000 - 0x18bc83fff com.apple.audio.caulk (1.0) <25e50b84-b506-3db7-9a91-3824b9b8b880> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
0x183f0c000 - 0x1845fefff com.apple.audio.CoreAudio (5.0) <2c54c60c-a5af-39f4-8286-0cb88fa43367> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio