在 Ubuntu 上下载源代码后运行模拟器 aosp_arm64

在 Ubuntu 上下载源代码后运行模拟器 aosp_arm64

我正在尝试运行 aosp_source code : arm64 目标的模拟器。我已经从 android AOSP master 下载了源代码,并构建了 android 映像。

每次我尝试启动模拟器时,它都会挂起并显示 Android 徽标屏幕。它永远不会启动到主屏幕。

我按照以下步骤构建源代码:

  1. => 源构建/envsetup.sh
  2. => 午餐 aosp_arm64-eng
  3. => 制作-j24
  4. => 模拟器

附加设备列表 adb 服务器版本(40)与此客户端(39)不匹配;正在终止…… * 守护进程已成功启动 * emulator-5554 设备

我甚至可以在主机上的 adb 设备列表中看到该模拟器,但模拟器屏幕只会弹出“android”徽标。即使在我尝试使用“emulator -verbose”运行很长时间后,它也从未启动到主菜单,但我只得到这些调试日志:

emulator: Starting QEMU main loop                                                                                                  
emulator: registered 'boot-properties' qemud service    
...
VERBOSE: AdbHostServer.cpp:49: Send [0012host:emulator:5555] to adb daemon.
emulator: WARNING: Ignoring invalid http proxy: Bad format: invalid port number (must be decimal)
VERBOSE: AdbHostServer.cpp:49: Send [0012host:emulator:5555] to adb daemon.
emulator: onGuestSendCommand: [0x5313d60] Adb connected, start proxing data
emulator: 'magic' skin format detected: 480x800
emulator: WARNING: UpdateCheck: Failure: Error
emulator: WARNING: UpdateCheck: failed to get the latest version, skipping check (current version '28.0.15-5109391')

对于启动 arm 模拟器,您能提供什么帮助吗?

答案1

按照以下步骤操作后,我遇到了同样的错误:

  1. 卸载 AOSP android 9.0.0_r9

  2. 午餐 aosp_arm64-eng

  3. 制作-j8

  4. 模拟器

附加设备列表 adb 服务器版本(40)与此客户端(39)不匹配;正在终止…… * 守护进程已成功启动 * emulator-5554 设备

对于这个问题,我通过使用aosp / out / host / linux-x86 / bin / adb而不是其他adb来解决它;

对于“android”徽标界面,之后

adb shell
logcat -v 线程时间 -b all

它显示surfaceflinger反复崩溃,我不知道为什么。

07-04 12:41:26.016 2288 2288 F 调试:*** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-04 12:41:26.018 2288 2288 F 调试:ABI:'arm64'
07-04 12:41:26.018 2288 2288 F 调试:pid:2140,tid:2140,名称:surfaceflinger >>> /system/bin/surfaceflinger con
st&,std::__1::function const&)>)+968)
07-04 12:41:26.151 2288 2288 F 调试:#03 pc 00000000000340c4 /system/lib64/[电子邮件保护](安卓::硬件::图形::作曲家::V2_1::BpHwComposer
客户端::executeCommands(无符号整数,android::hardware::hidl_vec const&,std::__1::function const&)>)+160)
07-04 12:41:26.151 2288 2288 F 调试:#04 pc 000000000006bbc4 /system/lib64/libsurfaceflinger.so (android::Hwc2::impl::Composer::execute()+1576)
07-04 12:41:26.151 2288 2288 F 调试:#05 pc 000000000006d93c /system/lib64/libsurfaceflinger.so(android::Hwc2::impl::Composer::validateDisplay(无符号长整型,无符号整型*,u
无符号整数*)+240)
07-04 12:41:26.152 2288 2288 F 调试:#06 pc 000000000007733c /system/lib64/libsurfaceflinger.so (HWC2::Display::validate(无符号整数*,无符号整数*)+68)
07-04 12:41:26.152 2288 2288 F 调试:#07 pc 000000000007d1ec /system/lib64/libsurfaceflinger.so (android::HWComposer::prepare(android::DisplayDevice&)+220)
07-04 12:41:26.152 2288 2288 F 调试:#08 pc 0000000000068ea8 /system/lib64/libsurfaceflinger.so (android::DisplayDevice::prepareFrame(android::HWComposer&)+32)
07-04 12:41:26.152 2288 2288 F 调试:#09 pc 00000000000a7ed4 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::handleMessageRefresh()+1548)
07-04 12:41:26.153 2288 2288 F 调试:#10 pc 00000000000a7824 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::onMessageReceived(int)+3832)
07-04 12:41:26.153 2288 2288 F 调试:#11 pc 0000000000013fbc /system/lib64/libutils.so (android::Looper::pollInner(int)+336)
07-04 12:41:26.153 2288 2288 F 调试:#12 pc 0000000000013dd0 /system/lib64/libutils.so (android::Looper::pollOnce(int,int*,int*,void**)+60)
07-04 12:41:26.153 2288 2288 F 调试:#13 pc 0000000000097f8c /system/lib64/libsurfaceflinger.so (android::impl::MessageQueue::waitMessage()+84)
07-04 12:41:26.154 2288 2288 F 调试:#14 pc 00000000000a6040 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::run()+20)
07-04 12:41:26.154 2288 2288 F 调试:#15 pc 00000000000031ac /system/bin/surfaceflinger (main+936)
07-04 12:41:26.154 2288 2288 F 调试:#16 pc 00000000000aca4c /system/lib64/libc.so (__libc_init+88)

使用堆栈转储详细信息后,显示:

修订版本:'0'
pid:2140,tid:2140,名称:surfaceflinger >>> /system/bin/surfaceflinger memcpy(void*,void const* pass_object_size0,unsigned long) bionic/libc/include/bits/fortify/string.h:51
  v--------------> android::hardware::MessageQueue::MemTransaction::copyFrom(unsigned int*, unsigned long, unsigned long) system/libfmq/include/fmq/MessageQueue.h:533
  v--------------> android::hardware::MessageQueue::read(unsigned int*, unsigned long) system/libfmq/include/fmq/MessageQueue.h:1061
  v--------------> android::hardware::graphics::composer::V2_1::CommandReaderBase::readQueue(unsigned int,android::hardware::hidl_vec const&) hardware/interfaces/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ComposerCommandBuffer.h:600
  v--------------> 运算符 () > frameworks/native/services/surfaceflinger/DisplayHardware/ComposerHal.cpp:844
  v--------------> _ZNSt3__18__invokeIRZN7android4Hwc24impl8Composer7executeEvE4$_15JNS1_8hardware8graphics8composer4V2_15ErrorEbjRKNS7_8hidl_vecINS7_11hidl_handleEEEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSH_DpOSI_ external/libcxx/include/type_traits:4480
  v--------------> void std::__1::__invoke_void_return_wrapper::__call const&>(android::Hwc2::impl::Composer::execute()::$_15&, android::hardware::graphics::composer::V2_1::Error&&, bool&&, unsigned int&&, android::hardware::hidl_vec const&) external/libcxx/include/__ functional_base:349
  0000000000072210 _ZNSt3__110__function6__funcIZN7android4Hwc24impl8Composer7executeEvE4$_15NS_9allocatorIS6_EEFvNS2_8hardware8graphics8composer4V2_15ErrorEbjRKNS9_8hidl_vecINS9_11hidl_handleEEEEEclEOSD_ObOjSI_$7a826238dad3ebd41529eab7fba29d7b+428 外部/libcxx/include/功能:1562
  v--------------> std::__1::function const&)>::operator()(android::hardware::graphics::composer::V2_1::Error, bool, unsigned int, android::hardware::hidl_vec const&) const external/libcxx/include/ functional:1916
  00000000000331b0 android::hardware::graphics::composer::V2_1::BpHwComposerClient::_hidl_executeCommands(android::hardware::IInterface*, android::hardware::details::HidlInstrumentor*, unsigned int, android::hardware::hidl_vec const&, std::__1::function const&)>)+968 out/soong/.intermediates/hardware/interfaces/graphics/composer/2.1/[电子邮件保护]_genc++/gen/android/硬件/图形/作曲家/2.1/ComposerClientAll.cpp:1884
  00000000000340c4 android::hardware::graphics::composer::V2_1::BpHwComposerClient::executeCommands(无符号整数,android::hardware::hidl_vec const&,std::__1::function const&)>)+160 out/soong/.intermediates/hardware/interfaces/graphics/composer/2.1/[电子邮件保护]_genc++/gen/android/硬件/图形/作曲家/2.1/ComposerClientAll.cpp:2043
  000000000006bbc4 android::Hwc2::impl::Composer::execute()+1576 框架/本机/服务/surfaceflinger/DisplayHardware/ComposerHal.cpp:854
  000000000006d93c android::Hwc2::impl::Composer::validateDisplay(无符号长整型,无符号整型*,无符号整型*)+240 框架/本机/服务/surfaceflinger/DisplayHardware/ComposerHal.cpp:605
  000000000007733c HWC2::Display::validate(无符号整数*,无符号整数*)+68 框架/本机/服务/surfaceflinger/DisplayHardware/HWC2.cpp:648
  000000000007d1ec android::HWComposer::prepare(android::DisplayDevice&)+220 框架/本机/服务/surfaceflinger/DisplayHardware/HWComposer.cpp:456
  0000000000068ea8 android::DisplayDevice::prepareFrame(android::HWComposer&)+32 框架/本机/服务/surfaceflinger/DisplayDevice.cpp:344
  v--------------> android::SurfaceFlinger::setUpHWComposer() 框架/本机/服务/surfaceflinger/SurfaceFlinger.cpp:2072
  00000000000a7ed4 android::SurfaceFlinger::handleMessageRefresh()+1548 框架/本机/服务/surfaceflinger/SurfaceFlinger.cpp:1537
  00000000000a7824 android::SurfaceFlinger::onMessageReceived(int)+3832 框架/本机/服务/surfaceflinger/SurfaceFlinger.cpp:1508

相关内容