Skip to content

Fatal Error: Lock is not supported for AFBC enabled buffers.Internal Format:0x20100000001 #17

@ss9326

Description

@ss9326

Device: Google Pixel 9
OS: Android 15

Logcat:

com.dz.camerafast                    I  New image 9197564 arrived!                                                                           │
com.dz.camerafast                    I  Supports USAGE_CPU_READ_RARELY, USAGE_CPU_READ_OFTEN, USAGE_CPU_WRITE_RARELY, USAGE_CPU_WRITE_OFTEN  │
com.dz.camerafast                    I  HW buffer from camera does not support AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE.                      │
com.dz.camerafast                    I  Allocating GPU HW buffer manually. Result: 0                                                         │
com.dz.camerafast                    E  Lock is not supported for AFBC enabled buffers.Internal Format:0x20100000001                         │
com.dz.camerafast                    E  Locking failed with error: 7  

This happens immediately on first running the app.

Adding CPU write flag for usage (core_engine.cpp) fixes the problem.
.usage = AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE | AHARDWAREBUFFER_USAGE_GPU_FRAMEBUFFER | AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN

Any details from the authors on whether this is expected or why it happens?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions