Can't run debug build of Chromium on Samsung Galaxy S7 |
||
Issue descriptionChrome Version: ToT OS: Android 7.0, Samsung's build number NRD90M.G930FXXU1DQL7 What steps will reproduce the problem? (1) Build debug version of ChromePublic.apk per the instructions here: https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md with the following GN args: ----- target_os = "android" # target_cpu = "arm64" # (default) target_cpu = "arm" is_debug = true # (default) ffmpeg_branding = "Chrome" proprietary_codecs = true # Other args you may want to set: is_component_build = true # is_clang = true strip_absolute_paths_from_debug_symbols = true symbol_level = 1 # Faster build with fewer symbols. -g1 rather than -g2 # enable_incremental_javac = true # Much faster; experimental use_goma = true goma_dir = "/usr/local/google/home/kbr/goma" ----- (2) ./build/android/adb_install_apk.py out/AndroidDebug/apks/ChromePublic.apk (3) Run Chromium Note that developer mode is enabled on the phone and apps from unknown sources are allowed. What is the expected result? Expect Chromium to run. What happens instead? Chromium crashes after clicking "Accept and Continue". adb logcat reports the following, which I assume is the reason for the failure: 08-27 11:25:01.837 15975 15975 W System : ClassLoader referenced unknown path: /system/framework/QPerformance.jar 08-27 11:25:01.840 15975 15975 E BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib, /vendor/lib]] 08-27 11:25:01.840 15975 15975 V BoostFramework: BoostFramework() : mPerf = null 08-27 11:25:01.842 15975 15975 D StrictMode: StrictMode policy violation; ~duration=6 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=18153503 violation=2 08-27 11:25:01.842 15975 15975 D StrictMode: at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1293) 08-27 11:25:01.842 15975 15975 D StrictMode: at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:240) 08-27 11:25:01.842 15975 15975 D StrictMode: at java.io.File.isDirectory(File.java:804) 08-27 11:25:01.842 15975 15975 D StrictMode: at dalvik.system.DexPathList.makeElements(DexPathList.java:305) 08-27 11:25:01.842 15975 15975 D StrictMode: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:263) 08-27 11:25:01.842 15975 15975 D StrictMode: at dalvik.system.DexPathList.<init>(DexPathList.java:126) 08-27 11:25:01.842 15975 15975 D StrictMode: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48) 08-27 11:25:01.842 15975 15975 D StrictMode: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:38) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.util.BoostFramework.<init>(BoostFramework.java:74) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.app.Activity.dispatchTouchEvent(Activity.java:3204) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68) 08-27 11:25:01.842 15975 15975 D StrictMode: at java.lang.reflect.Method.invoke(Native Method) 08-27 11:25:01.842 15975 15975 D StrictMode: at org.chromium.base.ApplicationStatus$WindowCallbackProxy.invoke(ApplicationStatus.java:198) 08-27 11:25:01.842 15975 15975 D StrictMode: at java.lang.reflect.Proxy.invoke(Proxy.java:813) 08-27 11:25:01.842 15975 15975 D StrictMode: at $Proxy0.dispatchTouchEvent(Unknown Source) 08-27 11:25:01.842 15975 15975 D StrictMode: at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:471) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.View.dispatchPointerEvent(View.java:10960) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5075) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4927) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4458) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4511) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4477) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4610) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4485) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4667) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4458) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4511) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4477) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4485) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4458) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6960) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6899) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6860) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7070) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.os.MessageQueue.nativePollOnce(Native Method) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.os.MessageQueue.next(MessageQueue.java:323) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.os.Looper.loop(Looper.java:136) 08-27 11:25:01.842 15975 15975 D StrictMode: at android.app.ActivityThread.main(ActivityThread.java:6692) 08-27 11:25:01.842 15975 15975 D StrictMode: at java.lang.reflect.Method.invoke(Native Method) 08-27 11:25:01.842 15975 15975 D StrictMode: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) 08-27 11:25:01.842 15975 15975 D StrictMode: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358) 08-27 11:25:01.842 15975 15975 D AndroidRuntime: Shutting down VM 08-27 11:25:01.846 15975 15975 E AndroidRuntime: FATAL EXCEPTION: main 08-27 11:25:01.846 15975 15975 E AndroidRuntime: Process: org.chromium.chrome, PID: 15975 08-27 11:25:01.846 15975 15975 E AndroidRuntime: android.os.StrictMode$StrictModeViolation: policy=18153503 violation=2 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.StrictMode.executeDeathPenalty(StrictMode.java:1539) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.StrictMode.-wrap3(StrictMode.java) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.StrictMode$AndroidBlockGuardPolicy.handleViolation(StrictMode.java:1532) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.StrictMode$AndroidBlockGuardPolicy$1.run(StrictMode.java:1410) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6692) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) 08-27 11:25:01.846 15975 15975 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358) 08-27 11:25:01.848 3699 5062 D Debug : !@DumpState : SHIP 08-27 11:25:01.848 3699 5062 D Debug : !@DumpState : debug level:0x4f4c 08-27 11:25:01.848 3699 5062 D Debug : !@Dumpstate : Finally, system will skip dumpstate 08-27 11:25:01.848 3699 5062 W ActivityManager: Force finishing activity org.chromium.chrome/.browser.firstrun.FirstRunActivity 08-27 11:25:01.848 3699 5062 W MultiScreenManagerService: moveTaskBackToDisplayIfNeeded(): root is not base activity 08-27 11:25:01.848 3699 3919 D InputDispatcher: Waiting for application to become ready for input: 15975. Reason: Waiting because the touched window is paused. 08-27 11:25:01.849 3699 5062 D ActivityManager: moveToFront() : reason=finishActivity adjustFocus setFocusedActivity isAttached=true TaskRecord{2b18126d0 #36 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} 08-27 11:25:01.849 3699 5062 W MultiScreenManagerService: moveTaskBackToDisplayIfNeeded(): root activity or app is null 08-27 11:25:01.850 3699 5062 D ActivityManager: setFocusStackUnchecked: reason=finishActivity adjustFocus setFocusedActivity focusCandidate=ActivityStack{f619b0ed0 stackId=0, 2 tasks} caller=com.android.server.am.ActivityStack.moveToFront:875 com.android.server.am.ActivityStackSupervisor.moveActivityStackToFront:1995 Is this a known problem? I can't make progress on Issue 839769 without being able to rebuild the browser for this device.
,
Aug 27
agrieve@ pointed out that command line flags might have been set by the previous user of the phone. Sure enough: $ ./third_party/android_tools/sdk/platform-tools/adb shell cat /data/local/tmp/chrome-command-line --strict-mode=testing --enable-test-intents
,
Aug 27
In the future, please use 'out/AndroidDebug/bin/chrome_public_apk run' as it clears command line flags and the wrapper script takes care of these things automatically.
,
Aug 27
|
||
►
Sign in to add a comment |
||
Comment 1 by agrieve@chromium.org
, Aug 27Status: Assigned (was: Untriaged)