Issue metadata
Sign in to add a comment
|
Chrome crashing on standalone VR devices due to JNI error |
||||||||||||||||||||||||||
Issue descriptionBuilding Chromium (chrome_public_apk) on ToT and trying to run it on a standalone VR device (Mirage Solo) results in the first run experience working as expected, but afterwards, just a black screen with no way to get back to the dashboard. Canary 70.0.3521.0 works as expected, but ToT @ bad50d9b734e9deb783db8682fb86d1ed32f615f does not. This is caused by a JNI error: 08-13 14:54:03.933 4031 4031 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for long org.chromium.chrome.browser.vr.VrShellDelegate.nativeInit() (tried Java_org_chromium_chrome_browser_vr_VrShellDelegate_nativeInit and Java_org_chromium_chrome_browser_vr_VrShellDelegate_nativeInit__) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.vr.VrShellDelegate.nativeInit(Native Method) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.vr.VrShellDelegate.<init>(VrShellDelegate.java:1027) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.vr.VrShellDelegate.getInstance(VrShellDelegate.java:1018) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.vr.VrShellDelegate.onNewIntentWithNative(VrShellDelegate.java:595) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.vr.VrDelegateImpl.onNewIntentWithNative(VrDelegateImpl.java:118) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.ChromeActivity.finishNativeInitialization(ChromeActivity.java:1376) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.ChromeTabbedActivity.finishNativeInitialization(ChromeTabbedActivity.java:602) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.init.ChromeBrowserInitializer$9.run(ChromeBrowserInitializer.java:332) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at org.chromium.chrome.browser.init.ChainedTasks$1.run(ChainedTasks.java:28) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:789) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:98) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6633) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 08-13 14:54:03.933 4031 4031 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:772)
,
Aug 13
Correction: The above revision is on the Canary branch. It points to d4f53994652091b0aec3d97f3f5d1f7d00bc6a77 in src.
,
Aug 14
Repros even on the revision Canary was built on (d6179b49f9ac994d10e56e18e35c551879ecc4be).
,
Aug 14
monochrome_public_apk works properly at both revisions, so it looks like this is an issue of chrome_public_apk specifically not working (although AFAIK it should). GN args used are: ffmpeg_branding = "Chrome" is_component_build = false is_debug = true proprietary_codecs = true strip_absolute_paths_from_debug_symbols = true symbol_level = 1 target_cpu = "arm64" target_os = "android" use_goma = true
,
Aug 14
This probably is a JNI issue. Monochrome doesn't use the crazy linker. Thus, JNI registration is not required, IIUC. Looking into this.
,
Aug 15
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2e0fcf3df06e5286f9b706f495b367eeff888d65 commit 2e0fcf3df06e5286f9b706f495b367eeff888d65 Author: Tibor Goldschwendt <tiborg@chromium.org> Date: Wed Aug 15 16:28:12 2018 [vr] Register native JNI functions before calling them Bug: 873826 Change-Id: I9381fb88efd83933e30d5c14050f50500f241469 Reviewed-on: https://chromium-review.googlesource.com/1175084 Reviewed-by: Michael Thiessen <mthiesse@chromium.org> Reviewed-by: Ted Choc <tedchoc@chromium.org> Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Cr-Commit-Position: refs/heads/master@{#583275} [modify] https://crrev.com/2e0fcf3df06e5286f9b706f495b367eeff888d65/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
,
Aug 15
|
|||||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||||
Comment 1 by bsheedy@chromium.org
, Aug 13