Bromite: LocationBarPhone app crash at startup

Created on 13 May 2020  路  68Comments  路  Source: bromite/bromite

Bromite version

Version: 83.0.4103.46
Arch: arm
Android version: 9.0
Device model: redmi 7a

Is this bug about the SystemWebView?

No

Is the bug reproducible with latest version?

Yes

Can the bug be reproduced with corresponding Chromium version?

No

Is the bug a crash?

Yes

Describe the bug

Steps to reproduce the bug

Steps to reproduce the bug:
"Opening the app causes a crash, same as @Pentaphon"

Expected behavior

It just opens

Screenshots

bug help wanted

Most helpful comment

Fixed in 83.0.4103.76.

All 68 comments

+1

Bromite version

Version: v83.0.4103.46
ARM64
Android version: 8.1.0
Device model: Nexus 5X
Is this bug about the SystemWebView?

No

Is the bug reproducible with latest version?

Yes

Can the bug be reproduced with corresponding Chromium version?

No

Is the bug a crash?

Yes

Describe the bug

Tap on Bromite application
Application attempts to open
crashes
get dialogue saying app crashed

Expected behaviour

It opens with no crash

Additional Information
Opening the app causes it to crash roughly 9 out of 10 or 14 out of 15 times. Very rarely does it start up properly.

Bug is reproducible, and app (bromite) basically unusable. Will have to roll back until fixed

Came here to post this so I confirm, but my behavior is different.

I have to start the app twice to get it to run. It crashes to homescreen the first time, then opens up just fine the second time.

v83.0.4103.46
Android 9. Moto G7 Stock rom.

Version: 83.0...

@MGislv please fill in the version.

Can you post the crash dump via adb logcat? @mcmurphy8097234789 @Pentaphon you also need to check if you have the same crash.

I noticed a crash about org.chromium.chrome.browser.omnibox.LocationBarPhone but it seemed to disappear after reinstalling the app (no need to clear data).

@uazo @nikolowry @wchen342 if you experience this crash, any idea what could be the cause?

I don't know whether it's the same problem as there's no log but since .122 my version will crash when closing and returning from an incognito tab to a normal tab. Haven't found the cause yet.

@csagan5
I am not too knowledgable on debugging so please forgive me if this is too verbose, or if its not exactly what you want. I used the adb logcat command exactly like that, and proceeded to open (and crash) the app. I then attempted to collect whatever was logged.

https://privatebin.net/?aee7cde0dcbac9a5#6fMZpm3Y5AoScSY76LGkJj3fEtqwGDmM52vaHW7oMKjU

Make sure to download a copy if you need to further debug, as this paste will expire 23 hours from this writing

I'll report back after I do a build today

@mcmurphy8097234789 you need to find the lines of the crash and post them here

I don't know whether it's the same problem as there's no log but since .122 my version will crash when closing and returning from an incognito tab to a normal tab. Haven't found the cause yet.

@wchen342 unlikely. There must be a crash log any time you get the message "This app keeps stopping"

bromite.log
@csagan5 I can't find the line of the crash, it's so verbose..

@mcmurphy8097234789 you need to find the lines of the crash and post them here

No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
05-13 07:16:06.814  8441  8441 D AndroidRuntime: Shutting down VM
05-13 07:16:06.815  8441  8441 E AndroidRuntime: FATAL EXCEPTION: main
05-13 07:16:06.815  8441  8441 E AndroidRuntime: Process: org.bromite.bromite, PID: 8441
05-13 07:16:06.815  8441  8441 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.app.ActivityThread.-wrap11(Unknown Source:0)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6494)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
05-13 07:16:06.815  8441  8441 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
05-13 07:16:06.815  8441  8441 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-13 07:16:06.815  8441  8441 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-13 07:16:06.815  8441  8441 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException

Later we get another line 05-13 07:16:06.815 8441 8441 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)

Thats as far as I can tell. It seems to mention that locationbarphone thing you mentioned earlier

To be clear, re-installing the app does not appear to fix the error

I've downloaded and installed the latest release from bromite.org and had no issues on my Essential PH-1 (arm64) running on LineageOS 16 with MicroG.

Edit: Local arm64 build is working as expected for me.


Sidebar: @csagan5 Automated-domain-substitutions.patch can't be applied due to following failures. I ended up using ungoogled's tool directly and am starting a build now.

patching file chrome/browser/ui/android/strings/android_chrome_strings.grd
Hunk #8 succeeded at 1483 (offset 3 lines).
Hunk #9 succeeded at 1497 (offset 3 lines).
Hunk #10 FAILED at 1547.
Hunk #11 succeeded at 1590 (offset 12 lines).
Hunk #12 succeeded at 1738 (offset 12 lines).
Hunk #13 succeeded at 1783 (offset 12 lines).
Hunk #14 succeeded at 1978 (offset 12 lines).
Hunk #15 succeeded at 2240 (offset 12 lines).
Hunk #16 succeeded at 2249 (offset 12 lines).
Hunk #17 succeeded at 3203 (offset 15 lines).
Hunk #18 succeeded at 3215 (offset 15 lines).
Hunk #19 succeeded at 3415 (offset 15 lines).
Hunk #20 succeeded at 3464 (offset 15 lines).
Hunk #21 succeeded at 3768 (offset 15 lines).
1 out of 21 hunks FAILED -- saving rejects to file chrome/browser/ui/android/strings/android_chrome_strings.grd.rej
patching file components/ntp_tiles/resources/default_popular_sites.json
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file components/ntp_tiles/resources/default_popular_sites.json.rej
patching file components/offline_pages/core/prefetch/prefetch_proto_utils.cc
patching file components/offline_pages/core/prefetch/prefetch_server_urls.cc
patching file components/omnibox/browser/document_provider.cc
Hunk #3 succeeded at 946 (offset -3 lines).
Hunk #4 succeeded at 957 (offset -3 lines).
Hunk #5 succeeded at 974 (offset -3 lines).
patching file components/policy/resources/policy_templates.json
Hunk #372 FAILED at 19862.
1 out of 386 hunks FAILED -- saving rejects to file components/policy/resources/policy_templates.json.rej

I have a fix for this bug which will be released with next version; meanwhile you can fetch the fixed version from this pre-release: https://github.com/bromite/bromite/releases/tag/83.0.4103.53

Automated-domain-substitutions.patch can't be applied due to following failures.

Yes, my bad - it should work on top of 83.0.4103.53

I can't find the line of the crash, it's so verbose..

--------- beginning of crash
05-13 20:26:26.104 10195 10195 E AndroidRuntime: FATAL EXCEPTION: main
05-13 20:26:26.104 10195 10195 E AndroidRuntime: Process: org.bromite.bromite, PID: 10195
05-13 20:26:26.104 10195 10195 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2984)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:201)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6861)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
05-13 20:26:26.104 10195 10195 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-13 20:26:26.104 10195 10195 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-13 20:26:26.104 10195 10195 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance0(Native Method)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.createView(LayoutInflater.java:651)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.rInflate(LayoutInflater.java:867)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.view.ViewStub.inflate(ViewStub.java:302)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.c(chromium-ChromeModernPublic.apk-stable-1588901141:5)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.E0(chromium-ChromeModernPublic.apk-stable-1588901141:15)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.t0(chromium-ChromeModernPublic.apk-stable-1588901141:28)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at c40.B(chromium-ChromeModernPublic.apk-stable-1588901141:4)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at y40.d(chromium-ChromeModernPublic.apk-stable-1588901141:11)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at c40.onCreate(chromium-ChromeModernPublic.apk-stable-1588901141:26)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:7232)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:7221)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2964)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:201)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6861)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
05-13 20:26:26.104 10195 10195 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at J.N.M09VlOh_(Native Method)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at dk0.<init>(chromium-ChromeModernPublic.apk-stable-1588901141:11)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-1588901141:14)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1588901141:1)
05-13 20:26:26.104 10195 10195 E AndroidRuntime:    ... 32 more

@MGislv you have the issue reported here, same as others.

Local arm64 build is working as expected for me.

@nikolowry not crashing also after closing the app? By the way, thanks for testing!

Just came here say I am facing the same issue on my Realme X (Color OS7) when using the latest Bromite. For me, I have to launch the app twice 9 out of 10 times in order to open it. First time opening crashes. It happens on homescreen as well as on app drawer. I thought the issue was on my device software. Switched back to v81.0.4044.127 for the time being.
Thank you.

@TheSoulKeeper which is the "latest" version you tested?

As a quick fix, clearing "Unimportant storage" fixed the crashes in my case.

I.E. Bromite app details > Storage > Clear Storage > Free up space

not crashing also after closing the app?

@csagan5 didn't experience any crashes

As a quick fix, clearing "Unimportant storage" fixed the crashes in my case.

I.E. Bromite app details > Storage > Clear Storage > Free up space

This works for me!
Temporary 馃槖

I was facing the same issue and seeing the same logcat output as posted here. I confirm that the pre-release version fixed it for me. Thanks, @csagan5.

EDIT: ok, it's still not fixed. When I kill Bromite, then it won't start when trying to start it from the app drawer on homescreen. It opens though when I open a link from another app (e.g. when clicking on Source of Bromite in Aurora Droid). When crashing I see this logcat error:

E/bromite.bromit( 4021): No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
D/AndroidRuntime( 4021): Shutting down VM
E/AndroidRuntime( 4021): FATAL EXCEPTION: main
E/AndroidRuntime( 4021): Process: org.bromite.bromite, PID: 4021
E/AndroidRuntime( 4021): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
E/AndroidRuntime( 4021):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
E/AndroidRuntime( 4021):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
E/AndroidRuntime( 4021):    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
E/AndroidRuntime( 4021):    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime( 4021):    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime( 4021):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
E/AndroidRuntime( 4021):    at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 4021):    at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime( 4021):    at android.app.ActivityThread.main(ActivityThread.java:6718)
E/AndroidRuntime( 4021):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 4021):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E/AndroidRuntime( 4021):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime( 4021): Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
E/AndroidRuntime( 4021): Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
E/AndroidRuntime( 4021): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 4021):    at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 4021):    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.createView(LayoutInflater.java:647)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
E/AndroidRuntime( 4021):    at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
E/AndroidRuntime( 4021):    at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
E/AndroidRuntime( 4021):    at android.view.ViewStub.inflate(ViewStub.java:302)
E/AndroidRuntime( 4021):    at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.c(chromium-ChromeModernPublic.apk-stable-1589243921:5)
E/AndroidRuntime( 4021):    at org.chromium.chrome.browser.ChromeActivity.E0(chromium-ChromeModernPublic.apk-stable-1589243921:15)
E/AndroidRuntime( 4021):    at org.chromium.chrome.browser.ChromeActivity.t0(chromium-ChromeModernPublic.apk-stable-1589243921:28)
E/AndroidRuntime( 4021):    at c40.B(chromium-ChromeModernPublic.apk-stable-1589243921:4)
E/AndroidRuntime( 4021):    at y40.d(chromium-ChromeModernPublic.apk-stable-1589243921:11)
E/AndroidRuntime( 4021):    at c40.onCreate(chromium-ChromeModernPublic.apk-stable-1589243921:26)
E/AndroidRuntime( 4021):    at android.app.Activity.performCreate(Activity.java:7144)
E/AndroidRuntime( 4021):    at android.app.Activity.performCreate(Activity.java:7135)
E/AndroidRuntime( 4021):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
E/AndroidRuntime( 4021):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
E/AndroidRuntime( 4021):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
E/AndroidRuntime( 4021):    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
E/AndroidRuntime( 4021):    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime( 4021):    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime( 4021):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
E/AndroidRuntime( 4021):    at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 4021):    at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime( 4021):    at android.app.ActivityThread.main(ActivityThread.java:6718)
E/AndroidRuntime( 4021):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 4021):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E/AndroidRuntime( 4021):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime( 4021): Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
E/AndroidRuntime( 4021):    at J.N.M09VlOh_(Native Method)
E/AndroidRuntime( 4021):    at ck0.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:11)
E/AndroidRuntime( 4021):    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:14)
E/AndroidRuntime( 4021):    at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:1)
E/AndroidRuntime( 4021):    ... 32 more

Bromite version
Version: 83.0.4103.53
Arch: arm64
Android version: 9.0 (Lineage 16.0)
Device model: Lenovo P2

I have a fix for this bug which will be released with next version; meanwhile you can fetch the fixed version from this pre-release: https://github.com/bromite/bromite/releases/tag/83.0.4103.53

That pre-release .53 crash exactly like the old one to me.
Huawei P20 Pro, Android 9

I have a fix for this bug which will be released with next version; meanwhile you can fetch the fixed version from this pre-release: https://github.com/bromite/bromite/releases/tag/83.0.4103.53

That pre-release .53 crash exactly like the old one to me.
Huawei P20 Pro, Android 9

.53 also still crashes for me on cm-14.1 branch (lineage). I also tried clearing storage and that did not help either.

--------- beginning of crash
05-14 22:57:56.988  5678  5678 E AndroidRuntime: FATAL EXCEPTION: main
05-14 22:57:56.988  5678  5678 E AndroidRuntime: Process: org.bromite.bromite, PID: 5678
05-14 22:57:56.988  5678  5678 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #55: Binary XML file line #55: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarTablet
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2684)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2751)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.-wrap12(ActivityThread.java)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:154)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6186)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
05-14 22:57:56.988  5678  5678 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #55: Binary XML file line #55: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarTablet
05-14 22:57:56.988  5678  5678 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #55: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarTablet
05-14 22:57:56.988  5678  5678 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance0(Native Method)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.createView(LayoutInflater.java:645)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.view.ViewStub.inflate(ViewStub.java:259)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.c(chromium-ChromeModernPublic.apk-stable-1589243921:5)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.E0(chromium-ChromeModernPublic.apk-stable-1589243921:15)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.t0(chromium-ChromeModernPublic.apk-stable-1589243921:28)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at c40.B(chromium-ChromeModernPublic.apk-stable-1589243921:4)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at y40.d(chromium-ChromeModernPublic.apk-stable-1589243921:11)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at c40.onCreate(chromium-ChromeModernPublic.apk-stable-1589243921:26)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:6684)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2637)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2751)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.-wrap12(ActivityThread.java)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:154)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6186)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
05-14 22:57:56.988  5678  5678 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at J.N.M09VlOh_(Native Method)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at ck0.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:11)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:14)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    at org.chromium.chrome.browser.omnibox.LocationBarTablet.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:2)
05-14 22:57:56.988  5678  5678 E AndroidRuntime:    ... 30 more

Tested the latest pre release version and even this one crashes some times and I need to relaunch it again in order to open,

@TheSoulKeeper which is the "latest" version you tested?

Hi, I was talking about the latest release and pre release both.

@TheSoulKeeper you need to post the log of your crash.

@syphyr in your case it's a different crash, LocationBarTablet. Another fix might be needed for that.

I'm able to replicate on 83.0.4103.53 with the patch set currently on master. Clearing storage is working as a temporary fix.

