You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently encountered a crash in DateTimeParsers.swift.
My crash occurred on line 81:
Self.calendarCache[0]= calendar
Which references this static variable:
privatestaticvarcalendarCache=[Int : Calendar]()
I was parsing multiple GPX files inside Swift.Tasks. I believe this crash is concurrency driven where multiple threads attempted to access the same static variable.
Could thread safety be improved by using for example an Actor? Or should I consider CoreGPX not thread safe and try to always parse my GPX files sequentially?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi!
I've recently encountered a crash in DateTimeParsers.swift.
My crash occurred on line 81:
Which references this static variable:
I was parsing multiple GPX files inside
Swift.Task
s. I believe this crash is concurrency driven where multiple threads attempted to access the same static variable.Could thread safety be improved by using for example an
Actor
? Or should I consider CoreGPX not thread safe and try to always parse my GPX files sequentially?Thanks in advance
The text was updated successfully, but these errors were encountered: