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.
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
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
@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