Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Crash in QuickSettingsSheetDialogFragment$onCreateView$1.invoke(QuickSettingsSheetDialogFragment.kt:1) #23256

Closed
Amejia481 opened this issue Jan 17, 2022 · 5 comments
Assignees
Labels
b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info 🐞 bug Crashes, Something isn't working, .. needs:triage Issue needs triage
Milestone

Comments

@Amejia481
Copy link
Contributor

Amejia481 commented Jan 17, 2022

Socorro
https://crash-stats.mozilla.org/signature/?product=Fenix&version=98.0a1&signature=java.lang.IllegalStateException%3A%20at%20androidx.fragment.app.Fragment.getParentFragmentManager%28Fragment.java%29&date=%3E%3D2022-01-10T18%3A50%3A00.000Z&date=%3C2022-01-17T18%3A50%3A00.000Z&_columns=date&_columns=product&_columns=version&_columns=build_id&_columns=platform&_columns=reason&_columns=address&_columns=install_time&_columns=startup_crash&_sort=-date&page=1

java.lang.IllegalStateException
	at androidx.fragment.app.Fragment.getParentFragmentManager(Fragment.java:2)
	at androidx.navigation.fragment.NavHostFragment.findNavController(NavHostFragment.java:3)
	at kotlin.jvm.internal.ArrayIteratorKt.findNavController(ArrayIterator.kt:1)
	at org.mozilla.fenix.settings.quicksettings.QuickSettingsSheetDialogFragment$onCreateView$1.invoke(QuickSettingsSheetDialogFragment.kt:1)
	at org.mozilla.fenix.settings.quicksettings.DefaultQuickSettingsController.handleClearSiteDataClicked(QuickSettingsController.kt:5)
	at org.mozilla.fenix.settings.quicksettings.QuickSettingsInteractor.onClearSiteDataClicked(QuickSettingsInteractor.kt:1)
	at org.mozilla.fenix.settings.quicksettings.ClearSiteDataView$$ExternalSyntheticLambda0.onClick(Unknown Source:4)
	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:3)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:280)
	at android.app.ActivityThread.main(ActivityThread.java:6710)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

┆Issue is synchronized with this Jira Task

@Amejia481 Amejia481 added 🐞 bug Crashes, Something isn't working, .. b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info labels Jan 17, 2022
@github-actions github-actions bot added the needs:triage Issue needs triage label Jan 17, 2022
@mcarare
Copy link
Contributor

mcarare commented Jan 18, 2022

@Amejia481 Is the quick settings sheet supposed to be dismissed after the cookies and site data have been cleared? I do not see any UX directions on that. If we do not dismiss it we might avoid some concurrency issue with the clear site data dialog being dismissed and find findNavController being called.

If it is supposed to be, we can try to pass an actual navController for the DefaultQuickSettingsController instead of passing the lambda to get one.

@Amejia481
Copy link
Contributor Author

@Amejia481 Is the quick settings sheet supposed to be dismissed after the cookies and site data have been cleared? I do not see any UX directions on that. If we do not dismiss it we might avoid some concurrency issue with the clear site data dialog being dismissed and find findNavController being called.

Yes, I think we should dismiss it. We can even dismiss it before opening the confirmation dialog.

@mcarare mcarare self-assigned this Jan 19, 2022
mcarare added a commit to mcarare/fenix that referenced this issue Jan 19, 2022
mcarare added a commit to mcarare/fenix that referenced this issue Jan 19, 2022
mcarare added a commit to mcarare/fenix that referenced this issue Jan 19, 2022
mcarare added a commit to mcarare/fenix that referenced this issue Jan 19, 2022
@mcarare
Copy link
Contributor

mcarare commented Jan 19, 2022

For QA: Not sure if QA could reproduce this (STR: just use the clear site feature), but the testing should include re-testing the clear site feature.

Also, the top crashing devices for this were:

  • samsung | SM-T395
  • OPPO | CPH1803

Ideally, QA should test on these devices.

@mcarare mcarare added the eng:qa:needed QA Needed label Jan 19, 2022
@SoftVision-LorandJanos
Copy link

I couldn’t reproduce the crash, using a Samsung Galaxy Tab S3 ( Android 9) and an Oppo Reno 6 with Android 11, as the closest to the devices mentioned.

@mcarare
Copy link
Contributor

mcarare commented Jan 20, 2022

Closing this as per the comment above.

@mcarare mcarare closed this as completed Jan 20, 2022
@Amejia481 Amejia481 added this to the 98 milestone Jan 20, 2022
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Mar 9, 2022
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info 🐞 bug Crashes, Something isn't working, .. needs:triage Issue needs triage
Projects
None yet
Development

No branches or pull requests

3 participants