Forum Xamarin.Mac

App crashing when is open

mall1312mall1312 Member ✭✭
edited February 13 in Xamarin.Mac

I'm getting following crash when the app starts after installation, it seems to be an issue with Mono but I still cannot figure it out. The app was developed with Visual Studio as CocoaApp and runs fine in Debug mode from VS. Signing and notarization process works fine. Hardened runtime is enabled through Entitlements.plist, I've tried many configurations but I always get same crash.
This is the log message:

Process: XXMO.WebApi.Mac.Host [20231]
Path: /Applications/XXMO.WebApi.Mac.Host.app/Contents/MacOS/XXMO.WebApi.Mac.Host
Identifier: com.xxx.xxMO-WebApi-Mac-Host
Version: 1.3.1.75 (1.3.1.75)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: XXMO.WebApi.Mac.Host [20231]
User ID: 501

Date/Time: 2021-02-12 20:37:39.831 -0500
OS Version: macOS 11.2.1 (20D74)
Report Version: 12
Anonymous UUID: 078FAEBF-C57B-B07C-321A-416E88E763A0

Time Awake Since Boot: 100000 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [20231]

VM Regions Near 0:
-->
__TEXT 10b5fe000-10b9f6000 [ 4064K] r-x/r-x SM=COW /Applications/XXMO.WebApi.Mac.Host.app/Contents/MacOS/XXMO.WebApi.Mac.Host

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.xxmo.XXMO-WebApi-Mac-Host 0x000000010b7223ea mono_arch_create_sdb_trampoline + 122 (tramp-amd64.c:860)
1 com.xxmo.XXMO-WebApi-Mac-Host 0x000000010b70a23c mini_get_breakpoint_trampoline + 60 (mini-trampolines.c:1701)
2 com.xxmo.XXMO-WebApi-Mac-Host 0x000000010b6c3bd5 mono_arch_init + 21 (mini-amd64.c:1435)
3 com.xxmo.XXMO-WebApi-Mac-Host 0x000000010b70320a mini_init + 746 (mini-runtime.c:4226)
4 com.xxmo.XXMO-WebApi-Mac-Host 0x000000010b65c9e2 mono_main + 6146 (driver.g.c:2618)
5 com.xxmo.XMO-WebApi-Mac-Host 0x000000010b61159c xamarin_main + 1116 (launcher.m:647)
6 com.xxmo.XXMO-WebApi-Mac-Host 0x000000010b6123c4 main + 36 (launcher.m:666)
7 libdyld.dylib 0x00007fff20374621 start + 1

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

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00006000001e4030 rbx: 0x00006000001e4030 rcx: 0x00006000001e4030 rdx: 0x0000000000000000
rdi: 0x00006000001e4060 rsi: 0x0000000000000000 rbp: 0x00007ffee4601610 rsp: 0x00007ffee46015c0
r8: 0x0000000000000001 r9: 0x000000010ba04e30 r10: 0x0000000000000000 r11: 0x00000000ffffff00
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000010b7223ea rfl: 0x0000000000010246 cr2: 0x0000000000000000

Logical CPU: 2
Error Code: 0x00000006 (no mapping for user data write)
Trap Number: 14

Thread 0 instruction stream:
ff 48 c7 45 d0 00 00 00-00 bf 00 02 00 00 e8 f3 .H.E............
c1 fd ff 49 89 c4 45 31-ed 31 ff be 0c 00 00 00 ...I..E1.1......
ba 04 00 00 00 b9 08 00-00 00 e8 a7 c3 fd ff 31 ...............1
ff 48 89 c6 e8 0d ea 1f-00 48 89 c3 31 ff be 80 .H.......H..1...
00 00 00 ba 10 00 00 00-b9 f8 ff ff ff e8 84 c3 ................
fd ff 48 89 df 48 89 c6-e8 e9 e9 1f 00 48 89 c3 ..H..H.......H..
[41]c6 04 24 55 bf 01 00-00 00 be 0e 00 00 00 31 A..$U..........1 <==
d2 b9 10 00 00 00 e8 5b-c3 fd ff 48 89 df 48 89 .......[...H..H.
c6 e8 c0 e9 1f 00 48 89-c3 bf 01 00 00 00 be 80 ......H.........
00 00 00 ba 05 00 00 00-b9 f0 ff ff ff e8 34 c3 ..............4.
fd ff 48 89 df 48 89 c6-e8 99 e9 1f 00 48 89 c3 ..H..H.......H..
66 41 c7 44 24 01 48 8b-41 c6 44 24 03 ec bf 04 fA.D$.H.A.D$....

Thread 0 last branch register state not available.

Binary Images:
0x10b5fe000 - 0x10b9f5fff +com.xxmo.XXMO-WebApi-Mac-Host (1.3.1.75 - 1.3.1.75) /Applications/XXMO.WebApi.Mac.Host.app/Contents/MacOS/XXMO.WebApi.Mac.Host
0x114657000 - 0x1146f2fff dyld (832.7.3) <0D4EA85F-7E30-338B-9215-314A5A5539B6> /usr/lib/dyld
0x7fff2008d000 - 0x7fff2008efff libsystem_blocks.dylib (78) /usr/lib/system/libsystem_blocks.dylib
0x7fff2008f000 - 0x7fff200c4fff libxpc.dylib (2038.80.3) <70F26262-01AA-3CEC-9FAD-2701D24096F0> /usr/lib/system/libxpc.dylib

….........(I cut the info on purpose for readability of this post)

0x7fff6cb87000 -     0x7fff6cb8ffff  libGFXShared.dylib (18.1.1) <45A1FFDC-03B7-3D64-AFAF-16D321B53D28> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x7fff6cb90000 -     0x7fff6cbc3fff  libGLImage.dylib (18.1.1) <16D10CE1-C2A1-3E24-A617-766CB6E9133C> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff6cbc4000 -     0x7fff6cc00fff  libGLU.dylib (18.1.1) <F0DD35B5-3692-3BE5-AD3D-4F6B237EF6AD> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff6cd96000 -     0x7fff6cda0fff  libGL.dylib (18.1.1) <68ABAADE-2DB4-3412-9F36-CA1AEAC8E9F6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff6e1d7000 -     0x7fff6e22ffff  com.apple.opencl (4.5 - 4.5) <40B70A3B-D981-3E4A-9BEC-F22EF84118F5> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff7839c000 -     0x7fff783a3fff  libRosetta.dylib (203.30) <44C477D9-013F-3A6D-A9FE-68A89214E6A5> /usr/lib/libRosetta.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: 76694
thread_create: 0
thread_set_state: 0

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

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 1
Kernel Alloc Once 8K 1
MALLOC 155.2M 15
MALLOC guard page 16K 4
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.0M 2
Stack 8712K 2
VM_ALLOCATE 8K 2
__CTF 759 1
__DATA 16.8M 368
__DATA_CONST 18.8M 218
__DATA_DIRTY 1091K 142
__FONT_DATA 4K 1
__LINKEDIT 490.8M 5
__OBJC_RO 60.5M 1
__OBJC_RW 2449K 2
__TEXT 298.7M 371
__UNICODE 588K 1
shared memory 8K 2
=========== ======= =======
TOTAL 1.5G 1140
TOTAL, minus reserved VM space 1.1G 1140

Sign In or Register to comment.