FATAL EXCEPTION: main
Process: org.chromium.chrome, PID: 4675
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6718)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
    at android.view.LayoutInflater.createView(LayoutInflater.java:647)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
    at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
    at android.view.ViewStub.inflate(ViewStub.java:302)
    at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.c(chromium-ChromeModernPublic.apk-stable-410304615:5)
    at org.chromium.chrome.browser.ChromeActivity.E0(chromium-ChromeModernPublic.apk-stable-410304615:15)
    at org.chromium.chrome.browser.ChromeActivity.t0(chromium-ChromeModernPublic.apk-stable-410304615:28)
    at c40.B(chromium-ChromeModernPublic.apk-stable-410304615:4)
    at y40.d(chromium-ChromeModernPublic.apk-stable-410304615:11)
    at c40.onCreate(chromium-ChromeModernPublic.apk-stable-410304615:26)
    at android.app.Activity.performCreate(Activity.java:7144)
    at android.app.Activity.performCreate(Activity.java:7135)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6718)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Unable to instantiate appComponentFactory
java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.CoreComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/org.chromium.chrome-kF7UV2F_aGopIGGikUhc6g==/lib/arm64, /data/app/org.chromium.chrome-kF7UV2F_aGopIGGikUhc6g==/base.apk!/lib/arm64-v8a, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    at android.app.LoadedApk.createAppFactory(LoadedApk.java:226)
    at android.app.LoadedApk.updateApplicationInfo(LoadedApk.java:338)
    at android.app.ActivityThread.handleApplicationInfoChanged(ActivityThread.java:5219)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1805)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6718)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Count me in as well! Here is my device's info, the rest are identical to the ones described above.

Bromite version

Version: 83.0.4103.46
Arch: arm64
Android version: 9.0
Device model: Nokia 5 TA-1024

Hi reporting the same issue. Works fine for a while then starts crashing over & over. If I reinstall the APK (without uninstalling) everything works again except for random crash here & there; until it stops working again entirely.

Bromite version
Version: v83.0.4103.53
Arch: arm64
Android version: 9.0
Device model: OnePlus 5t

I have released 83.0.4103.53 that mitigates this issue, although it's still there (happening less frequently) together with the tablet-related one.

@nikolowry you have Unable to instantiate appComponentFactory instead of java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2). Do you ever see that one? Are these the same error? I will need to demangle those names to find out the root cause.

@csagan5 yep, forgot to copy that one:

Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
    at J.N.M09VlOh_(Native Method)
    at dk0.<init>(chromium-ChromeModernPublic.apk-stable-410304615:11)
    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-410304615:14)
    at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-410304615:1)
    ... 32 more

The appComponentFactory was thrown after my trying to start Chromium. The launcher threw this fatal exception:

FATAL EXCEPTION: main
Process: launcher.libre.dev:bugReport, PID: 13437
java.lang.RuntimeException: Initializing LauncherAppState in the absence of LauncherProvider
    at com.android.launcher3.LauncherAppState.<init>(LauncherAppState.java:86)
    at com.android.launcher3.LauncherAppState.getInstance(LauncherAppState.java:58)
    at ch.deletescape.lawnchair.LawnchairLauncher$Companion.getLauncher(LawnchairLauncher.kt:500)
    at ch.deletescape.lawnchair.LawnchairPreferences.restartOverlay(LawnchairPreferences.kt:641)
    at ch.deletescape.lawnchair.LawnchairApp.invoke(LawnchairApp.kt:50)
    at ch.deletescape.lawnchair.LawnchairApp.invoke(LawnchairApp.kt:48)
    at ch.deletescape.lawnchair.theme.ThemeManager.updateTheme(ThemeManager.kt:182)
    at ch.deletescape.lawnchair.theme.ThemeManager.setUsingNightMode(ThemeManager.kt:64)
    at ch.deletescape.lawnchair.theme.ThemeManager.updateNightMode(ThemeManager.kt:230)
    at ch.deletescape.lawnchair.LawnchairApp.onConfigurationChanged(LawnchairApp.kt:125)
    at android.app.ActivityThread.performConfigurationChanged(ActivityThread.java:4981)
    at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:5180)
    at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:5104)
    at android.app.servertransaction.ConfigurationChangeItem.execute(ConfigurationChangeItem.java:42)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6718)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Just rebuilt with Workaround-for-startup-crash.patch and the app is now opening at a 95% success rate for me (19/20). When it did crash on my 4th attempt, the subsequent launch (5th attempt) was successful and did not require clearing temporary storage


Edit: @csagan5 the 81.0.4103.53 release did not include the two latest commits

Edit: @csagan5 the 81.0.4103.53 release did not include the two latest commits

Yes, the tag was created earlier for the pre-release. I fixed it.

Just recently downloaded the latest version. I still had issues the same as they mentioned. When opening the app the success rate of opening it is 6/10. On the bromite "widget" it crashes when opening that i had to manage storage to successfully open the app.

Bromite version
Version: 83.0.4103.53
Arch: arm & arm64
Android version: 8.1 & 9.0
Device model: Samsung J7 2016 & Samsung S7 Edge

Just recently downloaded the latest version. I still had issues the same as they mentioned. When opening the app the success rate of opening it is 6/10. On the bromite "widget" it crashes when opening that i had to manage storage to successfully open the app.

I'm having the same issue as well. The widget makes bromite crash and I have to reinstall bromite or else it won't open.

Bromite Version: 83.0.4103.53
Arch: arm/arm64
Android version: 9.0 (MIUI11)
Device Model: Redmi Note 7 Global

How to reproduce:
IDK if it will happen to other device but it happens constantly on mine.
1) Install bromite
2) Place the search bar widget of bromite to your homescreen
3) Click the widget
4) Screen blinks (Quick black screen then back to homescreen like nothing happened)
5) Clicking the widget again or opening the app makes bromite crash

@csagan5 @nikolowry @wchen342
I downloaded and ran the pre-release. After an initial crash, everything went swimmingly for a day. Now, it is back to crashing repeatedly.

Bromite version
v83.0.4103.53

Device Information
Arch: arm64
Android version: 8.1
Device model: Nexus 5X
OS: Lineage 15.1, NOT rooted

Is this bug about the SystemWebView?
No

Is the bug reproducible with latest version?
Yes

Can the bug be reproduced with corresponding Chromium version?
No. The Chromium from the csagan5 repo on FDroid opened repeatedly without incident

Is the bug a crash?
Yes

Describe the bug
Tapping on the Bromite icon results in the app failing to load and crashing.
Rebooting the phone does not fix the crashing behaviour
Forcing process to terminate, clearing data and storage, seems to have mixed results. Sometimes it results in a few succesful boots, but crashing behaviour quickly resumes. Other times, terminating the process and clearing data/storage does not appear to affect crashing behaviour (consistent crashing is the result)

Expected behaviour
It just opens without incident

Additional Information
There appears to be an issue with a boolean according to the error log
05-16 01:16:13.601 12601 12601 E zygote64: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)

Additionally, the aforementioned issue regarding the LocationBar is mentioned
05-16 01:16:13.603 12601 12601 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-16 01:16:13.603 12601 12601 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-16 01:16:13.603 12601 12601 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException

Please see attached bug report
Bug Report 16-05-2020.txt

EDIT a little bit of interesting information I found. Though not entirely eliminated, bromite seems to launch more frequently after downloading Android System WebView from google. Whether this is an actual correlation or mere coincidence I cannot determine

With the new .53 update, it crashes 1/3 as much on my device now.

@nikolowry the fix is in 746bf414a23b1fb38385f982ec6dde64b3e1bfeb

If you have time please confirm that it solves the crashes; basically the problem is a race condition between the native part and the Java part, so I changed the access to the ChromeFeatureList to happen in the correct place. It is also problematic to see because the stacktrace gets truncated.

@csagan5 I'll do a clean build before end of day (Eastern Daylight Time) and report back either late tonight or early tomorrow AM

@csagan5 happy to report that https://github.com/bromite/bromite/commit/746bf414a23b1fb38385f982ec6dde64b3e1bfeb resolves this issue on my Essential PH-1 (arm64) running LineageOS 16 with MicroG.

I don't use the Bookmark or Search widget on my homescreen, but was able to replicate the previous widget crash reports after building with Workaround-for-startup-crash.patch. Every attempt to use the Search widget resulted in an app crash.

But now after building https://github.com/bromite/bromite/commit/746bf414a23b1fb38385f982ec6dde64b3e1bfeb, the Search widget has yet to crash when opening the app. I'll report back if I experience any app crashes with future normal usage, but I'm pretty confident this is good to go.

Bromite 83.0.4103.53

https://del.dog/ibattipeva.txt

Can reproduce on arm64, LineageOS 17.1, dumpling.

@nikolowry thanks for your test.

@baidu110 @htes9 to confirm it's the same bug you need to check that there is in your log a crash mentioning Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone or Error inflating class org.chromium.chrome.browser.omnibox.LocationBarTablet.

The fix is coming in next release.

Have same issue with crash Bromite at startup, trying downgrade ver. from f-droid, but its not work, looks like my bookmarks are gone. How can i restore my bookmarks and settings from always crashed bromite? Or how downgrade/reinstall browser without lost all my data?

I can confirm the error/crash - When clearing the "Unimportant storage", it works again until you close the app.

Device: HTC U11+
Arch: arm64
Android: 9
Bromite v83.0.4103.53

ADB Log:

--------- beginning of crash
05-17 10:15:34.608  6478  6478 E AndroidRuntime: FATAL EXCEPTION: main
05-17 10:15:34.608  6478  6478 E AndroidRuntime: Process: org.bromite.bromite, PID: 6478
05-17 10:15:34.608  6478  6478 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3031)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3166)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1872)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:210)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7124)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:898)
05-17 10:15:34.608  6478  6478 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-17 10:15:34.608  6478  6478 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-17 10:15:34.608  6478  6478 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance0(Native Method)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.createView(LayoutInflater.java:647)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.view.ViewStub.inflate(ViewStub.java:302)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.c(chromium-ChromeModernPublic.apk-stable-1589243921:5)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.E0(chromium-ChromeModernPublic.apk-stable-1589243921:15)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.t0(chromium-ChromeModernPublic.apk-stable-1589243921:28)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at c40.B(chromium-ChromeModernPublic.apk-stable-1589243921:4)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at y40.d(chromium-ChromeModernPublic.apk-stable-1589243921:11)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at c40.onCreate(chromium-ChromeModernPublic.apk-stable-1589243921:26)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:7155)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:7146)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1289)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3011)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3166)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1872)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:210)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7124)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:898)
05-17 10:15:34.608  6478  6478 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at J.N.M09VlOh_(Native Method)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at ck0.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:11)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:14)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1589243921:1)
05-17 10:15:34.608  6478  6478 E AndroidRuntime:    ... 32 more

Can confirm the issue, works temporarily if you clear "Unimportant storage", stops working after you close the app.

