J'ai rencontré la même erreur après les étapes suivantes:
bas AOSP android 9.0.0_r9
déjeuner aosp_arm64-fra
make -j8
émulateur
La liste des périphériques connectés à la version du serveur adb (40) ne correspond pas à ce client (39); tueur ... * démon a démarré avec succès * périphérique emulator-5554
pour ce problème, je l’ai résolu en utilisant aosp / out / host / linux-x86 / bin / adb au lieu d’autre adb;
pour l'interface du logo "android", après
coquille adb
logcat -v threadtime -b tous
cela montre que le surfaceflinger plante à plusieurs reprises, je ne sais pas pourquoi.
07-04 12: 41: 26.016 2288 2288 F DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** * ** *** *** ***
07-04 12: 41: 26.018 2288 2288 F DEBUG: ABI: 'arm64'
07-04 12: 41: 26.018 2288 2288 F DEBUG: pid: 2140, tid: 2140, nom: surfaceflinger >>> / system / bin / surfaceflinger con
st &, std :: __ 1 :: function const &)>) + 968)
07-04 12: 41: 26.151 2288 2288 F DEBUG: # 03 pc 00000000000340c4 /system/lib64/[email protected] (android :: hardware :: graphisme :: compositeur :: V2_1 :: BpHwComposer
Client :: executeCommands (unsigned int, android :: hardware :: hidl_vec const &, std :: __ 1 :: function const &)>) + 160)
07-04 12: 41: 26.151 2288 2288 F DEBUG: # 04 pc 000000000006bbc4 /system/lib64/libsurfaceflinger.so (android :: Hwc2 :: impl :: Composer :: execute () + 1576)
07-04 12: 41: 26.151 2288 2288 F DEBUG: # 05 pc 000000000006d93c /system/lib64/libsurfaceflinger.so (android :: Hwc2 :: impl :: Composer :: validateDisplay (unsigned long, unsigned int *, u
nsigned int *) + 240)
07-04 12: 41: 26.152 2288 2288 F DEBUG: # 06 pc 000000000007733c /system/lib64/libsurfaceflinger.so (HWC2 :: Display :: validate (unsigned int *, unsigned int *) + 68)
07-04 12: 41: 26.152 2288 2288 F DEBUG: # 07 pc 000000000007d1ec /system/lib64/libsurfaceflinger.so (android :: HWComposer :: prepare (android :: DisplayDevice &) + 220)
07-04 12: 41: 26.152 2288 2288 F DEBUG: # 08 pc 0000000000068ea8 /system/lib64/libsurfaceflinger.so (android :: DisplayDevice :: prepareFrame (android :: HWComposer &) + 32)
07-04 12: 41: 26.152 2288 2288 F DEBUG: # 09 pc 00000000000a7ed4 /system/lib64/libsurfaceflinger.so (android :: SurfaceFlinger :: handleMessageRefresh () + 1548)
07-04 12: 41: 26.153 2288 2288 F DEBUG: # 10 pc 00000000000a7824 /system/lib64/libsurfaceflinger.so (android :: SurfaceFlinger :: onMessageReceived (int) +3832)
07-04 12: 41: 26.153 2288 2288 F DEBUG: # 11 pc 0000000000013fbc /system/lib64/libutils.so (android :: Looper :: pollInner (int) +336)
07-04 12: 41: 26.153 2288 2288 F DEBUG: # 12 pc 0000000000013dd0 /system/lib64/libutils.so (android :: Looper :: pollOnce (int, int *, int *, vide **) + 60)
07-04 12: 41: 26.153 2288 2288 F DEBUG: # 13 pc 0000000000097f8c /system/lib64/libsurfaceflinger.so (android :: impl :: MessageQueue :: waitMessage () + 84)
07-04 12: 41: 26.154 2288 2288 F DEBUG: # 14 pc 00000000000a6040 /system/lib64/libsurfaceflinger.so (android :: SurfaceFlinger :: run () + 20)
07-04 12: 41: 26.154 2288 2288 F DEBUG: # 15 pc 00000000000031ac / system / bin / surfaceflinger (principal + 936)
07-04 12: 41: 26.154 2288 2288 F DEBUG: # 16 pc 00000000000aca4c /system/lib64/libc.so (__libc_init + 88)
Après utilisation, pile pour vider les informations de détail, il affiche:
Révision: '0'
pid: 2140, tid: 2140, nom: 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) système / libfmq / include / fmq / MessageQueue. h: 533
v --------------> android :: hardware :: MessageQueue :: read (unsigned int *, unsigned long) système / 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 / tampon de commande / include / composer-command-tampon / 2.1 / ComposerCommandBuffer.h: 600
v --------------> operator ()> 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_ externe / 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 &) externe / libcxx / include / __ fonctionnelle_base: 349
0000000000072210 _ZNSt3__110__function6__funcIZN7android4Hwc24impl8Composer7executeEvE4 $ _15NS_9allocatorIS6_EEFvNS2_8hardware8graphics8composer4V2_15ErrorEbjRKNS9_8hidl_vecINS9_11hidl_handleEEEEEclEOSD_ObOjSI_ $ 7a826238dad3ebd41529eab7fba29d7b + 428 externe / libcxx / include / fonctionnel: 1562
v --------------> std :: __ 1 :: function const &)> :: operator () (android :: hardware :: graphics :: composer :: V2_1 :: Error, bool , unsigned int, android :: hardware :: hidl_vec const &) const externe / libcxx / include / functional: 1916
00000000000331b0 android :: hardware :: graphics :: composer :: V2_1 :: BpHwComposerClient :: _ hidl_executeCommands (android :: hardware :: IInterface *, android :: hardware :: détails :: HidlInstrumentor *, unsigned int, android :: hardware: : hidl_vec const &, std :: __ 1 :: function const &)>) + 968 out/soong/.intermediates/hardware/interfaces/graphics/composer/2.1/[email protected]_genc++/gen/android/hardware /graphics/composer/2.1/ComposerClientAll.cpp:1884
00000000000340c4 android :: hardware :: graphics :: composer :: V2_1 :: BpHwComposerClient :: executeCommands (unsigned int, android :: hardware :: hidl_vec const &, std :: __ 1 :: function const &)>) + 160 out / soong / .intermediates / hardware / interfaces / graphics / composer / 2.1 / android.hardware.graphics.composer @ 2.1_genc ++ / gen / android / hardware / graphics / composer / 2.1 / ComposerClientAll.cpp: 2043
000000000006bbc4 android :: Hwc2 :: impl :: Composer :: execute () + 1576 cadres / natif / services / surfaceflinger / DisplayHardware / ComposerHal.cpp: 854
000000000006d93c android :: Hwc2 :: impl :: Composer :: validateDisplay (unsigned long, unsigned long, unsigned int *, unsigned int *) + 240 cadres / natif / services / surfaceflinger / DisplayHardware / ComposerHal.cpp: 605
000000000007733c HWC2 :: Display :: validate (unsigned int *, unsigned int *) + 68 cadres / natif / services / surfaceflinger / DisplayHardware / HWC2.cpp: 648
000000000007d1ec android :: HWComposer :: prepare (android :: DisplayDevice &) + 220 frameworks / native / services / surfaceflinger / DisplayHardware / HWComposer.cpp: 456
0000000000068ea8 android :: DisplayDevice :: prepareFrame (android :: HWComposer &) + 32 cadres / natif / services / surfaceflinger / DisplayDevice.cpp: 344
v --------------> android :: SurfaceFlinger :: setUpHWComposer () frameworks / native / services / surfaceflinger / SurfaceFlinger.cpp: 2072
00000000000a7ed4 android :: SurfaceFlinger :: handleMessageRefresh () + 1548 cadres / natif / services / surfaceflinger / SurfaceFlinger.cpp: 1537
00000000000a7824 android :: SurfaceFlinger :: onMessageReceived (int) + 3832 cadres / natif / services / surfaceflinger / SurfaceFlinger.cpp: 1508