Closed
Bug 1049217
Opened 9 years ago
Closed 9 years ago
crash in java.lang.NoSuchMethodError: android.graphics.Bitmap.getByteCount at org.mozilla.gecko.preferences.LocaleListPreference$CharacterValidator.getPixels(LocaleListPreference.java)
Categories
(Firefox for Android Graveyard :: Locale switching and selection, defect)
Firefox for Android Graveyard
Locale switching and selection
All
Android
Tracking
(firefox31 unaffected, firefox32+ verified, firefox33+ verified, firefox34+ verified, fennec32+)
VERIFIED
FIXED
Firefox 34
People
(Reporter: kbrosnan, Assigned: rnewman)
References
Details
(Keywords: crash, regression)
Crash Data
Attachments
(2 files)
2.87 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
2.54 KB,
patch
|
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
[Tracking Requested - why for this release]: [Tracking Requested - why for this release]: [Tracking Requested - why for this release]: This bug was filed from the Socorro interface and is report bp-cfb1948e-16ef-47c2-8e86-737212140730. ============================================================= Crash on gingerbread devices doing local switching. java.lang.NoSuchMethodError: android.graphics.Bitmap.getByteCount at org.mozilla.gecko.preferences.LocaleListPreference$CharacterValidator.getPixels(LocaleListPreference.java:62) at org.mozilla.gecko.preferences.LocaleListPreference$CharacterValidator.<init>(LocaleListPreference.java:52) at org.mozilla.gecko.preferences.LocaleListPreference.<init>(LocaleListPreference.java:85) at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:415) at android.preference.GenericInflater.createItem(GenericInflater.java:383) at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:430) at android.preference.GenericInflater.rInflate(GenericInflater.java:481) at android.preference.GenericInflater.rInflate(GenericInflater.java:493) at android.preference.GenericInflater.inflate(GenericInflater.java:326) at android.preference.GenericInflater.inflate(GenericInflater.java:263) at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:251) at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:262) at org.mozilla.gecko.preferences.GeckoPreferences.onCreate(GeckoPreferences.java:338) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1632) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1684) at android.app.ActivityThread.access$1500(ActivityThread.java:124) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:948) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3717) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) at dalvik.system.NativeStart.main(Native Method) Device list: motorola XT621 samsung GT-I9070 samsung GT-I8160 GT-S6500D Amazon Kindle Fire samsung GT-I9100 samsung GT-P1000 TCT ALCATEL ONE TOUCH 4010A HTC HTC Desire HD A9191 samsung SPH-D710 Sony Ericsson ST25i motorola XT626 motorola XT910
Reporter | ||
Updated•9 years ago
|
Keywords: regression
Assignee | ||
Comment 2•9 years ago
|
||
This replaces the API-limited call with one that's safe anywhere, fixes a potential KitKat issue, and also handles a different theoretical problem.
Attachment #8468122 -
Flags: review?(margaret.leibovic)
Comment 3•9 years ago
|
||
Comment on attachment 8468122 [details] [diff] [review] Fix CharacterValidator for API levels below 12 Review of attachment 8468122 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8468122 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Whiteboard: [needs uplift]
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/6a84259b063f
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Target Milestone: --- → Firefox 34
Comment 5•9 years ago
|
||
Oops, build failure. Do you want to push a fix or backout? https://tbpl.mozilla.org/php/getParsedLog.php?id=45296039&tree=Fx-Team
Assignee | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/b79100849d42
Assignee | ||
Comment 7•9 years ago
|
||
The bustage was because we're building with outdated tools. We might have problems on KitKat devices until Bug 1042829 lands. I undid the KitKat-specific part of this patch and pushed a fix; when we uplift we need to merge those two. We should make builder tooling updates routine so that we're not constantly fighting this kind of nonsense. Thanks for your efforts, Wes!
Depends on: 1042829
Updated•9 years ago
|
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6a84259b063f https://hg.mozilla.org/mozilla-central/rev/b79100849d42
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 9•9 years ago
|
||
AppConstants.Versions doesn't exist on <34, so we'll need this.
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8468507 [details] [diff] [review] Patch for uplift. Approval Request Comment [Feature/regressing bug #]: Bug 1023451, which worked around an Android limitation in a v12+ way. [User impact if declined]: Crashes in locale picker on API 9-11. [Describe test coverage new/current, TBPL]: None. [Risks and why]: This is a straightforward substitution for the internal implementation of the later method. It also adds a minimal catch for another edge case. Low risk. [String/UUID change made/needed]: None.
Attachment #8468507 -
Flags: approval-mozilla-beta?
Attachment #8468507 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•9 years ago
|
tracking-fennec: ? → 32+
Updated•9 years ago
|
Attachment #8468507 -
Flags: approval-mozilla-beta?
Attachment #8468507 -
Flags: approval-mozilla-beta+
Attachment #8468507 -
Flags: approval-mozilla-aurora?
Attachment #8468507 -
Flags: approval-mozilla-aurora+
Comment 11•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/14507a52f09c https://hg.mozilla.org/releases/mozilla-beta/rev/fc7ce6481ea9
Comment 12•9 years ago
|
||
Verified as fixed on Builds: Firefox for Android 32 Firefox for Android 33 Firefox for Android 34 Beta 1 Device: Samsung Galaxy R (Android 2.3.4)
Status: RESOLVED → VERIFIED
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•