Skip to content
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

ANR problem when init Hawk #246

Open
5 of 7 tasks
superdiazzz opened this issue May 9, 2022 · 1 comment
Open
5 of 7 tasks

ANR problem when init Hawk #246

superdiazzz opened this issue May 9, 2022 · 1 comment

Comments

@superdiazzz
Copy link

superdiazzz commented May 9, 2022

Please try to fill all questions below before submitting an issue.

  • On which android versions do you have this issue? : android > 11
  • On which phones do you have this issue? : Samsung & vivo
  • Which hawk version are you using? : 2.0.1
  • Does this issue happen always or is it flaky? : yes
  • Can you write failing test? : It's hard to test since in my emulator everything looks normal.
  • If it is Hawk.put and Hawk.get issue, can you write down which data you were trying to save and get it back? : Issue only happened when device state in background. It's causing ANR and there is no user journey detecting in Crashlytics
  • Is the data you are trying to save it huge or small?

Log Error

main (runnable): tid=1 systid=31973 
       at com.google.gson.FieldNamingPolicy.<init>(FieldNamingPolicy.java)
       at com.google.gson.FieldNamingPolicy.<init>(FieldNamingPolicy.java)
       at com.google.gson.FieldNamingPolicy$1.<init>(FieldNamingPolicy.java)
       at com.google.gson.FieldNamingPolicy.<clinit>(FieldNamingPolicy.java)
       at com.google.gson.Gson.<init>(Gson.java)
       at com.orhanobut.hawk.HawkBuilder.getParser(HawkBuilder.java)
       at com.orhanobut.hawk.HawkBuilder.getConverter(HawkBuilder.java)
       at com.orhanobut.hawk.DefaultHawkFacade.<init>(DefaultHawkFacade.java)
       at com.orhanobut.hawk.Hawk.build(Hawk.java)
       at com.orhanobut.hawk.HawkBuilder.build(HawkBuilder.java)
       at com.tribunnews.app.TribunNewsApplication.onCreate(TribunNewsApplication.java)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7593)
       at android.app.ActivityThread.access$1500(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2177)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8653)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
@superdiazzz
Copy link
Author

please anyone can response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant