Open sunO2 opened 1 year ago
take a look at device/generic/goldfish/camera/media_profiles.xml
.
BTW, should change qemu_pipe
to something else, since generic linux kernel not include this feature.
take a look at
device/generic/goldfish/camera/media_profiles.xml
. BTW, should changeqemu_pipe
to something else, since generic linux kernel not include this feature.看看
device/generic/goldfish/camera/media_profiles.xml
。 顺便说一句,应该把qemu_pipe
改成别的东西,因为通用的Linux内核不包括这个特性。
好的 我研究一下 device/generic/goldfish/camera/media_profiles.xml 文件
但是我需要怎么做将 qemu_pipe 改成 受支持方式呢 thanks
take a look at
device/generic/goldfish/camera/media_profiles.xml
. BTW, should changeqemu_pipe
to something else, since generic linux kernel not include this feature. 看看device/generic/goldfish/camera/media_profiles.xml
。 顺便说一句,应该把qemu_pipe
改成别的东西,因为通用的Linux内核不包括这个特性。好的 我研究一下 device/generic/goldfish/camera/media_profiles.xml 文件
但是我需要怎么做将 qemu_pipe 改成 受支持方式呢 thanks
How is it now?
你好: 我移植模拟器的 camera.ranchu 出现以下异常 可以请教一下 问题出现在哪吗
redroid.mk 添加
Crash
07-11 12:41:07.081 3897 3897 E AndroidRuntime: FATAL EXCEPTION: main 07-11 12:41:07.081 3897 3897 E AndroidRuntime: Process: com.android.camera2, PID: 3897 07-11 12:41:07.081 3897 3897 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.IllegalArgumentException: Could not find supported video qualities. 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3635) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7839) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Could not find supported video qualities. 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.camera.settings.SettingsUtil.getNextSupportedVideoQualityIndex(SettingsUtil.java:347) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.camera.settings.SettingsUtil.getSelectedVideoQualities(SettingsUtil.java:319) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.camera.settings.PictureSizeLoader.computeQualitiesForCamera(PictureSizeLoader.java:154) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.camera.settings.PictureSizeLoader.computePictureSizes(PictureSizeLoader.java:120) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1508) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8050) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8030) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608) 07-11 12:41:07.081 3897 3897 E AndroidRuntime: ... 12 more 07-12 01:27:03.776 84 218 F libc : Fatal signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0x740536b557dd in tid 218 (HwBinder:84_1), pid 84 (allocator@2.0-s) 07-12 01:27:03.809 23762 23762 F DEBUG : 07-12 01:27:03.809 23762 23762 F DEBUG : Build fingerprint: 'redroid/redroid_x86_64_only/redroid_x86_64_only:12/SQ1D.220205.004/eng.root.20230711.030852:userdebug/test-keys' 07-12 01:27:03.809 23762 23762 F DEBUG : Revision: '0' 07-12 01:27:03.809 23762 23762 F DEBUG : ABI: 'x86_64' 07-12 01:27:03.809 23762 23762 F DEBUG : Timestamp: 2023-07-12 01:27:03.790592782+0000 07-12 01:27:03.809 23762 23762 F DEBUG : Process uptime: 0s 07-12 01:27:03.809 23762 23762 F DEBUG : Cmdline: /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service 07-12 01:27:03.809 23762 23762 F DEBUG : pid: 84, tid: 218, name: HwBinder:84_1 >>> /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service <<< 07-12 01:27:03.809 23762 23762 F DEBUG : uid: 1000 07-12 01:27:03.809 23762 23762 F DEBUG : signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0x740536b557dd 07-12 01:27:03.809 23762 23762 F DEBUG : rax 0000000000001400 rbx 0000740606d9fdb0 rcx 0000000000000000 rdx 0000000000000000 07-12 01:27:03.809 23762 23762 F DEBUG : r8 00007405d6da7890 r9 0000000000000001 r10 0000000000000003 r11 0000000000000002 07-12 01:27:03.809 23762 23762 F DEBUG : r12 0000000000000500 r13 00000000000002d0 r14 0000000000000022 r15 00007405f6dada60 07-12 01:27:03.809 23762 23762 F DEBUG : rdi 0000740528d91684 rsi 0000740536b557d2 07-12 01:27:03.809 23762 23762 F DEBUG : rbp 00007405d6da7880 rsp 0000740528d91590 rip 0000740536b557dd 07-12 01:27:03.809 23762 23762 F DEBUG : backtrace: 07-12 01:27:03.809 23762 23762 F DEBUG : #00 pc 00000000000067dd /vendor/lib64/hw/gralloc.gbm.so (gralloc_gbm_bo_create+621) 07-12 01:27:03.809 23762 23762 F DEBUG : #01 pc 00000000000061e6 /vendor/lib64/hw/gralloc.gbm.so 07-12 01:27:03.809 23762 23762 F DEBUG : #02 pc 00000000000043d4 /vendor/lib64/hw/android.hardware.graphics.allocator@2.0-impl.so (android::hardware::graphics::allocator::V2_0::passthrough::detail::Gralloc0HalImpl::allocateBuffers(android::hardware::hidl_vec const&, unsigned int, unsigned int, std::__1::vector<native_handle const, std::1::allocator<native_handle const> >)+292) (BuildId: 6e8aa22433ecae2b5ffbe725832e626c)
07-12 01:27:03.809 23762 23762 F DEBUG : #03 pc 00000000000046e3 /vendor/lib64/hw/android.hardware.graphics.allocator@2.0-impl.so (android::hardware::graphics::allocator::V2_0::hal::detail::AllocatorImpl<android::hardware::graphics::allocator::V2_0::IAllocator, android::hardware::graphics::allocator::V2_0::hal::AllocatorHal>::allocate(android::hardware::hidl_vec const&, unsigned int, std::__1::function<void (android::hardware::graphics::mapper::V2_0::Error, unsigned int, android::hardware::hidl_vec const&)>)+83) (BuildId: 6e8aa22433ecae2b5ffbe725832e626c)
07-12 01:27:03.809 23762 23762 F DEBUG : #04 pc 000000000000e4a3 /apex/com.android.vndk.v31/lib64/android.hardware.graphics.allocator@2.0.so (android::hardware::graphics::allocator::V2_0::BnHwAllocator::_hidl_allocate(android::hidl::base::V1_0::BnHwBase, android::hardware::Parcel const&, android::hardware::Parcel, std:: 1::function<void (android::hardware::Parcel&)>)+467) (BuildId: 903bdf18f9bc96c39746d7ff6eee8ac3)
07-12 01:27:03.809 23762 23762 F DEBUG : #05 pc 000000000000e825 /apex/com.android.vndk.v31/lib64/android.hardware.graphics.allocator@2.0.so (android::hardware::graphics::allocator::V2_0::BnHwAllocator::onTransact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+325) (BuildId: 903bdf18f9bc96c39746d7ff6eee8ac3)
07-12 01:27:03.809 23762 23762 F DEBUG : #06 pc 0000000000055098 /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hardware::BHwBinder::transact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel, unsigned int, std::1::function<void (android::hardware::Parcel&)>)+136) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:03.809 23762 23762 F DEBUG : #07 pc 0000000000053558 /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hardware::IPCThreadState::getAndExecuteCommand()+1832) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:03.809 23762 23762 F DEBUG : #08 pc 0000000000052d69 /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hardware::IPCThreadState::joinThreadPool(bool)+89) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:03.809 23762 23762 F DEBUG : #09 pc 0000000000052d07 /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hardware::PoolThread::threadLoop()+23) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:03.809 23762 23762 F DEBUG : #10 pc 0000000000013c49 /apex/com.android.vndk.v31/lib64/libutils.so (android::Thread::_threadLoop(void)+313) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:03.809 23762 23762 F DEBUG : #11 pc 0000000000013489 /apex/com.android.vndk.v31/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const)+425) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:03.809 23762 23762 F DEBUG : #12 pc 00000000000c758a /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 5db8d317d3741b337ef046540bbdd0f7)
07-12 01:27:03.809 23762 23762 F DEBUG : #13 pc 000000000005fd87 /apex/com.android.runtime/lib64/bionic/libc.so (start_thread+55) (BuildId: 5db8d317d3741b337ef046540bbdd0f7)
07-12 01:27:04.044 79 117 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 117 (HwBinder:79_2), pid 79 (audio.service)
07-12 01:27:04.062 23817 23817 F DEBUG :
07-12 01:27:04.062 23817 23817 F DEBUG : Build fingerprint: 'redroid/redroid_x86_64_only/redroid_x86_64_only:12/SQ1D.220205.004/eng.root.20230711.030852:userdebug/test-keys'
07-12 01:27:04.062 23817 23817 F DEBUG : Revision: '0'
07-12 01:27:04.062 23817 23817 F DEBUG : ABI: 'x86_64'
07-12 01:27:04.062 23817 23817 F DEBUG : Timestamp: 2023-07-12 01:27:04.050431090+0000
07-12 01:27:04.062 23817 23817 F DEBUG : Process uptime: 0s
07-12 01:27:04.062 23817 23817 F DEBUG : Cmdline: /vendor/bin/hw/android.hardware.audio.service
07-12 01:27:04.062 23817 23817 F DEBUG : pid: 79, tid: 117, name: HwBinder:79_2 >>> /vendor/bin/hw/android.hardware.audio.service <<<
07-12 01:27:04.062 23817 23817 F DEBUG : uid: 1041
07-12 01:27:04.062 23817 23817 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
07-12 01:27:04.062 23817 23817 F DEBUG : Abort message: 'terminating'
07-12 01:27:04.062 23817 23817 F DEBUG : rax 0000000000000000 rbx 000000000000004f rcx 00007e66dbb055cf rdx 0000000000000006
07-12 01:27:04.062 23817 23817 F DEBUG : r8 0000000000000000 r9 0000000000000000 r10 00007e64473c3370 r11 0000000000000203
07-12 01:27:04.062 23817 23817 F DEBUG : r12 00007e64473c3560 r13 0000003000000008 r14 00007e64473c3368 r15 0000000000000075
07-12 01:27:04.062 23817 23817 F DEBUG : rdi 000000000000004f rsi 0000000000000075
07-12 01:27:04.062 23817 23817 F DEBUG : rbp 0000000000000000 rsp 00007e64473c3360 rip 00007e66dbb055cf
07-12 01:27:04.062 23817 23817 F DEBUG : backtrace:
07-12 01:27:04.062 23817 23817 F DEBUG : #00 pc 000000000005e5cf /apex/com.android.runtime/lib64/bionic/libc.so (abort+191) (BuildId: 5db8d317d3741b337ef046540bbdd0f7)
07-12 01:27:04.062 23817 23817 F DEBUG : #01 pc 00000000000d71eb /vendor/lib64/libc++_shared.so (BuildId: de4901415b117d03796c38214752f9d82ebc73ca)
07-12 01:27:04.062 23817 23817 F DEBUG : #02 pc 00000000000d72a9 /vendor/lib64/libc++_shared.so (BuildId: de4901415b117d03796c38214752f9d82ebc73ca)
07-12 01:27:04.062 23817 23817 F DEBUG : #03 pc 00000000000ed402 /vendor/lib64/libc++_shared.so (BuildId: de4901415b117d03796c38214752f9d82ebc73ca)
07-12 01:27:04.062 23817 23817 F DEBUG : #04 pc 00000000000ed391 /vendor/lib64/libc++_shared.so (std::terminate()+33) (BuildId: de4901415b117d03796c38214752f9d82ebc73ca)
07-12 01:27:04.062 23817 23817 F DEBUG : #05 pc 00000000000d65dd /vendor/lib64/libc++_shared.so (std::ndk1::thread::~thread()+13) (BuildId: de4901415b117d03796c38214752f9d82ebc73ca)
07-12 01:27:04.062 23817 23817 F DEBUG : #06 pc 0000000000006307 /vendor/lib64/hw/audio.primary.redroid.so
07-12 01:27:04.062 23817 23817 F DEBUG : #07 pc 000000000001c7f5 /vendor/lib64/hw/android.hardware.audio@7.0-impl.so (virtual thunk to android::hardware::audio::V7_0::implementation::Device::~Device()+85) (BuildId: 7ca3d28b21a53f1bc2ce93688b647b15)
07-12 01:27:04.062 23817 23817 F DEBUG : #08 pc 000000000000fc67 /apex/com.android.vndk.v31/lib64/libutils.so (android::RefBase::decStrong(void const) const+71) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:04.062 23817 23817 F DEBUG : #09 pc 000000000002d4fa /vendor/lib64/hw/android.hardware.audio@7.0-impl.so (android::hardware::audio::V7_0::implementation::StreamOut::~StreamOut()+538) (BuildId: 7ca3d28b21a53f1bc2ce93688b647b15)
07-12 01:27:04.062 23817 23817 F DEBUG : #10 pc 000000000002d671 /vendor/lib64/hw/android.hardware.audio@7.0-impl.so (virtual thunk to android::hardware::audio::V7_0::implementation::StreamOut::~StreamOut()+33) (BuildId: 7ca3d28b21a53f1bc2ce93688b647b15)
07-12 01:27:04.062 23817 23817 F DEBUG : #11 pc 000000000000fc67 /apex/com.android.vndk.v31/lib64/libutils.so (android::RefBase::decStrong(void const) const+71) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:04.062 23817 23817 F DEBUG : #12 pc 00000000000af81d /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hidl::base::V1_0::BnHwBase::~BnHwBase()+269) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:04.062 23817 23817 F DEBUG : #13 pc 00000000000b8255 /vendor/lib64/android.hardware.audio@7.0.so (android::hardware::audio::V7_0::BnHwStreamOut::~BnHwStreamOut()+197) (BuildId: 6717661d34bb23109a9d3ce6ef7525ac)
07-12 01:27:04.062 23817 23817 F DEBUG : #14 pc 00000000000b83a1 /vendor/lib64/android.hardware.audio@7.0.so (virtual thunk to android::hardware::audio::V7_0::BnHwStreamOut::~BnHwStreamOut()+33) (BuildId: 6717661d34bb23109a9d3ce6ef7525ac)
07-12 01:27:04.062 23817 23817 F DEBUG : #15 pc 000000000000fc67 /apex/com.android.vndk.v31/lib64/libutils.so (android::RefBase::decStrong(void const) const+71) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:04.062 23817 23817 F DEBUG : #16 pc 0000000000052e29 /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hardware::IPCThreadState::joinThreadPool(bool)+281) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:04.062 23817 23817 F DEBUG : #17 pc 0000000000052d07 /apex/com.android.vndk.v31/lib64/libhidlbase.so (android::hardware::PoolThread::threadLoop()+23) (BuildId: 0268daec960a6a37e4f9b9d914fa369d)
07-12 01:27:04.062 23817 23817 F DEBUG : #18 pc 0000000000013c49 /apex/com.android.vndk.v31/lib64/libutils.so (android::Thread::_threadLoop(void)+313) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:04.062 23817 23817 F DEBUG : #19 pc 0000000000013489 /apex/com.android.vndk.v31/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const)+425) (BuildId: d992c0e23e85e2606a39e5a3f6799866)
07-12 01:27:04.062 23817 23817 F DEBUG : #20 pc 00000000000c758a /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void)+58) (BuildId: 5db8d317d3741b337ef046540bbdd0f7)
07-12 01:27:04.062 23817 23817 F DEBUG : #21 pc 000000000005fd87 /apex/com.android.runtime/lib64/bionic/libc.so (start_thread+55) (BuildId: 5db8d317d3741b337ef046540bbdd0f7)