Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationBarPhone app crash at startup #565

Closed
MGislv opened this issue May 13, 2020 · 68 comments
Closed

LocationBarPhone app crash at startup #565

MGislv opened this issue May 13, 2020 · 68 comments

Comments

@MGislv
Copy link

MGislv commented May 13, 2020

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

@mcmurphy8097234789
Copy link

mcmurphy8097234789 commented May 13, 2020

+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

@Pentaphon
Copy link

Pentaphon commented May 13, 2020

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.

@csagan5
Copy link
Contributor

csagan5 commented May 13, 2020

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).

@csagan5
Copy link
Contributor

csagan5 commented May 13, 2020

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

@wchen342
Copy link
Collaborator

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.

@mcmurphy8097234789
Copy link

mcmurphy8097234789 commented May 13, 2020

@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

@nikolowry
Copy link
Contributor

I'll report back after I do a build today

@csagan5
Copy link
Contributor

csagan5 commented May 13, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented May 13, 2020

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"

@MGislv
Copy link
Author

MGislv commented May 13, 2020

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

@mcmurphy8097234789
Copy link

mcmurphy8097234789 commented May 13, 2020

@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

@nikolowry
Copy link
Contributor

nikolowry commented May 14, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented May 14, 2020

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!

@csagan5 csagan5 changed the title App crashes at startup LocationBarPhone app crash at startup May 14, 2020
@TheSoulKeeper
Copy link

TheSoulKeeper commented May 14, 2020

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.

@ouzowtf
Copy link

ouzowtf commented May 14, 2020

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

@SebiderSushi
Copy link

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

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

@nikolowry
Copy link
Contributor

not crashing also after closing the app?

@csagan5 didn't experience any crashes

@draxaris1010
Copy link

draxaris1010 commented May 14, 2020

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 😒

@bocekm
Copy link

bocekm commented May 14, 2020

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

@skariko
Copy link

skariko commented May 14, 2020

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

@syphyr
Copy link

syphyr commented May 14, 2020

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.

@syphyr
Copy link

syphyr commented May 14, 2020

--------- 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

@TheSoulKeeper
Copy link

TheSoulKeeper commented May 14, 2020

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
Copy link

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

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

@csagan5 csagan5 pinned this issue May 15, 2020
@csagan5
Copy link
Contributor

csagan5 commented Aug 23, 2020

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).

@uazo
Copy link
Collaborator

uazo commented Aug 24, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented Aug 24, 2020

@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.

@uazo
Copy link
Collaborator

uazo commented Aug 24, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented Aug 24, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 25, 2020

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()

@uazo
Copy link
Collaborator

uazo commented Aug 25, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 25, 2020

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?

@csagan5
Copy link
Contributor

csagan5 commented Aug 25, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 25, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented Aug 25, 2020

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.

@uazo
Copy link
Collaborator

uazo commented Aug 25, 2020

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.

@csagan5
Copy link
Contributor

csagan5 commented Aug 25, 2020

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: ungoogled-software/ungoogled-chromium#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.

@csagan5
Copy link
Contributor

csagan5 commented Aug 25, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 26, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 26, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 26, 2020

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 #661 maybe we find some java open source project ready to use, i saw something in f-droid

@csagan5
Copy link
Contributor

csagan5 commented Aug 26, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented Aug 26, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 26, 2020

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

@csagan5
Copy link
Contributor

csagan5 commented Aug 26, 2020

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

@uazo
Copy link
Collaborator

uazo commented Aug 26, 2020

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?

@csagan5
Copy link
Contributor

csagan5 commented Aug 26, 2020

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.

@csagan5 csagan5 closed this as completed Aug 26, 2020
@csagan5 csagan5 unpinned this issue Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests