performFetchFromSpecifiedStores crash #280

Closed
opened 2025-12-29 15:28:09 +01:00 by adam · 1 comment
Owner

Originally created by @ruslanskorb on GitHub (Jul 23, 2019).

Hi @JohnEstropia!

Thanks again for the library!

We experience this crash in version 6.3.1 of CoreStore. I'm not able to reproduce this locally at the moment, but maybe you will have any thoughts, what could be the problem.

I'll let you know when I have more information.

Hardware Model: iPad7,5
Code Type: ARM-64
Parent Process: ??? [1]

Date/Time: 2019-07-23T08:07:35Z
Launch Time: 2019-07-23T07:55:30Z
OS Version: iPhone OS 12.3.1 (16F203)

Exception Type: SIGTRAP
Exception Codes: #0 at 0x21b46eba0
Crashed Thread: 0

Thread 0 Crashed:
0   libswiftCore.dylib                   0x000000021b46eba0 function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 360
1   libswiftCore.dylib                   0x000000021b2d2588 swift_unexpectedError + 504
2   CoreStore                            0x0000000106a21294 function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed, Arg[4] = Owned To Guaranteed, Arg[5] = Owned To Guaranteed> of CoreStore.ListMonitor..init(context: __C.NSManagedObjectContext, transactionQueue: __C.OS_dispatch_queue, from: CoreStore.From<A>, sectionBy: CoreStore.SectionBy<A>?, applyFetchClauses: (CoreStore.CoreStoreFetchRequest<__C.NSManagedObject>) -> (), createAsynchronously: (CoreStore.ListMonitor<A>) -> ()?) -> CoreStore.ListMonitor<A> (ListMonitor.swift:1166)
3   CoreStore                            0x0000000106a0edc4 CoreStore.ListMonitor.__allocating_init(dataStack: CoreStore.DataStack, from: CoreStore.From<A>, sectionBy: CoreStore.SectionBy<A>?, applyFetchClauses: (CoreStore.CoreStoreFetchRequest<__C.NSManagedObject>) -> ()) -> CoreStore.ListMonitor<A> (ListMonitor.swift:0)
4   CoreStore                            0x00000001069e1670 CoreStore.DataStack.monitorList<A where A: CoreStore.DynamicObject>(CoreStore.From<A>, [CoreStore.FetchClause]) -> CoreStore.ListMonitor<A> (DataStack+Observing.swift:75)
5   Z                                    0x0000000104eecddc Initialization of `ListMonitor` - see code below
self.listMonitor = CoreStore.defaultStack.monitorList(
    
    From<Model>(),
    Where<Model>("x == %@", x) &&
    Where<Model>("y > %@", y),
    OrderBy<Model>(.descending(#keyPath(Model.z)))
)
Originally created by @ruslanskorb on GitHub (Jul 23, 2019). Hi @JohnEstropia! Thanks again for the library! We experience this crash in version **6.3.1** of CoreStore. I'm not able to reproduce this locally at the moment, but maybe you will have any thoughts, what could be the problem. I'll let you know when I have more information. Hardware Model: iPad7,5 Code Type: ARM-64 Parent Process: ??? [1] Date/Time: 2019-07-23T08:07:35Z Launch Time: 2019-07-23T07:55:30Z OS Version: iPhone OS 12.3.1 (16F203) Exception Type: SIGTRAP Exception Codes: #0 at 0x21b46eba0 Crashed Thread: 0 ``` Thread 0 Crashed: 0 libswiftCore.dylib 0x000000021b46eba0 function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 360 1 libswiftCore.dylib 0x000000021b2d2588 swift_unexpectedError + 504 2 CoreStore 0x0000000106a21294 function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed, Arg[4] = Owned To Guaranteed, Arg[5] = Owned To Guaranteed> of CoreStore.ListMonitor..init(context: __C.NSManagedObjectContext, transactionQueue: __C.OS_dispatch_queue, from: CoreStore.From<A>, sectionBy: CoreStore.SectionBy<A>?, applyFetchClauses: (CoreStore.CoreStoreFetchRequest<__C.NSManagedObject>) -> (), createAsynchronously: (CoreStore.ListMonitor<A>) -> ()?) -> CoreStore.ListMonitor<A> (ListMonitor.swift:1166) 3 CoreStore 0x0000000106a0edc4 CoreStore.ListMonitor.__allocating_init(dataStack: CoreStore.DataStack, from: CoreStore.From<A>, sectionBy: CoreStore.SectionBy<A>?, applyFetchClauses: (CoreStore.CoreStoreFetchRequest<__C.NSManagedObject>) -> ()) -> CoreStore.ListMonitor<A> (ListMonitor.swift:0) 4 CoreStore 0x00000001069e1670 CoreStore.DataStack.monitorList<A where A: CoreStore.DynamicObject>(CoreStore.From<A>, [CoreStore.FetchClause]) -> CoreStore.ListMonitor<A> (DataStack+Observing.swift:75) 5 Z 0x0000000104eecddc Initialization of `ListMonitor` - see code below ``` ```swift self.listMonitor = CoreStore.defaultStack.monitorList( From<Model>(), Where<Model>("x == %@", x) && Where<Model>("y > %@", y), OrderBy<Model>(.descending(#keyPath(Model.z))) ) ```
adam added the question label 2025-12-29 15:28:09 +01:00
adam closed this issue 2025-12-29 15:28:09 +01:00
Author
Owner

@JohnEstropia commented on GitHub (Jul 28, 2019):

You should check what the assertion failure message says there, but the most common case is that your fetch is running before your DataStack finishes adding the SQLiteStore

@JohnEstropia commented on GitHub (Jul 28, 2019): You should check what the assertion failure message says there, but the most common case is that your fetch is running before your DataStack finishes adding the SQLiteStore
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#280