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

Crash in Retention Notification #28317

Closed
SergeyZhukovsky opened this issue Feb 6, 2023 · 1 comment · Fixed by brave/brave-core#17158
Closed

Crash in Retention Notification #28317

SergeyZhukovsky opened this issue Feb 6, 2023 · 1 comment · Fixed by brave/brave-core#17158
Assignees
Labels
crash OS/Android Fixes related to Android browser functionality priority/P2 A bad problem. We might uplift this to the next planned release. QA/No release-notes/include

Comments

@SergeyZhukovsky
Copy link
Member

I found that in GPS for 1.49.81 version. We should fix and uplift to an appropriate channel. I think that we have some parts that are no initialized yet on such early stage and we better catch all exception and ignore as to me. In that case we will not show a retention notification and won't crash. The catch should be done in that place in my opinion https://github.com/brave/brave-core/blob/1.49.x/android/java/org/chromium/chrome/browser/notifications/retention/RetentionNotificationPublisher.java#L155

Crash stack:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3202)
  at android.app.ActivityThread.-wrap18 (ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1664)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:156)
  at android.app.ActivityThread.main (ActivityThread.java:6623)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:942)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:832)
Caused by java.lang.RuntimeException:
  at org.chromium.chrome.browser.preferences.ChromePreferenceKeyChecker.checkIsKeyInUse (ChromePreferenceKeyChecker.java:69)
  at org.chromium.chrome.browser.preferences.SharedPreferencesManager.readBoolean (SharedPreferencesManager.java:536)
  at org.chromium.chrome.browser.set_default_browser.BraveSetDefaultBrowserUtils.isBraveDefaultDontAsk (BraveSetDefaultBrowserUtils.java:222)
  at org.chromium.chrome.browser.notifications.retention.RetentionNotificationPublisher.onReceive (RetentionNotificationPublisher.java:109)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3192)
@kjozwiak
Copy link
Member

The above requires 1.49.100 or higher for 1.49.x verification 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash OS/Android Fixes related to Android browser functionality priority/P2 A bad problem. We might uplift this to the next planned release. QA/No release-notes/include
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants