Open djkcyl opened 1 year ago
在这个状态下如果从设置内进入开发者选项,会导致系统界面整个卡死然后重启
Possible related to mesa3d
driver or webview
apk (the stock webview is replaced, check project manifests)
webview
?Check the latest mesa3d driver?
djkcyl@arkom:~$ dpkg -l | grep mesa ii libgl1-mesa-dri:amd64 21.2.6-0ubuntu0.1~20.04.2 amd64 free implementation of the OpenGL API -- DRI modules ii libglapi-mesa:amd64 21.2.6-0ubuntu0.1~20.04.2 amd64 free implementation of the GL API -- shared library ii libglx-mesa0:amd64 21.2.6-0ubuntu0.1~20.04.2 amd64 free implementation of the OpenGL API -- GLX vendor library ii mesa-utils 8.4.0-1build1 amd64 Miscellaneous Mesa GL utilities ii mesa-vulkan-drivers:amd64 21.2.6-0ubuntu0.1~20.04.2 amd64 Mesa Vulkan graphics drivers
revert to the stock webview?
Can you briefly explain how to revert
After installing mesa-utils, this error occurs on NVIDIA GPU
redroid won't use libs from your host (only Linux kernel shared with your host; container solution, right?).
Take a look at external/chromium-webview
, you can revert to stock webview there.
I will update graphics related libs in device_redroid-prebuilts
我尝试用文档内的步骤去编译 redroid,但是在 dex2oat(?)时报错退出
djkcyl@redroid-builder:/src$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=redroid_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
[ 0% 1/36670] Ensuring Jack server is installed and started
Jack server already installed in "/home/djkcyl/.jack-server"
Server is already running
[ 0% 15/36670] build out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex
FAILED: out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex
/bin/bash -c "(mkdir -p out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/ && rm -f out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex ) && (find out/target/common/obj/APPS/BasicDreams_intermediates/ -maxdepth 1 -name \"classes*.dex\" | sort | xargs zip -qjX out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex ) && (mv out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex.input ) && (rm -f out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex ) && (mkdir -p out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/ ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --class-loader-context=\"&\" --boot-image=out/target/product/redroid_x86_64/dex_bootjars/system/framework/boot.art --dex-file=out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex.input --dex-location=/system/app/BasicDreams/BasicDreams.apk --oat-file=out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex --android-root=out/target/product/redroid_x86_64/system --instruction-set=x86_64 --instruction-set-variant=x86_64 --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=quicken ) && (rm out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex.input )"
dex2oatd F 08-22 14:04:50 254966 254966 utils.cc:762] ANDROID_DATA not set and /data does not exist
Runtime aborting...
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (0):
"dex2oatd" prio=5 (not attached)
| sysTid=254966 nice=0 cgrp=default
| state=R schedstat=( 17595982 32071112 4 ) utm=0 stm=0 core=1 HZ=100
native: #00 pc 00000000004f55f9 /src/out/host/linux-x86/lib64/libartd.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+217)
native: art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
native: art/runtime/native_stack_dump.cc:300
native: #01 pc 00000000005eda90 /src/out/host/linux-x86/lib64/libartd.so (art::ThreadList::DumpUnattachedThreads(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+352)
native: art::DumpUnattachedThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, bool)
native: art/runtime/thread_list.cc:166
native: art::ThreadList::DumpUnattachedThreads(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
native: art/runtime/thread_list.cc:189
native: #02 pc 00000000005ed860 /src/out/host/linux-x86/lib64/libartd.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+288)
native: art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
native: art/runtime/thread_list.cc:267
native: #03 pc 00000000005c423b /src/out/host/linux-x86/lib64/libartd.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&) const+299)
native: art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
native: art/runtime/runtime.cc:428
native: #04 pc 00000000005b5174 /src/out/host/linux-x86/lib64/libartd.so (art::Runtime::Abort(char const*)+100)
native: art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
native: art/runtime/base/dumpable.h:39
native: std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
native: art/runtime/base/dumpable.h:50
native: art::Runtime::Abort(char const*)
native: art/runtime/runtime.cc:525
native: #05 pc 000000000000976a /src/out/host/linux-x86/lib64/libbase.so (android::base::LogMessage::~LogMessage()+858)
native: std::__1::function<void (char const*)>::operator()(char const*) const
native: external/libcxx/include/functional:1915
native: ~LogMessage
native: system/core/base/logging.cpp:433
native: #06 pc 0000000000609029 /src/out/host/linux-x86/lib64/libartd.so (art::GetAndroidDir(char const*, char const*)+233)
native: art::GetAndroidDir(char const*, char const*)
native: art/runtime/utils.cc:762
native: #07 pc 000000000060948f /src/out/host/linux-x86/lib64/libartd.so (art::GetDalvikCache(char const*)+63)
native: art::GetAndroidData()
native: art/runtime/utils.cc:776
native: art::GetDalvikCache(char const*)
native: art/runtime/utils.cc:817
native: #08 pc 000000000034ef93 /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::PruneDalvikCache(art::InstructionSet)+67)
native: art::gc::space::PruneDalvikCache(art::InstructionSet)
native: art/runtime/gc/space/image_space_fs.h:95
native: #09 pc 000000000034ceef /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::ImageSpace::CreateBootImage(char const*, art::InstructionSet, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+3935)
native: art::gc::space::ImageSpace::CreateBootImage(char const*, art::InstructionSet, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)
native: art/runtime/gc/space/image_space.cc:1630
native: #10 pc 000000000034f39e /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::ImageSpace::LoadBootImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, art::InstructionSet, std::__1::vector<art::gc::space::ImageSpace*, std::__1::allocator<art::gc::space::ImageSpace*>>*, unsigned char**)+622)
native: art::gc::space::ImageSpace::LoadBootImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::InstructionSet, std::__1::vector<art::gc::space::ImageSpace*, std::__1::allocator<art::gc::space::ImageSpace*> >*, unsigned char**)
native: art/runtime/gc/space/image_space.cc:1668
native: #11 pc 0000000000316e6b /src/out/host/linux-x86/lib64/libartd.so (art::gc::Heap::Heap(unsigned long, unsigned long, unsigned long, unsigned long, double, double, unsigned long, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, art::InstructionSet, art::gc::CollectorType, art::gc::CollectorType, art::gc::space::LargeObjectSpaceType, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned long, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, unsigned long)+1851)
native: Heap
native: art/runtime/gc/heap.cc:318
native: #12 pc 00000000005b7bec /src/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime4InitEONS_18RuntimeArgumentMapE+9500)
native: art::Runtime::Init(art::RuntimeArgumentMap&&)
native: art/runtime/runtime.cc:1162
native: #13 pc 00000000005b567a /src/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime6CreateEONS_18RuntimeArgumentMapE+74)
native: art::Runtime::Create(art::RuntimeArgumentMap&&)
native: art/runtime/runtime.cc:617
native: #14 pc 000000000001d711 /src/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat13CreateRuntimeEONS_18RuntimeArgumentMapE+65)
native: art::Dex2Oat::CreateRuntime(art::RuntimeArgumentMap&&)
native: art/dex2oat/dex2oat.cc:2636
native: #15 pc 0000000000011e71 /src/out/host/linux-x86/bin/dex2oatd (art::Dex2Oat::Setup()+2977)
native: art::Dex2Oat::Setup()
native: art/dex2oat/dex2oat.cc:1564
native: #16 pc 000000000000be74 /src/out/host/linux-x86/bin/dex2oatd (main+756)
native: art::Dex2oat(int, char**)
native: art/dex2oat/dex2oat.cc:3117
native: main
native: art/dex2oat/dex2oat.cc:3139
native: #17 pc 0000000000002082 /usr/lib/x86_64-linux-gnu/libc-2.31.so (__libc_start_main+242)
native: ??
native: ??:0
native: #18 pc 000000000000ba58 /src/out/host/linux-x86/bin/dex2oatd (???)
"dex2oat watch d" prio=5 (not attached)
| sysTid=254967 nice=0 cgrp=default
| state=S schedstat=( 49238 10348022 1 ) utm=0 stm=0 core=9 HZ=100
kernel: (couldn't read /proc/self/task/254967/stack)
native: #00 pc 00000000000097d1 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so (pthread_cond_timedwait+625)
native: __pthread_create_2_1
native: ??:?
native: #01 pc 000000000001612d /src/out/host/linux-x86/bin/dex2oatd (art::WatchDog::Wait()+109)
native: art::WatchDog::Wait()
native: art/dex2oat/dex2oat.cc:550
native: #02 pc 00000000000160ac /src/out/host/linux-x86/bin/dex2oatd (art::WatchDog::CallBack(void*)+28)
native: art::WatchDog::CallBack(void*)
native: art/dex2oat/dex2oat.cc:513
native: #03 pc 0000000000002608 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so (start_thread+216)
native: ??
native: ??:0
native: #04 pc 00000000000fd132 /usr/lib/x86_64-linux-gnu/libc-2.31.so (clone+66)
native: fnmatch
native: ??:?
native: #05 pc 0000000000000000 ???
(Aborting thread was not attached to runtime!)
native: #00 pc 00000000004f55f9 /src/out/host/linux-x86/lib64/libartd.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+217)
native: art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
native: art/runtime/native_stack_dump.cc:300
native: #01 pc 00000000005b5174 /src/out/host/linux-x86/lib64/libartd.so (art::Runtime::Abort(char const*)+100)
native: art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
native: art/runtime/base/dumpable.h:39
native: std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
native: art/runtime/base/dumpable.h:50
native: art::Runtime::Abort(char const*)
native: art/runtime/runtime.cc:525
native: #02 pc 000000000000976a /src/out/host/linux-x86/lib64/libbase.so (android::base::LogMessage::~LogMessage()+858)
native: std::__1::function<void (char const*)>::operator()(char const*) const
native: external/libcxx/include/functional:1915
native: ~LogMessage
native: system/core/base/logging.cpp:433
native: #03 pc 0000000000609029 /src/out/host/linux-x86/lib64/libartd.so (art::GetAndroidDir(char const*, char const*)+233)
native: art::GetAndroidDir(char const*, char const*)
native: art/runtime/utils.cc:762
native: #04 pc 000000000060948f /src/out/host/linux-x86/lib64/libartd.so (art::GetDalvikCache(char const*)+63)
native: art::GetAndroidData()
native: art/runtime/utils.cc:776
native: art::GetDalvikCache(char const*)
native: art/runtime/utils.cc:817
native: #05 pc 000000000034ef93 /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::PruneDalvikCache(art::InstructionSet)+67)
native: art::gc::space::PruneDalvikCache(art::InstructionSet)
native: art/runtime/gc/space/image_space_fs.h:95
native: #06 pc 000000000034ceef /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::ImageSpace::CreateBootImage(char const*, art::InstructionSet, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+3935)
native: art::gc::space::ImageSpace::CreateBootImage(char const*, art::InstructionSet, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)
native: art/runtime/gc/space/image_space.cc:1630
native: #07 pc 000000000034f39e /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::ImageSpace::LoadBootImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, art::InstructionSet, std::__1::vector<art::gc::space::ImageSpace*, std::__1::allocator<art::gc::space::ImageSpace*>>*, unsigned char**)+622)
native: art::gc::space::ImageSpace::LoadBootImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::InstructionSet, std::__1::vector<art::gc::space::ImageSpace*, std::__1::allocator<art::gc::space::ImageSpace*> >*, unsigned char**)
native: art/runtime/gc/space/image_space.cc:1668
native: #08 pc 0000000000316e6b /src/out/host/linux-x86/lib64/libartd.so (art::gc::Heap::Heap(unsigned long, unsigned long, unsigned long, unsigned long, double, double, unsigned long, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, art::InstructionSet, art::gc::CollectorType, art::gc::CollectorType, art::gc::space::LargeObjectSpaceType, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned long, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, unsigned long)+1851)
native: Heap
native: art/runtime/gc/heap.cc:318
native: #09 pc 00000000005b7bec /src/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime4InitEONS_18RuntimeArgumentMapE+9500)
native: art::Runtime::Init(art::RuntimeArgumentMap&&)
native: art/runtime/runtime.cc:1162
native: #10 pc 00000000005b567a /src/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime6CreateEONS_18RuntimeArgumentMapE+74)
native: art::Runtime::Create(art::RuntimeArgumentMap&&)
native: art/runtime/runtime.cc:617
native: #11 pc 000000000001d711 /src/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat13CreateRuntimeEONS_18RuntimeArgumentMapE+65)
native: art::Dex2Oat::CreateRuntime(art::RuntimeArgumentMap&&)
native: art/dex2oat/dex2oat.cc:2636
native: #12 pc 0000000000011e71 /src/out/host/linux-x86/bin/dex2oatd (art::Dex2Oat::Setup()+2977)
native: art::Dex2Oat::Setup()
native: art/dex2oat/dex2oat.cc:1564
native: #13 pc 000000000000be74 /src/out/host/linux-x86/bin/dex2oatd (main+756)
native: art::Dex2oat(int, char**)
native: art/dex2oat/dex2oat.cc:3117
native: main
native: art/dex2oat/dex2oat.cc:3139
native: #14 pc 0000000000002082 /usr/lib/x86_64-linux-gnu/libc-2.31.so (__libc_start_main+242)
native: ??
native: ??:0
native: #15 pc 000000000000ba58 /src/out/host/linux-x86/bin/dex2oatd (???)
/bin/bash: line 1: 254966 Aborted (core dumped) ( ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --class-loader-context="&" --boot-image=out/target/product/redroid_x86_64/dex_bootjars/system/framework/boot.art --dex-file=out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex.input --dex-location=/system/app/BasicDreams/BasicDreams.apk --oat-file=out/target/product/redroid_x86_64/obj/APPS/BasicDreams_intermediates/oat/x86_64/package.odex --android-root=out/target/product/redroid_x86_64/system --instruction-set=x86_64 --instruction-set-variant=x86_64 --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=quicken )
[ 0% 16/36670] Dexpreopt Jar: vr (out/target/product/redroid_x86_64/obj/JAVA_LIBRARIES/vr_intermediates/oat/x86_64/javalib.odex)
FAILED: out/target/product/redroid_x86_64/obj/JAVA_LIBRARIES/vr_intermediates/oat/x86_64/javalib.odex
/bin/bash -c "(rm -f out/target/product/redroid_x86_64/obj/JAVA_LIBRARIES/vr_intermediates/oat/x86_64/javalib.odex ) && (mkdir -p out/target/product/redroid_x86_64/obj/JAVA_LIBRARIES/vr_intermediates/oat/x86_64/ ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --class-loader-context=\"&\" --boot-image=out/target/product/redroid_x86_64/dex_bootjars/system/framework/boot.art --dex-file=out/target/common/obj/JAVA_LIBRARIES/vr_intermediates/javalib.jar --dex-location=/system/framework/vr.jar --oat-file=out/target/product/redroid_x86_64/obj/JAVA_LIBRARIES/vr_intermediates/oat/x86_64/javalib.odex --android-root=out/target/product/redroid_x86_64/system --instruction-set=x86_64 --instruction-set-variant=x86_64 --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=quicken )"
dex2oatd F 08-22 14:04:51 254977 254977 utils.cc:762] ANDROID_DATA not set and /data does not exist
Runtime aborting...
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (0):
"dex2oatd" prio=5 (not attached)
| sysTid=254977 nice=0 cgrp=default
| state=R schedstat=( 13471569 140686 5 ) utm=0 stm=0 core=1 HZ=100
native: #00 pc 00000000004f55f9 /src/out/host/linux-x86/lib64/libartd.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+217)
native: art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
native: art/runtime/native_stack_dump.cc:300
native: #01 pc 00000000005eda90 /src/out/host/linux-x86/lib64/libartd.so (art::ThreadList::DumpUnattachedThreads(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+352)
native: art::DumpUnattachedThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, bool)
native: art/runtime/thread_list.cc:166
native: art::ThreadList::DumpUnattachedThreads(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
native: art/runtime/thread_list.cc:189
native: #02 pc 00000000005ed860 /src/out/host/linux-x86/lib64/libartd.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+288)
native: art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
native: art/runtime/thread_list.cc:267
native: #03 pc 00000000005c423b /src/out/host/linux-x86/lib64/libartd.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&) const+299)
native: art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
native: art/runtime/runtime.cc:428
native: #04 pc 00000000005b5174 /src/out/host/linux-x86/lib64/libartd.so (art::Runtime::Abort(char const*)+100)
native: art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
native: art/runtime/base/dumpable.h:39
native: std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
native: art/runtime/base/dumpable.h:50
native: art::Runtime::Abort(char const*)
native: art/runtime/runtime.cc:525
native: #05 pc 000000000000976a /src/out/host/linux-x86/lib64/libbase.so (android::base::LogMessage::~LogMessage()+858)
native: std::__1::function<void (char const*)>::operator()(char const*) const
native: external/libcxx/include/functional:1915
native: ~LogMessage
native: system/core/base/logging.cpp:433
native: #06 pc 0000000000609029 /src/out/host/linux-x86/lib64/libartd.so (art::GetAndroidDir(char const*, char const*)+233)
native: art::GetAndroidDir(char const*, char const*)
native: art/runtime/utils.cc:762
native: #07 pc 000000000060948f /src/out/host/linux-x86/lib64/libartd.so (art::GetDalvikCache(char const*)+63)
native: art::GetAndroidData()
native: art/runtime/utils.cc:776
native: art::GetDalvikCache(char const*)
native: art/runtime/utils.cc:817
native: #08 pc 000000000034ef93 /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::PruneDalvikCache(art::InstructionSet)+67)
native: art::gc::space::PruneDalvikCache(art::InstructionSet)
native: art/runtime/gc/space/image_space_fs.h:95
native: #09 pc 000000000034ceef /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::ImageSpace::CreateBootImage(char const*, art::InstructionSet, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+3935)
native: art::gc::space::ImageSpace::CreateBootImage(char const*, art::InstructionSet, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)
native: art/runtime/gc/space/image_space.cc:1630
native: #10 pc 000000000034f39e /src/out/host/linux-x86/lib64/libartd.so (art::gc::space::ImageSpace::LoadBootImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, art::InstructionSet, std::__1::vector<art::gc::space::ImageSpace*, std::__1::allocator<art::gc::space::ImageSpace*>>*, unsigned char**)+622)
native: art::gc::space::ImageSpace::LoadBootImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::InstructionSet, std::__1::vector<art::gc::space::ImageSpace*, std::__1::allocator<art::gc::space::ImageSpace*> >*, unsigned char**)
native: art/runtime/gc/space/image_space.cc:1668
native: #11 pc 0000000000316e6b /src/out/host/linux-x86/lib64/libartd.so (art::gc::Heap::Heap(unsigned long, unsigned long, unsigned long, unsigned long, double, double, unsigned long, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, art::InstructionSet, art::gc::CollectorType, art::gc::CollectorType, art::gc::space::LargeObjectSpaceType, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned long, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, unsigned long)+1851)
native: Heap
native: art/runtime/gc/heap.cc:318
native: #12 pc 00000000005b7bec /src/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime4InitEONS_18RuntimeArgumentMapE+9500)
native: art::Runtime::Init(art::RuntimeArgumentMap&&)
native: art/runtime/runtime.cc:1162
native: #13 pc 00000000005b567a /src/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime6CreateEONS_18RuntimeArgumentMapE+74)
native: art::Runtime::Create(art::RuntimeArgumentMap&&)
native: art/runtime/runtime.cc:617
native: #14 pc 000000000001d711 /src/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat13CreateRuntimeEONS_18RuntimeArgumentMapE+65)
native: art::Dex2Oat::CreateRuntime(art::RuntimeArgumentMap&&)
native: art/dex2oat/dex2oat.cc:2636
native: #15 pc 0000000000011e71 /src/out/host/linux-x86/bin/dex2oatd (art::Dex2Oat::Setup()+2977)
native: art::Dex2Oat::Setup()
native: art/dex2oat/dex2oat.cc:1564
native: #16 pc 000000000000be74 /src/out/host/linux-x86/bin/dex2oatd (main+756)
native: art::Dex2oat(int, char**)
native: art/dex2oat/dex2oat.cc:3117
native: main
native: art/dex2oat/dex2oat.cc:3139
native: #17 pc 0000000000002082 /usr/lib/x86_64-linux-gnu/libc-2.31.so (__libc_start_main+242)
native: ??
native: ??:0
native: #18 pc 000000000000ba58 /src/out/host/linux-x86/bin/dex2oatd (???)
...
看起来是因为这一行
dex2oatd F 08-22 14:10:34 256021 256021 utils.cc:762] ANDROID_DATA not set and /data does not exist
Try downgrade Linux kernel (5.15 etc.), and make sure memory is sufficient.
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-with-Ubuntu-20.04-focal
更换了内核和机器以后 dex 流程可以顺利完成,但是会出现 vendor 和 system 分区过小(?)的报错,尝试修改了两个 BOARD_VENDORIMAGE_*_SIZE
后仍然会报错,具体如下:
djkcyl@redroid-builder:/src$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=redroid_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-79-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
device/redroid/redroid_x86_64/BoardConfig.mk was modified, regenerating...
[680/998] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[998/998] including ./vendor/redroid/Android.mk ...
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
[ 25% 1/4] Ensuring Jack server is installed and started
Jack server already installed in "/home/djkcyl/.jack-server"
Server is already running
[ 50% 2/4] Target vendor fs image: out/target/product/redroid_x86_64/vendor.img
FAILED: out/target/product/redroid_x86_64/vendor.img
/bin/bash -c "(mkdir -p out/target/product/redroid_x86_64/vendor ) && (mkdir -p out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates && rm -rf out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs.sh\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"fs_type=ext4\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"system_size=1800000000\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_fs_type=ext4\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_size=570000000\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"selinux_fc=out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"system_root_image=true\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt; echo \"ramdisk_dir=out/target/product/redroid_x86_64/root\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"skip_fsck=true\" >> out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (PATH=out/host/linux-x86/bin/:\$PATH ./build/tools/releasetools/build_image.py out/target/product/redroid_x86_64/vendor out/target/product/redroid_x86_64/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt out/target/product/redroid_x86_64/vendor.img out/target/product/redroid_x86_64/system ) && (size=\$(for i in out/target/product/redroid_x86_64/vendor.img; do stat --format \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"out/target/product/redroid_x86_64/vendor.img\" | tr \" \" +); img_blocksize=2048; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((569999360 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((569999360 - reserve)); echo \"\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve\"; if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > [569999360 - \$reserve])\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
Running: mkuserimg_mke2fs.sh out/target/product/redroid_x86_64/vendor out/target/product/redroid_x86_64/vendor.img ext4 vendor 570000000 -D out/target/product/redroid_x86_64/system -L vendor out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf mke2fs -L vendor -t ext4 -b 4096 out/target/product/redroid_x86_64/vendor.img 139160
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 139160 4k blocks and 34800 inodes
Filesystem UUID: b79dca97-a698-460a-bbc7-688e9c836e6e
Superblock backups stored on blocks:
32768, 98304
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
e2fsdroid -e -p out/target/product/redroid_x86_64/system -S out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -f out/target/product/redroid_x86_64/vendor -a /vendor out/target/product/redroid_x86_64/vendor.img
Created filesystem with 446/34800 inodes and 127830/139160 blocks
out/target/product/redroid_x86_64/vendor.img maxsize=564297728 blocksize=2048 total=569999360 reserve=5701632
error: out/target/product/redroid_x86_64/vendor.img too large (569999360 > [569999360 - 5701632])
[ 75% 3/4] Target system fs image: out/target/product/redroid_x86_64/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkuserimg_mke2fs.sh /tmp/tmpK2mK8X out/target/product/redroid_x86_64/obj/PACKAGING/systemimage_intermediates/system.img ext4 / 1800000000 -D out/target/product/redroid_x86_64/system -L / out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf mke2fs -L / -t ext4 -b 4096 out/target/product/redroid_x86_64/obj/PACKAGING/systemimage_intermediates/system.img 439453
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 439453 4k blocks and 109984 inodes
Filesystem UUID: 75c19670-332b-418f-99b6-ab84f3fe1906
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
e2fsdroid -e -p out/target/product/redroid_x86_64/system -S out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -f /tmp/tmpK2mK8X -a / out/target/product/redroid_x86_64/obj/PACKAGING/systemimage_intermediates/system.img
Created filesystem with 2929/109984 inodes and 331697/439453 blocks
ninja: build stopped: subcommand failed.
03:45:16 ninja failed with: exit status 1
#### failed to build some targets (45 seconds) ####
djkcyl@redroid-builder:/src$
Try apply this workaround to build/make
diff --git a/core/definitions.mk b/core/definitions.mk
index 95e9a02..61f99ca 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -2977,7 +2977,7 @@ endef
# $(1): The file(s) to check (often $@)
# $(2): The partition size.
define assert-max-image-size
-$(if $(2), \
+#$(if $(2), \
$(call assert-max-file-size,$(1),$(call image-size-from-data-size,$(2))))
endef
修改后顺利完成了编译
djkcyl@redroid-builder:/src$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=redroid_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-79-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
out/target/product/redroid_x86_64/clean_steps.mk was modified, regenerating...
[680/998] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[998/998] including ./vendor/redroid/Android.mk ...
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
[ 33% 1/3] Ensuring Jack server is installed and started
Jack server already installed in "/home/djkcyl/.jack-server"
Server is already running
[100% 3/3] Target vendor fs image: out/target/product/redroid_x86_64/vendor.img
Running: mkuserimg_mke2fs.sh out/target/product/redroid_x86_64/vendor out/target/product/redroid_x86_64/vendor.img ext4 vendor 536870912 -D out/target/product/redroid_x86_64/system -L vendor out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf mke2fs -L vendor -t ext4 -b 4096 out/target/product/redroid_x86_64/vendor.img 131072
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: b3bfe9d6-0fb3-40d8-a3d5-17cd391c2b01
Superblock backups stored on blocks:
32768, 98304
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
e2fsdroid -e -p out/target/product/redroid_x86_64/system -S out/target/product/redroid_x86_64/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -f out/target/product/redroid_x86_64/vendor -a /vendor out/target/product/redroid_x86_64/vendor.img
Created filesystem with 446/32768 inodes and 127689/131072 blocks
#### build completed successfully (51 seconds) ####
但是启动系统后adb无法连接:
djkcyl@ArkoM:~/redroid-data$ sudo docker run -itd --rm --privileged -v ~/redroid-data/data:/data -p 5555:5555 redroid
dff159f67c9bfa6e8e34b4804fec7ecfcf9a3a2240a752f32f22b2fabcd7180a
djkcyl@ArkoM:~/redroid-data$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dff159f67c9b redroid "/init androidboot.h…" 2 minutes ago Up 2 minutes 0.0.0.0:5555->5555/tcp, :::5555->5555/tcp affectionate_austin
djkcyl@ArkoM:~/redroid-data$ sudo docker top dff
UID PID PPID C STIME TTY TIME CMD
1036 309 372739 0 15:22 pts/0 00:00:00 /system/bin/logd
djkcyl 312 372739 0 15:22 pts/0 00:00:00 /system/bin/servicemanager
djkcyl 313 372739 0 15:22 pts/0 00:00:00 /system/bin/hwservicemanager
djkcyl 315 372739 0 15:22 pts/0 00:00:00 /vendor/bin/vndservicemanager /dev/vndbinder
djkcyl 321 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.keymaster@3.0-service
root 322 372739 0 15:22 pts/0 00:00:00 /system/bin/vold --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0
djkcyl 445 372739 0 15:22 pts/0 00:00:00 /system/bin/hw/android.hidl.allocator@1.0-service
1002 447 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.bluetooth@1.0-service.sim
1013 448 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.cas@1.0-service
djkcyl 449 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.configstore@1.0-service
1013 450 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.drm@1.0-service
djkcyl 452 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
1010 455 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/android.hardware.wifi@1.0-service
root 456 372739 0 15:22 pts/0 00:00:00 /system/bin/healthd
root 457 372739 0 15:22 pts/0 00:00:00 /system/bin/lmkd
root 459 372739 0 15:22 pts/0 00:00:00 /system/bin/thermalserviced
2000 460 372739 0 15:22 ? 00:00:00 /system/bin/sh
2000 461 372739 0 15:22 pts/0 00:00:00 /system/bin/adbd --root_seclabel=u:r:su:s0
root 463 372739 0 15:22 pts/0 00:00:00 zygote
1019 467 372739 0 15:22 pts/0 00:00:00 /system/bin/drmserver
root 468 372739 0 15:22 pts/0 00:00:00 /system/bin/installd
1017 469 372739 0 15:22 pts/0 00:00:00 /system/bin/keystore /data/misc/keystore
1013 470 372739 0 15:22 pts/0 00:00:00 /system/bin/mediadrmserver
1040 472 372739 0 15:22 pts/0 00:00:00 media.extractor aextractor
1013 473 372739 0 15:22 pts/0 00:00:00 media.metrics diametrics
root 478 372739 0 15:22 pts/0 00:00:00 /system/bin/storaged
1046 480 372739 0 15:22 pts/0 00:00:00 media.codec hw/android.hardware.media.omx@1.0-service
1001 482 372739 0 15:22 pts/0 00:00:00 /vendor/bin/hw/rild
1020 483 372739 0 15:22 pts/0 00:00:00 /system/bin/mdnsd
djkcyl 485 372739 0 15:22 pts/0 00:00:00 /system/bin/gatekeeperd /data/misc/gatekeeper
1058 487 372739 0 15:22 pts/0 00:00:00 /system/bin/tombstoned
root 372739 372712 16 15:22 pts/0 00:00:27 /init eo?_??
root 372790 372739 0 15:22 pts/0 00:00:00 /sbin/ueventd
djkcyl@ArkoM:~/redroid-data$ adb devices
List of devices attached
emulator-5554 offline
djkcyl@ArkoM:~/redroid-data$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
redroid latest 58713391937b 8 minutes ago 1.79GB
redroid-builder latest 6d1583bd9f25 14 hours ago 888MB
djkcyl@ArkoM:~/redroid-data$
demsg 的信息如下:
[ 4016.009890] init: Successfully killed process cgroup uid 1010 pid 2151 in 5ms
[ 4016.010043] init: Service 'audioserver' (pid 2146) killed by signal 9
[ 4016.010049] init: Sending signal 9 to service 'audio-hal-2-0' (pid 2142) process group...
[ 4016.015201] init: Successfully killed process cgroup uid 1041 pid 2142 in 5ms
[ 4016.015328] init: Service 'audio-hal-2-0' (pid 2142) killed by signal 9
[ 4016.015361] init: Service 'cameraserver' (pid 2147) killed by signal 9
[ 4016.015418] init: Service 'media' (pid 2148) killed by signal 9
[ 4016.015484] init: Service 'netd' (pid 2149) killed by signal 9
[ 4016.015533] init: Service 'wificond' (pid 2151) killed by signal 9
[ 4016.015558] init: Untracked pid 2155 killed by signal 9
[ 4016.015569] init: Untracked pid 2156 killed by signal 9
[ 4016.015696] init: processing action (init.svc.zygote=stopping) from (/system/etc/init/bootstat.rc:62)
[ 4016.067233] init: Service 'gatekeeper-1-0' (pid 2143) killed by signal 6
[ 4016.067240] init: Sending signal 9 to service 'gatekeeper-1-0' (pid 2143) process group...
[ 4016.067270] init: Successfully killed process cgroup uid 1000 pid 2143 in 0ms
[ 4020.907610] init: starting service 'audio-hal-2-0'...
[ 4020.928143] init: property_set("ro.boottime.audio-hal-2-0", "4021103694845") failed: property already set
[ 4020.958645] init: starting service 'gatekeeper-1-0'...
[ 4020.958853] init: property_set("ro.boottime.gatekeeper-1-0", "4021154722023") failed: property already set
[ 4020.958888] init: starting service 'hwcomposer-2-1'...
[ 4020.959032] init: property_set("ro.boottime.hwcomposer-2-1", "4021154939205") failed: property already set
[ 4020.959114] init: starting service 'zygote'...
[ 4020.959270] init: property_set("ro.boottime.zygote", "4021155176606") failed: property already set
[ 4020.959310] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[ 4020.959331] init: starting service 'audioserver'...
[ 4020.959496] init: property_set("ro.boottime.audioserver", "4021155392428") failed: property already set
[ 4020.959828] init: starting service 'cameraserver'...
[ 4020.959967] init: couldn't write 2176 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[ 4020.959996] init: property_set("ro.boottime.cameraserver", "4021155881011") failed: property already set
[ 4020.960198] init: starting service 'media'...
[ 4020.960384] init: property_set("ro.boottime.media", "4021156265144") failed: property already set
[ 4020.960523] init: starting service 'netd'...
[ 4020.960696] init: property_set("ro.boottime.netd", "4021156587337") failed: property already set
[ 4020.960696] init: Created socket '/dev/socket/netd', mode 660, user 0, group 1000
[ 4020.960727] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[ 4020.960745] init: Created socket '/dev/socket/mdns', mode 660, user 0, group 1000
[ 4020.960762] init: Created socket '/dev/socket/fwmarkd', mode 660, user 0, group 3003
[ 4020.960841] init: starting service 'surfaceflinger'...
[ 4020.961031] init: property_set("ro.boottime.surfaceflinger", "4021156912449") failed: property already set
[ 4020.961039] init: Failed to bind socket 'pdx/system/vr/display/client': No such file or directory
[ 4020.961072] init: Failed to bind socket 'pdx/system/vr/display/manager': No such file or directory
[ 4020.961094] init: Failed to bind socket 'pdx/system/vr/display/vsync': No such file or directory
[ 4020.962333] init: starting service 'wificond'...
[ 4020.962535] init: property_set("ro.boottime.wificond", "4021158407420") failed: property already set
[ 4020.972608] init: Service 'hwcomposer-2-1' (pid 2173) killed by signal 1
[ 4020.972619] init: Sending signal 9 to service 'hwcomposer-2-1' (pid 2173) process group...
[ 4020.972658] init: Successfully killed process cgroup uid 1000 pid 2173 in 0ms
[ 4020.972721] init: Sending signal 9 to service 'surfaceflinger' (pid 2179) process group...
[ 4020.972823] ptrace attach of "/vendor/bin/hw/android.hardware.gatekeeper@1.0-service"[39355] was attempted by "crash_dump64 2172 2183 1"[39373]
[ 4020.978122] init: Successfully killed process cgroup uid 1000 pid 2179 in 5ms
[ 4020.978193] init: Service 'surfaceflinger' (pid 2179) killed by signal 9
[ 4020.978205] init: Sending signal 9 to service 'zygote' (pid 2174) process group...
[ 4020.983388] init: Successfully killed process cgroup uid 0 pid 2174 in 5ms
[ 4020.983488] init: Service 'zygote' (pid 2174) killed by signal 9
[ 4020.983504] init: Unable to open '/sys/android_power/request_state': No such file or directory
[ 4020.983589] init: Sending signal 9 to service 'audioserver' (pid 2175) process group...
[ 4020.988757] init: Successfully killed process cgroup uid 1041 pid 2175 in 5ms
[ 4020.988799] init: Sending signal 9 to service 'cameraserver' (pid 2176) process group...
[ 4020.993947] init: Successfully killed process cgroup uid 1047 pid 2176 in 5ms
[ 4020.994014] init: Sending signal 9 to service 'media' (pid 2177) process group...
[ 4020.999165] init: Successfully killed process cgroup uid 1013 pid 2177 in 5ms
[ 4020.999209] init: Sending signal 9 to service 'netd' (pid 2178) process group...
[ 4021.004437] init: Successfully killed process cgroup uid 0 pid 2178 in 5ms
[ 4021.004506] init: Sending signal 9 to service 'wificond' (pid 2180) process group...
[ 4021.009788] init: Successfully killed process cgroup uid 1010 pid 2180 in 5ms
[ 4021.010164] init: Service 'audioserver' (pid 2175) killed by signal 9
[ 4021.010170] init: Sending signal 9 to service 'audio-hal-2-0' (pid 2171) process group...
[ 4021.015333] init: Successfully killed process cgroup uid 1041 pid 2171 in 5ms
[ 4021.015462] init: Service 'audio-hal-2-0' (pid 2171) killed by signal 9
[ 4021.015489] init: Service 'cameraserver' (pid 2176) killed by signal 9
[ 4021.015546] init: Service 'media' (pid 2177) killed by signal 9
[ 4021.015607] init: Service 'netd' (pid 2178) killed by signal 9
[ 4021.015652] init: Service 'wificond' (pid 2180) killed by signal 9
[ 4021.015680] init: Untracked pid 2187 killed by signal 1
[ 4021.015689] init: Untracked pid 2181 killed by signal 9
[ 4021.015701] init: Untracked pid 2182 killed by signal 9
[ 4021.015817] init: processing action (init.svc.zygote=stopping) from (/system/etc/init/bootstat.rc:62)
[ 4021.016461] init: no such service 'wpa_supplicant'
[ 4021.064949] init: Service 'gatekeeper-1-0' (pid 2172) killed by signal 6
[ 4021.064957] init: Sending signal 9 to service 'gatekeeper-1-0' (pid 2172) process group...
[ 4021.064999] init: Successfully killed process cgroup uid 1000 pid 2172 in 0ms
[ 4025.907690] init: starting service 'audio-hal-2-0'...
[ 4025.936084] init: property_set("ro.boottime.audio-hal-2-0", "4026103816026") failed: property already set
[ 4025.958716] init: starting service 'gatekeeper-1-0'...
[ 4025.958940] init: property_set("ro.boottime.gatekeeper-1-0", "4026154836404") failed: property already set
[ 4025.958950] init: starting service 'hwcomposer-2-1'...
[ 4025.959115] init: property_set("ro.boottime.hwcomposer-2-1", "4026155055056") failed: property already set
[ 4025.959166] init: starting service 'zygote'...
[ 4025.959325] init: property_set("ro.boottime.zygote", "4026155269447") failed: property already set
[ 4025.959336] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[ 4025.959374] init: starting service 'audioserver'...
[ 4025.959571] init: property_set("ro.boottime.audioserver", "4026155486949") failed: property already set
[ 4025.959859] init: starting service 'cameraserver'...
[ 4025.960005] init: couldn't write 2205 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[ 4025.960097] init: property_set("ro.boottime.cameraserver", "4026155966152") failed: property already set
[ 4025.960247] init: starting service 'media'...
[ 4025.960451] init: property_set("ro.boottime.media", "4026156358775") failed: property already set
[ 4025.960643] init: starting service 'netd'...
[ 4025.961310] init: property_set("ro.boottime.netd", "4026157225692") failed: property already set
[ 4025.961320] init: starting service 'surfaceflinger'...
[ 4025.961360] init: Created socket '/dev/socket/netd', mode 660, user 0, group 1000
[ 4025.961415] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[ 4025.961456] init: Created socket '/dev/socket/mdns', mode 660, user 0, group 1000
[ 4025.961493] init: Created socket '/dev/socket/fwmarkd', mode 660, user 0, group 3003
[ 4025.961514] init: Failed to bind socket 'pdx/system/vr/display/client': No such file or directory
[ 4025.961539] init: property_set("ro.boottime.surfaceflinger", "4026157455283") failed: property already set
[ 4025.961547] init: Failed to bind socket 'pdx/system/vr/display/manager': No such file or directory
[ 4025.961566] init: Failed to bind socket 'pdx/system/vr/display/vsync': No such file or directory
[ 4025.962390] init: starting service 'wificond'...
[ 4025.962609] init: property_set("ro.boottime.wificond", "4026158504041") failed: property already set
[ 4025.972014] ptrace attach of "/vendor/bin/hw/android.hardware.gatekeeper@1.0-service"[39864] was attempted by "crash_dump64 2201 2210 1"[39878]
[ 4025.973071] init: Service 'hwcomposer-2-1' (pid 2202) killed by signal 1
[ 4025.973083] init: Sending signal 9 to service 'hwcomposer-2-1' (pid 2202) process group...
[ 4025.973122] init: Successfully killed process cgroup uid 1000 pid 2202 in 0ms
[ 4025.973186] init: Sending signal 9 to service 'surfaceflinger' (pid 2208) process group...
[ 4025.978361] init: Successfully killed process cgroup uid 1000 pid 2208 in 5ms
[ 4025.978449] init: Service 'surfaceflinger' (pid 2208) killed by signal 9
[ 4025.978463] init: Sending signal 9 to service 'zygote' (pid 2203) process group...
[ 4025.983615] init: Successfully killed process cgroup uid 0 pid 2203 in 5ms
[ 4025.983711] init: Service 'zygote' (pid 2203) killed by signal 9
[ 4025.983725] init: Unable to open '/sys/android_power/request_state': No such file or directory
[ 4025.983795] init: Sending signal 9 to service 'audioserver' (pid 2204) process group...
[ 4025.988968] init: Successfully killed process cgroup uid 1041 pid 2204 in 5ms
[ 4025.989020] init: Sending signal 9 to service 'cameraserver' (pid 2205) process group...
[ 4025.994172] init: Successfully killed process cgroup uid 1047 pid 2205 in 5ms
[ 4025.994223] init: Sending signal 9 to service 'media' (pid 2206) process group...
[ 4025.999381] init: Successfully killed process cgroup uid 1013 pid 2206 in 5ms
[ 4025.999431] init: Sending signal 9 to service 'netd' (pid 2207) process group...
[ 4026.004624] init: Successfully killed process cgroup uid 0 pid 2207 in 5ms
[ 4026.004665] init: Sending signal 9 to service 'wificond' (pid 2209) process group...
[ 4026.009822] init: Successfully killed process cgroup uid 1010 pid 2209 in 5ms
[ 4026.009975] init: Service 'audioserver' (pid 2204) killed by signal 9
[ 4026.009982] init: Sending signal 9 to service 'audio-hal-2-0' (pid 2200) process group...
[ 4026.015136] init: Successfully killed process cgroup uid 1041 pid 2200 in 5ms
[ 4026.015268] init: Service 'audio-hal-2-0' (pid 2200) killed by signal 9
[ 4026.015299] init: Service 'cameraserver' (pid 2205) killed by signal 9
[ 4026.015356] init: Service 'media' (pid 2206) killed by signal 9
[ 4026.015422] init: Service 'netd' (pid 2207) killed by signal 9
[ 4026.015471] init: Service 'wificond' (pid 2209) killed by signal 9
[ 4026.015501] init: Untracked pid 2214 killed by signal 1
[ 4026.015510] init: Untracked pid 2215 killed by signal 9
[ 4026.015523] init: Untracked pid 2216 killed by signal 9
[ 4026.015653] init: processing action (init.svc.zygote=stopping) from (/system/etc/init/bootstat.rc:62)
[ 4026.016237] init: no such service 'wpa_supplicant'
[ 4026.069531] init: Service 'gatekeeper-1-0' (pid 2201) killed by signal 6
[ 4026.069540] init: Sending signal 9 to service 'gatekeeper-1-0' (pid 2201) process group...
[ 4026.069581] init: Successfully killed process cgroup uid 1000 pid 2201 in 0ms
好像是gpu的问题,改成 guest 就可以启动了
貌似问题解决了,我重新打包了一次docker镜像,这次没问题了,可以正常使用gpu启动,让我再测试一下看看
游戏里的 webview 可以正常使用了,但是开发者选项还是仍然打不开。
出现了一个很奇怪的事情,如果我只开一个容器的话,没有任何问题,但我开2个的话,两个容器都会出问题,容器里的系统一直重启,scrcpy也无法连接,我中午换AMD显卡再试试看是啥情况
遇到点小问题,换了AMD显卡之后没法启动 Ubuntu20
Describe the bug 大概就是需要 webview 的游戏在安卓 8.1 上都会导致调用 webview 时进程卡死,可以正常返回 HOME。
但由于程序在高于 8.1 的版本会出问题,所以只能使用 8.1。
用 NVIDIA 显卡和 AMD 显卡会遇到这个问题,Intel核显和 cpu不会
使用 NVIDIA 显卡的时候不能正常打开 aida64,会闪退,但是amd和intel则不会。
Screenshots 正常情况应该是这样的: 但是卡死就变成这样了: