Closed Bug 1431504 Opened 6 years ago Closed 3 years ago

Crash when setting default browser in latest beta: [@ java.lang.SecurityException: at android.os.Parcel.readException(Parcel.java) ]

Categories

(Firefox for Android Graveyard :: Settings and Preferences, defect, P3)

58 Branch
All
Android
defect

Tracking

(firefox-esr52 unaffected, firefox57 wontfix, firefox58 affected, firefox59 affected)

RESOLVED INCOMPLETE
Tracking Status
firefox-esr52 --- unaffected
firefox57 --- wontfix
firefox58 --- affected
firefox59 --- affected

People

(Reporter: semtex2, Unassigned)

Details

Crash Data

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0.3 Waterfox/56.0.3
Build ID: 20180111233241

Steps to reproduce:

Install latest beta from Play Store go to settings.
Hit "set as default browser".
This could be hardware specific problem (OnePlus 5T) 


Actual results:

Firefox will crash, 100% reproducible.
Crash sig: https://crash-stats.mozilla.com/report/index/b5147022-0d58-45d7-b80d-204b80180118#details
Other reports: https://crash-stats.mozilla.com/signature/?product=FennecAndroid&signature=java.lang.SecurityException%3A%20at%20android.os.Parcel.readException%28Parcel.java%29#comments
Status: UNCONFIRMED → NEW
Crash Signature: [@ java.lang.SecurityException: at android.os.Parcel.readException(Parcel.java)]
Component: General → Settings and Preferences
Ever confirmed: true
OS: Unspecified → Android
Hardware: Unspecified → All
Seems as if this affects a wide spectrum of hardware - we should try to see if we can reproduce. Right now this is small volume on 58 but will likely increase when we go live. 57.0.4 has 1186 crashes/739 installs. 

ni on Bogdan to try to reproduce.
Flags: needinfo?(bogdan.surd)
Hello,

@Semtex could you provide me with more information please.

(In reply to Semtex from comment #0)
> Hit "set as default browser".

Was there a banner/pop-up displayed that asked you to set FF as the default browser? Or did you set it from another app or from settings?

Thanks!
Flags: needinfo?(semtex2)
NI-ing Nevin as well since I think this could be related to LeanPlum from the description in Comment 0. When testing the Feature we didn't have a OnePlus 5T so it might be device specific since we didn't have any kind of crash on our end on the devices we tested.
Flags: needinfo?(cnevinchen)
(In reply to Bogdan Surd, QA [:BogdanS, NI] from comment #2)
> Hello,
> 
> @Semtex could you provide me with more information please.
> 
> (In reply to Semtex from comment #0)
> > Hit "set as default browser".
> 
> Was there a banner/pop-up displayed that asked you to set FF as the default
> browser? Or did you set it from another app or from settings?
> 
> Thanks!

No, I just did some tests inside Firefox settings, so it was like described in OP. No special banner or something.
Flags: needinfo?(semtex2)
Yes, this look like OnePlus 5T problem, when You look in to other crashes from last week (link in OP) You can see most OnePlus 5T as hardware.
In beta, from crash-stats, is happening on a few devices beyond the OnePlus:

*Pixel XL
*Several Samsung devices.

See http://bit.ly/2EVUyXN
Thanks for the report!
Could you please describe more detail about how to reproduce it?

e.g. Go to settings -> Set as the default browser?

Hi Wesly 
Please help check this.
Flags: needinfo?(wehuang)
Flags: needinfo?(semtex2)
btw, I believe it's not related to Leanplum cause we already have "Set as default browser" feature in Fennec. Unless this bug is triggered by clicking the dialog by Leanplum.
(In reply to Nevin Chen [:nechen] from comment #7)

> e.g. Go to settings -> Set as the default browser?
Open Browser -> Hit 3 dots on left side -> "Settings" in dropdown menu -> Set As Default Browser (names can be different since  I use Polish locale)
Flags: needinfo?(semtex2)
Devices:
 - Google Pixel (Android 8.1.0);
 - Nexus 5 (Android 6.0.1);
 - Samsung Galaxy Note 4 (Android 5.0.1);
 - OnePlus Two (Android 6.0.1);
 - Nexus 6P (Android 8.0.0);
 - Samsung Galaxy S8 (Android 7).
Builds:
 - Nightly (2018-01-21);
 - Beta (58.0b17);
 - Release (58 build 2);

Hello,

 Thank you for the clarification, tried with several different devices. As per Comment 9 names can differ mine was "Make default browser".
 None of the devices I've tried reproducing this have crashed, only had the OnePlus Two on hand here but seemed to work fine on that one as well. So this indeed seems to be limited to specific devices.
 Tried installing the Polish build on some devices but everything worked fine with that one as well.

Could you maybe get a log from your device?
Flags: needinfo?(semtex2)
If You lead me with instructions, then Yes, I can do log for You.
Flags: needinfo?(semtex2)
Sure,

1. Enable USB Debugging on your phone (Developer options>Tick/slide the USB Debugging option). To do this you will need to first enable developer settings on your device, to do this go into Settings>About phone and then locate and tap on Build number until a message appears displaying that developer options have been enabled.

2. Download the Android SDK Tools from here https://goo.gl/4MNPGx and extract them anywhere on your computer.

3. In the folder open the monitor.bat, this will open up the Android Device Monitor.

4. After you connect your device to your computer you should see it displayed in the list of devices, select it and perform the steps you usually do to reach the crash. After that please save the log using the save icon displayed in the right of the program window http://prntscr.com/i3vmw3.

Thank you!
Flags: needinfo?(bogdan.surd) → needinfo?(semtex2)
ATM I'm not able to run monitor, JAVA present, when I start software then it is present in task manager but no visible window. Maybe You can give me some advice, but I've also posted on MozillaZine Forum link to this bug.
Flags: needinfo?(semtex2)
Hello, the window takes a while to appear usually. Give it a couple of minutes. Or let me know what kind of error you're getting and maybe I can try to help you out.
Flags: needinfo?(cnevinchen)
Sorry, I'm not able to run this tools, simple nothing happen, no error, no monitor window, just nothing. I like to help to track this bug, but I can't waste so much time for it, is there any other way to log this crash?
Hello,

You could try installing Android Studio and trying to run the tool from there. Maybe it will work if you do it that way.
The tool is found under Tools > Android > Android Device Monitor.
Android Studio can be downloaded from here: https://developer.android.com/studio/index.html

Thanks!
Hello, today OnePlus send OTA to Oreo, after update I'm not able to crash Beta with STR from Comment 0.
[triage] Not in our top 50 crashers; reporter can't reproduce with update, seems device specific: non-critical.
Flags: needinfo?(wehuang)
Priority: -- → P3
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.