servo: Runtime problems on Android
Now that the build works, you can run Servo on Android again after applying these patches:
- #14528 ✓
- #14530 ✓
- servo/webrender#626 ✓
- servo/webrender#627 ✓
- servo/webrender#632 ✓
- servo/webrender#653 ✓
- servo/webrender#654 ✓
When you start Servo on Android, it produces a gray screen. This is because a missing WindowProxy implementation on Android.
On any input event, the gray screen disappears, and Servo itself starts. At the moment, however, this results in a mostly white screen, with one or two elements visible occasionally. There are no errors, the main loop is running, and I don’t really see anything particularly interesting in the logs either. Also some sites may throw shader compiler errors too.
Here’s a screenshot of https://www.google.com, there, we only have a scrollbar, the menu button and the login button’s text:

About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 23 (23 by maintainers)
Commits related to this issue
- Auto merge of #15773 - MortimerGoro:android_improvements, r=fabricedesre Android life cycle improvements and Gradle integration This PR includes Android life cycle Improvements and Gradle integratio... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #15773 - MortimerGoro:android_improvements, r=fabricedesre Android life cycle improvements and Gradle integration This PR includes Android life cycle Improvements and Gradle integratio... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #15773 - MortimerGoro:android_improvements, r=larsbergstrom,fabricedesre Android life cycle improvements and Gradle integration This PR includes Android life cycle Improvements and Gra... — committed to servo/servo by deleted user 10 years ago
- Auto merge of #15773 - MortimerGoro:android_improvements, r=larsbergstrom,fabricedesre Android life cycle improvements and Gradle integration This PR includes Android life cycle Improvements and Gra... — committed to servo/servo by deleted user 10 years ago
Hello,
The MozVR team wants a full working Servo Android browser 😃 I have been debugging some of the issues on Android. This is the current status:
I’m working on fixing additional problems like a crash while changing device orientation or when the app goes to background.
I think that we should upgrade the current built system (ant) to gradle. We’ll need to add some .aar or gradle dependencies and ant is very old do to that kind of things. Another benefit of using gradle is that we can open the project with Android Studio and run the brand new GPU debugger on any Android phone. I’d like to submit a PR including gradle support. Using the gradle wrapper the gradle build system is automatically downloaded on both linux and windows machines. We should move to a newer android-target too, that probably will require running android tools update on build machines. @larsbergstrom what do you think about moving to gradle? Would you like that I work on a PR?
Just wanted to say that this is awesome @MortimerGoro, thanks for looking into this 😃
None at all. The best I’ve got is
github.com, where the background image and two button rectangles load correctly.