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

port 6080 page has no android UI, just a backgroud #365

Open
gituser056391 opened this issue Jun 23, 2023 · 8 comments
Open

port 6080 page has no android UI, just a backgroud #365

gituser056391 opened this issue Jun 23, 2023 · 8 comments
Labels

Comments

@gituser056391
Copy link

Operating System

win10,or synology DSM7.2

Docker Image

budtmo/docker-android:emulator_13.0

Expected behaviour

port 6080 page has no android UI, just a backgroud
无标题

Actual behaviour

port 6080 page has no android UI, just a backgroud

Logs

No response

@baipiaoeverything
Copy link

I am also facing the same issue.

@khanmenthe
Copy link

I am facing maybe facing the same issue, could you run docker exec -it android-container cat device_status after like 30 minutes when it should definitely have started?
For me it says STARTING even after 4 hours, and in the system usage the ram keeps going up, then crashes down, indefinitely, which makes me think it's stuck in a bootloop.

@lheiz
Copy link

lheiz commented Jul 5, 2023

I had the same issue. In my case not enough disk space was left thus android emulator could not start. For debugging, you can try try to manually start the emulator in a terminal (in the VNC desktop, right click -> Terminal Emulator):
image
This should give you more information on why the emulator won't start.

@MichaelVasilyev
Copy link

I have the similar issue - first boot ok, but no emulator after docker restart.
In my case something wrong with permissions for /dev/kvm inside container

So quick & dirty fix:

#!/bin/sh
docker exec -it -u0 android-container chmod 777 /dev/kvm
docker exec -d android-container /usr/bin/emulator -avd nexus_7_13.0.

@BlueClouDragon
Copy link

me too, how to fix this?

@ghmagi
Copy link

ghmagi commented Dec 10, 2023

I had a similar issue.

Manually running the emulator as @lheiz suggests above showed ~ "ERROR: Not enough space to create userdata partition ...".

In my case this may have been because I was running the host Ubuntu in a VirtualBox VM using a dynamically-sized VDI disk. The disk had plenty of space to grow, but didn't. Recreating the Ubuntu host w/ a fixed-size disk seems to have addressed the issue.

@petersmythe
Copy link

When restarting a stopped container, I got this error when manually running emulator -avd <device>:

INFO | Warning: could not connect to display :0 ((null):0, (null))
INFO | Info: Could not load the Qt platform plugin "xcb" in "/opt/android/emulator/lib64/qt/plugins" even though it was found. ((null):0, (null))
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

@pakx
Copy link

pakx commented Feb 21, 2024

When restarting a stopped container, I got this error when manually running emulator -avd <device>:

INFO | Warning: could not connect to display :0 ((null):0, (null))
INFO | Info: Could not load the Qt platform plugin "xcb" in "/opt/android/emulator/lib64/qt/plugins" even though it was found. ((null):0, (null))
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

This should probably be listed as a separate issue, isn't specific to this project, and is something I've come across when using X11 -- what's happening is: when the container if first created it's associated with an X-display; when the container is stopped/re-started and the X-display is not the same (e.g. if re-starting from an RDP session, etc), this error appears. My approach has been to explicitly set a display on docker-run and docker-start.

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

No branches or pull requests

9 participants