Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upServo does not start on Android #6002
Comments
|
cc @larsbergstrom |
|
@Jinwoo-Song I will look at this today; it must be an error introduced during the latest Rust upgrade. Additionally, even before this upgrade we had a bug on Android that may still need to be resolved - #5795 |
|
I have a similar issue, launching a release build on an Arndale Octa (Android 4.2.2), built using the latest tools gives the following error:
|
|
I get the same error as @mmatyas, above.
It looks like an extra |
|
Caused by this change in rust-windowing/android-rs-glue#48. (The slice is incorrect, and no longer removes the |
The end of this slice range was accidentally removed in rust-windowing#48. Fixes servo/servo#6002.
The end of this slice range was accidentally removed in servo#48. Fixes servo#6002.
The end of the slice range was accidentally removed in rust-windowing#48. Fixes servo/servo#6002.
|
Is there any news for #5795? I got same problem now. |
We haven't figured out the cause of that issue yet, though we hope to fix it as soon as possible. If anyone is able to help out, that would be great! |
fixes #6002 r? @mbrubeck <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6024) <!-- Reviewable:end -->
I've built the servo on Ubuntu(14.04) with ndk-r10d and latest Android SDK. But after launching the servo with following command, servo terminated immediately.
I get the below logs and it seems that libmozjs.so is not found. Could anyone help for this?
D/AndroidRuntime(27896): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(27896): CheckJNI is OFF
D/AndroidRuntime(27896): Calling main entry com.android.commands.am.Am
I/ActivityManager( 485): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.native_activity/rust.glutin.MainActivity} from uid 2000 on display 0
D/AndroidRuntime(27896): Shutting down VM
I/ActivityManager( 485): Start proc com.example.native_activity for activity com.example.native_activity/rust.glutin.MainActivity: pid=27907 uid=10085 gids={50085, 9997, 3003, 1028, 1015} abi=armeabi
I/art (27907): Late-enabling -Xcheck:jni
V/PhoneStatusBar( 658): setLightsOn(true)
D/AndroidRuntime(27907): Shutting down VM
E/AndroidRuntime(27907): FATAL EXCEPTION: main
E/AndroidRuntime(27907): Process: com.example.native_activity, PID: 27907
E/AndroidRuntime(27907): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.native_activity-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.native_activity-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libmozjs.so.so"
E/AndroidRuntime(27907): at java.lang.Runtime.loadLibrary(Runtime.java:366)
E/AndroidRuntime(27907): at java.lang.System.loadLibrary(System.java:989)
E/AndroidRuntime(27907): at rust.glutin.MainActivity.(MainActivity.java:5)
E/AndroidRuntime(27907): at java.lang.reflect.Constructor.newInstance(Native Method)
E/AndroidRuntime(27907): at java.lang.Class.newInstance(Class.java:1572)
E/AndroidRuntime(27907): at android.app.Instrumentation.newActivity(Instrumentation.java:1065)
E/AndroidRuntime(27907): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)
E/AndroidRuntime(27907): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
E/AndroidRuntime(27907): at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime(27907): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
E/AndroidRuntime(27907): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(27907): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(27907): at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime(27907): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(27907): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(27907): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime(27907): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
W/ActivityManager( 485): Force finishing activity com.example.native_activity/rust.glutin.MainActivity
I/OpenGLRenderer( 485): Initialized EGL, version 1.4
W/ActivityManager( 485): Activity pause timeout for ActivityRecord{2b4f7dec u0 com.example.native_activity/rust.glutin.MainActivity t58 f}
I/MicrophoneInputStream(23626): mic_close gfk@1665329d
I/SoundTriggerHwService::Module( 203): void android::SoundTriggerHwService::Module::onCallbackEvent(const android::spandroid::SoundTriggerHwService::CallbackEvent&) mClient == 0
I/HotwordRecognitionRnr(23626): Hotword detection finished
I/HotwordRecognitionRnr(23626): Stopping hotword detection.
W/OpenGLRenderer( 918): Incorrectly called buildLayer on View: adg, destroying layer...
I/Process (27907): Sending signal. PID: 27907 SIG: 9
W/InputMethodManagerService( 485): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@15761faa attribute=null, token = android.os.BinderProxy@13e57e74
W/LocationOracleImpl(23626): Best location was null
I/MicrophoneInputStream(23626): mic_starting gfk@8c79c96
I/SoundTriggerHwService::Module( 203): void android::SoundTriggerHwService::Module::onCallbackEvent(const android::spandroid::SoundTriggerHwService::CallbackEvent&) mClient == 0
I/HotwordRecognitionRnr(23626): Starting hotword detection.
I/AudioFlinger( 203): AudioFlinger's thread 0xab8364b8 ready to run
I/ActivityManager( 485): Process com.example.native_activity (pid 27907) has died
I/MicrophoneInputStream(23626): mic_started gfk@8c79c96
I/art ( 485): Explicit concurrent mark sweep GC freed 33948(2043KB) AllocSpace objects, 7(11MB) LOS objects, 30% free, 36MB/52MB, paused 4.137ms total 147.933ms
I/HotwordWorker(23626): onReady