the-blue-alliance / the-blue-alliance-ios

An iOS app for accessing information about the FIRST Robotics Competition.
MIT License
77 stars 23 forks source link

IndexReqeustHandler crashing with bad persistent container #929

Open ZachOrr opened 2 years ago

ZachOrr commented 2 years ago
Hardware Model:      iPhone11,8
Process:             TBA Spotlight Index Extension [1861]
Path:                /private/var/containers/Bundle/Application/3EF51540-70FB-44AD-9333-31F08879DD25/The Blue Alliance.app/PlugIns/TBA Spotlight Index Extension.appex/TBA Spotlight Index Extension
Identifier:          com.the-blue-alliance.tba.spotlight-index
Version:             99 (3.0.1)
AppVariant:          1:iPhone11,8:13
Code Type:           ARM-64 (Native)
Role:                Unspecified
Parent Process:      launchd [1]
Coalition:           com.the-blue-alliance.tba.spotlight-index [736]

Date/Time:           2022-04-15 13:35:33.1141 -1000
Launch Time:         2022-04-15 13:35:32.9752 -1000
OS Version:          iPhone OS 14.7.1 (18G82)
Release Type:        User
Baseband Version:    3.04.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  2

Last Exception Backtrace:
0   CoreFoundation                  0x189dfa708 __exceptionPreprocess + 220 (NSException.m:199)
1   libobjc.A.dylib                 0x19e9047a8 objc_exception_throw + 60 (objc-exception.mm:565)
2   CoreData                        0x18ff766f8 -[NSCoreDataCoreSpotlightDelegate initForStoreWithDescription:model:] + 248 (NSCoreDataCoreSpotlightDelegate.m:215)
3   Search                          0x1041b5c64 init + 32 (<compiler-generated>:0)
4   Search                          0x1041b5c64 @objc TBACoreDataCoreSpotlightDelegate.init(forStoreWith:model:) + 64
5   TBA Spotlight Index Extension   0x104161e40 init + 32 (<compiler-generated>:0)
6   TBA Spotlight Index Extension   0x104161e40 IndexRequestHandler.indexDelegate.getter + 260 (IndexRequestHandler.swift:19)
7   TBA Spotlight Index Extension   0x1041620cc searchableIndex + 8 (IndexRequestHandler.swift:28)
8   TBA Spotlight Index Extension   0x1041620cc @objc IndexRequestHandler.searchableIndex(_:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:) + 152 (<compiler-generated>:27)
9   CoreSpotlight                   0x195b55594 __63-[_MDRemoteExtensionContext performJob:acknowledgementHandler:]_block_invoke_2 + 1640 (_MDRemoteExtensionContext.m:188)
10  libdispatch.dylib               0x1899e5a84 _dispatch_call_block_and_release + 32 (init.c:1466)
11  libdispatch.dylib               0x1899e781c _dispatch_client_callout + 20 (object.m:559)
12  libdispatch.dylib               0x1899ef004 _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
13  libdispatch.dylib               0x1899efc00 _dispatch_lane_invoke + 404 (queue.c:3862)
14  libdispatch.dylib               0x1899fa4bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
15  libsystem_pthread.dylib         0x1d5a6a7a4 _pthread_wqthread + 276 (pthread.c:2437)
ZachOrr commented 2 years ago

Same issue here https://developer.apple.com/forums/thread/115897

I'm unsure what might've changed with the new iOS 15 Spotlight stuff - but it was pretty bad before, so maybe it's gotten better.