godotengine / godot

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

Editor crash while exporting to Linux, MacOS or Windows from MacOS #76300

Open keithrdavis opened 1 year ago

keithrdavis commented 1 year ago

Godot version

4.0.2

System information

MacOS 13.3.1, M2 Macbook Air

Issue description

Upon exporting (template versions match Godot version) to Linux, MacOS or Windows the editor crashes (report at end of post). Nothing of note is reported when running the editor from the command line with --verbose.

My log when running in the editor shows the following:

USER ERROR: Condition "_first != nullptr" is true.
   at: ~List (./core/templates/self_list.h:106)
USER WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
   at: cleanup (core/object/object.cpp:1982)
USER ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/io/resource.cpp:489)

I am cleaning up resources upon game exit (debugging shows this is being called):

func _notification(what):
    if what == NOTIFICATION_WM_CLOSE_REQUEST:
        if current_scene != null:
            current_scene.queue_free()

Crash report:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Godot [22528]
Path:                  /Applications/Godot.app/Contents/MacOS/Godot
Identifier:            org.godotengine.godot
Version:               4.0.2 (4.0.2)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-04-20 09:36:55.7674 -0700
OS Version:            macOS 13.3.1 (22E261)
Report Version:        12
Anonymous UUID:        39435066-0EB3-2850-842C-83D491EDD039

Sleep/Wake UUID:       D9D08F04-FABE-4F35-AA04-96F98C4006B3

Time Awake Since Boot: 310000 seconds
Time Since Wake:       12331 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 0x00000000000001a8
Exception Codes:       0x0000000000000001, 0x00000000000001a8

VM Region Info: 0x1a8 is not in any region.  Bytes before following region: 105554592661080
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO (reserved)   600058000000-600060000000 [128.0M] rw-/rwx SM=NUL  ...(unallocated)

Application Specific Information:
abort() called

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x19d9bc724 __pthread_kill + 8
1   libsystem_pthread.dylib                0x19d9f3c28 pthread_kill + 288
2   libsystem_c.dylib                      0x19d901ae8 abort + 180
3   Godot                                  0x1053bee94 0x104fe4000 + 4042388
4   libsystem_platform.dylib               0x19da22a84 _sigtramp + 56
5   Godot                                  0x107cfe108 0x104fe4000 + 47292680
6   Godot                                  0x107cfe108 0x104fe4000 + 47292680
7   Godot                                  0x107d0660c 0x104fe4000 + 47326732
8   Godot                                  0x108f897ac 0x104fe4000 + 66738092
9   Godot                                  0x107b7e1b4 0x104fe4000 + 45719988
10  Godot                                  0x107b8a930 0x104fe4000 + 45771056
11  Godot                                  0x108b2a8f0 0x104fe4000 + 62154992
12  Godot                                  0x108b2dda0 0x104fe4000 + 62168480
13  Godot                                  0x1068530f4 0x104fe4000 + 25620724
14  Godot                                  0x1068574d0 0x104fe4000 + 25638096
15  Godot                                  0x10685c8ec 0x104fe4000 + 25659628
16  Godot                                  0x10686bafc 0x104fe4000 + 25721596
17  Godot                                  0x10686a68c 0x104fe4000 + 25716364
18  Godot                                  0x1061666f4 0x104fe4000 + 18360052
19  Godot                                  0x106891960 0x104fe4000 + 25876832
20  Godot                                  0x10689c530 0x104fe4000 + 25920816
21  Godot                                  0x108f8fccc 0x104fe4000 + 66763980
22  Godot                                  0x106416788 0x104fe4000 + 21178248
23  Godot                                  0x106310c34 0x104fe4000 + 20106292
24  Godot                                  0x108f8fccc 0x104fe4000 + 66763980
25  Godot                                  0x108f8fccc 0x104fe4000 + 66763980
26  Godot                                  0x107197fb8 0x104fe4000 + 35340216
27  Godot                                  0x107197c10 0x104fe4000 + 35339280
28  Godot                                  0x107197918 0x104fe4000 + 35338520
29  Godot                                  0x10721744c 0x104fe4000 + 35861580
30  Godot                                  0x107130c0c 0x104fe4000 + 34917388
31  Godot                                  0x107131904 0x104fe4000 + 34920708
32  Godot                                  0x107137dcc 0x104fe4000 + 34946508
33  Godot                                  0x10716c2e0 0x104fe4000 + 35160800
34  Godot                                  0x1071859ac 0x104fe4000 + 35264940
35  Godot                                  0x1053c1e18 0x104fe4000 + 4054552
36  Godot                                  0x108b824d0 0x104fe4000 + 62514384
37  Godot                                  0x108b7f7f4 0x104fe4000 + 62502900
38  Godot                                  0x1053d5260 0x104fe4000 + 4133472
39  Godot                                  0x1053bbbf4 0x104fe4000 + 4029428
40  Godot                                  0x1053e561c 0x104fe4000 + 4199964
41  dyld                                   0x19d69bf28 start + 2236

Thread 1:
0   libsystem_pthread.dylib                0x19d9eed8c start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib                0x19d9eed8c start_wqthread + 0

Thread 3:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108acddc8 _IP_ResolverPrivate::_thread_function(void*) + 136
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 4:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 5:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 6:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 7:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 8:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 9:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 10:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 11:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x108fdce3c 0x104fe4000 + 67079740
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 12:: AXSpeech
0   libsystem_kernel.dylib                 0x19d9b3f14 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19d9c6240 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19d9bcb78 mach_msg_overwrite + 604
3   libsystem_kernel.dylib                 0x19d9b4290 mach_msg + 24
4   CoreFoundation                         0x19dad28b8 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x19dad1198 __CFRunLoopRun + 1208
6   CoreFoundation                         0x19dad058c CFRunLoopRunSpecific + 612
7   Foundation                             0x19ea490bc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   libAXSpeechManager.dylib               0x229634688 -[AXSpeechThread main] + 552
9   Foundation                             0x19ea4263c __NSThread__start__ + 716
10  libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
11  libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 13:: com.apple.NSEventThread
0   libsystem_kernel.dylib                 0x19d9b3f14 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19d9c6240 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19d9bcb78 mach_msg_overwrite + 604
3   libsystem_kernel.dylib                 0x19d9b4290 mach_msg + 24
4   CoreFoundation                         0x19dad28b8 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x19dad1198 __CFRunLoopRun + 1208
6   CoreFoundation                         0x19dad058c CFRunLoopRunSpecific + 612
7   AppKit                                 0x1a0e1a508 _NSEventThread + 172
8   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
9   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 14:: caulk.messenger.shared:17
0   libsystem_kernel.dylib                 0x19d9b3e90 semaphore_wait_trap + 8
1   caulk                                  0x1a7012024 caulk::semaphore::timed_wait(double) + 212
2   caulk                                  0x1a7011ed8 caulk::concurrent::details::worker_thread::run() + 36
3   caulk                                  0x1a7011bc8 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                0x19d9f3fa8 _pthread_start + 148
5   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 15:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib                 0x19d9b3f14 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19d9c6240 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19d9bcb78 mach_msg_overwrite + 604
3   libsystem_kernel.dylib                 0x19d9b4290 mach_msg + 24
4   CoreAudio                              0x19fddd624 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 104
5   CoreAudio                              0x19fccad14 HALC_ProxyIOContext::IOWorkLoop() + 3516
6   CoreAudio                              0x19fcc987c invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 116
7   CoreAudio                              0x19fe2c564 HALB_IOThread::Entry(void*) + 88
8   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
9   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 16:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x105c22104 0x104fe4000 + 12837124
4   Godot                                  0x105c21f84 0x104fe4000 + 12836740
5   Godot                                  0x105c21eb0 0x104fe4000 + 12836528
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 17:
0   libsystem_kernel.dylib                 0x19d9b750c __semwait_signal + 8
1   libsystem_c.dylib                      0x19d8982d0 nanosleep + 220
2   Godot                                  0x105f12a48 0x104fe4000 + 15919688
3   Godot                                  0x10605ad80 0x104fe4000 + 17264000
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 18:
0   libsystem_kernel.dylib                 0x19d9b750c __semwait_signal + 8
1   libsystem_c.dylib                      0x19d8982d0 nanosleep + 220
2   Godot                                  0x105f12a48 0x104fe4000 + 15919688
3   Godot                                  0x1060bd5e8 EditorExportPlatformIOS::_check_for_changes_poll_thread(void*) + 496
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 19:
0   libsystem_kernel.dylib                 0x19d9b750c __semwait_signal + 8
1   libsystem_c.dylib                      0x19d8982d0 nanosleep + 220
2   Godot                                  0x105f12a48 0x104fe4000 + 15919688
3   Godot                                  0x106159e2c 0x104fe4000 + 18308652
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 20:
0   libsystem_kernel.dylib                 0x19d9b750c __semwait_signal + 8
1   libsystem_c.dylib                      0x19d8982d0 nanosleep + 220
2   Godot                                  0x105f12a48 0x104fe4000 + 15919688
3   Godot                                  0x10689e918 0x104fe4000 + 25930008
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 21:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x106fcb44c 0x104fe4000 + 33453132
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 22:
0   libsystem_kernel.dylib                 0x19d9b7710 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x19d9f4574 _pthread_cond_wait + 1232
2   libc++.1.dylib                         0x19d91cef0 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   Godot                                  0x10652a294 0x104fe4000 + 22307476
4   Godot                                  0x1089bd380 0x104fe4000 + 60658560
5   Godot                                  0x1089bd924 0x104fe4000 + 60660004
6   libsystem_pthread.dylib                0x19d9f3fa8 _pthread_start + 148
7   libsystem_pthread.dylib                0x19d9eeda0 thread_start + 8