Device: Samsung Galaxy A5 2017
Arch: Arm64
Android: 8.0
Bromite 83.0.4103.53 from F-Droid

Logcat:

--------- beginning of crash
05-16 10:07:19.140 24556 24556 E AndroidRuntime: FATAL EXCEPTION: main
05-16 10:07:19.140 24556 24556 E AndroidRuntime: Process: org.bromite.bromite, PID: 24556
05-16 10:07:19.140 24556 24556 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.-wrap11(Unknown Source:0)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:105)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:164)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6944)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
05-16 10:07:19.140 24556 24556 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-16 10:07:19.140 24556 24556 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
05-16 10:07:19.140 24556 24556 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance0(Native Method)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.createView(LayoutInflater.java:647)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.view.ViewStub.inflate(ViewStub.java:302)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.c(chromium-ChromeModernPublic.apk-stable-1588901191:5)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.E0(chromium-ChromeModernPublic.apk-stable-1588901191:15)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at org.chromium.chrome.browser.ChromeActivity.t0(chromium-ChromeModernPublic.apk-stable-1588901191:28)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at c40.B(chromium-ChromeModernPublic.apk-stable-1588901191:4)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at y40.d(chromium-ChromeModernPublic.apk-stable-1588901191:11)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at c40.onCreate(chromium-ChromeModernPublic.apk-stable-1588901191:26)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:7183)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.-wrap11(Unknown Source:0)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:105)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:164)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6944)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
05-16 10:07:19.140 24556 24556 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at J.N.M09VlOh_(Native Method)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at dk0.<init>(chromium-ChromeModernPublic.apk-stable-1588901191:11)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-1588901191:14)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1588901191:1)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    ... 29 more

I'm just glad it isn't a user-specific issue

Fixed in 83.0.4103.76.

This issue seems to be back with 85.0.4183.82.

It might be due to the Omnibox patch, I am running some tests.

Reinstalling seems to still be a valid workaround (no data loss).

with a java decompiler, J.N.M09VlOh_ is
public static native boolean M09VlOh_(String paramString);

and dk0 is

import android.content.Context;

public class dk0
  implements bk0
{
  public dk0(Context paramContext, String paramString)
  {
  }
}

but who are they?

https://sites.google.com/a/chromium.org/dev/developers/gn-build-configuration
maybe we can disable proguard and recompile

@uazo I recently found out that you can un-alias them by looking into out/Release/gen/chrome/android/chrome_modern_public_apk/generated_java/input_srcjars/org/chromium/base/natives/GEN_JNI.java

In the specific case for M09VlOh_ it's:

    public static boolean org_chromium_chrome_browser_flags_ChromeFeatureList_isEnabled(String featureName) {
        return J.N.M09VlOh_(featureName);
    }

If I remember correctly this crash happens because of a race condition where the cached features for the Java side are not yet loaded.

ji0 is Runnable of public void onEnterFullscreen(Tab tab, FullscreenOptions options)
https://source.chromium.org/chromium/chromium/src/+/master:chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java;;l=272

image

race condition seems happen here
image

but I don't know why...
I don't see any ChromeFeatureList.isEnabled call

There are multiple threads, is this the right thread you are looking at?

no, I think it's a single thread, with cascading exceptions (i don't know in java, i'm a c # developer, they are InnerExceptions).
if we could retrieve the other 29 lines of the log we would probably see the xml parsing and the class lookup.

I suggest using a try-catch-log, do I fix it or do @csagan5 ?
maybe there is something in the device that slows loading of native libraries (antivirus?)

I don't see any ChromeFeatureList.isEnabled call

I am still checking, it might be some inlined cctor()

I think we could also log ChromeFeatureList_isEnabled, only when it passes by that runnable, by exposing the feature string maybe we can understand which component starts) but I wouldn't put it into production before testing it well

I've found another path of dk0 used at initializationtime
image

It's ProcessInitializationHandler.handlePreNativeInitialization
https://source.chromium.org/chromium/chromium/src/+/master:chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java;l=179

It use a PRIORITIZE_BOOTSTRAP_TASKS flag default true...
do we know anything about it?

no, I think it's a single thread

If it were a single thread then there would be no race condition.

if we could retrieve the other 29 lines of the log we would probably see the xml parsing and the class lookup.

I suggest using a try-catch-log, do I fix it or do @csagan5 ?

The rest of the crash log must be in the minidump on the device, they can be downloaded and extracted.

I've found another path of dk0 used at initializationtime

Is this involved in the crash? We must inspect the rest of the log first.

It's ProcessInitializationHandler.handlePreNativeInitialization
https://source.chromium.org/chromium/chromium/src/+/master:chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java;l=179

It use a PRIORITIZE_BOOTSTRAP_TASKS flag default true...
do we know anything about it?

No, ~but if it is related to account management then it can be obliterated; I will make a patch to remove parts of this, however~ the troubleshooting with the log to individuate the thread and cause of crash should continue ayways; @uazo do you have access to the crash dumps?

Edit: this part of code cannot be trivially removed

If it were a single thread then there would be no race condition.

there are multiple threads but i think that is the stack trace of one of them.

Is this involved in the crash? We must inspect the rest of the log first.

ji0.<init> -> dk0.<init> -> J.N.M09VlOh_

05-16 10:07:19.140 24556 24556 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at J.N.M09VlOh_(Native Method)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at dk0.<init>(chromium-ChromeModernPublic.apk-stable-1588901191:11)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at ji0.<init>(chromium-ChromeModernPublic.apk-stable-1588901191:14)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1588901191:1)
05-16 10:07:19.140 24556 24556 E AndroidRuntime:    ... 29 more

we don't know what dk0 it is. ProcessInitializationHandler.handlePreNativeInitialization or Runnable of public void onEnterFullscreen(Tab tab, FullscreenOptions options) ?

@uazo do you have access to the crash dumps?

no, no crashes from me

there are multiple threads but i think that is the stack trace of one of them.

Yes, but I was wondering if you were looking at the right one when you initially wrote in your comment about onEnterFullscreen. From my previous investigation it was instead due to the dynamic class loader not having yet loaded the JNI classes, so I think it's handlePreNativeInitialization because it references CachedFeatureFlags.

I cannot reproduce this at the moment, it looks like rebooting the device makes it easier to reproduce. I can see if I can find the dump after a crash.

Edit: this part of code cannot be trivially removed

why take it off??

act here
https://source.chromium.org/chromium/chromium/src/+/master:base/android/java/src/org/chromium/base/task/SingleThreadTaskRunnerImpl.java;l=68

i saw the android source, with .setAsynchronous (true); seems to me that it seems to me that it moves overhead in the queue of threads

https://android.googlesource.com/platform/frameworks/base/+/0e2d281/core/java/android/os/MessageQueue.java#319

maybe you can try to disable that flag, so queue order is could be respected but I don't know.

why take it off??

Because there is no account management in Bromite, the signin part is already disabled but the component is not completely removed (the patch would be hard to maintain as well). Feel free to give it a try if you want; see also: https://github.com/Eloston/ungoogled-chromium/issues/520

Note: the crash is also unrelated to the account management, it happens as I explained in previous comment because the dynamic class loader has not finished in time.

maybe you can try to disable that flag, so queue order is respected but I don't know.

We should not touch the SingleThreadRunner nor the message queue, they are unrelated to this crash; first step: inspect the full crash dump. Second step: understand why it crashes. Then finally code changes.

if we could retrieve the other 29 lines of the log we would probably see the xml parsing and the class lookup.

See https://stackoverflow.com/a/7841448

Last time I had this problem I rebuilt it without Proguard but I cannot recall what was exactly the cause/solution.

The crash log I could retrieve is:

08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: FATAL EXCEPTION: main
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: Process: org.bromite.bromite, PID: 4707
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.bromite.bromite/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2919)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3054)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1814)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.os.Handler.dispatchMessage(Handler.java:106)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.os.Looper.loop(Looper.java:280)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread.main(ActivityThread.java:6706)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at java.lang.reflect.Method.invoke(Native Method)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at java.lang.reflect.Constructor.newInstance0(Native Method)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.createView(LayoutInflater.java:647)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.view.ViewStub.inflate(ViewStub.java:302)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.b(chromium-ChromeModernPublic.apk-stable-1598227741:5)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at org.chromium.chrome.browser.ChromeActivity.I0(chromium-ChromeModernPublic.apk-stable-1598227741:15)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at org.chromium.chrome.browser.ChromeActivity.x0(chromium-ChromeModernPublic.apk-stable-1598227741:26)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at hm0.E(chromium-ChromeModernPublic.apk-stable-1598227741:7)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at Dm0.d(chromium-ChromeModernPublic.apk-stable-1598227741:11)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at hm0.onCreate(chromium-ChromeModernPublic.apk-stable-1598227741:26)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.Activity.performCreate(Activity.java:7136)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.Activity.performCreate(Activity.java:7127)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2899)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3054)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1814)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.os.Handler.dispatchMessage(Handler.java:106)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.os.Looper.loop(Looper.java:280)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at android.app.ActivityThread.main(ActivityThread.java:6706)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at java.lang.reflect.Method.invoke(Native Method)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at J.N.M09VlOh_(Native Method)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at gB0.<init>(chromium-ChromeModernPublic.apk-stable-1598227741:18)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at fz0.<init>(chromium-ChromeModernPublic.apk-stable-1598227741:14)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1598227741:1)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  ... 32 more

See https://stackoverflow.com/a/7841448

ok, that's clear, so from those missing lines we don't have any other extractable information

The crash log I could retrieve is:

08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for boolean J.N.M09VlOh_(java.lang.String) (tried Java_J_N_M09VlOh_1 and Java_J_N_M09VlOh_1__Ljava_lang_String_2)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at J.N.M09VlOh_(Native Method)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at gB0.<init>(chromium-ChromeModernPublic.apk-stable-1598227741:18)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at fz0.<init>(chromium-ChromeModernPublic.apk-stable-1598227741:14)
08-25 21:58:33.156 10273  4707  4707 E AndroidRuntime:  at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(chromium-ChromeModernPublic.apk-stable-1598227741:1)

it's from https://github.com/bromite/bromite/releases/download/85.0.4183.84/arm64_ChromeModernPublic.apk ?

gB0.<init>

image

fz0.<init>

image

https://github.com/bromite/bromite/blob/master/build/patches/Restore-Search-Ready-Omnibox-flag.patch#L35

so, we trap the error and if there is, the default is false

alternatively move to onNativeInitialized() more difficult to maintain

or alternatively remove the patch completely?
why does it exist? what privacy problem is there in having that feature active?

EDIT:
if the purpose is not to "Cleanup Search Ready Omnibox" we can change the patch that way: no call at mUrlBarDelegate.clearOmniboxFocus(); mUrlBarDelegate.setOmniboxEditingText(""); in https://source.chromium.org/chromium/chromium/src/+/master:chrome/android/java/src/org/chromium/chrome/browser/omnibox/suggestions/editurl/EditUrlSuggestionProcessor.java

simply because having the possibility to copy the url or share it seems interesting to me and it could also be developed https://github.com/bromite/bromite/issues/661 maybe we find some java open source project ready to use, i saw something in f-droid

it's from https://github.com/bromite/bromite/releases/download/85.0.4183.84/arm64_ChromeModernPublic.apk ?

gB0.<init>

Nice catch! Never thought to decompile the APK to troubleshoot these. I have been using third_party/android_platform/development/scripts/stack.py but it does not work in these cases.

so, we trap the error and if there is, the default is false

Sounds sensible.

or alternatively remove the patch completely?
why does it exist? what privacy problem is there in having that feature active?

It makes editing the URL one tap more away; this is of course subjective, but when it was introduced it felt like moving the user one step further away from the URL.

if the purpose is not to "Cleanup Search Ready Omnibox"

It's a revert of the cleanup.

it could also be developed #661 maybe we find some java open source project ready to use, i saw something in f-droid

This has already been discussed, I am not in favor of #661 or adding anything big like that

I have moved the initialization to onNativeInitialized(); this bug will be fixed on next release.

I've found the complete stack trace in debug!


08-26 17:42:14.645 18541 18541 D AndroidRuntime: Shutting down VM
08-26 17:42:14.646 18541 18541 E AndroidRuntime: FATAL EXCEPTION: main
08-26 17:42:14.646 18541 18541 E AndroidRuntime: Process: org.chromium.chrome.stable, PID: 18541
08-26 17:42:14.646 18541 18541 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.chromium.chrome.stable/org.chromium.chrome.browser.ChromeTabbedActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6718)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-26 17:42:14.646 18541 18541 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
08-26 17:42:14.646 18541 18541 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class org.chromium.chrome.browser.omnibox.LocationBarPhone
08-26 17:42:14.646 18541 18541 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance0(Native Method)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.createView(LayoutInflater.java:647)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.ViewStub.inflateViewNoAdd(ViewStub.java:269)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.view.ViewStub.inflate(ViewStub.java:302)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.toolbar.top.ToolbarControlContainer.initWithToolbar(ToolbarControlContainer.java:94)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.ChromeActivity.doLayoutInflation(ChromeActivity.java:555)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.ChromeActivity.triggerLayoutInflation(ChromeActivity.java:512)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.init.AsyncInitializationActivity.setContentViewAndLoadLibrary(AsyncInitializationActivity.java:180)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.init.ChromeBrowserInitializer.handlePreNativeStartup(ChromeBrowserInitializer.java:163)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.init.AsyncInitializationActivity.onCreateInternal(AsyncInitializationActivity.java:345)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.init.AsyncInitializationActivity.onCreate(AsyncInitializationActivity.java:290)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7144)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7135)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6718)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-26 17:42:14.646 18541 18541 E AndroidRuntime: Caused by: java.lang.AssertionError
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.flags.ChromeFeatureList.isEnabledInNative(ChromeFeatureList.java:86)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.flags.ChromeFeatureList.isEnabled(ChromeFeatureList.java:110)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.suggestions.DropdownItemViewInfoListBuilder.initDefaultProcessors(DropdownItemViewInfoListBuilder.java:88)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.suggestions.AutocompleteMediator.initDefaultProcessors(AutocompleteMediator.java:182)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.suggestions.AutocompleteCoordinatorImpl.<init>(AutocompleteCoordinatorImpl.java:86)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.suggestions.AutocompleteCoordinatorFactory.createAutocompleteCoordinator(AutocompleteCoordinatorFactory.java:29)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.LocationBarLayout.<init>(LocationBarLayout.java:221)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.LocationBarLayout.<init>(LocationBarLayout.java:180)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        at org.chromium.chrome.browser.omnibox.LocationBarPhone.<init>(LocationBarPhone.java:39)
08-26 17:42:14.646 18541 18541 E AndroidRuntime:        ... 33 more

@uazo that's nice; the fix is in 90635707e90bb4a6444ed90f728303623fe89b39 and will be released with next version.

so

Caused by: java.lang.UnsatisfiedLinkError: No implementation found for xxxx

is assert(false);

nice to know

EDIT:
or in Java assert will be stripped-out in non-debug compilation?

java.lang.UnsatisfiedLinkError happens because the class cannot be found at runtime. asserts are also stripped but I do not know precisely why

Fixed in 85.0.4183.86.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csagan5 picture csagan5  路  26Comments

alissonlauffer picture alissonlauffer  路  33Comments

randomshell picture randomshell  路  19Comments

dadosch picture dadosch  路  31Comments

Eddi2015 picture Eddi2015  路  26Comments