iOS Question Crash on SignalHandler 6 after a while

Alessandro71

Well-Known Member
Licensed User
Longtime User
My app runs for about a second and then crashes with the following stack trace (in Debug mode)
The reported line is the "End Sub" of a timer _Tick sub that runs several times before crashing
I can't find any clue in the stack trace.
App is running fine in B4A

Application_Active
SignalHandler 6
Error occurred on line: 180 (B4XMainPage)
Signal - 6
Stack Trace: (
"0 Power checK Control SignalHandler + 120",
"1 libsystem_platform.dylib 0x00000001e0b91d90 ABB790D3-1875-3996-AAEE-06E7568EA1C9 + 28048",
"2 libsystem_kernel.dylib 0x00000001c56489c0 8BCB6FF9-5162-3657-A2E2-5CE5704353E6 + 174528",
"3 libsystem_kernel.dylib 0x00000001c56489f0 8BCB6FF9-5162-3657-A2E2-5CE5704353E6 + 174576",
"4 TCC TCCAccessRequest + 0",
"5 TCC 0DCCB80E-90A0-3A5A-8E27-E3A94D384545 + 12920",
"6 TCC 0DCCB80E-90A0-3A5A-8E27-E3A94D384545 + 29484",
"7 libxpc.dylib E3552D23-ADFB-36FE-B7D0-B23090553C49 + 99520",
"8 libxpc.dylib E3552D23-ADFB-36FE-B7D0-B23090553C49 + 52264",
"9 libdispatch.dylib 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 398080"
)
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
one more hint:
i've set a breakpoint on B4XPage_Resize
i can see the breakpoint triggering on the phone screen, with the "Paused" message displayed, and then the signal 6 fires up, even if the program flow is still stopped
 
Last edited:
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
looks like a clue...
TCC is not a module of mine nor TCCAccessRequest a known sub, but i'll have a look at it: geolocalization with iGoogleMaps and BLE access
 
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
and that was it: a missing
B4X:
#PlistExtra: <key>NSBluetoothAlwaysUsageDescription</key><string>Bluetooth is used to connect to the OBD adapter</string>
was causing the crash
 
Upvote 0
Top