-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Crash in StatsDateFormatter.kt: Unparseable date: "" #8886
Comments
cc @planarvoid @0nko |
Unfortunately, this crash still seems to be occurring on 11.5 which includes the fix from #8922. Its possible its less common now, but its hard to tell. This crash may also be related: wordpress-mobile/WordPress-FluxC-Android#1073 cc @0nko |
I can reproduce this crash by using a brand-new WordPress.com site with no views/visits. When I open Stats I can view the Insights tab without any trouble, but when I try to open a different stats tab (e.g. Days or Weeks) the app crashes. To reproduce:
|
Thanks for digging into this @rachelmcr! I have also been able to reproduce this with your steps. It did also crash for a (mostly unused) test site but thats not consistent. The cause seems to be that there is data missing for certain dates. @0nko I attached the debugger to see what is happening and I can see that |
I have fixed an API issue where invalid data (empty date) would be returned for new sites in D23272. This has fixed the crash. I can no longer reproduce it and it reports have stopped coming into Fabric. |
This seems to have reoccurred starting in 12.1-rc-2. It is alreadfy the most common crash in 12.1:
5ca00a44f8b88c29639d1adb-fabric @planarvoid if you think this is a different issue we can open a new one instead. |
Fixed in alpha-163 and 12.2-rc-2. Props @planarvoid. 🎉 |
This was introduced in 11.5-rc-1 and has already been reported in Fabric >500 times.
I don't have clear steps but it seems to be caused by
StatsDateFormatter.kt
attempting to parse an empty date:Unparseable date: ""
Here is the stacktrace:
Reference: 5c230708f8b88c296335ea8a-fabric
cc @jkmassel
The text was updated successfully, but these errors were encountered: