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

Error about Qt lib when running the emulator #29

Open
pawlakmaly opened this issue Aug 8, 2024 · 4 comments
Open

Error about Qt lib when running the emulator #29

pawlakmaly opened this issue Aug 8, 2024 · 4 comments

Comments

@pawlakmaly
Copy link

Hi all,

I've clone the repo and tried to run build the docker image, but I get this error:

androidHeaded  | Available platform plugins are: vnc, linuxfb, xcb, offscreen, minimal.
androidHeaded  |  ((null):0, (null))
androidHeaded  | INFO    | Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
androidHeaded  | 
androidHeaded  | Available platform plugins are: vnc, linuxfb, xcb, offscreen, minimal.
androidHeaded  |  ((null):0, (null))
androidHeaded  | [16:16:20240808,073244.013063:ERROR elf_dynamic_array_reader.h:64] tag not found
androidHeaded  | [16:16:20240808,073244.014102:ERROR process_memory_range.cc:75] read out of range
androidHeaded  | [16:16:20240808,073244.019348:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
androidHeaded  | [16:16:20240808,073244.019482:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
androidHeaded  | [16:16:20240808,073244.020390:ERROR process_memory_range.cc:75] read out of range
androidHeaded  | [16:16:20240808,073244.021940:ERROR process_memory_range.cc:75] read out of range
androidHeaded  | ./start_emu.sh: line 9:     7 Aborted                 emulator -avd "${emulator_name}" -no-boot-anim -gpu off

My system:
win 11,
WSL2, Ubuntu 22.04

@amrsa1
Copy link
Owner

amrsa1 commented Aug 20, 2024

Sounds like a windows issue, take a look here:
https://www.stellarinfo.com/blog/no-qt-platform-plugin-could-be-initialized-error/

@olivluca
Copy link

olivluca commented Aug 20, 2024

Same error here, but the container is debian, so I don't understand what windows has to do here (besides, my host is linux)

@olivluca
Copy link

If I start the emulator from inside vnc it works

@olivluca
Copy link

ok, it's missing the display, I added a

DISPLAY=:1
export DISPLAY

to the script and it works.

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

No branches or pull requests

3 participants