Thread 23:
0   libsystem_pthread.dylib                0x19d9eed8c start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000105dc362c   x5: 0x0000000000003b40   x6: 0x0000600022c6bb40   x7: 0x000000016ae0fd20
    x8: 0x96f14cad1df34a95   x9: 0x96f14cace51611d5  x10: 0x0000000000000002  x11: 0x00000000fffffffd
   x12: 0x0000010000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x00000001fd97cf20  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001f8e55b40  x21: 0x0000000000000103  x22: 0x00000001f8e55c20  x23: 0x0000000000000027
   x24: 0x000000010a99e412  x25: 0x000000010a99e432  x26: 0x000000016ae10788  x27: 0x000000010a99e427
   x28: 0x0000000000000000   fp: 0x000000016ae0fe80   lr: 0x000000019d9f3c28
    sp: 0x000000016ae0fe60   pc: 0x000000019d9bc724 cpsr: 0x40001000
   far: 0x0000600001114010  esr: 0x56000080  Address size fault

Binary Images:
       0x104fe4000 -        0x10aceffff org.godotengine.godot (4.0.2) <77a765e6-54aa-34a9-bc2f-328fc70bd28e> /Applications/Godot.app/Contents/MacOS/Godot
       0x11b0a0000 -        0x11b0b3fff com.apple.AXSpeechImplementation (1.0) <50d5adb3-392c-3718-ac6e-68418a6ef961> /System/Library/AccessibilityBundles/AXSpeechImplementation.bundle/Versions/A/AXSpeechImplementation
       0x1187c4000 -        0x1187cffff com.apple.SiriTTSSpeechBundle (1.0) <d99dfaab-6e6e-3cd7-aea8-2a09ff1f0c2e> /System/Library/TTSPlugins/SiriTTSSpeechBundle.speechbundle/Contents/MacOS/SiriTTSSpeechBundle
       0x1187b0000 -        0x1187b3fff com.apple.accessibility.MauiTTSSpeechBundle (1.0) <e6dfa498-9988-35f8-83a1-ad84d85f68fd> /System/Library/TTSPlugins/MauiTTSSpeechBundle.speechbundle/Contents/MacOS/MauiTTSSpeechBundle
       0x118784000 -        0x11878ffff libobjc-trampolines.dylib (*) <80f14f3d-d099-3693-a8e0-eb9a526b1790> /usr/lib/libobjc-trampolines.dylib
       0x11f800000 -        0x11f933fff com.apple.audio.units.Components (1.14) <3318bd64-e64f-3e69-991d-605d1bc10d7d> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
       0x19d9b3000 -        0x19d9ecfe7 libsystem_kernel.dylib (*) <7acbd9bc-d056-310e-858d-81b116cf6d28> /usr/lib/system/libsystem_kernel.dylib
       0x19d9ed000 -        0x19d9f9fff libsystem_pthread.dylib (*) <b401cfb3-8dfe-32db-92b3-ba8af0f8ca6e> /usr/lib/system/libsystem_pthread.dylib
       0x19d88b000 -        0x19d909ff7 libsystem_c.dylib (*) <9277aff7-3cc3-30d0-99b7-c62680da95cf> /usr/lib/system/libsystem_c.dylib
       0x19da1f000 -        0x19da25ff3 libsystem_platform.dylib (*) <756cd10d-62a0-3283-9e57-cbaa810c95ac> /usr/lib/system/libsystem_platform.dylib
       0x19d696000 -        0x19d72453b dyld (*) <ac277a36-1808-327a-8761-cca585421212> /usr/lib/dyld
       0x19d90a000 -        0x19d996ff7 libc++.1.dylib (*) <79cab92f-5e03-31e7-b2bd-feafdfd2bbde> /usr/lib/libc++.1.dylib
       0x19da53000 -        0x19df2cfff com.apple.CoreFoundation (6.9) <b4fdaece-9727-3969-b014-27f7f24c8e01> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x19e9ec000 -        0x19f3b1fff com.apple.Foundation (6.9) <b7d67e5a-dce2-3f6b-b2b8-895a3669e3ec> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x229622000 -        0x22963bfff libAXSpeechManager.dylib (*) <f17c083f-042f-3990-b7a5-d05d916649e4> /usr/lib/libAXSpeechManager.dylib
       0x1a0cb7000 -        0x1a1bc5fff com.apple.AppKit (6.9) <cc3e5215-4cd7-364c-8750-6eb7002720ce> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1a7010000 -        0x1a7038fff com.apple.audio.caulk (1.0) <06456788-36d4-3e9d-ab9a-eab934756fe4> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
       0x19faee000 -        0x1a0181fff com.apple.audio.CoreAudio (5.0) <41fa6c48-7a9f-3181-a122-953cfaa18117> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)
Writable regions: Total=3.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=3.1G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
CG backing stores                 6208K        8 
CG image                          12.2M      121 
ColorSync                          592K       27 
CoreAnimation                     6464K       27 
CoreGraphics                        48K        3 
CoreUI image data                 1728K       13 
Foundation                          16K        1 
Foundation (reserved)               16K        1         reserved VM address space (unallocated)
Kernel Alloc Once                   32K        1 
MALLOC                             2.1G      219 
MALLOC guard page                  192K        9 
MALLOC_LARGE (reserved)             16K        1         reserved VM address space (unallocated)
MALLOC_MEDIUM (reserved)         800.0M        8         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           256.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.4M       24 
Stack                             20.2M       24 
VM_ALLOCATE                        432K       21 
__AUTH                            1239K      275 
__AUTH_CONST                      19.2M      463 
__CTF                               824        1 
__DATA                            6381K      454 
__DATA_CONST                      23.5M      471 
__DATA_DIRTY                      1335K      158 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       805.7M        7 
__OBJC_RO                         66.2M        1 
__OBJC_RW                         2011K        1 
__TEXT                           488.1M      486 
dyld private memory                464K        4 
mapped file                      193.4M       29 
shared memory                     1536K       23 
===========                     =======  ======= 
TOTAL                              4.8G     2887 
TOTAL, minus reserved VM space     3.7G     2887 

Steps to reproduce

I can't make it happen with an MRP. The game runs fine in the editor, the crash occurs on export. Could the crash be because of the resource errors or is it a bug?

Minimal reproduction project

N/A

Calinou commented 1 year ago

By "upon exporting", do you mean that only the exported project crashes, or does the editor crash when you export the project?

keithrdavis commented 1 year ago

The editor crashes during the export process. All that remains of the export is a tmp file e.g. Trolls.tmp no executable is created.

keithrdavis commented 1 year ago

If I set ProjectSettings -> Editor -> Export -> Convert Text Resources to Binary to "Off", the project exports.

Linux and Windows have the following errors when exporting:

Windows: Cannot erase nonexistent section "params". rcedit (/Users/krdavis/Projects/Trolls-Godot/Trolls.tmp): 014c:fixme:ver:GetCurrentPackageId (000000000011FDA0 0000000000000000): stub

Cannot erase nonexistent section "params".

Linux: Cannot erase nonexistent section "params".

keithrdavis commented 1 year ago

MacOS export runs without issues; however, exports to Windows and Linux crash. Windows cannot initialize video driver and Linux crashes with a seg fault.

To summarize: I can export the project to Windows, MacOS and Linux with Convert Text Resources set to false. Running the exported binaries: Runs on MacOS but fails on Windows and Linux.

keithrdavis commented 1 year ago

I was able to track down the exported apps crashing on Windows and Linux due to video driver issues on my VMs. They work on real machines.

There is still the export process issue that is causing the editor to crash that I originally reported.

Sorry for any confusion.