iOS Simulator crash with EXC_BAD_ACCESS (SIGSEGV) in InspectorServer.mm on macOS 26.5 Apple Silicon
Author: jefripunzaCreated May 29, 2026Updated Jun 1, 2026
Labelsquestionin progress
Issue Description
Hi NativeScript team,
I'm experiencing a crash on iOS Simulator when running a NativeScript app on Apple Silicon.
The application crashes with:
EXC_BAD_ACCESS (SIGSEGV)KERN_INVALID_ADDRESS at 0x0000000000000000
The crash seems related to:
InspectorServer.mm:81
v8_inspector::InspectorServer::Init(...)and specifically:
std::__1::basic_string<char>::basic_string(char const*)
_platform_strlenThis indicates a possible null pointer being passed into std::string.
Environment
- NativeScript iOS runtime: (please fill your runtime version)
- macOS:
26.5 (25F71) - Hardware:
Apple M4 (Mac16,1) - Xcode: (please fill your Xcode version)
- iOS Simulator
- Architecture:
ARM64
Crash Summary
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Termination Reason: SIGNAL 11 Segmentation fault: 11Faulting thread:
Thread 11 Crashed:: Dispatch queue: com.apple.libdispatch-io.opqRelevant stack trace:
0 libsystem_platform.dylib _platform_strlen + 4
1 NativeScript std::__1::__constexpr_strlen(char const*)
2 NativeScript std::__1::char_traits<char>::length(char const*)
3 NativeScript std::__1::basic_string<char>::basic_string(char const*)
4 NativeScript invocation function for block in
v8_inspector::InspectorServer::Init(...)
InspectorServer.mm:81Additional Notes
The app launches successfully, but after some time it crashes inside the NativeScript runtime while running in the iOS Simulator.
The crash appears to happen in an async dispatch queue:
Dispatch queue: com.apple.libdispatch-io.opqI suspect a null C-string is being converted into std::string inside InspectorServer.mm.
Full Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: myCommerce [73611]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/myCommerce
Identifier: org.nativescript.myCommerce
Version: 1.0.0 (1.0.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd_sim [25326]
Coalition: com.apple.CoreSimulator.SimDevice.DD79C03D-2C73-4CB1-A1C0-F132346C02A2 [4904]
Responsible Process: SimulatorTrampoline [10939]
User ID: 501
Date/Time: 2026-05-29 09:22:05.3991 +0700
Launch Time: 2026-05-29 09:14:01.2405 +0700
Hardware Model: Mac16,1
OS Version: macOS 26.5 (25F71)
Release Type: User
Crash Reporter Key: 9EBFC762-FC4D-FEF7-A94B-A5F9956702FF
Incident Identifier: 74AA9F8C-026C-4CB3-8239-C755CDBDA80B
Sleep/Wake UUID: 1A2759E2-6ADF-45C5-AB92-5EB4124DA1A7
Time Awake Since Boot: 40000 seconds
Time Since Wake: 35953 seconds
System Integrity Protection: enabled
Triggered by Thread: 11, Dispatch Queue: com.apple.libdispatch-io.opq
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11, Segmentation fault: 11
Terminating Process: exc handler [73611]
VM Region Info: 0 is not in any region. Bytes before following region: 4335878144
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102704000-102714000 [ 64K] r-x/r-x SM=COW /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/myCommerce
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x103410b70 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x103421e5c mach_msg2_internal + 72
2 libsystem_kernel.dylib 0x103418c44 mach_msg_overwrite + 484
3 libsystem_kernel.dylib 0x103410ef0 mach_msg + 20
4 CoreFoundation 0x1804227c0 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x180421978 __CFRunLoopRun + 1128
6 CoreFoundation 0x18041c904 _CFRunLoopRunSpecificWithOptions + 496
7 GraphicsServices 0x1933599c0 GSEventRunModal + 116
8 UIKitCore 0x1864a54cc -[UIApplication _run] + 776
9 UIKitCore 0x186b9f910 UIApplicationMain + 120
10 NativeScript 0x1070d8044 ffi_call_SYSV + 68
11 NativeScript 0x1070d5bc0 ffi_call_int + 972
12 NativeScript 0x1070ba41c tns::Interop::CallFunctionInternal(tns::MethodCall&) + 364 (Interop.mm:1566)
13 NativeScript 0x107076f78 tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::operator()() const + 560 (MetadataBuilder.mm:887) [inlined]
14 NativeScript 0x107076f78 decltype(std::declval<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2&>()()) std::__1::__invoke[abi:ue170006]<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2&>(tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2&) + 560 (invoke.h:340) [inlined]
15 NativeScript 0x107076f78 void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ue170006]<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2&>(tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2&) + 560 (invoke.h:415) [inlined]
16 NativeScript 0x107076f78 std::__1::__function::__alloc_func<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2, std::__1::allocator<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2>, void ()>::operator()[abi:ue170006]() + 560 (function.h:193) [inlined]
17 NativeScript 0x107076f78 std::__1::__function::__func<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2, std::__1::allocator<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2>, void ()>::operator()() + 596 (function.h:364)
18 NativeScript 0x1070c3bb0 std::__1::__function::__value_func<void ()>::operator()[abi:ue170006]() const + 20 (function.h:518) [inlined]
19 NativeScript 0x1070c3bb0 std::__1::function<void ()>::operator()() const + 20 (function.h:1169) [inlined]
20 NativeScript 0x1070c3bb0 tns::Tasks::Drain() + 92 (Tasks.cpp:13)
21 myCommerce 0x102705a68 main + 688 (main.m:61)
22 dyld_sim 0x10335f0e4 start_sim + 20
23 dyld 0x1034c7e00 start + 6992
Thread 1:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 2:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 3:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 4:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 5:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 6:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 7:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 8:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 9:: V8 DefaultWorke
0 libsystem_kernel.dylib 0x10341402c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x103696b00 _pthread_cond_wait + 972
2 NativeScript 0x1070f89d8 v8::platform::DelayedTaskQueue::GetNext() + 592
3 NativeScript 0x1070f8418 v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() + 44
4 NativeScript 0x1070ee7cc v8::base::ThreadEntry(void*) + 100
5 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
6 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 10:: com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x103410b70 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x103421e5c mach_msg2_internal + 72
2 libsystem_kernel.dylib 0x103418c44 mach_msg_overwrite + 484
3 libsystem_kernel.dylib 0x103410ef0 mach_msg + 20
4 CoreFoundation 0x1804227c0 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x180421978 __CFRunLoopRun + 1128
6 CoreFoundation 0x18041c904 _CFRunLoopRunSpecificWithOptions + 496
7 Foundation 0x18112fa4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8 Foundation 0x18112fc68 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9 UIKitCore 0x1861d7ad4 -[UIEventFetcher threadMain] + 404
10 Foundation 0x181154edc __NSThread__start__ + 716
11 libsystem_pthread.dylib 0x10369663c _pthread_start + 104
12 libsystem_pthread.dylib 0x103691a34 thread_start + 8
Thread 11 Crashed:: Dispatch queue: com.apple.libdispatch-io.opq
0 libsystem_platform.dylib 0x1035e89a4 _platform_strlen + 4
1 NativeScript 0x1070160f0 std::__1::__constexpr_strlen[abi:ue170006](char const*) + 8 (constexpr_c_functions.h:49) [inlined]
2 NativeScript 0x1070160f0 std::__1::char_traits<char>::length[abi:ue170006](char const*) + 8 (char_traits.h:222) [inlined]
3 NativeScript 0x1070160f0 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_string[abi:ue170006]<0>(char const*) + 36 (string:940)
4 NativeScript 0x10707ad6c std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_string[abi:ue170006]<0>(char const*) + 8 (string:938) [inlined]
5 NativeScript 0x10707ad6c invocation function for block in v8_inspector::InspectorServer::Init(std::__1::function<void (std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>)>)>, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>)>) + 136 (InspectorServer.mm:81)
6 libdispatch.dylib 0x1801b6790 ___dispatch_operation_deliver_data_block_invoke + 140
7 libdispatch.dylib 0x1801866a0 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x1801a0e98 _dispatch_client_callout + 12
9 libdispatch.dylib 0x18018f724 _dispatch_lane_serial_drain + 984
10 libdispatch.dylib 0x1801901e8 _dispatch_lane_invoke + 396
11 libdispatch.dylib 0x18018adf8 _dispatch_continuation_pop + 152
12 libdispatch.dylib 0x18018a280 _dispatch_async_redirect_invoke + 852
13 libdispatch.dylib 0x1801994d4 _dispatch_root_queue_drain + 328
14 libdispatch.dylib 0x180199eb0 _dispatch_worker_thread2 + 252
15 libsystem_pthread.dylib 0x103692bec _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x103691a28 start_wqthread + 8
Thread 12:
Thread 11 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x000000000000d85c x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x000000016e206200 x6: 0x000000010443e428 x7: 0x0000000000007ddd
x8: 0x05cb3a3f779b0047 x9: 0x05cb3a3f779b0047 x10: 0x05cb3a3f779b0047 x11: 0x0000000000000000
x12: 0x0000000000000001 x13: 0x000000000000dc00 x14: 0x00000000fca02400 x15: 0x0000000000000002
x16: 0x00000001035e89a0 x17: 0x00000001805af85c x18: 0x0000000000000000 x19: 0x000000016e206bd8
x20: 0x0000000105e2aca0 x21: 0x0000000000000000 x22: 0x000000010443e400 x23: 0x0000000105633700
x24: 0x0000000004004000 x25: 0x00000001143b7cc0 x26: 0x00000001143b7c40 x27: 0x0000000000000000
x28: 0x0000000000030000 fp: 0x000000016e206bc0 lr: 0x00000001070160f0
sp: 0x000000016e206b90 pc: 0x00000001035e89a4 cpsr: 0x60000000
far: 0x0000000000000000 esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x102704000 - 0x102713fff org.nativescript.myCommerce (1.0.0) <7f1213e1-af8d-3ea6-b1d3-8c57a649f716> /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/myCommerce
0x103354000 - 0x1033a3fff dyld_sim (*) <ba544d9a-46ab-3c59-a00f-aba1479d2079> /Volumes/VOLUME/*/dyld_sim
0x106fec000 - 0x107ceffff org.nativescript.NativeScript (1.0) <09bc68c9-81dd-3f1c-888e-45385c596568> /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/Frameworks/NativeScript.framework/NativeScript
0x103300000 - 0x10330ffff org.nativescript.TKLiveSync (1.0) <f5e8be9e-3c0e-3c9a-83a5-5130cd2bf122> /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/Frameworks/TKLiveSync.framework/TKLiveSync
0x1032e0000 - 0x1032e3fff org.nativescript.NSCWinterTC (1.0) <755efec1-d340-3fad-aef7-dee029f2fc9e> /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/Frameworks/NSCWinterTC.framework/NSCWinterTC
0x1032bc000 - 0x1032c3fff org.nativescript.TNSWidgets (1.0) <66942c92-e71d-319d-987c-8bf81755ac68> /Users/USER/Library/Developer/CoreSimulator/Devices/DD79C03D-2C73-4CB1-A1C0-F132346C02A2/data/Containers/Bundle/Application/9FA6E011-7312-46CE-A474-8049E232A67D/myCommerce.app/Frameworks/TNSWidgets.framework/TNSWidgets
0x103324000 - 0x103327fff libswiftUIKit.dylib (*) <710be927-bac3-3b9e-b7ce-dbe0c5e8e2a5> /Volumes/VOLUME/*/libswiftUIKit.dylib
0x1035e8000 - 0x1035f3fff libsystem_platform.dylib (*) <0831b8d2-190f-31fc-9eb6-ea8ba11fe47b> /usr/lib/system/libsystem_platform.dylib
0x103410000 - 0x10344bfff libsystem_kernel.dylib (*) <856091df-df82-3985-9695-28eac306bcb5> /usr/lib/system/libsystem_kernel.dylib
0x103690000 - 0x10369ffff libsystem_pthread.dylib (*) <1e522024-387b-3d18-81ca-f4559198954b> /usr/lib/system/libsystem_pthread.dylib
0x1040f0000 - 0x104147fff com.apple.SensorKit (972.0.21) <29c4ace5-683d-3d93-8bSource: NativeScript/NativeScript