09-25 10:17:09.704 5633 5633 I launch_cvd: main.cc:179 Using system_image_dir of:
===================================================================
NOTICE:
By using this Android Virtual Device, you agree to
Google Terms of Service (https://policies.google.com/terms).
The Google Privacy Policy (https://policies.google.com/privacy)
describes how Google handles information generated as you use
Google Services.
===================================================================
Automatically send diagnostic information to Google, such as crash
reports and usage data from this Android Virtual Device. You can
adjust this permission at any time by running
"launch_cvd -report_anonymous_usage_stats=n". (Y/n)?:n
Reading --config option from: /media/thanhchung/workspace/aosp/out/target/product/vsoc_x86_64/android-info.txt
Launching CVD using --config='phone'.
GPU auto mode: did not detect prerequisites for accelerated rendering support, enabling --gpu_mode=guest_swiftshader.
GPU vhost user auto mode: not needed for --gpu_mode=guest_swiftshader. Not enabling vhost user gpu.
Requested resuming a previous session (the default behavior) but the base images have changed under the overlay, making the overlay incompatible. Wiping the overlay files.
Path for instance UDS: /tmp/cf_avd_1000
The following lines contain useful debugging information:
Point your browser to https://localhost:8443 to interact with the device.
Serial console is disabled; use -console=true to enable it.
Logcat output: /home/thanhchung/cuttlefish/instances/cvd-1/logs/logcat
Kernel log: /home/thanhchung/cuttlefish/instances/cvd-1/kernel.log
Launcher log: /home/thanhchung/cuttlefish/instances/cvd-1/logs/launcher.log
Instance configuration: /home/thanhchung/cuttlefish/instances/cvd-1/cuttlefish_config.json
Launcher Build ID: eng.thanhc
...
/media/thanhchung/workspace/aosp/out/host/linux-x86/bin/socket_vsock_proxy
/media/thanhchung/workspace/aosp/out/host/linux-x86/bin/secure_env
/media/thanhchung/workspace/aosp/out/host/linux-x86/bin/log_tee
/media/thanhchung/workspace/aosp/out/host/linux-x86/bin/process_restarter
Start modem simulator, server_fds: 37, Sim type: normal
Failed to open socket: Connection refused
Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/EchoServer.sock
Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/CasimirControlServer.sock
Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/OpenwrtControlServer.sock
[2024-09-25T03:18:03.462393519+00:00 INFO crosvm::crosvm::sys::linux] crosvm entering multiprocess mode
[2024-09-25T03:18:03.468936270+00:00 INFO crosvm::crosvm::sys::linux] crosvm entering multiprocess mode
[2024-09-25T03:18:03.527196995+00:00 INFO crosvm::crosvm::sys::linux::device_helpers] Trying to attach block device: /home/thanhchung/cuttlefish/instances/cvd-1/ap_overlay.img
[2024-09-25T03:18:03.569833326+00:00 INFO crosvm::cro
...
...
[2024-09-25T03:18:16.883810070+00:00 INFO crosvm::crosvm::sys::linux] vcpu requested reset
[2024-09-25T03:18:17.064503417+00:00 INFO crosvm] exiting with reset
[2024-09-25T03:18:17.086342197+00:00 INFO crosvm::crosvm::sys::linux] crosvm entering multiprocess mode
crosvm[6189]: libminijail[6189]: compile_file: /media/thanhchung/workspace/aosp/out/host/linux-x86/usr/share/crosvm/x86_64-linux-gnu/seccomp/serial_device.policy(18): ignored @frequency statement
crosvm[6189]: libminijail[6189]: compile_file: /media/thanhchung/workspace/aosp/out/host/linux-x86/usr/share/crosvm/x86_64-linux-gnu/seccomp/block_device.policy(18): ignored @frequency statement
[2024-09-25T03:18:17.231414870+00:00 INFO devices::sys::linux::acpi] Listening on acpi_mc_group of acpi_event family
[2024-09-25T03:18:17.237028184+00:00 INFO x86_64] Loaded bzImage kernel
Failed to connect: No such device
Failed to connect: No such device
...
Описание проблемы
При попытке запустить виртуальное устройство Android (CVD) в AOSP возникла ошибка. В выходных данных указано несколько ошибок подключения с сообщением «Не удалось подключиться: такого устройства нет».
Вопросы
Что может быть причиной ошибки «Нет такого устройства»?
Есть ли какие-либо конфигурации, которые мне нужно проверить, чтобы решить эту проблему?
Какие действия можно предпринять? Я возьмусь за отладку и исправление этой проблемы?
By using this Android Virtual Device, you agree to Google Terms of Service (https://policies.google.com/terms). The Google Privacy Policy (https://policies.google.com/privacy) describes how Google handles information generated as you use Google Services. =================================================================== Automatically send diagnostic information to Google, such as crash reports and usage data from this Android Virtual Device. You can adjust this permission at any time by running "launch_cvd -report_anonymous_usage_stats=n". (Y/n)?:n Reading --config option from: /media/thanhchung/workspace/aosp/out/target/product/vsoc_x86_64/android-info.txt Launching CVD using --config='phone'. GPU auto mode: did not detect prerequisites for accelerated rendering support, enabling --gpu_mode=guest_swiftshader. GPU vhost user auto mode: not needed for --gpu_mode=guest_swiftshader. Not enabling vhost user gpu. Requested resuming a previous session (the default behavior) but the base images have changed under the overlay, making the overlay incompatible. Wiping the overlay files. Path for instance UDS: /tmp/cf_avd_1000 The following lines contain useful debugging information: Point your browser to https://localhost:8443 to interact with the device. Serial console is disabled; use -console=true to enable it. Logcat output: /home/thanhchung/cuttlefish/instances/cvd-1/logs/logcat Kernel log: /home/thanhchung/cuttlefish/instances/cvd-1/kernel.log Launcher log: /home/thanhchung/cuttlefish/instances/cvd-1/logs/launcher.log Instance configuration: /home/thanhchung/cuttlefish/instances/cvd-1/cuttlefish_config.json Launcher Build ID: eng.thanhc
[/code] [code]...
/media/thanhchung/workspace/aosp/out/host/linux-x86/bin/socket_vsock_proxy /media/thanhchung/workspace/aosp/out/host/linux-x86/bin/secure_env /media/thanhchung/workspace/aosp/out/host/linux-x86/bin/log_tee /media/thanhchung/workspace/aosp/out/host/linux-x86/bin/process_restarter Start modem simulator, server_fds: 37, Sim type: normal Failed to open socket: Connection refused Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/EchoServer.sock Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/CasimirControlServer.sock Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/OpenwrtControlServer.sock [2024-09-25T03:18:03.462393519+00:00 INFO crosvm::crosvm::sys::linux] crosvm entering multiprocess mode [2024-09-25T03:18:03.468936270+00:00 INFO crosvm::crosvm::sys::linux] crosvm entering multiprocess mode [2024-09-25T03:18:03.527196995+00:00 INFO crosvm::crosvm::sys::linux::device_helpers] Trying to attach block device: /home/thanhchung/cuttlefish/instances/cvd-1/ap_overlay.img [2024-09-25T03:18:03.569833326+00:00 INFO crosvm::cro
... [/code] [code]...
[2024-09-25T03:18:16.883810070+00:00 INFO crosvm::crosvm::sys::linux] vcpu requested reset [2024-09-25T03:18:17.064503417+00:00 INFO crosvm] exiting with reset [2024-09-25T03:18:17.086342197+00:00 INFO crosvm::crosvm::sys::linux] crosvm entering multiprocess mode crosvm[6189]: libminijail[6189]: compile_file: /media/thanhchung/workspace/aosp/out/host/linux-x86/usr/share/crosvm/x86_64-linux-gnu/seccomp/serial_device.policy(18): ignored @frequency statement crosvm[6189]: libminijail[6189]: compile_file: /media/thanhchung/workspace/aosp/out/host/linux-x86/usr/share/crosvm/x86_64-linux-gnu/seccomp/block_device.policy(18): ignored @frequency statement [2024-09-25T03:18:17.231414870+00:00 INFO devices::sys::linux::acpi] Listening on acpi_mc_group of acpi_event family [2024-09-25T03:18:17.237028184+00:00 INFO x86_64] Loaded bzImage kernel Failed to connect: No such device Failed to connect: No such device
... [/code] Описание проблемы При попытке запустить виртуальное устройство Android (CVD) в AOSP возникла ошибка. В выходных данных указано несколько ошибок подключения с сообщением «Не удалось подключиться: такого устройства нет». Вопросы [list] [*]Что может быть причиной ошибки «Нет такого устройства»? [*]Есть ли какие-либо конфигурации, которые мне нужно проверить, чтобы решить эту проблему? [*]Какие действия можно предпринять? Я возьмусь за отладку и исправление этой проблемы? [/list]
Отчет об ошибке: запуск CVD в AOSP
Настройка среды
thanhchung@Chung-Computer:/media/thanhchung/workspace/aosp$ source build/envsetup.sh
thanhchung@Chung-Computer:/media/thanhchung/workspace/aosp$ lunch aosp_cf_x86_64_phone-trunk_staging-userdebug...
Когда я обновил conda до последней версии, он начал показывать длинный список неотправленных отчетов после каждой переданной мной команды. Вот текст, который он показывает:
Traceback (most recent call last):
File...
Мне нужно получить отчет об ошибке и загрузить его с моего устройства Android на сервер. Я могу получить отчет об ошибке, вручную запустив команду adb «adbshell bugreportz». Однако я пытаюсь получить отчет программно. Я пробовал код ниже
public...