mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
DefaultLogger issue #266
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @llKoull on GitHub (Apr 13, 2019).
Hi!
I've been using this amazing library since 2 years ago but I'm experiencing many crashes in a class named DefaultLogger since March.
I don't really know where the problem is, but fabric says that the line 126 of DefaultLogger.swift crashes. I can't even reproduce the error in any of my devices, but the users are complaining about it and Fabric tells that there are many crashes of the same kind.
I attach one of the crash logs that fabrics generates. Can you help me?
Thanks and best regards!
com.arcadiaseed.nootric_issue_crash_0d57e54adbfd4283817e1f88fa5ed81e_DNE_0_v2.txt
@JohnEstropia commented on GitHub (Apr 14, 2019):
The logger will get called if there are any errors or any assertion failures, so it will be the last line in your stack trace. You will need to look at the stack trace right before the logger calls as that is where the real issue will be.
@llKoull commented on GitHub (Apr 15, 2019):
Hi @JohnEstropia ,
Thanks for your answer, I was inspecting the stack trace and I found that the crash is generated in a method that persists the information of the user called in the "applicationWillResignActive" method of the AppDelegate.
Do you know if there is any problem if I call this method just before the app resign active?
Maybe there's some internal timeout or maybe it should be called on the main thread.
Thanks and best regards!
@JohnEstropia commented on GitHub (Apr 15, 2019):
The most common issue around this is that your
transaction.fetchOneis getting called before yourDataStack.addStorage(...)processing completes.@llKoull commented on GitHub (Apr 15, 2019):
Thanks for your (really) fast answer @JohnEstropia !
I checked it but I Initialize Core Store in the "application: didFinishLaunchingWithOptions" and the I use it during all the session. Just before the app resigns active I persist the information. I don't know what's happening 😆
Best regards!
@JohnEstropia commented on GitHub (Apr 15, 2019):
Can you show how you are initializing your
DataStack? From your stack trace it looks like it's crashing during loading of xcdatamodeld file@llKoull commented on GitHub (Apr 15, 2019):
Hey @JohnEstropia !
Yeah, sure 😉
Thanks and best regards!
@JohnEstropia commented on GitHub (Apr 16, 2019):
Try to set the
CoreStore.defaultStackto yourDataStackas early as you can.@llKoull commented on GitHub (Apr 16, 2019):
Ok @JohnEstropia I did the cande and I'm uploading a new version to the Store.
I hope it works! hehehe
I'll tell you something as soon as I see the Crashlytitcs stats ;)
Thanks and best regards!
@llKoull commented on GitHub (Apr 22, 2019):
Hi @JohnEstropia !
I released a new version of the app with the change that you proposed me but the issue is still there 😟 I don't know why but 2 of the most common issues of my app are related to CoreStore.
Maybe I am doing something wrong but I don't know where is the problem and I can't reproduce the error on my devices.
Thanks and best regards!
@llKoull commented on GitHub (Jul 18, 2019):
Hello @JohnEstropia !
It's been a long time since my last message and i've been investigating those issues that i'm still experiencing.
One weird thing that i saw is that if i look the full session information of the crash in fabric, theres a crash_info_entry_1 with the path of the CoreStore sources in my local computer. Is it normal? I've never saw this before.
I'm using CoreStore 6.3.1 right now and those crashes are the most repeated in my app :S
Thanks and best regards!
@llKoull commented on GitHub (Aug 3, 2019):
Hello again!
This issue is my biggest problem right now. Look the statistics just for the last version:
Anyone has any ideas?
Thanks and best regards!