[Android] Crash on certain devices on custom tabs #9857
Labels
crash
OS/Android
Fixes related to Android browser functionality
QA Pass - Android ARM
QA Pass - Android Tab
QA Pass - Android x86
QA/Yes
release-notes/include
Milestone
Description
There is a crash on beta channel on 1.9.x related to Custom Tabs. Not sure how to describe that but certain devices crash while others don't. I had a device Samsung Galaxy S10+ that experienced that crash but only on release version. I verified everything on it while fixing in release mode.
2020-05-19 20:33:42.558 29508-29508/? W/System.err: java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at x20.a(PG:62) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at org.chromium.chrome.browser.preferences.website.BraveShieldsContentSettings.blockedEvent(PG:26) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at android.os.MessageQueue.next(MessageQueue.java:336) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at android.os.Looper.loop(Looper.java:197) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8016) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 2020-05-19 20:33:42.559 29508-29508/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076) 2020-05-19 20:33:42.560 29508-29508/? A/chromium: [FATAL:jni_android.cc(249)] Please include Java exception stack in crash report
Steps to reproduce
Actual result
the browser crashes
Expected result
Issue reproduces how often
On my problem device I can replicate it every time, other devices I couldn't
Issue happens on
Device details
Brave version
Website problems only
Additional information
The text was updated successfully, but these errors were encountered: