crash in java.lang.AssertionError: couldn't initialize LocaleData for locale uz at libcore.icu.LocaleData.initLocaleData(LocaleData.java)

NEW
Unassigned

Status

()

Firefox for Android
Locale switching and selection
--
critical
3 years ago
2 years ago

People

(Reporter: aaronmt, Unassigned)

Tracking

({crash})

38 Branch
All
Android
crash
Points:
---

Firefox Tracking Flags

(firefox38 affected)

Details

(crash signature)

(Reporter)

Description

3 years ago
This bug was filed from the Socorro interface and is 
report bp-5148abc8-1b20-4c9a-b4d7-485d92150407.
=============================================================

java.lang.AssertionError: couldn't initialize LocaleData for locale uz
	at libcore.icu.LocaleData.initLocaleData(LocaleData.java:167)
	at libcore.icu.LocaleData.get(LocaleData.java:121)
	at java.util.Formatter.format(Formatter.java:1039)
	at java.util.Formatter.format(Formatter.java:1009)
	at java.lang.String.format(String.java:1988)
	at android.content.res.Resources.getString(Resources.java:384)
	at org.mozilla.gecko.home.SearchEngineRow.setDescriptionOnSuggestion(SearchEngineRow.java:127)
	at org.mozilla.gecko.home.SearchEngineRow.updateFromSearchEngine(SearchEngineRow.java:183)
	at org.mozilla.gecko.home.BrowserSearch$SearchAdapter.bindView(BrowserSearch.java:898)
	at org.mozilla.gecko.home.MultiTypeCursorAdapter.getView(MultiTypeCursorAdapter.java:62)
	at android.widget.AbsListView.obtainView(AbsListView.java:2207)
	at android.widget.ListView.makeAndAddView(ListView.java:1860)
	at android.widget.ListView.fillSpecific(ListView.java:1339)
	at android.widget.ListView.layoutChildren(ListView.java:1654)
	at android.widget.AbsListView.onLayout(AbsListView.java:2037)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1670)
	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1528)
	at android.widget.LinearLayout.onLayout(LinearLayout.java:1441)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:985)
	at org.mozilla.gecko.GeckoApp$MainLayout.onLayout(GeckoApp.java:2386)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:985)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1670)
	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1528)
	at android.widget.LinearLayout.onLayout(LinearLayout.java:1441)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
	at android.view.View.layout(View.java:14099)
	at android.view.ViewGroup.layout(ViewGroup.java:4464)
	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2183)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1947)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1139)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4879)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:776)
	at android.view.Choreographer.doCallbacks(Choreographer.java:579)
	at android.view.Choreographer.doFrame(Choreographer.java:548)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:762)
	at android.os.Handler.handleCallback(Handler.java:725)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:153)
	at android.app.ActivityThread.main(ActivityThread.java:5336)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at dalvik.system.NativeStart.main(Native Method)
Android 17 for those who can't be bothered to click through.

A quick diagnosis: this normally happens because a locale code is malformed. In this case, my guess is that `uz` isn't in Java's supported locale set in this particular distribution.
Blocks: 1134717
status-firefox38: --- → affected
Component: General → Locale switching and selection
Summary: crash in java.lang.AssertionError: couldn''t initialize LocaleData for locale uz at libcore.icu.LocaleData.initLocaleData(LocaleData.java) → crash in java.lang.AssertionError: couldn't initialize LocaleData for locale uz at libcore.icu.LocaleData.initLocaleData(LocaleData.java)
Indeed, `uz` is not a supported locale in Android 4.2's version of OpenJDK.

http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/util/LocaleDataMetaInfo.java#54

Neither do I see it in the current version (7u40) used by Lollipop.

http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/sun/util/LocaleDataMetaInfo.java#54


Did anyone test Uzbeki before landing it? If so, which devices did they try, and did they run a web search?
Flags: needinfo?(jbeatty)
I tested it on my Galaxy S4 running Android 4.4.2 as well as my Nexus 9 running 5.1 . Uzbek works perfectly well on both.

I think Akmal tested it as well, but I don't know the devices or systems.
Flags: needinfo?(jbeatty) → needinfo?(akmalxster)
To be clear: to reproduce this bug, you need to enable search suggestions for a provider (tap the offered bubble) and have a search return some suggestions. I expect the rest of the browser to work fine.

Comment 5

3 years ago
I had tested in on my Galaxy S duos (GT-S7562) with Android 4.0.4. Firefox works normally.
Flags: needinfo?(akmalxster)

Updated

2 years ago
Crash Signature: [@ java.lang.AssertionError: couldn''t initialize LocaleData for locale uz at libcore.icu.LocaleData.initLocaleData(LocaleData.java)] → [@ java.lang.AssertionError: couldn''t initialize LocaleData for locale uz at libcore.icu.LocaleData.initLocaleData(LocaleData.java)] [@ java.lang.AssertionError: couldn''t initialize LocaleData for locale uz at libcore.icu.LocaleData.initLocaleData]
You need to log in before you can comment on or make changes to this bug.