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

Servo for Android crashes on launch #21298

Closed
atouchet opened this issue Aug 1, 2018 · 9 comments
Closed

Servo for Android crashes on launch #21298

atouchet opened this issue Aug 1, 2018 · 9 comments

Comments

@atouchet
Copy link
Contributor

@atouchet atouchet commented Aug 1, 2018

I thought I would test out the latest Servo nightly build on Android as I have never used it before. I found out that it crashes on launch giving me the message "Unfortunately, Servo has stopped." I am using a Nexus 5 running Android 6.0.1. Is my phone a supported device for the Android port or is something else going wrong?

@jdm
Copy link
Member

@jdm jdm commented Aug 1, 2018

I think we may only support Android Oreo and more recent. Android 6 is Marshmallow.

@atouchet
Copy link
Contributor Author

@atouchet atouchet commented Aug 1, 2018

According to https://github.com/servo/servo/blob/master/support/android/apk/servoapp/build.gradle the targetSdkVersion is 27 but the minSdkVersion is only 18 (which is Jelly Bean I think). I was under the impression that devices running SDK 18 and up should still be able to run the app. Is that not the case?

@NiLSPACE
Copy link

@NiLSPACE NiLSPACE commented Aug 1, 2018

It also crashes on my Huawei P10 lite which runs Android 8.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Aug 1, 2018

Can you please share the crash report from adb logcat?

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Aug 1, 2018

I imagine that if it's a SDK/NDK version issue, the installation would fail.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Aug 1, 2018

Found an issue when no arguments are passed.

I'll submit a PR soon.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Aug 1, 2018

To confirm that this is the issue you both running into, can you check if you see any message when doing:

adb logcat|grep "Servo arguments must be formatted as a JSON array"
bors-servo added a commit that referenced this issue Aug 1, 2018
Android: Fix JSON error when no arguments are passed

Probably fix #21298

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21308)
<!-- Reviewable:end -->
@NiLSPACE
Copy link

@NiLSPACE NiLSPACE commented Aug 1, 2018

Yes, it's that error:

08-01 07:29:16.366 13326 13371 E AndroidRuntime: FATAL EXCEPTION: GLThread 1070
08-01 07:29:16.366 13326 13371 E AndroidRuntime: Process: com.mozilla.servo, PID: 13326
08-01 07:29:16.366 13326 13371 E AndroidRuntime: java.lang.Exception: Invalid arguments. Servo arguments must be formatted as a JSON array
08-01 07:29:16.366 13326 13371 E AndroidRuntime: 	at com.mozilla.servoview.NativeServo.init(Native Method)
08-01 07:29:16.366 13326 13371 E AndroidRuntime: 	at com.mozilla.servoview.ServoView.lambda$onGLReady$6$ServoView(ServoView.java:155)
08-01 07:29:16.366 13326 13371 E AndroidRuntime: 	at com.mozilla.servoview.ServoView$$Lambda$6.run(Unknown Source:12)
08-01 07:29:16.366 13326 13371 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
08-01 07:29:16.366 13326 13371 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1293)
08-01 07:29:20.697 13436 13455 E AndroidRuntime: FATAL EXCEPTION: GLThread 1078
08-01 07:29:20.697 13436 13455 E AndroidRuntime: Process: com.mozilla.servo, PID: 13436
08-01 07:29:20.697 13436 13455 E AndroidRuntime: java.lang.Exception: Invalid arguments. Servo arguments must be formatted as a JSON array
08-01 07:29:20.697 13436 13455 E AndroidRuntime: 	at com.mozilla.servoview.NativeServo.init(Native Method)
08-01 07:29:20.697 13436 13455 E AndroidRuntime: 	at com.mozilla.servoview.ServoView.lambda$onGLReady$6$ServoView(ServoView.java:155)
08-01 07:29:20.697 13436 13455 E AndroidRuntime: 	at com.mozilla.servoview.ServoView$$Lambda$6.run(Unknown Source:12)
08-01 07:29:20.697 13436 13455 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
08-01 07:29:20.697 13436 13455 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1293)
08-01 07:29:22.644 13480 13499 E AndroidRuntime: FATAL EXCEPTION: GLThread 1082
08-01 07:29:22.644 13480 13499 E AndroidRuntime: Process: com.mozilla.servo, PID: 13480
08-01 07:29:22.644 13480 13499 E AndroidRuntime: java.lang.Exception: Invalid arguments. Servo arguments must be formatted as a JSON array
08-01 07:29:22.644 13480 13499 E AndroidRuntime: 	at com.mozilla.servoview.NativeServo.init(Native Method)
08-01 07:29:22.644 13480 13499 E AndroidRuntime: 	at com.mozilla.servoview.ServoView.lambda$onGLReady$6$ServoView(ServoView.java:155)
08-01 07:29:22.644 13480 13499 E AndroidRuntime: 	at com.mozilla.servoview.ServoView$$Lambda$6.run(Unknown Source:12)
08-01 07:29:22.644 13480 13499 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
08-01 07:29:22.644 13480 13499 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1293)
08-01 08:57:45.911 15268 15288 E AndroidRuntime: FATAL EXCEPTION: GLThread 1098
08-01 08:57:45.911 15268 15288 E AndroidRuntime: Process: com.mozilla.servo, PID: 15268
08-01 08:57:45.911 15268 15288 E AndroidRuntime: java.lang.Exception: Invalid arguments. Servo arguments must be formatted as a JSON array
08-01 08:57:45.911 15268 15288 E AndroidRuntime: 	at com.mozilla.servoview.NativeServo.init(Native Method)
08-01 08:57:45.911 15268 15288 E AndroidRuntime: 	at com.mozilla.servoview.ServoView.lambda$onGLReady$6$ServoView(ServoView.java:155)
08-01 08:57:45.911 15268 15288 E AndroidRuntime: 	at com.mozilla.servoview.ServoView$$Lambda$6.run(Unknown Source:12)
08-01 08:57:45.911 15268 15288 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
08-01 08:57:45.911 15268 15288 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1293)
08-01 13:23:03.284 19419 19438 E AndroidRuntime: FATAL EXCEPTION: GLThread 1134
08-01 13:23:03.284 19419 19438 E AndroidRuntime: Process: com.mozilla.servo, PID: 19419
08-01 13:23:03.284 19419 19438 E AndroidRuntime: java.lang.Exception: Invalid arguments. Servo arguments must be formatted as a JSON array
08-01 13:23:03.284 19419 19438 E AndroidRuntime: 	at com.mozilla.servoview.NativeServo.init(Native Method)
08-01 13:23:03.284 19419 19438 E AndroidRuntime: 	at com.mozilla.servoview.ServoView.lambda$onGLReady$6$ServoView(ServoView.java:155)
08-01 13:23:03.284 19419 19438 E AndroidRuntime: 	at com.mozilla.servoview.ServoView$$Lambda$6.run(Unknown Source:12)
08-01 13:23:03.284 19419 19438 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
08-01 13:23:03.284 19419 19438 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1293)
@atouchet
Copy link
Contributor Author

@atouchet atouchet commented Aug 2, 2018

I am able to launch Servo without it crashing now but I am experiencing a new crash shortly afterwards. I opened a new issue report for that: #21317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.