-
Notifications
You must be signed in to change notification settings - Fork 548
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
Number format exception Transfer Record #1461
Comments
Hi @sougandhmp , There may be a potential issue with how GSON de/serializes |
Hi @raphkim, |
Hi @raphkim , Is there something that can be done, other than adding "-keepclassmembers enum * { *; } " to pro-guard rules?.Please note the issue was not reported for fresh users. Further more, the issue seems to recur for specific users. Any help would be appreciated. |
Have you tried deleting "awss3transfertable.db"? If the issue is only recurring for some people, I think it may be possible for the database to be corrupted. |
I would suggest clearing the transfer database before moving forward. Once the database is corrupted, the issue will persist as long as the app continues to access it. |
@sougandhmp, did you try deleting the "awss3transfertable.db"? any updates on your end? @raphkim. I'm having the same issue and I'm not using obfuscation. Here's the stacktrace:
SDK Version: 2.16.5 Since I can't reproduce either, do you have some idea how this can be reproducible? Furthermore, about deleting the "awss3transfertable.db":
Thanks |
Hi @svanegas, No I couldn't verify the solution since I was not able to reproduce the crash. |
@TrekSoft, @desokroshan, @palpatim, @raphkim. Guys, I'm still facing this issue and it's becoming now a big deal in production. Could anyone please assign to corresponding person and reopen this ticket? Stack trace is above, and as I mentioned, occurs mostly on Samsung devices with Android 10. Could you please explain me how could I implement a workaround or solve this issue? Thanks |
Hi @svanegas , I apologize for pre-maturely closing the issue. It seems to me that most people that have experienced this issue were able to resolve their issue by deleting their in-memory transfer data "awss3transfertable.db". This is the database that stores all of the ongoing transfers in the app so that the information is not lost upon closing the app. This database can be deleted by using I will further investigate the issue to see what we can do to mitigate the corruption of database. |
@svanegas would you be able to check if you have |
@raphkim. Thank you for reply. Yes, I was getting ready to release soon a prod version that uses Do you think the deletion of the database every time app is opened would affect something else? What do you think could be done better? |
For future reference, Deleting the database in the |
@raphkim. Okay, so do you think a good strategy would be: Catch this exception, when this happens, delete database. It might be enough, right? |
While deleting database upon gson failure would be a good temporary workaround, I suggest that you verify the above solution first for a more permanent solution. With the temporary solution you've provided, a user experiencing this issue will inexplicably lose data on all of the ongoing/past transfers |
Thanks @raphkim. I already had this config, actually:
We will see how it behaves with database deletion workaround! |
Here is the full config that you should use when enabling proguard: Also |
After more than two year this issue is still happening sometimes. Is there any solution to prevent this happening? |
@raphkim |
I have faced an issue after updating aws SDK from 2.28.0 to 2.58.0
Update Aws SDK from 2.28.0 to 2.58.0 Refer to above conversation and following steps deleted by using Context#deleteDatabase(String) method so my question is that affect any other schema or internal app database or any change to crash end user or client app at production? |
I'm facing this issue.
So any of those workaround has fixed this particular issue ? |
And still no official answer |
@raphkim I'm still experiencing this issue once in a while for some production users and I can't even catch it to avoid crash and delete the database as it's suggested so I have no real solution. |
@buntupana We have reopened the issue and investigate further. |
@buntupana We have added the fix to prevent the crash in case of deserialization exception. Please update to the latest sdk version for the fix. |
Sharing the crash logs
AWS s3 transfer utility causes crash. Have seen similar bug
#1093 in which it was suggested to remove "awss3transfertable.db"which i have not tried. But I have tried updating to the latest version but still issues are reported..
Caused by java.lang.NumberFormatException
For input string: "ANY"
sun.misc.FloatingDecimal.readJavaFormatString (FloatingDecimal.java:2043)
sun.misc.FloatingDecimal.parseDouble (FloatingDecimal.java:110)
java.lang.Double.parseDouble (Double.java:538)
com.google.gson.stream.JsonReader.nextInt (JsonReader.java:186)
com.google.gson.internal.bind.TypeAdapters$7.a (TypeAdapters.java:13)
com.google.gson.internal.bind.TypeAdapters$7.read (TypeAdapters.java)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.a (ReflectiveTypeAdapterFactory.java:2)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.a (ReflectiveTypeAdapterFactory.java:47)
com.google.gson.Gson.a (Gson.java:20)
com.google.gson.Gson.a (Gson.java:4)
com.google.gson.Gson.a (Gson.java:9)
com.google.gson.Gson.assertFullConsumption (Gson.java)
com.amazonaws.mobileconnectors.s3.transferutility.TransferRecord.a (TransferRecord.java:422)
com.amazonaws.mobileconnectors.s3.transferutility.TransferDBUtil.getTransferById (TransferDBUtil.java:16)
com.amazonaws.mobileconnectors.s3.transferutility.TransferUtility.a (TransferUtility.java:20)
com.amazonaws.mobileconnectors.s3.transferutility.TransferUtility.a (TransferUtility.java:2)
com.amazonaws.mobileconnectors.s3.transferutility.TransferUtility.a (TransferUtility.java:23)
The text was updated successfully, but these errors were encountered: