GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
360 stars 21 forks source link

Pixel 8 GrapheneOS Stock Camera crash #2993

Closed polzon closed 9 months ago

polzon commented 10 months ago

This started happening to me after the 2023123100 update I received for my Pixel 8 last night.

I also have the Pixel Camera Services app installed. I have the Pixel Camera app installed, but currently disabled. The stock GrapheneOS is my default and only enabled camera.

I'm not entirely sure what causes it, but I will update when I find a way to recreate this bug.

type: crash
osVersion: google/shiba/shiba:14/UQ1A.231205.015/2023123100:user/release-keys
uid: 1000 (u:r:hal_camera_default:s0)
cmdline: /apex/com.google.pixel.camera.hal/bin/hw/android.hardware.camera.provider@2.7-service-google
processUptime: 0s

signal: 11 (SIGSEGV), code 1 (SEGV_MAPERR), faultAddr 0
cause: null pointer dereference
threadName: binder:894_6
MTE: not enabled

backtrace:
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc a2aa64)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc a2768c)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc a15d88)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc 91a8f0)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc e6e034)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc e5c504)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc 405d3c)
    /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (pc 3810d0)
    /apex/com.google.pixel.camera.hal/lib64/libgooglecamerahal.so (android::google_camera_hal::CaptureSessionWrapperProcessBlock::Flush()+56, pc 49068)
    /apex/com.google.pixel.camera.hal/lib64/libgooglecamerahal.so (android::google_camera_hal::RealtimeZslRequestProcessor::Flush()+52, pc 5ba44)
    /apex/com.google.pixel.camera.hal/lib64/libgooglecamerahal.so (android::google_camera_hal::ZslSnapshotCaptureSession::Flush()+36, pc 75a14)
    /apex/com.google.pixel.camera.hal/lib64/libgooglecamerahal.so (android::google_camera_hal::CameraDeviceSession::Flush()+68, pc 3d9e4)
    /apex/com.google.pixel.camera.hal/bin/hw/android.hardware.camera.provider@2.7-service-google (pc 19004)
    /apex/com.google.pixel.camera.hal/lib64/android.hardware.camera.device-V2-ndk.so (aidl::android::hardware::camera::device::_aidl_android_hardware_camera_device_ICameraDeviceSession_onTransact(AIBinder*, unsigned int, AParcel const*, AParcel*)+776, pc 1f298)
    /system/lib64/libbinder_ndk.so (ABBinder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+140, pc d0bc)
    /system/lib64/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+304, pc 74b00)
    /system/lib64/libbinder.so (android::IPCThreadState::executeCommand(int)+1016, pc 5ed78)
    /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+160, pc 5e8c0)
    /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+112, pc 5f210)
    /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24, pc 69078)
    /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+284, pc 1430c)
    /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204, pc d006c)
    /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64, pc 64db0)
thestinger commented 10 months ago

Turn off developer options as a starting point, in case you enabled a broken option like ANGLE.

polzon commented 10 months ago

I already had developer options disabled, but just to double check, I re-enabled to check angle settings. Nothing looked any different, I never touch any settings relating to it and always keep developer options off. So I don't think that affected it.

thestinger commented 10 months ago

Try without Pixel Camera Services installed.

polzon commented 10 months ago

Okay I uninstalled it an will try to do some testing to see if I can trigger it again.

I do remember now that I have multiple profiles, and was on my second profile when it initially happened. Pixel Camera app is set to default on that profile and it glitched. Then I went to my main profile that only has GrapheneOS stock camera enabled, and it glitched twice again which is the error I just posted.

I will try to recreate this.

thestinger commented 9 months ago

May be resolved by January release if you can't replicate anymore.

polzon commented 9 months ago

Yeah it's probably best to close this, I haven't managed to successfully replicate it.