iOS Question *** Terminating app due to uncaught exception '', reason: 'Service not found'

Filippo

Expert
Licensed User
Longtime User
Hi,

I occasionally receive crash reports with this message, but I cannot reproduce the error on any iOS devices.
Has anyone else received this message and perhaps already identified the issue?

Date/Time: 2025-07-26 08:35:26.623 +0200
OS Version: iPadOS 18.4.1 (22E252)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000 at 0x0000000000000000
Crashed Thread: 0

Application Specific Information:
*** Terminating app due to uncaught exception '', reason: 'Service not found'

Thread 0 Crashed:
0 CoreFoundation 0x00000001978fd2ec 0x1977e3000 + 1155820 (<redacted> + 164)
1 libobjc.A.dylib 0x0000000194d85a7c 0x194d54000 + 203388 (objc_exception_throw + 88)
2 CoreFoundation 0x000000019795bf08 0x1977e3000 + 1543944 (<redacted> + 128)
3 CMM 0x0000000104fc5338 0x104dd0000 + 2052920 (-[BleManager getService:] + 612)
4 CMM 0x0000000104fc5600 0x104dd0000 + 2053632 (-[BleManager writeData::::] + 220)
5 CMM 0x0000000104fc5444 0x104dd0000 + 2053188 (-[BleManager WriteDataWithResponse:::] + 84)
6 CMM 0x0000000104de91e0 0x104dd0000 + 102880 ( + 324)
7 CMM 0x0000000104de4338 0x104dd0000 + 82744 ( + 1676)
8 CMM 0x0000000104f919c0 0x104dd0000 + 1841600 (__21-[B4ICommon Sleep:::]_block_invoke + 48)
9 libdispatch.dylib 0x000000019f77b584 0x19f760000 + 112004 (<redacted> + 16)
10 libdispatch.dylib 0x000000019f766560 0x19f760000 + 25952 (<redacted> + 596)
11 libdispatch.dylib 0x000000019f779348 0x19f760000 + 103240 (<redacted> + 396)
12 libdispatch.dylib 0x000000019f778020 0x19f760000 + 98336 (<redacted> + 844)
13 libdispatch.dylib 0x000000019f798498 0x19f760000 + 230552 (<redacted> + 592)
14 libdispatch.dylib 0x000000019f770d30 0x19f760000 + 68912 (<redacted> + 180)
15 libdispatch.dylib 0x000000019f770c6c 0x19f760000 + 68716 (_dispatch_main_queue_callback_4CF + 44)
16 CoreFoundation 0x00000001978562b4 0x1977e3000 + 471732 (<redacted> + 16)
17 CoreFoundation 0x00000001978540b0 0x1977e3000 + 463024 (<redacted> + 1980)
18 CoreFoundation 0x0000000197878700 0x1977e3000 + 612096 (CFRunLoopRunSpecific + 572)
19 GraphicsServices 0x00000001e43b9190 0x1e43b8000 + 4496 (GSEventRunModal + 168)
20 UIKitCore 0x000000019a496240 0x19a0cc000 + 3973696 (<redacted> + 816)
21 UIKitCore 0x000000019a494470 0x19a0cc000 + 3966064 (UIApplicationMain + 336)
22 CMM 0x0000000104dd4064 0x104dd0000 + 16484 ( + 100)
23 (null) 0x00000001be27bad8 0x0 + 7485242072

The error points to this procedure:

B4X:
Public Sub SendAbrollumfang
    Dim strTmp As String = "<" & Starter.flAbrollumfang
    strTmp = strTmp.SubString2(0, Min(strTmp.Length, 7)) 'Max. Anzahl von Zahlen = 7, z.B: 1.96320
    strTmp = (strTmp.Length + 1) & strTmp
'    Log("SendAbrollumfang=" & strTmp)
    If IsXiaoBoard Or IsBTVersion63 Then
        btManager.WriteDataWithResponse(ConnectedServices.Get(btService), charId, strTmp.GetBytes(charset))
    Else
        btManager.WriteData(ConnectedServices.Get(btService), charId, strTmp.GetBytes(charset))
    End If
End Sub
 
Top