-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File opening errors in logger #175
Comments
Hi @slava-semeniuk-ek - Could you please double check the version of Amplitude-Swift you are using? 1.6.0 was just released two days ago. Any stack traces you can provide would also be very helpful. |
For the latest version which uses 1.6.0, I could find the following errors: NSLocalizedDescription: “v2-8” couldn’t be removed. LogsAmplitudeErrorLogger.swift - Line 41 AmplitudeErrorLogger.swift - Line 24 PersistentStorage.swift - Line 104 libdispatch.dylib PersistentStorage.swift - Line 100 IdentifyInterceptor.swift - Line 124 IdentifyInterceptor.swift - Line 157 IdentifyInterceptor.swift - Line 182 QueueTimer.swift - Line 38 The file “v2-243” couldn’t be opened using text encoding Unicode (UTF-8). LogsAmplitudeErrorLogger.swift - Line 24protocol witness for Logger.error(message:) in conformance AmplitudeMessageLogger + 24 PersistentStorage.swift - Line 94 EventPipeline.swift - Line 70 _dispatch_lane_barrier_sync_invoke_and_complete EventPipeline.swift - Line 65 EventPipeline.swift - Line 34 QueueTimer.swift - Line 38 |
Thanks @slava-semeniuk-ek! This was caused by some concurrency issues that were largely resolved in 1.5.0+, but we missed one callback in IdentifyInterceptor, which I've fixed in #176. I've also added some additional diagnostic logging which will help us catch similar issues in the future. Our write patterns are such that events in one of the removed files should have been either uploaded or re-written to another file, so we don't believe this has caused any data issues. |
This should be released in 1.6.1 |
@crleona hey, hey, have you had a chance to check the additional diagnostic logging? It looks like these errors are still appearing in Amplitude 1.6.2 |
@crleona It seems it's still not fixed for 1.7.0. Could you please check the additional diagnostic logging? Let me know If you need any details from my side |
I'm currently tracking errors from Amplitude to our error analytics, and I've encountered a significant number of errors in our production app. All the errors are similar in nature, and here are a couple of examples:
I'm concerned about whether these errors could potentially cause any data issues?
SDK Version: 1.6.0
OS Info: iOS 17.*
The text was updated successfully, but these errors were encountered: