SDL App Crash
rbrigh25 opened this issue · 2 comments
Bug Summary
Hundreds of crashes have been reported by devices. It is unclear what steps are producing the crash beyond connecting to a vehicle.
Device Details:
62% iOS 15 and 36% iOS 16
100% background
The stack trace from crashlytics has been attached.
There was a previous crash also with this version of SDL but it is unclear of the two crashes are related.
Previously a crash was seen due to SDL Assertions where it returned the following message. This was fixed by disabling assertions int he log build.
SDL ASSERTION: Retrieving object from store error: Requested NSArray but returned NSTaggedPointerString, for object key: "speechCapabilities"
Reproduction Steps
- Connect device with LiveOne on a Ford vehicle.
Expected Behavior: App should not crash
Observed Behavior: App crashes
iOS Version(s)
15.6.1
sdl_ios Version
7.5.0
Testing Environment(s)
FORD ESCAPE SYNC 3.0.20204_PRODUCT
Relevant log output
Fatal Exception: NSRangeException
*** -[NSConcreteMutableData replaceBytesInRange:withBytes:length:]: range {0, 8180} exceeds data length 43
Fatal Exception: NSRangeException
0 CoreFoundation 0x99288 __exceptionPreprocess
1 libobjc.A.dylib 0x16744 objc_exception_throw
2 Foundation 0x8825c allocateStorageWithSentinel
3 Slacker 0x5dfd50 -[SDLIAPSession write:length:withCompletionHandler:] + 64 (SDLIAPSession.m:64)
4 Slacker 0x5df148 -[SDLIAPDataSession writeDataToSessionStream] + 57 (SDLIAPDataSession.m:57)
5 Slacker 0x5e0868 -[SDLIAPSession sdl_streamHasSpaceToWrite] + 222 (SDLIAPSession.m:222)
6 Slacker 0x5e0660 -[SDLIAPSession stream:handleEvent:] + 170 (SDLIAPSession.m:170)
7 ExternalAccessory 0xa3a8 -[EAOutputStream _streamEventTrigger]
8 CoreFoundation 0x11ff14 __CFSocketPerformV0
9 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
10 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0
11 CoreFoundation 0x5694 __CFRunLoopDoSources0
12 CoreFoundation 0xb05c __CFRunLoopRun
13 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific
14 Foundation 0x19444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
15 Slacker 0x5e0588 -[SDLIAPSession sdl_startStreamRunLoop] + 142 (SDLIAPSession.m:142)
16 libdispatch.dylib 0x1e6c _dispatch_call_block_and_release
17 libdispatch.dylib 0x3a30 _dispatch_client_callout
18 libdispatch.dylib 0xb124 _dispatch_lane_serial_drain
19 libdispatch.dylib 0xbc80 _dispatch_lane_invoke
20 libdispatch.dylib 0x16500 _dispatch_workloop_worker_thread
21 libsystem_pthread.dylib 0x10bc _pthread_wqthread
22 libsystem_pthread.dylib 0xe5c start_wqthread
Reopened with report from #2116
Any update on this issue or advice on how to test it?