App crashes on switching between contribution tab and nearby tab fastly
See original GitHub issueSummary:
On denying permission the dialog box pops out. Denying frequently and at the same time switching between contribution tab and nearby tab fastly causes crash.
Steps to reproduce:
System logs:
Caused by: java.lang.IllegalStateException: Fragment ContributionsFragment{aa806c3} (8bfccd01-026a-4dec-9538-d1188d1ae72f)} not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:805)
at androidx.fragment.app.Fragment.getResources(Fragment.java:869)
at fr.free.nrw.commons.contributions.ContributionsFragment.displayYouWontSeeNearbyMessage(ContributionsFragment.java:485)
at fr.free.nrw.commons.contributions.ContributionsFragment.lambda$wbj1_b0L0YSojQ4fpcfFc5i9Xp4(Unknown Source:0)
at fr.free.nrw.commons.contributions.-$$Lambda$ContributionsFragment$wbj1_b0L0YSojQ4fpcfFc5i9Xp4.run(Unknown Source:2)
at fr.free.nrw.commons.utils.PermissionUtils$1.onPermissionDenied(PermissionUtils.java:125)
at com.karumi.dexter.MultiplePermissionsListenerToPermissionListenerAdapter.onPermissionsChecked(Unknown Source:23)
at com.karumi.dexter.MultiplePermissionListenerThreadDecorator$1.run(Unknown Source:8)
at com.karumi.dexter.MainThread.execute(Unknown Source:6)
at com.karumi.dexter.MultiplePermissionListenerThreadDecorator.onPermissionsChecked(Unknown Source:7)
at com.karumi.dexter.DexterInstance.onPermissionsChecked(Unknown Source:57)
at com.karumi.dexter.DexterInstance.updatePermissionsAsDenied(Unknown Source:36)
at com.karumi.dexter.DexterInstance.onPermissionRequestDenied(Unknown Source:0)
at com.karumi.dexter.Dexter.onPermissionsRequested(Unknown Source:9)
at com.karumi.dexter.DexterActivity.onRequestPermissionsResult(Unknown Source:51)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:8408)
at android.app.Activity.dispatchActivityResult(Activity.java:8253)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4953)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5001)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2047)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Device and Android version: Redmi Note 7S and Android 10.
Commons app version: 3.0.0-debug-master.
Would you like to work on the issue? Yes, I would like to work on this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
App crashes when switching between Sliding Tabs by clicking ...
App crashes when switching between Sliding Tabs by clicking the tabs (not swiping) ; loadScreen(HistoryFragment.java ; 69) at sleeping_vityaz.
Read more >while switching between top bar fastly app crashed in iOS
Current behavior Using @react-navigation/material-top-tabs app getting crashed in iOS. while switching fast between tabs.
Read more >Why Do My Apps Keep Crashing on Android? - Avast
Another simple app crash fixer is to turn off Wi-Fi and force the app to switch to data. But, be careful to monitor...
Read more >About iOS 16 Updates - Apple Support
Camera may be slow to launch or switch between modes on iPhone 14 Pro and iPhone 14 Pro Max; Mail crashes on launch...
Read more >Freezing of AutoCAD when switching between model or ...
Switching between the layout tabs and model tab. The program hangs for a long time, or freezes and does not recover. Solution: Do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! Understood, I will try more 😃
I will close this for now, but if anyone manages to reproduce on the latest version, please reopen, thanks!