My newly exported game on MacOS runs from console but doesn't run when I open the game.app file

As the title suggests, my game doesn’t run when I open the game.app file, there is no crash log or something, it just appears briefly in the bottom dock then disappears.

Did anyone face anything like that before? I can’t find something similar online and I’m stuck, I would be very thankful if anyone can point me in the right direction :smiley:

Maybe this will help?
https://docs.monogame.net/articles/packaging_games.html

Hi Gronk!
I followed every step in this link and it’s the same issue (I followed the steps before posting here), I appreciate your help though :blush:

I experienced a problem with the same symptoms, but on my end it seems to have evolved into something slightly different: (Can't get a Mac application bundle working).

I also followed the publishing steps Gronk suggested, but one possible hint is this sentence at the very bottom of them:

For archiving, we recommend using the .tar.gz format to preserve the execution permissions (you will likely run into permission issues if you use .zip at any point).

This hint correlates with this post, who experienced a similar issue: App packaging for Mac, The application "YourGame" can't be opened. - #2 by SquidJelly

On my end, I’m distributing the game via Steam. I have no idea what that means for execution permissions, but you should be able to confirm if that’s the issue by navigating to the MacOS subfolder under YourGame.app and running sudo chmod +x YourGame on the target machine.

Hi Quasar, I literally have the same crash report you posted there, and the problem is in the “libhostfxr.dylib” too, I tried the sudo chmod command both inside and outside the game.app but the problem still persists, am I doing something wrong?

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

Process:               Squidy [11128]
Path:                  /Users/USER/Downloads/SquidGrid.app/Contents/MacOS/Squidy
Identifier:            com.headscratchgames.squidy
Version:               1.0 (1)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-04-24 11:47:30.3162 +0200
OS Version:            macOS 13.2 (22D49)
Report Version:        12
Anonymous UUID:        4BF872F9-741A-282C-2370-2A068678267D

Sleep/Wake UUID:       7E8FB29A-FB3C-4668-A8CA-3517481F9D40

Time Awake Since Boot: 42000 seconds
Time Since Wake:       1046 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called


Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e77922a __pthread_kill + 10
2   libsystem_pthread.dylib       	    0x7ff80e7b0f7b pthread_kill + 263
3   libsystem_c.dylib             	    0x7ff80e6faca5 abort + 123
4   libcoreclr.dylib              	       0x10d10a67b PROCAbort + 43
5   libcoreclr.dylib              	       0x10d10a5ae PROCEndProcess(void*, unsigned int, int) + 318
6   libcoreclr.dylib              	       0x10d3574f7 UnwindManagedExceptionPass1(PAL_SEHException&, _CONTEXT*) + 1111
7   libcoreclr.dylib              	       0x10d357543 DispatchManagedException(PAL_SEHException&, bool) + 67
8   libcoreclr.dylib              	       0x10d2b36da IL_Throw(Object*) + 554
9   ???                           	       0x11397040a ???
10  ???                           	       0x113970151 ???
11  ???                           	       0x11396ff7a ???
12  ???                           	       0x113970e5a ???
13  ???                           	       0x1138a30b8 ???
14  ???                           	       0x11386dec3 ???
15  ???                           	       0x11386de1a ???
16  ???                           	       0x11439785f ???
17  ???                           	       0x11437877e ???
18  ???                           	       0x114068f96 ???
19  ???                           	       0x11406787b ???
20  ???                           	       0x114052a8c ???
21  libcoreclr.dylib              	       0x10d3f95e9 CallDescrWorkerInternal + 124
22  libcoreclr.dylib              	       0x10d24598a MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1530
23  libcoreclr.dylib              	       0x10d12b8de RunMain(MethodDesc*, short, int*, PtrArray**) + 734
24  libcoreclr.dylib              	       0x10d12bbfb Assembly::ExecuteMainMethod(PtrArray**, int) + 395
25  libcoreclr.dylib              	       0x10d15d732 CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) + 498
26  libcoreclr.dylib              	       0x10d115484 coreclr_execute_assembly + 180
27  libhostpolicy.dylib           	       0x10c927afd run_app_for_context(hostpolicy_context_t const&, int, char const**) + 1293
28  libhostpolicy.dylib           	       0x10c928961 corehost_main + 241
29  libhostfxr.dylib              	       0x10c82f4f5 fx_muxer_t::handle_exec_host_command(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, host_startup_info_t const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::unordered_map<known_options, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, known_options_hash, std::__1::equal_to<known_options>, std::__1::allocator<std::__1::pair<known_options const, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > > > const&, int, char const**, int, host_mode_t, bool, char*, int, int*) + 1621
30  libhostfxr.dylib              	       0x10c82e2fd fx_muxer_t::execute(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int, char const**, host_startup_info_t const&, char*, int, int*) + 621
31  libhostfxr.dylib              	       0x10c82acf8 hostfxr_main_startupinfo + 152
32  Squidy                        	       0x104164854 exe_start(int, char const**) + 1508
33  Squidy                        	       0x104164a60 main + 144
34  dyld                          	       0x20451e310 start + 2432

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7fff4e614 0x7ff7fff4a000 + 17940
1   runtime                       	    0x7ff7fff5a530 0x7ff7fff4a000 + 66864
2   runtime                       	    0x7ff7fff5bf30 0x7ff7fff4a000 + 73520

Thread 2:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e7725c2 mach_msg2_trap + 10
2   libsystem_kernel.dylib        	    0x7ff80e780604 mach_msg2_internal + 82
3   libsystem_kernel.dylib        	    0x7ff80e779635 mach_msg_overwrite + 723
4   libsystem_kernel.dylib        	    0x7ff80e7728a8 mach_msg + 19
5   libcoreclr.dylib              	       0x10d112608 MachMessage::Receive(unsigned int) + 72
6   libcoreclr.dylib              	       0x10d11183e SEHExceptionThread(void*) + 110
7   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
8   libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 3:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e7792d6 poll + 10
2   libcoreclr.dylib              	       0x10d1033fe CorUnix::CPalSynchronizationManager::ThreadPrepareForShutdown() + 30
3   libcoreclr.dylib              	       0x10d105015 CorUnix::CPalSynchronizationManager::WorkerThread(void*) + 933
4   libcoreclr.dylib              	       0x10d10f487 CorUnix::CPalThread::ThreadEntry(void*) + 407
5   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
6   libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 4:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e7792d6 poll + 10
2   libcoreclr.dylib              	       0x10d465eac ds_ipc_poll(_DiagnosticsIpcPollHandle*, unsigned long, unsigned int, void (*)(char const*, unsigned int)) + 172
3   libcoreclr.dylib              	       0x10d52598d ds_ipc_stream_factory_get_next_available_stream(void (*)(char const*, unsigned int)) + 957
4   libcoreclr.dylib              	       0x10d52391a server_thread(void*) + 170
5   libcoreclr.dylib              	       0x10d10f487 CorUnix::CPalThread::ThreadEntry(void*) + 407
6   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
7   libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 5:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e772d5e __open + 10
2   libsystem_kernel.dylib        	    0x7ff80e77bbce open + 204
3   libcoreclr.dylib              	       0x10d4668df TwoWayPipe::WaitForConnection() + 31
4   libcoreclr.dylib              	       0x10d45edfd DbgTransportSession::TransportWorker() + 189
5   libcoreclr.dylib              	       0x10d45d9e9 DbgTransportSession::TransportWorkerStatic(void*) + 9
6   libcoreclr.dylib              	       0x10d10f487 CorUnix::CPalThread::ThreadEntry(void*) + 407
7   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
8   libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 6:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e77511a __psynch_cvwait + 10
2   libsystem_pthread.dylib       	    0x7ff80e7b17e1 _pthread_cond_wait + 1243
3   libcoreclr.dylib              	       0x10d103102 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 322
4   libcoreclr.dylib              	       0x10d102d2a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 362
5   libcoreclr.dylib              	       0x10d1075a9 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2153
6   libcoreclr.dylib              	       0x10d107842 WaitForMultipleObjectsEx + 82
7   libcoreclr.dylib              	       0x10d45c1c9 DebuggerRCThread::MainLoop() + 217
8   libcoreclr.dylib              	       0x10d45c09c DebuggerRCThread::ThreadProc() + 220
9   libcoreclr.dylib              	       0x10d45be1d DebuggerRCThread::ThreadProcStatic(void*) + 29
10  libcoreclr.dylib              	       0x10d10f487 CorUnix::CPalThread::ThreadEntry(void*) + 407
11  libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
12  libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 7:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e77511a __psynch_cvwait + 10
2   libsystem_pthread.dylib       	    0x7ff80e7b17e1 _pthread_cond_wait + 1243
3   libcoreclr.dylib              	       0x10d1030e5 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 293
4   libcoreclr.dylib              	       0x10d102d2a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 362
5   libcoreclr.dylib              	       0x10d1075a9 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2153
6   libcoreclr.dylib              	       0x10d10777d WaitForSingleObjectEx + 77
7   libcoreclr.dylib              	       0x10d32215f CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 191
8   libcoreclr.dylib              	       0x10d28a43f FinalizerThread::WaitForFinalizerEvent(CLREvent*) + 31
9   libcoreclr.dylib              	       0x10d28a604 FinalizerThread::FinalizerThreadWorker(void*) + 180
10  libcoreclr.dylib              	       0x10d20d818 ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 296
11  libcoreclr.dylib              	       0x10d20dde0 ManagedThreadBase::FinalizerBase(void (*)(void*)) + 32
12  libcoreclr.dylib              	       0x10d28a778 FinalizerThread::FinalizerThreadStart(void*) + 88
13  libcoreclr.dylib              	       0x10d10f487 CorUnix::CPalThread::ThreadEntry(void*) + 407
14  libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
15  libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 8:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 9:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 10:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 11:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 12:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 13:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 14:
0   runtime                       	    0x7ff7fff6c87c 0x7ff7fff4a000 + 141436

Thread 15:: caulk.messenger.shared:17
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e77253e semaphore_wait_trap + 10
2   caulk                         	    0x7ff8184688f8 caulk::mach::semaphore::wait_or_error() + 16
3   caulk                         	    0x7ff81844e664 caulk::concurrent::details::worker_thread::run() + 36
4   caulk                         	    0x7ff81844e328 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*) + 41
5   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
6   libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 16:: com.apple.audio.IOThread.client
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e7725c2 mach_msg2_trap + 10
2   libsystem_kernel.dylib        	    0x7ff80e780604 mach_msg2_internal + 82
3   libsystem_kernel.dylib        	    0x7ff80e779635 mach_msg_overwrite + 723
4   libsystem_kernel.dylib        	    0x7ff80e7728a8 mach_msg + 19
5   CoreAudio                     	    0x7ff810a0e38d HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 111
6   CoreAudio                     	    0x7ff8108e15be HALC_ProxyIOContext::IOWorkLoop() + 4058
7   CoreAudio                     	    0x7ff8108dffe4 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 80
8   CoreAudio                     	    0x7ff810a6eaa4 HALB_IOThread::Entry(void*) + 72
9   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
10  libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 17:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e77253e semaphore_wait_trap + 10
2   libdispatch.dylib             	    0x7ff80e631efb _dispatch_sema4_wait + 16
3   libdispatch.dylib             	    0x7ff80e6323d7 _dispatch_semaphore_wait_slow + 98
4   libopenal.1.dylib             	       0x1b0e8c33c EventThread(ALCcontext*) + 940
5   libopenal.1.dylib             	       0x1b0e8c7ec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, int (*)(ALCcontext*), ALCcontext*> >(void*) + 44
6   libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
7   libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15

Thread 18:
0   ???                           	    0x7ff89db169a8 ???
1   libsystem_kernel.dylib        	    0x7ff80e77511a __psynch_cvwait + 10
2   libsystem_pthread.dylib       	    0x7ff80e7b17e1 _pthread_cond_wait + 1243
3   libcoreclr.dylib              	       0x10d1030e5 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 293
4   libcoreclr.dylib              	       0x10d102d2a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 362
5   libcoreclr.dylib              	       0x10d107c3d SleepEx + 141
6   libcoreclr.dylib              	       0x10d20b7d7 Thread::UserSleep(int) + 263
7   libcoreclr.dylib              	       0x10d25dde8 ThreadNative::Sleep(int) + 152
8   ???                           	       0x1137a8a6b ???
9   ???                           	       0x114394a8c ???
10  ???                           	       0x1137a7ede ???
11  libcoreclr.dylib              	       0x10d3f95e9 CallDescrWorkerInternal + 124
12  libcoreclr.dylib              	       0x10d24531f DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 223
13  libcoreclr.dylib              	       0x10d25c498 ThreadNative::KickOffThread_Worker(void*) + 136
14  libcoreclr.dylib              	       0x10d20d818 ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 296
15  libcoreclr.dylib              	       0x10d20dd80 ManagedThreadBase::KickOff(void (*)(void*), void*) + 32
16  libcoreclr.dylib              	       0x10d25c56a ThreadNative::KickOffThread(void*) + 170
17  libcoreclr.dylib              	       0x10d10f487 CorUnix::CPalThread::ThreadEntry(void*) + 407
18  libsystem_pthread.dylib       	    0x7ff80e7b1259 _pthread_start + 125
19  libsystem_pthread.dylib       	    0x7ff80e7acc7b thread_start + 15


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x000000030c766840  rsi: 0x0000000000000003  rbp: 0xffffffff00000000  rsp: 0x000000000007bb7c
   r8: 0x00000002045bc2c0   r9: 0xffffffff00000000  r10: 0x0000000000000000  r11: 0x000000030c764848
  r12: 0x0000000000000103  r13: 0x000000030c764f70  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: <unavailable>       rfl: 0x0000000000200283
 tmp0: 0xffffffffffffffff tmp1: 0x00007ff89db1697c tmp2: 0x00007ff80e779220


Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    0x7ff80e771000 -     0x7ff80e7aaff7 libsystem_kernel.dylib (*) <ca136b67-0559-3f19-8b7e-9b80438090b6> /usr/lib/system/libsystem_kernel.dylib
    0x7ff80e7ab000 -     0x7ff80e7b6ff7 libsystem_pthread.dylib (*) <3bd433d4-15bd-3add-a612-95e4d3b20719> /usr/lib/system/libsystem_pthread.dylib
    0x7ff80e679000 -     0x7ff80e701fff libsystem_c.dylib (*) <1aec5d1a-6e43-30f9-a9f2-11eb85d3e70c> /usr/lib/system/libsystem_c.dylib
       0x10d0cd000 -        0x10d5f0fff libcoreclr.dylib (*) <2a277ac0-3cd5-351a-9843-8d12310f0698> /Users/USER/Downloads/SquidGrid.app/Contents/MacOS/libcoreclr.dylib
       0x10c915000 -        0x10c954fff libhostpolicy.dylib (*) <a70e19f9-4be7-3be2-9aeb-bd621da9fc3f> /Users/USER/Downloads/SquidGrid.app/Contents/MacOS/libhostpolicy.dylib
       0x10c823000 -        0x10c86afff libhostfxr.dylib (*) <4f5931d7-499c-3fb8-90b1-48f9ceb52848> /Users/USER/Downloads/SquidGrid.app/Contents/MacOS/libhostfxr.dylib
       0x104157000 -        0x104166fff com.headscratchgames.squidy (1.0) <7ca28085-5029-3d92-b625-03ff9fbbb605> /Users/USER/Downloads/SquidGrid.app/Contents/MacOS/Squidy
       0x204518000 -        0x2045affff dyld (*) <270c4224-a38f-3a22-9ba9-95968f487738> /usr/lib/dyld
    0x7ff7fff4a000 -     0x7ff7fff79fff runtime (*) <f066db2c-ed38-3f37-8d21-81d15fa908fe> /usr/libexec/rosetta/runtime
    0x7ff81844c000 -     0x7ff818471fff com.apple.audio.caulk (1.0) <bf7582bd-4de0-3ca2-8b69-f1944725f182> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
    0x7ff8106fe000 -     0x7ff810e1cff5 com.apple.audio.CoreAudio (5.0) <3b6e93dd-f8c6-338c-9251-5e750e091dd3> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7ff80e62f000 -     0x7ff80e675ff3 libdispatch.dylib (*) <d59ee79a-169a-3799-8ea1-c8ad56bb11c9> /usr/lib/system/libdispatch.dylib
       0x1b0e79000 -        0x1b0f28fff libopenal.1.dylib (*) <f648e27b-c445-3a30-8363-efc3388692a4> /Users/USER/Downloads/SquidGrid.app/Contents/MacOS/libopenal.1.dylib

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: 45
    thread_create: 0
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 2176K        4 
CG image                           260K        1 
ColorSync                          216K       24 
CoreGraphics                        12K        2 
CoreUI image data                  152K        1 
Foundation                          16K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           219.0M       39 
MALLOC guard page                  192K        8 
MALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
Rosetta Arena                     4096K        2 
Rosetta Generic                   1696K      421 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack               240K       24 
Rosetta Thread Context             260K       26 
STACK GUARD                         28K        7 
Stack                             16.7M       18 
Stack Guard                       56.1M       11 
VM_ALLOCATE                        1.7G      874 
VM_ALLOCATE (reserved)              72K        3         reserved VM address space (unallocated)
__CTF                               756        1 
__DATA                            19.0M      367 
__DATA_CONST                      15.9M      219 
__DATA_DIRTY                       757K      118 
__FONT_DATA                        2352        1 
__GLSLBUILTINS                    5174K        1 
__LINKEDIT                       170.3M       19 
__OBJC_RO                         65.4M        1 
__OBJC_RW                         1987K        2 
__TEXT                           278.2M      381 
dyld private memory                256K        1 
mapped file                        4.2G     1320 
shared memory                      800K       14 
unshared pmap                     10.5M        6 
===========                     =======  ======= 
TOTAL                              7.7G     3926 
TOTAL, minus reserved VM space     6.9G     3926 



-----------
Full Report
-----------

{"app_name":"Squidy","timestamp":"2023-04-24 11:47:32.00 +0200","app_version":"1.0","slice_uuid":"7ca28085-5029-3d92-b625-03ff9fbbb605","build_version":"1","platform":1,"bundleID":"com.headscratchgames.squidy","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.2 (22D49)","roots_installed":0,"name":"Squidy","incident_id":"74056C17-31DE-4C02-9301-ABE68D3E7BEF"}
{
  "uptime" : 42000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookAir10,1",
  "coalitionID" : 3733,
  "osVersion" : {
    "train" : "macOS 13.2",
    "build" : "22D49",
    "releaseType" : "User"
  },
  "captureTime" : "2023-04-24 11:47:30.3162 +0200",
  "incident" : "74056C17-31DE-4C02-9301-ABE68D3E7BEF",
  "pid" : 11128,
  "translated" : true,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-04-24 11:47:28.3830 +0200",
  "procStartAbsTime" : 1026925965866,
  "procExitAbsTime" : 1026971237368,
  "procName" : "Squidy",
  "procPath" : "\/Users\/USER\/Downloads\/SquidGrid.app\/Contents\/MacOS\/Squidy",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"com.headscratchgames.squidy"},
  "storeInfo" : {"deviceIdentifierForVendor":"3A2E4F85-4EB0-5FCA-B71A-3C3A295D4822","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.headscratchgames.squidy",
  "crashReporterKey" : "4BF872F9-741A-282C-2370-2A068678267D",
  "throttleTimeout" : 2147483647,
  "wakeTime" : 1046,
  "sleepWakeUUID" : "7E8FB29A-FB3C-4668-A8CA-3517481F9D40",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":45},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":506748,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":18446744069414584320},"r12":{"value":259},"rosetta":{"tmp2":{"value":140703371334176},"tmp1":{"value":140705774266748},"tmp0":{"value":18446744073709551615}},"rbx":{"value":0},"r8":{"value":8663057088,"symbolLocation":0,"symbol":"_main_thread"},"r15":{"value":22},"r10":{"value":0},"rdx":{"value":0},"rdi":{"value":13093988416},"r9":{"value":18446744069414584320},"r13":{"value":13093982064},"rflags":{"value":2097795},"rax":{"value":0},"rsp":{"value":506748},"r11":{"value":13093980232},"rcx":{"value":0},"r14":{"value":6},"rsi":{"value":3}},"queue":"com.apple.main-thread","frames":[{"imageOffset":140705774266792,"imageIndex":0},{"imageOffset":33322,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":1},{"imageOffset":24443,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":2},{"imageOffset":531621,"symbol":"abort","symbolLocation":123,"imageIndex":3},{"imageOffset":251515,"symbol":"PROCAbort","symbolLocation":43,"imageIndex":4},{"imageOffset":251310,"symbol":"PROCEndProcess(void*, unsigned int, int)","symbolLocation":318,"imageIndex":4},{"imageOffset":2663671,"symbol":"UnwindManagedExceptionPass1(PAL_SEHException&, _CONTEXT*)","symbolLocation":1111,"imageIndex":4},{"imageOffset":2663747,"symbol":"DispatchManagedException(PAL_SEHException&, bool)","symbolLocation":67,"imageIndex":4},{"imageOffset":1992410,"symbol":"IL_Throw(Object*)","symbolLocation":554,"imageIndex":4},{"imageOffset":4623631370,"imageIndex":0},{"imageOffset":4623630673,"imageIndex":0},{"imageOffset":4623630202,"imageIndex":0},{"imageOffset":4623634010,"imageIndex":0},{"imageOffset":4622790840,"imageIndex":0},{"imageOffset":4622573251,"imageIndex":0},{"imageOffset":4622573082,"imageIndex":0},{"imageOffset":4634277983,"imageIndex":0},{"imageOffset":4634150782,"imageIndex":0},{"imageOffset":4630941590,"imageIndex":0},{"imageOffset":4630935675,"imageIndex":0},{"imageOffset":4630850188,"imageIndex":0},{"imageOffset":3327465,"symbol":"CallDescrWorkerInternal","symbolLocation":124,"imageIndex":4},{"imageOffset":1542538,"symbol":"MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int)","symbolLocation":1530,"imageIndex":4},{"imageOffset":387294,"symbol":"RunMain(MethodDesc*, short, int*, PtrArray**)","symbolLocation":734,"imageIndex":4},{"imageOffset":388091,"symbol":"Assembly::ExecuteMainMethod(PtrArray**, int)","symbolLocation":395,"imageIndex":4},{"imageOffset":591666,"symbol":"CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*)","symbolLocation":498,"imageIndex":4},{"imageOffset":296068,"symbol":"coreclr_execute_assembly","symbolLocation":180,"imageIndex":4},{"imageOffset":76541,"symbol":"run_app_for_context(hostpolicy_context_t const&, int, char const**)","symbolLocation":1293,"imageIndex":5},{"imageOffset":80225,"symbol":"corehost_main","symbolLocation":241,"imageIndex":5},{"imageOffset":50421,"symbol":"fx_muxer_t::handle_exec_host_command(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, host_startup_info_t const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::unordered_map<known_options, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, known_options_hash, std::__1::equal_to<known_options>, std::__1::allocator<std::__1::pair<known_options const, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > > > const&, int, char const**, int, host_mode_t, bool, char*, int, int*)","symbolLocation":1621,"imageIndex":6},{"imageOffset":45821,"symbol":"fx_muxer_t::execute(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int, char const**, host_startup_info_t const&, char*, int, int*)","symbolLocation":621,"imageIndex":6},{"imageOffset":31992,"symbol":"hostfxr_main_startupinfo","symbolLocation":152,"imageIndex":6},{"imageOffset":55380,"symbol":"exe_start(int, char const**)","symbolLocation":1508,"imageIndex":7},{"imageOffset":55904,"symbol":"main","symbolLocation":144,"imageIndex":7},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":8}]},{"id":506755,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":17940,"imageIndex":9},{"imageOffset":66864,"imageIndex":9},{"imageOffset":73520,"imageIndex":9}]},{"id":506762,"frames":[{"imageOffset":140705774266792,"imageIndex":0},{"imageOffset":5570,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":1},{"imageOffset":62980,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":1},{"imageOffset":34357,"symbol":"mach_msg_overwrite","symbolLocation":723,"imageIndex":1},{"imageOffset":6312,"symbol":"mach_msg","symbolLocation":19,"imageIndex":1},{"imageOffset":284168,"symbol":"MachMessage::Receive(unsigned int)","symbolLocation":72,"imageIndex":4},{"imageOffset":280638,"symbol":"SEHExceptionThread(void*)","symbolLocation":110,"imageIndex":4},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":2},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":2}]},{"id":506763,"frames":[{"imageOffset":140705774266792,"imageIndex":0},{"imageOffset":33494,"symbol":"poll","symbolLocation":10,"imageIndex":1},{"imageOffset":222206,"symbol":"CorUnix::CPalSynchronizationManager::ThreadPrepareForShutdown()","symbolLocation":30,"imageIndex":4},{"imageOffset":229397,"symbol":"CorUnix::CPalSynchronizationManager::WorkerThread(void*)","symbolLocation":933,"imageIndex":4},{"imageOffset":271495,"symbol":"CorUnix::CPalThread::ThreadEntry(void*)","symbolLocation":407,"imageIndex":4},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":2},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":2}]},{"id":506764,"frames":[{"imageOffset":140705774266792,"imageIndex":0},{"imageOffset":33494,"symbol":"poll","symbolLocation":10,"imageIndex":1},{"imageOffset":3772076,"symbol":"ds_ipc_poll(_DiagnosticsIpcPollHandle*, unsigned long, unsigned int, void (*)(char const*, unsigned int))","symbolLocation":172,"imageIndex":4},{"imageOffset":4557197,"symbol":"ds_ipc_stream_factory_get_next_available_stream(void (*)(char const*, unsigned int))","symbolLocation":957,"imageIndex":4},{"imageOffset":4548890,"symbol":"server_thread(void*)","symbolLocation":170,"imageIndex":4},{"imageOffset":271495,"symbol":"CorUnix::CPalThread::ThreadEntry(void*)","symbolLocation":407,"imageIndex":4},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":2},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":2}]},{"id":506765,"frames":[{"imageOffset":140705774266792,"imageIndex":0},{"imageOffset":7518,"symbol":"__open","symbolLocation":10,"imageIndex":1},

etc..

I wouldn’t be able to answer that: it’s a problem I still haven’t solved either.

From my (admittedly limited) understanding, the chmod +x command needs to be run on the MacOS machine, inside the “\game.app\Contents\MacOS” folder, and needs to target the extensionless executable file in that folder (the same file that would have an .exe extension on windows).

I tried this on my own device and it didn’t work, thanks for help anyway, let me know if you solved it later, I will do the same of course!

The only other hint I’ve been able to find is that you might be able to get the call stack by running it from the console: dotnet quits unexpectedly on mac os · Issue #12317 · dotnet/runtime · GitHub

" janvorli commented on Mar 22, 2019

This looks like an unhandled managed exception. When you run it from the command line, what does it print to the console when the application fails?"

Hi there.
Seems I’ve faced with the problem and solved it. First of all you need execute chmod +x on your bash file. As it mentioned above, however it’s just a minor issue.

The major issue is that I own M1 Mac and uname returns following:

Darwin XXXXX.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000 arm64

Well it return ARM64 architecture, so bash will execute arm64 brunch here

cd “$(dirname $BASH_SOURCE)/…/Resources”
if [[ $(uname -p) == ‘arm’ ]]; then
./…/MacOS/arm64/AutoPong
else
./…/MacOS/amd64/AutoPong
fi

But in my case monogame runs only when I build it under osx-x64 (not arm64) configuration.

IMO it’s kinda issue. Any thoughts on a proper solution here? Cos I’d like to keep an ability using x64 and arm64 architectures within the same app file.

UPD:
Welllll, seems I’ve got a solution.
Initial build was made under Windows machine, but Windows doesn’t know anything about Mac\Arm\M1 (in my case, I don’t have arm version installed, only x64), so by default it builds as x64. After copying files to Mac and building under mac’s arm (.net arm is installed), everything works fine. Seems this is a root cause. Most probably I’ll check possibility building on Windows but with .Net Arm(for win), but I’m a bit lazy…

UPD2:
Btw, if you’d like to get to know about your .Net versions installed, you’d better use dotnet-core-uninstall (instruction is here - Uninstall Tool - .NET | Microsoft Learn )