Details of failure 73e54009-98c5-4781-9f67-f05a1b90594c

Upload ID
52be9c57-e758-4962-ad1f-8c8cbc904d76
Test case ID
d17ec17b-78b4-4e1d-a0d3-2dba60cc50f6
Message
Crash: xctest (21523) Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value (#CharacterRangeLen=0)

Crash reports

7358325e-7df2-405a-8fb7-846ebc60fb0b (Download)

Original filename
xctest_May 1, 2023 at 92441 PM GMT_0_BA6BEFCD-4966-4044-9835-BF1551147CBC.ips
{"app_name":"xctest","timestamp":"2023-05-01 21:24:58.00 +0000","app_version":"","slice_uuid":"7c53218e-77cc-39cd-8999-512279796ac5","build_version":"","platform":8,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.6.5 (21G531)","incident_id":"2538D607-2A69-47A0-8D7C-FC1025E17A49","name":"xctest"}
{"procPath":"\/Applications\/Xcode_14.2.app\/Contents\/Developer\/Platforms\/AppleTVSimulator.platform\/Developer\/Library\/Xcode\/Agents\/xctest","deployVersion":210,"version":2,"parentPid":18890,"procLaunch":"2023-05-01 21:13:02.5480 +0000","userID":501,"vmSummary":"ReadOnly portion of Libraries: Total=780.0M resident=0K(0%) swapped_out_or_unallocated=780.0M(100%)\nWritable regions: Total=585.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=585.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           187.0M       51 \nMALLOC guard page                   32K        7 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSQLite page cache                  256K        2 \nSTACK GUARD                       56.0M        7 \nStack                             11.0M        7 \nVM_ALLOCATE                          8K        2 \n__DATA                            9031K      356 \n__DATA_CONST                      32.5M      360 \n__DATA_DIRTY                        66K       12 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       395.7M       25 \n__OBJC_RO                         37.0M        1 \n__OBJC_RW                         1249K        1 \n__TEXT                           384.3M      381 \ndyld private memory               1280K        2 \nlibnetwork                        1664K       24 \nmapped file                       33.1M       12 \nshared memory                       16K        1 \n===========                     =======  ======= \nTOTAL                              1.5G     1256 \nTOTAL, minus reserved VM space     1.1G     1256 \n","legacyInfo":{"threadTriggered":{"queue":"com.apple.main-thread"}},"pid":21523,"procName":"xctest","threads":[{"instructionState":{"instructionStream":{"bytes":[118,29,0,72,141,53,46,132,254,255,232,43,155,19,0,233,89,249,255,255,15,11,72,141,61,123,118,29,0,72,141,53,20,132,254,255,232,17,155,19,0,233,0,249,255,255,72,141,61,83,118,29,0,72,141,53,60,123,254,255,232,249,154,19,0,233,232,252,255,255,15,87,192,15,41,69,128,15,41,133,112,255,255,255,76,137,255,232,0,154,19,0,15,11,15,11,15,11,72,139,29,255,59,28,0,76,139,61,160,39,25,0,76,137,247,65,255,215,72,137,199,65,255,215,76,137,247,72,137,222,232,33,153,19,0,72,137,199,232,55,153,19,0,72,137,195,72,137,199,232,58,148,19,0,73,137,198,73,137,215,72,137,223,255,21,95,39,25,0,72,141,61,108,137,21,0,76,141,13,81,8,21,0,190,11,0,0,0,186,2,0,0],"offset":96}},"queue":"com.apple.main-thread","threadState":{"rflags":{"value":66118},"rax":{"value":140704858035416,"symbolLocation":0,"symbol":"value witness table for Builtin.BridgeObject"},"rdi":{"value":140701801262832},"cpu":{"value":0},"r14":{"value":140704858026088,"symbolLocation":8,"symbol":"full type metadata for [String : Any]"},"rsi":{"value":0},"r8":{"value":1024},"cr2":{"value":4535021568},"rdx":{"value":1},"r10":{"value":1023},"r9":{"value":140556215532992},"r15":{"value":0},"rbx":{"value":140703128925696,"symbolLocation":0,"symbol":"objc_release"},"trap":{"value":6},"err":{"value":0},"r11":{"value":140703152368104,"symbolLocation":0,"symbol":"-[_NSMainThread release]"},"rip":{"value":4607967368,"matchesCrashFrame":1},"rbp":{"value":140701801262928},"rsp":{"value":140701801262640},"r12":{"value":13835058055282163712},"rcx":{"value":140704858026088,"symbolLocation":8,"symbol":"full type metadata for [String : Any]"},"flavor":"x86_THREAD_STATE","r13":{"value":0}},"frames":[{"symbolLocation":0,"imageIndex":0,"sourceFile":"TestUtilities.swift","symbol":"Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value","inline":true,"imageOffset":1122440},{"symbolLocation":2392,"symbol":"specialized static AblyTests.commonAppSetup(debug:forceNewApp:)","imageIndex":0,"sourceLine":151,"sourceFile":"TestUtilities.swift","imageOffset":1122440},{"symbolLocation":142,"sourceLine":7,"sourceFile":"RestClientStatsTests.swift","symbol":"postTestStats(_:)","imageIndex":0,"imageOffset":1397022},{"symbolLocation":36,"symbol":"RestClientStatsTests.beforeEach__RestClient__stats__result()","sourceFile":"RestClientStatsTests.swift","sourceLine":107,"imageOffset":1404324,"imageIndex":0},{"symbol":"RestClientStatsTests.test__002__RestClient__stats__result__should_match_hour_level_inbound_and_outbound_fixture_data__forwards_()","imageIndex":0,"imageOffset":1406098,"sourceFile":"RestClientStatsTests.swift","symbolLocation":34,"sourceLine":133},{"symbolLocation":24,"sourceFile":"<compiler-generated>","symbol":"@objc RestClientStatsTests.test__002__RestClient__stats__result__should_match_hour_level_inbound_and_outbound_fixture_data__forwards_()","imageIndex":0,"imageOffset":1407560},{"symbol":"__invoking___","imageIndex":1,"imageOffset":1220476,"symbolLocation":140},{"imageOffset":1208916,"symbolLocation":305,"imageIndex":1,"symbol":"-[NSInvocation invoke]"},{"symbolLocation":79,"imageIndex":2,"symbol":"+[XCTFailableInvocation invokeStandardConventionInvocation:completion:]","imageOffset":398050},{"imageIndex":2,"imageOffset":397969,"symbolLocation":20,"symbol":"__90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke_3"},{"imageIndex":2,"symbol":"__81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke.13","imageOffset":396671,"symbolLocation":71},{"imageIndex":2,"imageOffset":118172,"symbol":"+[XCTSwiftErrorObservation observeErrorsInBlock:]","symbolLocation":68},{"imageIndex":2,"symbolLocation":443,"symbol":"+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]","imageOffset":396308},{"symbol":"+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]","symbolLocation":205,"imageIndex":2,"imageOffset":397395},{"symbol":"+[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:]","symbolLocation":64,"imageIndex":2,"imageOffset":398158},{"imageIndex":2,"symbolLocation":112,"symbol":"__24-[XCTestCase invokeTest]_block_invoke.287","imageOffset":319030},{"symbolLocation":181,"imageOffset":85966,"imageIndex":2,"symbol":"-[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]"},{"imageOffset":317875,"symbol":"-[XCTestCase invokeTest]","imageIndex":2,"symbolLocation":899},{"imageIndex":2,"imageOffset":324256,"symbolLocation":43,"symbol":"__26-[XCTestCase performTest:]_block_invoke.396"},{"imageOffset":85966,"symbolLocation":181,"symbol":"-[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]","imageIndex":2},{"symbolLocation":516,"imageOffset":322605,"imageIndex":2,"symbol":"__26-[XCTestCase performTest:]_block_invoke.375"},{"imageOffset":210174,"symbolLocation":207,"symbol":"+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]","imageIndex":2},{"imageIndex":2,"symbolLocation":167,"symbol":"+[XCTContext runInContextForTestCase:markAsReportingBase:block:]","imageOffset":209933},{"symbol":"-[XCTestCase performTest:]","imageOffset":321605,"symbolLocation":282,"imageIndex":2},{"imageIndex":2,"symbol":"-[XCTest runTest]","imageOffset":9491,"symbolLocation":57},{"symbolLocation":151,"imageIndex":2,"symbol":"-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:]","imageOffset":223366},{"symbolLocation":243,"imageIndex":2,"symbol":"__27-[XCTestSuite performTest:]_block_invoke","imageOffset":222982},{"symbol":"__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke","imageOffset":221265,"imageIndex":2,"symbolLocation":24},{"symbolLocation":207,"symbol":"+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]","imageIndex":2,"imageOffset":210174},{"symbolLocation":167,"imageOffset":209933,"symbol":"+[XCTContext runInContextForTestCase:markAsReportingBase:block:]","imageIndex":2},{"symbolLocation":159,"symbol":"-[XCTestSuite _performProtectedSectionForTest:testSection:]","imageIndex":2,"imageOffset":221192},{"imageIndex":2,"imageOffset":221891,"symbolLocation":219,"symbol":"-[XCTestSuite performTest:]"},{"symbol":"-[XCTest runTest]","imageIndex":2,"imageOffset":9491,"symbolLocation":57},{"symbolLocation":151,"imageIndex":2,"symbol":"-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:]","imageOffset":223366},{"imageIndex":2,"symbolLocation":243,"symbol":"__27-[XCTestSuite performTest:]_block_invoke","imageOffset":222982},{"imageIndex":2,"symbolLocation":24,"imageOffset":221265,"symbol":"__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke"},{"imageIndex":2,"imageOffset":210174,"symbol":"+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]","symbolLocation":207},{"symbol":"+[XCTContext runInContextForTestCase:markAsReportingBase:block:]","imageIndex":2,"symbolLocation":167,"imageOffset":209933},{"imageIndex":2,"symbolLocation":159,"symbol":"-[XCTestSuite _performProtectedSectionForTest:testSection:]","imageOffset":221192},{"imageIndex":2,"symbol":"-[XCTestSuite performTest:]","imageOffset":221891,"symbolLocation":219},{"imageIndex":2,"symbolLocation":57,"symbol":"-[XCTest runTest]","imageOffset":9491},{"imageIndex":2,"imageOffset":223366,"symbolLocation":151,"symbol":"-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:]"},{"imageIndex":2,"symbolLocation":243,"imageOffset":222982,"symbol":"__27-[XCTestSuite performTest:]_block_invoke"},{"imageIndex":2,"imageOffset":221265,"symbolLocation":24,"symbol":"__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke"},{"symbol":"+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]","symbolLocation":207,"imageOffset":210174,"imageIndex":2},{"imageIndex":2,"imageOffset":209933,"symbolLocation":167,"symbol":"+[XCTContext runInContextForTestCase:markAsReportingBase:block:]"},{"imageOffset":221192,"imageIndex":2,"symbolLocation":159,"symbol":"-[XCTestSuite _performProtectedSectionForTest:testSection:]"},{"imageOffset":221891,"symbolLocation":219,"imageIndex":2,"symbol":"-[XCTestSuite performTest:]"},{"imageIndex":2,"symbolLocation":57,"imageOffset":9491,"symbol":"-[XCTest runTest]"},{"imageIndex":2,"symbol":"__89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke","imageOffset":16572,"symbolLocation":115},{"imageOffset":210174,"imageIndex":2,"symbol":"+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]","symbolLocation":207},{"symbolLocation":167,"symbol":"+[XCTContext runInContextForTestCase:markAsReportingBase:block:]","imageIndex":2,"imageOffset":209933},{"imageOffset":16294,"symbol":"-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]","symbolLocation":269,"imageIndex":2},{"symbolLocation":119,"imageIndex":2,"symbol":"__72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke_2","imageOffset":455118},{"symbol":"-[XCTExecutionWorker runWithError:]","imageIndex":2,"imageOffset":455412,"symbolLocation":112},{"symbolLocation":61,"symbol":"__25-[XCTestDriver _runTests]_block_invoke.338","imageOffset":197098,"imageIndex":2},{"symbol":"-[XCTestObservationCenter _observeTestExecutionForBlock:]","imageOffset":54670,"imageIndex":2,"symbolLocation":324},{"symbol":"-[XCTestDriver _runTests]","symbolLocation":1459,"imageOffset":196128,"imageIndex":2},{"imageOffset":11001,"symbolLocation":125,"symbol":"_XCTestMain","imageIndex":2},{"symbolLocation":211,"imageOffset":20056,"symbol":"main","imageIndex":3},{"symbolLocation":10,"symbol":"start_sim","imageOffset":8797,"imageIndex":4},{"symbolLocation":462,"symbol":"start","imageIndex":5,"imageOffset":21806}],"id":51669,"triggered":true},{"frames":[{"symbolLocation":10,"symbol":"mach_msg_trap","imageIndex":6,"imageOffset":6506},{"symbolLocation":56,"imageIndex":6,"imageOffset":7384,"symbol":"mach_msg"},{"symbolLocation":145,"symbol":"__CFRunLoopServiceMachPort","imageIndex":1,"imageOffset":539181},{"symbol":"__CFRunLoopRun","imageOffset":516660,"symbolLocation":1371,"imageIndex":1},{"symbol":"CFRunLoopRunSpecific","imageIndex":1,"imageOffset":514337,"symbolLocation":560},{"imageIndex":7,"imageOffset":2279528},{"imageOffset":5735198,"symbolLocation":1009,"imageIndex":8,"symbol":"__NSThread__start__"},{"imageOffset":25825,"symbolLocation":125,"imageIndex":9,"symbol":"_pthread_start"},{"symbolLocation":15,"imageOffset":8043,"imageIndex":9,"symbol":"thread_start"}],"id":52481,"name":"com.apple.NSURLConnectionLoader"},{"id":52612,"frames":[{"imageIndex":6,"symbol":"mach_msg_trap","imageOffset":6506,"symbolLocation":10},{"symbol":"mach_msg","imageIndex":6,"symbolLocation":56,"imageOffset":7384},{"symbolLocation":145,"imageIndex":1,"imageOffset":539181,"symbol":"__CFRunLoopServiceMachPort"},{"symbolLocation":1371,"imageIndex":1,"symbol":"__CFRunLoopRun","imageOffset":516660},{"imageOffset":514337,"imageIndex":1,"symbolLocation":560,"symbol":"CFRunLoopRunSpecific"},{"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","imageIndex":8,"imageOffset":5566586,"symbolLocation":213},{"imageIndex":10,"symbolLocation":259,"symbol":"-[ARTSRRunLoopThread main]","sourceFile":"ARTSRRunLoopThread.m","imageOffset":180259,"sourceLine":56},{"imageOffset":5735198,"imageIndex":8,"symbol":"__NSThread__start__","symbolLocation":1009},{"symbol":"_pthread_start","imageIndex":9,"symbolLocation":125,"imageOffset":25825},{"imageOffset":8043,"imageIndex":9,"symbol":"thread_start","symbolLocation":15}],"name":"io.ably.socketrocket.NetworkThread"},{"name":"com.apple.CFSocket.private","id":52615,"frames":[{"symbol":"__select","symbolLocation":10,"imageOffset":40266,"imageIndex":6},{"imageIndex":1,"symbolLocation":613,"imageOffset":625940,"symbol":"__CFSocketManager"},{"imageIndex":9,"symbolLocation":125,"symbol":"_pthread_start","imageOffset":25825},{"imageOffset":8043,"symbol":"thread_start","imageIndex":9,"symbolLocation":15}]},{"frames":[{"imageIndex":9,"imageOffset":8008,"symbolLocation":0,"symbol":"start_wqthread"}],"id":101227},{"frames":[{"imageOffset":8008,"symbolLocation":0,"symbol":"start_wqthread","imageIndex":9}],"id":123776},{"frames":[{"symbol":"start_wqthread","imageIndex":9,"imageOffset":8008,"symbolLocation":0}],"id":134342}],"modelCode":"VMware7,1","extMods":{"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":2},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},"responsiblePid":1865,"parentProc":"launchd_sim","sharedCache":{"base":140703128616960,"size":3087597568,"uuid":"3f6f39a2-795f-3097-bc4f-8669ff201419"},"procRole":"Unspecified","termination":{"flags":0,"code":4,"namespace":"SIGNAL","indicator":"Illegal instruction: 4","byProc":"exc handler","byPid":21523},"procStartAbsTime":781965115649,"faultingThread":0,"uptime":1400,"procExitAbsTime":1480958241193,"trialInfo":{"experiments":[{"treatmentId":"c28e4ee6-1b08-4f90-8e05-2809e78310a3","experimentId":"6317d2003d24842ff850182a","deploymentId":400000013}],"rollouts":[{"rolloutId":"60186475825c62000ccf5450","factorPackIds":{},"deploymentId":240000026},{"rolloutId":"607844aa04477260f58a8077","factorPackIds":{"SIRI_MORPHUN_ASSETS":"6103050cbfe6dc472e1c982a"},"deploymentId":240000066}]},"coalitionID":1253,"cpuType":"X86-64","captureTime":"2023-05-01 21:24:41.5301 +0000","coalitionName":"com.apple.CoreSimulator.SimDevice.C8C67212-535E-483E-B38A-D76F2D87CC66","crashReporterKey":"28C488D7-2871-0137-7EA3-2D329D89124C","osVersion":{"train":"macOS 12.6.5","build":"21G531","releaseType":"User"},"sip":"enabled","exception":{"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_INSTRUCTION","signal":"SIGILL"},"isCorpse":1,"incident":"2538D607-2A69-47A0-8D7C-FC1025E17A49","usedImages":[{"source":"P","arch":"x86_64","base":4606844928,"CFBundleShortVersionString":"1.0","CFBundleIdentifier":"io.ably.Ably-tvOS-Tests","size":2768896,"uuid":"c01b35e0-85af-3b8f-8b52-49b6fee1cf7b","path":"\/Users\/USER\/*\/Ably-tvOS-Tests","name":"Ably-tvOS-Tests","CFBundleVersion":"1"},{"source":"P","arch":"x86_64","base":140703135465472,"CFBundleShortVersionString":"6.9","CFBundleIdentifier":"com.apple.CoreFoundation","size":3682301,"uuid":"d1913e44-88f1-33e4-8d5d-6177b53b5959","path":"\/Volumes\/VOLUME\/*\/CoreFoundation.framework\/CoreFoundation","name":"CoreFoundation","CFBundleVersion":"1953.1"},{"source":"P","arch":"x86_64","base":4557135872,"CFBundleShortVersionString":"14.2","CFBundleIdentifier":"com.apple.dt.XCTestCore","size":638976,"uuid":"e38bbb72-e3ea-3fa5-bce0-3ff6dcb6633b","path":"\/Applications\/Xcode_14.2.app\/Contents\/Developer\/Platforms\/AppleTVSimulator.platform\/Developer\/Library\/PrivateFrameworks\/XCTestCore.framework\/XCTestCore","name":"XCTestCore","CFBundleVersion":"21501"},{"source":"P","arch":"x86_64","base":4547514368,"size":32768,"uuid":"7c53218e-77cc-39cd-8999-512279796ac5","path":"\/Applications\/Xcode_14.2.app\/Contents\/Developer\/Platforms\/AppleTVSimulator.platform\/Developer\/Library\/Xcode\/Agents\/xctest","name":"xctest"},{"source":"P","arch":"x86_64","base":4549836800,"size":389120,"uuid":"963d2e47-146f-3df3-ac9d-f595694d9aef","path":"\/Volumes\/VOLUME\/*\/dyld_sim","name":"dyld_sim"},{"source":"P","arch":"x86_64","base":4768784384,"size":442368,"uuid":"6376ba16-20f7-3c31-a5c5-a10648ae7b56","path":"\/usr\/lib\/dyld","name":"dyld"},{"source":"P","arch":"x86_64","base":4554219520,"size":229376,"uuid":"576ecf56-10c7-35bf-a391-e35d4bd74309","path":"\/usr\/lib\/system\/libsystem_kernel.dylib","name":"libsystem_kernel.dylib"},{"source":"P","arch":"x86_64","base":140703142871040,"CFBundleShortVersionString":"1399","CFBundleIdentifier":"com.apple.CFNetwork","size":3768309,"uuid":"3627a854-e2f5-34f6-a063-21ca939bcf34","path":"\/Volumes\/VOLUME\/*\/CFNetwork.framework\/CFNetwork","name":"CFNetwork","CFBundleVersion":"1399"},{"source":"P","arch":"x86_64","base":140703146639360,"CFBundleShortVersionString":"6.9","CFBundleIdentifier":"com.apple.Foundation","size":9580544,"uuid":"ca2011ae-53d8-3da4-99e1-2c962b349e65","path":"\/Volumes\/VOLUME\/*\/Foundation.framework\/Foundation","name":"Foundation","CFBundleVersion":"1953.1"},{"source":"P","arch":"x86_64","base":4553261056,"size":49152,"uuid":"1239689d-21c9-36ce-96ba-be0ef8ee02e4","path":"\/usr\/lib\/system\/libsystem_pthread.dylib","name":"libsystem_pthread.dylib"},{"source":"P","arch":"x86_64","base":4596305920,"CFBundleShortVersionString":"1.2.19","CFBundleIdentifier":"io.ably.Ably","size":819200,"uuid":"048aa11b-7b47-3eb7-999e-6856d092d806","path":"\/Users\/USER\/*\/Ably.framework\/Ably","name":"Ably","CFBundleVersion":"1.2.19"}],"responsibleProc":"SimulatorTrampoline","bug_type":"309"}