Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRCPY Broken for Bliss OS #4784

Open
2 tasks done
FRTI64 opened this issue Mar 24, 2024 · 19 comments
Open
2 tasks done

SCRCPY Broken for Bliss OS #4784

FRTI64 opened this issue Mar 24, 2024 · 19 comments

Comments

@FRTI64
Copy link

FRTI64 commented Mar 24, 2024

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 11[e.g. Debian, Windows, macOS...]
  • scrcpy version: 2.4 [e.g. 1.12.1]
  • installation method: Download and unzip from Github release[e.g. manual build, apt, snap, brew, Windows release...]
  • device model: bliss os installed in hyper-v
  • Android version: 13[e.g. 10]

Describe the bug
A clear and concise description of what the bug is.

On errors, please provide the output of the console (and adb logcat if relevant).

$> .\scrcpy.exe
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  172.23.194.55:5555              device  Virtual_Machine
C:\Users\FRTI64\Downloads\scrcpy-win64-v2.4\scrcpy-win64-v... file pushed, 0 skipped. 97.3 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [Microsoft Corporation] Microsoft Corporation Virtual Machine (Android 13)
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.UnsupportedOperationException: Cannot create AudioRecord
        at android.media.AudioRecord$Builder.build(AudioRecord.java:977)
        at com.genymobile.scrcpy.FakeContext$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
        at com.genymobile.scrcpy.AudioCapture.createAudioRecord(AudioCapture.java:68)
        at com.genymobile.scrcpy.AudioCapture.startRecording(AudioCapture.java:111)
        at com.genymobile.scrcpy.AudioCapture.start(AudioCapture.java:130)
        at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:190)
        at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:121)
        at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda1.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] INFO: Retrying...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3572)
        at com.genymobile.scrcpy.SurfaceEncoder.encode(SurfaceEncoder.java:157)
        at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:76)
        at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
        at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1024x768
WARN: Device disconnected

Please do not post screenshots of your terminal, just post the content as text instead.

@helamonster
Copy link

I'm experiencing the same problem with BlissOS 16.9.7 and scrcpy ( both versions 1.25 AND 2.7 ) on Ubuntu 24.04.

@nikandlv
Copy link

Same issue

@saitenasuk
Copy link

I encountered a similar issue when using scrcpy to remotely connect to the virtual machine BlissOS 15.9.2 created on Proxmox.

scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.1.223:5555              device  Generic_Android_x86_64
D:\Tools\Scrcpy\scrcpy-win64-v2.4\scrcpy-se... skipped. 51.9 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [unknown] QEMU Generic Android-x86_64 (Android 12)
[server] INFO: List of video encoders:
    --video-codec=h264 --video-encoder='c2.android.avc.encoder'
    --video-codec=h264 --video-encoder='OMX.google.h264.encoder'
    --video-codec=h265 --video-encoder='c2.android.hevc.encoder'
[server] INFO: List of audio encoders:
    --audio-codec=opus --audio-encoder='c2.android.opus.encoder'
    --audio-codec=aac --audio-encoder='c2.android.aac.encoder'
    --audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
    --audio-codec=flac --audio-encoder='c2.android.flac.encoder'
    --audio-codec=flac --audio-encoder='OMX.google.flac.encoder'

D:\Tools\Scrcpy\scrcpy-win64-v2.4>scrcpy --video-codec=h264 --video-encoder='OMX.google.h264.encoder'
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.1.223:5555              device  Generic_Android_x86_64
D:\Tools\Scrcpy\scrcpy-win64-v2.4\scrcpy-se... skipped. 56.0 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [unknown] QEMU Generic Android-x86_64 (Android 12)
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.UnsupportedOperationException: Cannot create AudioRecord
        at android.media.AudioRecord$Builder.build(AudioRecord.java:913)
        at com.genymobile.scrcpy.FakeContext$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
        at com.genymobile.scrcpy.AudioCapture.createAudioRecord(AudioCapture.java:68)
        at com.genymobile.scrcpy.AudioCapture.startRecording(AudioCapture.java:111)
        at com.genymobile.scrcpy.AudioCapture.start(AudioCapture.java:130)
        at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:190)
        at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:121)
        at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda1.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:920)
[server] INFO: Retrying with -m1024...
[server] INFO: Retrying...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1280x800
[server] INFO: Retrying with -m800...
[server] INFO: Retrying...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
WARN: Device disconnected
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3535)
        at com.genymobile.scrcpy.SurfaceEncoder.encode(SurfaceEncoder.java:157)
        at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:76)
        at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
        at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:920)```

@rom1v
Copy link
Collaborator

rom1v commented Dec 19, 2024

Try the latest version (scrcpy 3.1) first.

@wevsty
Copy link

wevsty commented Dec 23, 2024

Try the latest version (scrcpy 3.1) first.

I'm using BlissOS 16.9.7 running in virtualbox and trying version 3.1 gives the following results.

scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.100.129:5555            device  VirtualBox
D:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 112.5 MB/s (90640 bytes in 0.001s)
[server] INFO: Device: [Oracle Corporation] innotek GmbH VirtualBox (Android 13)
[server] INFO: List of video encoders:
    --video-codec=h264 --video-encoder=c2.android.avc.encoder         (sw)
    --video-codec=h264 --video-encoder=OMX.google.h264.encoder        (sw) (alias for c2.android.avc.encoder)
    --video-codec=h265 --video-encoder=c2.android.hevc.encoder        (sw)
[server] INFO: List of audio encoders:
    --audio-codec=opus --audio-encoder=c2.android.opus.encoder        (sw)
    --audio-codec=aac --audio-encoder=c2.android.aac.encoder          (sw)
    --audio-codec=aac --audio-encoder=OMX.google.aac.encoder          (sw) (alias for c2.android.aac.encoder)
    --audio-codec=flac --audio-encoder=c2.android.flac.encoder        (sw)
    --audio-codec=flac --audio-encoder=OMX.google.flac.encoder        (sw) (alias for c2.android.flac.encoder)

D:\scrcpy>scrcpy
scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.100.129:5555            device  VirtualBox
D:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 122.2 MB/s (90640 bytes in 0.001s)
[server] INFO: Device: [Oracle Corporation] innotek GmbH VirtualBox (Android 13)
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] ERROR: MediaCodec error
android.media.MediaCodec$CodecException: Error 0xffffffe0
INFO: Renderer: direct3d
INFO: Texture: 1024x768
[server] ERROR: Exception on thread Thread[audio-in,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_queueInputBuffer(Native Method)
        at android.media.MediaCodec.queueInputBuffer(MediaCodec.java:2671)
        at com.genymobile.scrcpy.audio.AudioEncoder.inputThread(AudioEncoder.java:110)
        at com.genymobile.scrcpy.audio.AudioEncoder.lambda$encode$1$com-genymobile-scrcpy-audio-AudioEncoder(AudioEncoder.java:209)
        at com.genymobile.scrcpy.audio.AudioEncoder$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_stop(Native Method)
        at android.media.MediaCodec.stop(MediaCodec.java:2335)
        at com.genymobile.scrcpy.audio.AudioEncoder.encode(AudioEncoder.java:278)
        at com.genymobile.scrcpy.audio.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-audio-AudioEncoder(AudioEncoder.java:133)
        at com.genymobile.scrcpy.audio.AudioEncoder$$ExternalSyntheticLambda3.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3572)
        at com.genymobile.scrcpy.video.SurfaceEncoder.encode(SurfaceEncoder.java:202)
        at com.genymobile.scrcpy.video.SurfaceEncoder.streamCapture(SurfaceEncoder.java:110)
W       at com.genymobile.scrcpy.video.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-video-SurfaceEncoder(SurfaceEncoder.java:296)A
R       at com.genymobile.scrcpy.video.SurfaceEncoder$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
N: Device disconnected

@dezhishen
Copy link

dezhishen commented Jan 6, 2025

Same issue

some logs from logcat

...
 Could not load /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so from sphal namespace: dlopen failed: "/system/vendor/lib64/arm64/android.hardware.graphics.mapper@2.0.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)
...

The above may be a key log

@by-justin
Copy link

[server] INFO: Device: [unknown] QEMU Generic Android-x86_64 (Android 13)
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m1024...
INFO: Renderer: direct3d
INFO: Texture: 1280x800
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3572)
W       at com.genymobile.scrcpy.video.SurfaceEncoder.encode(SurfaceEncoder.java:202)
        at com.genymobile.scrcpy.video.SurfaceEncoder.streamCapture(SurfaceEncoder.java:110)
A       at com.genymobile.scrcpy.video.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-video-SurfaceEncoder(SurfaceEncoder.java:296)RN
:       at com.genymobile.scrcpy.video.SurfaceEncoder$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
Device disconnected

Same issue. This is the output with --no-audio appended

@rocksit
Copy link

rocksit commented Feb 5, 2025

I have the same issue, when I try to connect with scrcpy, I get :

 ~/scrcpy-linux-x86_64-v3.0.2$ ./scrcpy --tcpip=10.0.3.230 --no-audio  --video-codec=h265 --video-encoder=c2.android.hevc.encoder
scrcpy 3.0.2 <https://github.com/Genymobile/scrcpy>
INFO: Connecting to 10.0.3.230:5555...
INFO: Connected to 10.0.3.230:5555
/home/debian/scrcpy-linux-x86_64-v3.0.2/scrcpy-server: 1 file pushed, 0 skipped. 112.1 MB/s (90396 bytes in 0.001s)
[server] INFO: Device: [Canonical Ltd.] QEMU LXD (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.5 (Compatibility Profile) Mesa 22.3.6
INFO: Trilinear filtering enabled
INFO: Texture: 1280x800
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m1024...
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3572)WARN: Device disconnected
        at com.genymobile.scrcpy.video.SurfaceEncoder.encode(SurfaceEncoder.java:202)
        at com.genymobile.scrcpy.video.SurfaceEncoder.streamCapture(SurfaceEncoder.java:110)
        at com.genymobile.scrcpy.video.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-video-SurfaceEncoder(SurfaceEncoder.java:296)
        at com.genymobile.scrcpy.video.SurfaceEncoder$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)

BlissOs16.9.7 comes with a lot of different boot options, so one could boot for instance

  • Bliss OS
  • Bliss OS Default FFMPEG
  • VM -> Bliss OS QEMU KVM - Virgl - SW-FFMPEG
  • VM -> No HW Acceleration
  • Debug -> gralloc.gbm
  • Debug -> drmfb-composer
  • Debug -> hwcomposer.drm
  • Debug -> gralloc_minigbm
  • Debug -> gralloc_minigbm_gbm_mesa
  • Debug -> hwcomposer.drm_minigbm
  • Debug -> hwcomposer.drm_minigbm_celadon

I am not sure, if one of this boot options is related to the problem with scrcpy. I tried "Default FFMPEG", "QEMU KVM - Virgl - SW-FFMPEG", "No HW Acceleration" and I always could see the regular android display, but no success with scrcpy. Even a screenrecord could never be done.

When I simply try to do a screen record via adb shell of my blissos 16 X86 Qemu android VM, it fails like this.. So I think this is not a concern with scrcpy but more related to the x86/bliss android..

Standard PC (Q35 + ICH9, 2009):/ $ screenrecord --verbose /sdcard/video.mp4                                                                                
Display is 1280x800 @74.99fps (orientation=ROTATION_0), layerStack=0
Configuring recorder for 1280x800 video/avc at 20.00Mbps
Content area is 1280x800 at offset x=0 y=0
Encoder failed (err=-38)
Stopping encoder and muxer
235|Standard PC (Q35 + ICH9, 2009):/ $

Logcat tells me that there seems to be some trouble with the AVC Enc, but I sadly do not understand, what is causing this error. It would be great if someone give hints for a workaround, how to fix this on android x86/bliss os, so that scrcpy could work..

02-05 19:31:19.419  3757  3872 E C2SoftAvcEnc: Unable to set air params = 0x1ad
02-05 19:31:19.420  3757  3872 E vndksupport: Could not load /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so from sphal namespace: dlopen failed: "/system/lib64/arm64/libbase.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62).
02-05 19:31:19.420  3757  3872 E HidlServiceManagement: Failed to dlopen android.hardware.graphics.mapper@2.0-impl-2.1.so: unknown error
02-05 19:31:19.420  3757  3872 W Gralloc2: mapper 2.x is not supported
02-05 19:31:19.420  3757  3872 F GraphicBufferMapper: gralloc-mapper is missing
02-05 19:31:19.420  1008  1008 I tombstoned: received crash request for pid 3757
02-05 19:31:19.587  3757  3872 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-05 19:31:19.587  3757  3872 F DEBUG   : Build fingerprint: 'Android-x86/bliss_x86_64/x86_64:13/TQ3A.230901.001.C1/151:userdebug/test-keys'
02-05 19:31:19.587  3757  3872 F DEBUG   : Revision: '0'
02-05 19:31:19.587  3757  3872 F DEBUG   : ABI: 'x86_64'
02-05 19:31:19.587  3757  3872 F DEBUG   : Timestamp: 2025-02-05 19:31:19.423322939+0100
02-05 19:31:19.587  3757  3872 F DEBUG   : Process uptime: 538s
02-05 19:31:19.587  3757  3872 F DEBUG   : Cmdline: media.swcodec oid.media.swcodec/bin/mediaswcodec
02-05 19:31:19.587  3757  3872 F DEBUG   : pid: 3757, tid: 3872, name: oid.avc.encoder  >>> media.swcodec <<<
02-05 19:31:19.587  3757  3872 F DEBUG   : uid: 1046
02-05 19:31:19.587  3757  3872 F DEBUG   : signal 0 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
02-05 19:31:19.587  3757  3872 F DEBUG   : Abort message: 'gralloc-mapper is missing'
02-05 19:31:19.587  3757  3872 F DEBUG   :     rax 0000000000000000  rbx 0000000000000ead  rcx 00007034393c969f  rdx 0000000000000006
02-05 19:31:19.587  3757  3872 F DEBUG   :     r8  9ca2a1842095f651  r9  9ca2a1842095f651  r10 000070319dc88700  r11 0000000000000203
02-05 19:31:19.587  3757  3872 F DEBUG   :     r12 000070343cf9d528  r13 0000000000000001  r14 000070319dc886f8  r15 0000000000000f20
02-05 19:31:19.587  3757  3872 F DEBUG   :     rdi 0000000000000ead  rsi 0000000000000f20
02-05 19:31:19.587  3757  3872 F DEBUG   :     rbp 00007031b9069e30  rsp 000070319dc886f0  rip 00007034393c969f
02-05 19:31:19.587  3757  3872 F DEBUG   : backtrace:

Full logcat ist here

2-05 19:31:19.153  2270  2270 I ackgroundThread: type=1400 audit(0.0:1111): avc: denied { ioctl } for path="/storage/emulated/0/video.mp4" dev="esdfs" ino=778836 ioctlcmd=0x581f scontext=u:r:mediaprovider_app:s0:c20,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=1 app=com.android.providers.media.module
02-05 19:31:19.158  2270  2424 E StorageManager: Failed to get extended attributes for /storage/emulated/0/video.mp4 to get project id.: Inappropriate ioctl for device
02-05 19:31:19.158  2270  2424 W MediaProvider: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.158  2270  2424 W MediaProvider: java.io.IOException: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.158  2270  2424 W MediaProvider:         at android.os.storage.StorageManager.updateExternalStorageFileQuotaType(StorageManager.java:2622)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.updateQuotaTypeForFileInternal(MediaProvider.java:708)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.lambda$onFileCreatedForFuse$17(MediaProvider.java:1719)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.$r8$lambda$RwX1jyw0H1CYPm6NAX9_DxGu3Co(Unknown Source:0)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$$ExternalSyntheticLambda7.run(Unknown Source:4)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at android.os.Handler.handleCallback(Handler.java:942)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at android.os.Handler.dispatchMessage(Handler.java:99)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at android.os.Looper.loopOnce(Looper.java:201)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at android.os.Looper.loop(Looper.java:288)
02-05 19:31:19.158  2270  2424 W MediaProvider:         at android.os.HandlerThread.run(HandlerThread.java:67)
02-05 19:31:19.159  3861  3861 D MediaCodecList: codecHandlesFormat: no format, so no extra checks
02-05 19:31:19.159  3861  3861 D MediaCodecList: codecHandlesFormat: no format, so no extra checks
02-05 19:31:19.153  2270  2270 I ackgroundThread: type=1400 audit(0.0:1112): avc: denied { ioctl } for path="/storage/emulated/0/video.mp4" dev="esdfs" ino=778836 ioctlcmd=0x581f scontext=u:r:mediaprovider_app:s0:c20,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=1 app=com.android.providers.media.module
02-05 19:31:19.160  2270  2424 E StorageManager: Failed to get extended attributes for /storage/emulated/0/video.mp4 to get project id.: Inappropriate ioctl for device
02-05 19:31:19.160  2270  2424 W MediaProvider: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.160  2270  2424 W MediaProvider: java.io.IOException: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.160  2270  2424 W MediaProvider:         at android.os.storage.StorageManager.updateExternalStorageFileQuotaType(StorageManager.java:2622)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.updateQuotaTypeForFileInternal(MediaProvider.java:708)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.updateQuotaTypeForUri(MediaProvider.java:690)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.-$$Nest$mupdateQuotaTypeForUri(Unknown Source:0)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$4.lambda$onInsert$0(MediaProvider.java:743)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$4.$r8$lambda$DnIEye5Sx8fODP4Bt_qvKpm3U-Q(Unknown Source:0)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$4$$ExternalSyntheticLambda0.run(Unknown Source:6)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at android.os.Handler.handleCallback(Handler.java:942)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at android.os.Handler.dispatchMessage(Handler.java:99)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at android.os.Looper.loopOnce(Looper.java:201)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at android.os.Looper.loop(Looper.java:288)
02-05 19:31:19.160  2270  2424 W MediaProvider:         at android.os.HandlerThread.run(HandlerThread.java:67)
02-05 19:31:19.161  3861  3865 D CCodec  : allocate(c2.android.avc.encoder)
02-05 19:31:19.162  3861  3865 I Codec2Client: Available Codec2 services: "ffmpeg" "software"
02-05 19:31:19.157  3861  3861 I CodecLooper: type=1400 audit(0.0:1113): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
02-05 19:31:19.157  1062  1062 I c2@1.2-ffmpeg-s: type=1400 audit(0.0:1114): avc: denied { transfer } for scontext=u:r:init:s0 tcontext=u:r:shell:s0 tclass=binder permissive=1
02-05 19:31:19.157  3861  3861 I CodecLooper: type=1400 audit(0.0:1115): avc: denied { transfer } for scontext=u:r:shell:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
02-05 19:31:19.163  1062  1062 D android.hardware.media.c2@1.2-service: createComponent: c2.android.avc.encoder
02-05 19:31:19.164  3757  3757 V C2Store : in init
02-05 19:31:19.164  3757  3757 V C2Store : loading dll
02-05 19:31:19.167  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.167  3757  3757 V C2Store : unloading dll
02-05 19:31:19.167  3757  3757 V C2Store : in init
02-05 19:31:19.167  3757  3757 V C2Store : loading dll
02-05 19:31:19.167  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.167  3757  3757 V C2Store : unloading dll
02-05 19:31:19.167  3757  3757 V C2Store : in init
02-05 19:31:19.167  3757  3757 V C2Store : loading dll
02-05 19:31:19.168  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.168  3757  3757 V C2Store : unloading dll
02-05 19:31:19.168  3757  3757 V C2Store : in init
02-05 19:31:19.168  3757  3757 V C2Store : loading dll
02-05 19:31:19.169  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.169  3757  3757 V C2Store : unloading dll
02-05 19:31:19.169  3757  3757 V C2Store : in init
02-05 19:31:19.169  3757  3757 V C2Store : loading dll
02-05 19:31:19.169  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.169  3757  3757 V C2Store : unloading dll
02-05 19:31:19.169  3757  3757 V C2Store : in init
02-05 19:31:19.169  3757  3757 V C2Store : loading dll
02-05 19:31:19.171  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.171  3757  3757 V C2Store : unloading dll
02-05 19:31:19.171  3757  3757 V C2Store : in init
02-05 19:31:19.171  3757  3757 V C2Store : loading dll
02-05 19:31:19.172  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.172  3757  3757 V C2Store : unloading dll
02-05 19:31:19.172  3757  3757 V C2Store : in init
02-05 19:31:19.172  3757  3757 V C2Store : loading dll
02-05 19:31:19.173  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.173  3757  3757 V C2Store : unloading dll
02-05 19:31:19.173  3757  3757 V C2Store : in init
02-05 19:31:19.173  3757  3757 V C2Store : loading dll
02-05 19:31:19.174  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004)
02-05 19:31:19.174  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812)
02-05 19:31:19.174  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.174  3757  3757 V C2Store : unloading dll
02-05 19:31:19.174  3757  3757 V C2Store : in init
02-05 19:31:19.174  3757  3757 V C2Store : loading dll
02-05 19:31:19.176  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.176  3757  3757 V C2Store : unloading dll
02-05 19:31:19.176  3757  3757 V C2Store : in init
02-05 19:31:19.176  3757  3757 V C2Store : loading dll
02-05 19:31:19.177  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.177  3757  3757 V C2Store : unloading dll
02-05 19:31:19.177  3757  3757 V C2Store : in init
02-05 19:31:19.177  3757  3757 V C2Store : loading dll
02-05 19:31:19.178  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.178  3757  3757 V C2Store : unloading dll
02-05 19:31:19.178  3757  3757 V C2Store : in init
02-05 19:31:19.178  3757  3757 V C2Store : loading dll
02-05 19:31:19.178  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.178  3757  3757 V C2Store : unloading dll
02-05 19:31:19.179  3757  3757 V C2Store : in init
02-05 19:31:19.179  3757  3757 V C2Store : loading dll
02-05 19:31:19.179  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.179  3757  3757 V C2Store : unloading dll
02-05 19:31:19.179  3757  3757 V C2Store : in init
02-05 19:31:19.179  3757  3757 V C2Store : loading dll
02-05 19:31:19.180  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.180  3757  3757 V C2Store : unloading dll
02-05 19:31:19.180  3757  3757 V C2Store : in init
02-05 19:31:19.180  3757  3757 V C2Store : loading dll
02-05 19:31:19.181  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.181  3757  3757 V C2Store : unloading dll
02-05 19:31:19.181  3757  3757 V C2Store : in init
02-05 19:31:19.181  3757  3757 V C2Store : loading dll
02-05 19:31:19.182  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.182  3757  3757 V C2Store : unloading dll
02-05 19:31:19.182  3757  3757 V C2Store : in init
02-05 19:31:19.182  3757  3757 V C2Store : loading dll
02-05 19:31:19.183  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004)
02-05 19:31:19.183  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812)
02-05 19:31:19.183  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.183  3757  3757 V C2Store : unloading dll
02-05 19:31:19.183  3757  3757 V C2Store : in init
02-05 19:31:19.184  3757  3757 V C2Store : loading dll
02-05 19:31:19.184  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.184  3757  3757 V C2Store : unloading dll
02-05 19:31:19.184  3757  3757 V C2Store : in init
02-05 19:31:19.184  3757  3757 V C2Store : loading dll
02-05 19:31:19.185  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.185  3757  3757 V C2Store : unloading dll
02-05 19:31:19.185  3757  3757 V C2Store : in init
02-05 19:31:19.185  3757  3757 V C2Store : loading dll
02-05 19:31:19.186  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.186  3757  3757 V C2Store : unloading dll
02-05 19:31:19.186  3757  3757 V C2Store : in init
02-05 19:31:19.186  3757  3757 V C2Store : loading dll
02-05 19:31:19.187  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.187  3757  3757 V C2Store : unloading dll
02-05 19:31:19.187  3757  3757 V C2Store : in init
02-05 19:31:19.187  3757  3757 V C2Store : loading dll
02-05 19:31:19.188  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.188  3757  3757 V C2Store : unloading dll
02-05 19:31:19.188  3757  3757 V C2Store : in init
02-05 19:31:19.188  3757  3757 V C2Store : loading dll
02-05 19:31:19.189  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.189  3757  3757 V C2Store : unloading dll
02-05 19:31:19.189  3757  3757 V C2Store : in init
02-05 19:31:19.189  3757  3757 V C2Store : loading dll
02-05 19:31:19.190  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.190  3757  3757 V C2Store : unloading dll
02-05 19:31:19.190  3757  3757 V C2Store : in init
02-05 19:31:19.190  3757  3757 V C2Store : loading dll
02-05 19:31:19.217  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.217  3757  3757 V C2Store : unloading dll
02-05 19:31:19.217  3757  3757 V C2Store : in init
02-05 19:31:19.217  3757  3757 V C2Store : loading dll
02-05 19:31:19.218  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.218  3757  3757 V C2Store : unloading dll
02-05 19:31:19.218  3757  3757 V C2Store : in init
02-05 19:31:19.218  3757  3757 V C2Store : loading dll
02-05 19:31:19.219  3757  3757 I C2SoftVpxEnc: setting temporal layering 0 + 0
02-05 19:31:19.219  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.219  3757  3757 V C2Store : unloading dll
02-05 19:31:19.219  3757  3757 V C2Store : in init
02-05 19:31:19.219  3757  3757 V C2Store : loading dll
02-05 19:31:19.219  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.219  3757  3757 V C2Store : unloading dll
02-05 19:31:19.219  3757  3757 V C2Store : in init
02-05 19:31:19.219  3757  3757 V C2Store : loading dll
02-05 19:31:19.220  3757  3757 I C2SoftVpxEnc: setting temporal layering 0 + 0
02-05 19:31:19.220  3757  3757 V C2Store : in ~ComponentModule
02-05 19:31:19.220  3757  3757 V C2Store : unloading dll
02-05 19:31:19.220  3757  3757 V C2Store : in init
02-05 19:31:19.220  3757  3757 V C2Store : loading dll
02-05 19:31:19.220  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004)
02-05 19:31:19.221  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812)
02-05 19:31:19.221  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004)
02-05 19:31:19.221  3757  3757 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812)
02-05 19:31:19.222  3861  3865 I CCodec  : Created component [c2.android.avc.encoder]
02-05 19:31:19.222  3861  3865 D CCodecConfig: read media type: video/avc
02-05 19:31:19.223  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values
02-05 19:31:19.223  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values
02-05 19:31:19.223  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values
02-05 19:31:19.223  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values
02-05 19:31:19.223  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values
02-05 19:31:19.224  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
02-05 19:31:19.224  3861  3865 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values
02-05 19:31:19.225  3861  3865 D ReflectedParamUpdater: ignored struct field coding.gop.values
02-05 19:31:19.225  3861  3865 D ReflectedParamUpdater: ignored struct field coding.qp.values
02-05 19:31:19.225  3861  3865 D CCodecConfig: ignoring local param raw.color (0xc2001809) as it is already supported
02-05 19:31:19.226  3861  3865 I CCodecConfig: query failed after returning 12 values (BAD_INDEX)
02-05 19:31:19.226  3861  3865 D CCodecConfig: c2 config diff is Dict {
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::i32 coded.average-qp.value = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.bitrate.value = 64000
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::float coded.frame-rate.value = 1
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.picture-type.value = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.pl.level = 20492
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.pl.profile = 20481
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.vui.color.matrix = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.vui.color.primaries = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.vui.color.range = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coded.vui.color.transfer = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coding.intra-refresh.mode = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::float coding.intra-refresh.period = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 coding.request-sync-frame.value = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::i64 coding.sync-frame-interval.value = 1000000
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 input.delay.value = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   string input.media-type.value = "video/raw"
02-05 19:31:19.226  3861  3865 D CCodecConfig:   string output.media-type.value = "video/avc"
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 raw.color.matrix = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 raw.color.primaries = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 raw.color.range = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 raw.color.transfer = 0
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 raw.size.height = 16
02-05 19:31:19.226  3861  3865 D CCodecConfig:   c2::u32 raw.size.width = 16
02-05 19:31:19.226  3861  3865 D CCodecConfig: }
02-05 19:31:19.226  3861  3865 W ColorUtils: expected specified color aspects (0:0:0:0)
02-05 19:31:19.229  3861  3861 D CodecSeeding: Seed: codec c2.android.avc.encoder, mediatype video/avc, overrideable 1
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-bpp,0)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-bpp-1080p,1.90)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-bpp-720p,2.25)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-bpp-540p,2.65)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-bpp-480p,3.00)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-bpp-320x240,0)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-qpmax,-1)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-qpmax-1080p,45)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-qpmax-720p,43)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-qpmax-540p,42)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-target-qpmax-480p,38)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-bitrate-phaseout,1.75)
02-05 19:31:19.229  3861  3861 D CodecProperties: setTuningValue(vq-boost-missing-qp,0.20)
02-05 19:31:19.229  3861  3861 D CodecProperties: setFeatureValue(intra-refresh,0)
02-05 19:31:19.229  3861  3861 D CodecProperties: setFeatureValue(qp-bounds,0)
02-05 19:31:19.229  3861  3861 D CodecProperties: setFeatureValue(_vq_eligible.device,1)
02-05 19:31:19.229  3861  3861 D CodecProperties: setFeatureValue(_quality.target,1)
02-05 19:31:19.229  3861  3861 D CodecSeeding: Seed: codec c2.android.avc.encoder, mediatype video/avc, overrideable 0
02-05 19:31:19.229  3861  3861 D MediaCodec: shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = {
02-05 19:31:19.229  3861  3861 D MediaCodec:     int32_t android._encoding-quality-level = 0
02-05 19:31:19.229  3861  3861 D MediaCodec:   }
02-05 19:31:19.229  3861  3864 D MediaCodec: flushMediametrics
02-05 19:31:19.229  3861  3865 D CCodec  : [c2.android.avc.encoder] buffers are bound to CCodec for this session
02-05 19:31:19.229  3861  3865 D CCodecConfig: no c2 equivalents for color-format
02-05 19:31:19.230  3861  3865 D CCodecConfig: no c2 equivalents for max-bframes
02-05 19:31:19.230  3861  3865 D CCodecConfig: no c2 equivalents for flags
02-05 19:31:19.230  3861  3865 D CCodecConfig: no c2 equivalents for encoder
02-05 19:31:19.230  3757  3758 D C2SoftAvcEnc: Given level 500c does not cover current configuration: adjusting to 500d
02-05 19:31:19.230  3861  3865 D CCodecConfig: c2 config diff is   c2::u32 coded.bitrate.value = 20000000
02-05 19:31:19.230  3861  3865 D CCodecConfig:   c2::float coded.frame-rate.value = 74.9939
02-05 19:31:19.230  3861  3865 D CCodecConfig:   c2::i64 coding.sync-frame-interval.value = 10000000
02-05 19:31:19.230  3861  3865 D CCodecConfig:   c2::u32 raw.size.height = 800
02-05 19:31:19.230  3861  3865 D CCodecConfig:   c2::u32 raw.size.width = 1280
02-05 19:31:19.230  3861  3865 W ColorUtils: expected specified color aspects (0:0:0:0)
02-05 19:31:19.231  3757  3758 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004)
02-05 19:31:19.231  3757  3758 I mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812)
02-05 19:31:19.231  3861  3865 E ashmem  : memfd: ro.vndk.version not defined or invalid (), this is mandated since P.
02-05 19:31:19.237  3861  3867 D BufferPoolAccessor2.0: Destruction - bufferpool2 0x786d7f8567e8 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched
02-05 19:31:19.233  3861  3861 I CodecLooper: type=1400 audit(0.0:1116): avc: denied { open } for path="/dev/__properties__/u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=257 scontext=u:r:shell:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1
02-05 19:31:19.237  3861  3865 I [minigbm:virtgpu_init(51)]: virtgpu backend not enabling VIRTGPU_PARAM_CREATE_GUEST_HANDLE
02-05 19:31:19.237  3861  3865 I [minigbm:virtgpu_init(51)]: virtgpu backend not enabling VIRTGPU_PARAM_RESOURCE_SYNC
02-05 19:31:19.237  3861  3865 I [minigbm:virtgpu_init(51)]: virtgpu backend not enabling VIRTGPU_PARAM_GUEST_VRAM
02-05 19:31:19.237  3861  3865 D CCodec  : encoding statistics level = 0
02-05 19:31:19.237  3861  3865 D CCodec  : setup formats input: AMessage(what = 0x00000000) = {
02-05 19:31:19.237  3861  3865 D CCodec  :   Rect crop(0, 0, 1279, 799)
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-standard = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-range = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-transfer = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t frame-rate = 74
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t height = 800
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t intra-refresh-period = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   string mime = "video/raw"
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t video-qp-average = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t width = 1280
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t android._dataspace = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t using-sw-read-often = 1
02-05 19:31:19.237  3861  3865 D CCodec  :   int64_t android._C2MemoryUsage = 1
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-format = 19
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t android._color-format = 19
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t stride = 1280
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t slice-height = 800
02-05 19:31:19.237  3861  3865 D CCodec  : }
02-05 19:31:19.237  3861  3865 D CCodec  : setup formats output: AMessage(what = 0x00000000) = {
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t bitrate = 20000000
02-05 19:31:19.237  3861  3865 D CCodec  :   Rect crop(0, 0, 1279, 799)
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-standard = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-range = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t color-transfer = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t frame-rate = 74
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t height = 800
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t intra-refresh-period = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t level = 4096
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t max-bitrate = 20000000
02-05 19:31:19.237  3861  3865 D CCodec  :   string mime = "video/avc"
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t profile = 65536
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t video-qp-average = 0
02-05 19:31:19.237  3861  3865 D CCodec  :   int32_t width = 1280
02-05 19:31:19.237  3861  3865 D CCodec  : }
02-05 19:31:19.238  3861  3865 I CCodecConfig: query failed after returning 13 values (BAD_INDEX)
02-05 19:31:19.238  3861  3865 D CCodecConfig: c2 config diff is   c2::u32 coded.pl.level = 20493
02-05 19:31:19.238  3861  3865 W ColorUtils: expected specified color aspects (0:0:0:0)
02-05 19:31:19.239  3861  3865 D CCodec  : input format changed to AMessage(what = 0x00000000) = {
02-05 19:31:19.239  3861  3865 D CCodec  :   Rect crop(0, 0, 1279, 799)
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t color-standard = 1
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t color-range = 2
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t color-transfer = 3
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t frame-rate = 74
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t height = 800
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t intra-refresh-period = 0
02-05 19:31:19.239  3861  3865 D CCodec  :   string mime = "video/raw"
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t video-qp-average = 0
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t width = 1280
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t android._dataspace = 260
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t using-sw-read-often = 1
02-05 19:31:19.239  3861  3865 D CCodec  :   int64_t android._C2MemoryUsage = 1
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t color-format = 19
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t android._color-format = 19
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t stride = 1280
02-05 19:31:19.239  3861  3865 D CCodec  :   int32_t slice-height = 800
02-05 19:31:19.239  3861  3865 D CCodec  : }
02-05 19:31:19.239  1106  3507 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
02-05 19:31:19.240  3861  3865 D CCodec  : ISConfig not changed
02-05 19:31:19.240  3861  3865 W Codec2Client: query -- param skipped: index = 1342179345.
02-05 19:31:19.240  3861  3865 W Codec2Client: query -- param skipped: index = 2415921170.
02-05 19:31:19.240  3861  3865 D CCodecBufferChannel: [c2.android.avc.encoder#543] Using basic input block pool with poolID 1 => got 1 - OK (0)
02-05 19:31:19.240  3861  3865 D C2Store : Using DMABUF Heaps
02-05 19:31:19.240  3757  3758 D C2Store : Using DMABUF Heaps
02-05 19:31:19.241  3757  3758 E ashmem  : memfd: ro.vndk.version not defined or invalid (), this is mandated since P.
02-05 19:31:19.241  3861  3865 I CCodecBufferChannel: [c2.android.avc.encoder#543] Created output block pool with allocatorID 16 => poolID 17 - OK
02-05 19:31:19.241  3861  3865 D CCodecBufferChannel: [c2.android.avc.encoder#543] Configured output block pool ids 17 => OK
02-05 19:31:19.242  1100  1769 W ResourceManagerService: Ignoring request to add new resource entry with value <= 0
02-05 19:31:19.245  1073  1073 I CompositionEngine: Use BGRA_8888 as surface format when EGL is "mesa"
02-05 19:31:19.276  2270  2479 I MediaProvider: Deleted 0 0 0 1 0 0 0 items on external_primary due to com.android.shell
02-05 19:31:19.279  2270  2973 W MediaProvider: isAppCloneUserPair failed. Users: 0 and 0
02-05 19:31:19.279  2270  2973 W MediaProvider: isAppCloneUserPair for user 0: false
02-05 19:31:19.279  2270  2973 V MediaProvider: Inserted id:1000000135 less than next row id backup:1000001000.
02-05 19:31:19.309  1106  1605 D GraphicBufferSource: got buffer with new dataSpace #104
02-05 19:31:19.310  3861  3869 D C2OMXNode: dataspace changed to 0x104 pixel format: 0x1
02-05 19:31:19.312  3861  3869 E HidlServiceManagement: Could not find instance 'default' in library android.hardware.graphics.mapper@4.0-impl.minigbm_gbm_mesa.so. Keeping library open.
02-05 19:31:19.314  3861  3861 D MPEG4Writer: PreAllocation disabled. fallocate : Operation not supported on transport endpoint, 95
02-05 19:31:19.315  2270  2424 E StorageManager: Failed to get extended attributes for /storage/emulated/0/video.mp4 to get project id.: Inappropriate ioctl for device
02-05 19:31:19.315  2270  2424 W MediaProvider: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.315  2270  2424 W MediaProvider: java.io.IOException: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.315  2270  2424 W MediaProvider:         at android.os.storage.StorageManager.updateExternalStorageFileQuotaType(StorageManager.java:2622)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.updateQuotaTypeForFileInternal(MediaProvider.java:708)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.lambda$onFileCreatedForFuse$17(MediaProvider.java:1719)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.$r8$lambda$RwX1jyw0H1CYPm6NAX9_DxGu3Co(Unknown Source:0)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$$ExternalSyntheticLambda7.run(Unknown Source:4)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at android.os.Handler.handleCallback(Handler.java:942)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at android.os.Handler.dispatchMessage(Handler.java:99)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at android.os.Looper.loopOnce(Looper.java:201)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at android.os.Looper.loop(Looper.java:288)
02-05 19:31:19.315  2270  2424 W MediaProvider:         at android.os.HandlerThread.run(HandlerThread.java:67)
02-05 19:31:19.316  2270  2424 E StorageManager: Failed to get extended attributes for /storage/emulated/0/video.mp4 to get project id.: Inappropriate ioctl for device
02-05 19:31:19.316  2270  2424 W MediaProvider: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.316  2270  2424 W MediaProvider: java.io.IOException: Failed to update quota type for /storage/emulated/0/video.mp4
02-05 19:31:19.316  2270  2424 W MediaProvider:         at android.os.storage.StorageManager.updateExternalStorageFileQuotaType(StorageManager.java:2622)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.updateQuotaTypeForFileInternal(MediaProvider.java:708)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.updateQuotaTypeForUri(MediaProvider.java:690)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider.-$$Nest$mupdateQuotaTypeForUri(Unknown Source:0)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$4.lambda$onInsert$0(MediaProvider.java:743)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$4.$r8$lambda$DnIEye5Sx8fODP4Bt_qvKpm3U-Q(Unknown Source:0)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at com.android.providers.media.MediaProvider$4$$ExternalSyntheticLambda0.run(Unknown Source:6)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at android.os.Handler.handleCallback(Handler.java:942)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at android.os.Handler.dispatchMessage(Handler.java:99)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at android.os.Looper.loopOnce(Looper.java:201)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at android.os.Looper.loop(Looper.java:288)
02-05 19:31:19.316  2270  2424 W MediaProvider:         at android.os.HandlerThread.run(HandlerThread.java:67)
02-05 19:31:19.350  3861  3869 E HidlServiceManagement: Could not find instance 'default' in library android.hardware.graphics.mapper@4.0-impl.minigbm.so. Keeping library open.
02-05 19:31:19.351  3861  3869 E HidlServiceManagement: Could not find instance 'default' in library android.hardware.graphics.mapper@4.0-impl.minigbm_arcvm.so. Keeping library open.
02-05 19:31:19.352  3757  3872 D SimpleC2Component: Using output block pool with poolID 17 => got 17 - 0
02-05 19:31:19.352  3757  3872 D SimpleC2Component: applied 2 configUpdates => BAD_INDEX (6)
02-05 19:31:19.352  3757  3872 D C2SoftAvcEnc: Params width 1280 height 800 level 42 colorFormat 0 bframes 0
02-05 19:31:19.382  1068  1078 E android.hardware.thermal@2.0-service.intel: get_soc_pkg_temperature: failed to open file: No such file or directory
02-05 19:31:19.382  1068  1078 E android.hardware.thermal@2.0-service.intel: Can not get temperature of type 0
02-05 19:31:19.419  3757  3872 E C2SoftAvcEnc: Unable to set air params = 0x1ad
02-05 19:31:19.420  3757  3872 E vndksupport: Could not load /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so from sphal namespace: dlopen failed: "/system/lib64/arm64/libbase.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62).
02-05 19:31:19.420  3757  3872 E HidlServiceManagement: Failed to dlopen android.hardware.graphics.mapper@2.0-impl-2.1.so: unknown error
02-05 19:31:19.420  3757  3872 W Gralloc2: mapper 2.x is not supported
02-05 19:31:19.420  3757  3872 F GraphicBufferMapper: gralloc-mapper is missing
02-05 19:31:19.420  1008  1008 I tombstoned: received crash request for pid 3757
02-05 19:31:19.587  3757  3872 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-05 19:31:19.587  3757  3872 F DEBUG   : Build fingerprint: 'Android-x86/bliss_x86_64/x86_64:13/TQ3A.230901.001.C1/151:userdebug/test-keys'
02-05 19:31:19.587  3757  3872 F DEBUG   : Revision: '0'
02-05 19:31:19.587  3757  3872 F DEBUG   : ABI: 'x86_64'
02-05 19:31:19.587  3757  3872 F DEBUG   : Timestamp: 2025-02-05 19:31:19.423322939+0100
02-05 19:31:19.587  3757  3872 F DEBUG   : Process uptime: 538s
02-05 19:31:19.587  3757  3872 F DEBUG   : Cmdline: media.swcodec oid.media.swcodec/bin/mediaswcodec
02-05 19:31:19.587  3757  3872 F DEBUG   : pid: 3757, tid: 3872, name: oid.avc.encoder  >>> media.swcodec <<<
02-05 19:31:19.587  3757  3872 F DEBUG   : uid: 1046
02-05 19:31:19.587  3757  3872 F DEBUG   : signal 0 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
02-05 19:31:19.587  3757  3872 F DEBUG   : Abort message: 'gralloc-mapper is missing'
02-05 19:31:19.587  3757  3872 F DEBUG   :     rax 0000000000000000  rbx 0000000000000ead  rcx 00007034393c969f  rdx 0000000000000006
02-05 19:31:19.587  3757  3872 F DEBUG   :     r8  9ca2a1842095f651  r9  9ca2a1842095f651  r10 000070319dc88700  r11 0000000000000203
02-05 19:31:19.587  3757  3872 F DEBUG   :     r12 000070343cf9d528  r13 0000000000000001  r14 000070319dc886f8  r15 0000000000000f20
02-05 19:31:19.587  3757  3872 F DEBUG   :     rdi 0000000000000ead  rsi 0000000000000f20
02-05 19:31:19.587  3757  3872 F DEBUG   :     rbp 00007031b9069e30  rsp 000070319dc886f0  rip 00007034393c969f
02-05 19:31:19.587  3757  3872 F DEBUG   : backtrace:
02-05 19:31:19.587  3757  3872 F DEBUG   :       #00 pc 000000000005f69f  /apex/com.android.runtime/lib64/bionic/libc.so (abort+191) (BuildId: 1b2a39e43caba588eb8ce2a331dc4eef)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #01 pc 00000000000069aa  /system/lib64/liblog.so (__android_log_default_aborter+10) (BuildId: f0538d632eee5d6820b96914c8a1657c)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #02 pc 0000000000007562  /system/lib64/liblog.so (__android_log_assert+370) (BuildId: f0538d632eee5d6820b96914c8a1657c)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #03 pc 0000000000042164  /system/lib64/libui.so (android::GraphicBufferMapper::GraphicBufferMapper()+388) (BuildId: 935fd18f1b4d7962a8045574ebb96ebf)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #04 pc 00000000000511f3  /system/lib64/libcodec2_vndk.so (android::C2AllocationGralloc::map(C2Rect, C2MemoryUsage, C2Fence*, C2PlanarLayout*, unsigned char**)+515) (BuildId: 27e5d41c39499c71672755718c25f390)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #05 pc 00000000000578d6  /system/lib64/libcodec2_vndk.so (_C2MappingBlock2DImpl::Mapped::Mapped(std::__1::shared_ptr<_C2Block2DImpl> const&, bool, C2Fence*)+214) (BuildId: 27e5d41c39499c71672755718c25f390)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #06 pc 00000000000575e0  /system/lib64/libcodec2_vndk.so (_C2MappingBlock2DImpl::map(bool, C2Fence*)+480) (BuildId: 27e5d41c39499c71672755718c25f390)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #07 pc 000000000005709a  /system/lib64/libcodec2_vndk.so (C2ConstGraphicBlock::map() const+106) (BuildId: 27e5d41c39499c71672755718c25f390)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #08 pc 000000000002c373  /system/lib64/libcodec2_soft_avcenc.so (android::C2SoftAvcEnc::process(std::__1::unique_ptr<C2Work, std::__1::default_delete<C2Work> > const&, std::__1::shared_ptr<C2BlockPool> const&)+2211) (BuildId: 48a9013b96a4c9b3754f8b92a13feb36)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #09 pc 000000000000f362  /system/lib64/libcodec2_soft_common.so (android::SimpleC2Component::processQueue()+2962) (BuildId: 734bcb27864061a28ead987fcd36947a)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #10 pc 000000000000e2ad  /system/lib64/libcodec2_soft_common.so (android::SimpleC2Component::WorkHandler::onMessageReceived(android::sp<android::AMessage> const&)+173) (BuildId: 734bcb27864061a28ead987fcd36947a)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #11 pc 000000000001b4eb  /apex/com.android.media.swcodec/lib64/libstagefright_foundation.so (android::AHandler::deliverMessage(android::sp<android::AMessage> const&)+59) (BuildId: 801f77c75e7663391860535e32b8d2a3)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #12 pc 000000000002150e  /apex/com.android.media.swcodec/lib64/libstagefright_foundation.so (android::AMessage::deliver()+206) (BuildId: 801f77c75e7663391860535e32b8d2a3)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #13 pc 000000000001c88d  /apex/com.android.media.swcodec/lib64/libstagefright_foundation.so (android::ALooper::loop()+701) (BuildId: 801f77c75e7663391860535e32b8d2a3)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #14 pc 0000000000013e55  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+325) (BuildId: 20ad4edc59f23af991744a87e8f5ccf9)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #15 pc 00000000000ccd8a  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 1b2a39e43caba588eb8ce2a331dc4eef)
02-05 19:31:19.587  3757  3872 F DEBUG   :       #16 pc 0000000000060cd7  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: 1b2a39e43caba588eb8ce2a331dc4eef)
02-05 19:31:19.595  1008  1008 E tombstoned: Tombstone written to: tombstone_45
02-05 19:31:19.595  1252  1324 E NativeTombstoneManager: Tombstone's UID (1046) not an app, ignoring
02-05 19:31:19.597  3861  3869 E CCodec  : Codec2 component "c2.android.avc.encoder" died.
02-05 19:31:19.597  1252  1324 I BootReceiver: Copying /data/tombstones/tombstone_45 to DropBox (SYSTEM_TOMBSTONE)
02-05 19:31:19.597  3861  3864 E MediaCodec: Codec reported err 0xffffffe0/DEAD_OBJECT, actionCode 0, while in state 6/STARTED
02-05 19:31:19.598  3861  3864 D MediaCodec: flushMediametrics
02-05 19:31:19.598  3861  3861 W ScreenRecord: dequeueOutputBuffer returned INVALID_OPERATION
02-05 19:31:19.598  1252  1324 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x6
02-05 19:31:19.598  3861  3861 E MediaMuxer: stop() is called in invalid state 1
02-05 19:31:19.599  3861  3861 D MediaCodec: flushMediametrics
02-05 19:31:19.599  3861  3861 D ScreenRecord: failed
02-05 19:31:19.602  1252  1324 E NativeTombstoneManager: Tombstone's UID (1046) not an app, ignoring
02-05 19:31:19.602  1252  1324 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE_PROTO isTagEnabled=true flags=0x4
02-05 19:31:19.641  1106  1605 W GraphicBufferSource: released unpopulated slots: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
02-05 19:31:19.678  3861  3861 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
02-05 19:31:19.680  3861  3861 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
02-05 19:31:19.683  3861  3861 I hw-BpHwBinder: onLastStrongRef automatically unlinking death recipients
02-05 19:31:19.705  3876  3876 I mediaswcodec: media swcodec service starting
02-05 19:31:19.705  3876  3876 W mediaswcodec: libminijail[3876]: failed to get path of fd 4: No such file or directory
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: allowing syscall: socket
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: allowing syscall: connect
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: allowing syscall: fcntl
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: allowing syscall: writev
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(20): nonexistent syscall 'getuid32'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(26): nonexistent syscall 'mmap2'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(28): nonexistent syscall 'fstat64'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(31): nonexistent syscall 'stat64'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(32): nonexistent syscall 'statfs64'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(34): nonexistent syscall 'fstatat64'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(39): nonexistent syscall '_llseek'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(48): nonexistent syscall 'ugetrlimit'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(51): nonexistent syscall '_llseek'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(52): nonexistent syscall 'fstatfs64'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(64): nonexistent syscall 'ftruncate64'
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(70): syscall gettid redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(67): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(1): syscall read redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(15): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(2): syscall write redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(58): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(3): syscall exit redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(45): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(4): syscall rt_sigreturn redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(47): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(5): syscall exit_group redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(46): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(8): syscall futex redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(36): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(10): syscall getpid redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(69): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(11): syscall gettid redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(67): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(14): syscall openat redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(18): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(15): syscall dup redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(56): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(16): syscall close redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(25): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(17): syscall lseek redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(40): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(19): syscall faccessat redefined here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(38): previous definition here
02-05 19:31:19.706  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(22): syscall sysinfo redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(75): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(28): syscall prctl redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(17): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(29): syscall madvise redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(33): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(30): syscall mprotect redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(16): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(31): syscall munmap redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(37): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(32): syscall getuid redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(21): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(33): syscall fstat redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(29): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: /apex/com.android.media.swcodec/etc/seccomp_policy/crash_dump.x86_64.policy(34): syscall mmap redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(27): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(81): syscall sched_getaffinity redefined here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: compile_file: <fd>(74): previous definition here
02-05 19:31:19.707  3876  3876 W mediaswcodec: libminijail[3876]: logging seccomp filter failures
02-05 19:31:19.708  3876  3876 I CodecServiceRegistrant: Creating software Codec2 service...
02-05 19:31:19.709  3876  3876 I HidlServiceManagement: Registered android.hardware.media.c2@1.2::IComponentStore/software
02-05 19:31:19.709   862   862 I hwservicemanager: getTransport: Cannot find entry android.hardware.media.c2@1.0::IComponentStore/default in either framework or device VINTF manifest.
02-05 19:31:19.709  3876  3876 I CodecServiceRegistrant: Preferred Codec2 store is defaulted to "software".
02-05 19:31:19.709  3876  3876 I CodecServiceRegistrant: Software Codec2 service created and registered.

@lwy980328
Copy link

mark

@mhemantha
Copy link

mhemantha commented Feb 14, 2025

Saw the same logcat error with the encoder on camera crashes and when I checked with scrcpy, I too hit this. Somehow wrong (ARM64) libraries are being picked up by the encoder. Some issue with linker paths maybe? Likely more an issue with Bliss than scrcpy.

A really heavy-handed way out of this is mount --bind /system/lib64 /system/vendor/lib64/arm64. It got scrcpy working for me (and solved some issues, but not all, with camera), but I think no arm app would launch with that and possibly cause other issues.

@rocksit
Copy link

rocksit commented Feb 14, 2025

Ah, interesting observation!
I did it with adb root connection and
mount --bind /system/lib64 /system/lib64/arm64
(no vendor folder) and from thereon, when I start the local screenrecorder in the android adb shell all x86 related vnd binder or linker issues are gone. So android vndsupport loaded the library /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so with correct bound arch EM_X86_64 but due to remount, probably from wrong location /system/vendor/lib64/arm64.

Anyway, libbase.so and others are loaded and screen is correctly recorded. scrcpy works also in this situation. For sure, no other of my arm64 apps from appstores is working, as the compytibility layer is overriden by my mount of the directory /system/vendor/lib64/arm64.

Maybe this "sphal" namespace mentionend in the error I reported, is in some way incorrectly configured, so that it maps an x68 binding to the arm64 folder ?

02-05 19:31:19.420  3757  3872 E vndksupport: Could not load /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so from sphal namespace: dlopen failed: "/system/lib64/arm64/libbase.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62).
02-05 19:31:19.420  3757  3872 E HidlServiceManagement: Failed to dlopen android.hardware.graphics.mapper@2.0-impl-2.1.so: unknown error
02-05 19:31:19.420  3757  3872 W Gralloc2: mapper 2.x is not supported
02-05 19:31:19.420  3757  3872 F GraphicBufferMapper: gralloc-mapper is missing
02-05 19:31:19.420  1008  1008 I tombstoned: received crash request for pid 3757

It might be a dynamic mapping problem, as the static mappings of the libbase.so from my error msg look elsewise correct for me:

So if anybody has an idea, why is vndksupport loading from "/system/lib64/arm64" instead from "/system/lib64/", this might be the answer for this general issue. But it is probably a bliss, or AG related bug, anyway.

ldd for /system/bin/screenrecord

**Standard PC (Q35 + ICH9, 2009):/ # /apex/com.android.runtime/bin/linker64 --list  /system/bin/screenrecord**                                                                                                                                                                             
        linux-vdso.so.1 => [vdso] (0x7fff900e9000)
        libstagefright.so => /system/lib64/libstagefright.so (0x7258f6622000)
        libmedia.so => /system/lib64/libmedia.so (0x7258f9711000)
        libmediandk.so => /system/lib64/libmediandk.so (0x7258f97c1000)
        libmedia_omx.so => /system/lib64/libmedia_omx.so (0x7258f5d07000)
        libutils.so => /system/lib64/libutils.so (0x7258f9b9a000)
        libbinder.so => /system/lib64/libbinder.so (0x7258fd615000)
        libstagefright_foundation.so => /system/lib64/libstagefright_foundation.so (0x7258ee841000)
        libjpeg.so => /system/lib64/libjpeg.so (0x7258ffd59000)
        libui.so => /system/lib64/libui.so (0x7258ffcdb000)
        libgui.so => /system/lib64/libgui.so (0x7258eea84000)
        libcutils.so => /system/lib64/libcutils.so (0x7258fd2df000)
        liblog.so => /system/lib64/liblog.so (0x7258fd486000)
        libEGL.so => /system/lib64/libEGL.so (0x7258f9504000)
        libGLESv2.so => /system/lib64/libGLESv2.so (0x7258fd20a000)
        libc++.so => /system/lib64/libc++.so (0x7258fd944000)
        libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x7258f1431000)
        libm.so => /apex/com.android.runtime/lib64/bionic/libm.so (0x7258f5f9c000)
        libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x7258f3689000)
        libstagefright_framecapture_utils.so => /system/lib64/libstagefright_framecapture_utils.so (0x7258f68c4000)
        libaudioutils.so => /system/lib64/libaudioutils.so (0x7258ee9d1000)
        **libbase.so => /system/lib64/libbase.so (0x7258ef64c000)**
        libbinder_ndk.so => /system/lib64/libbinder_ndk.so (0x7258fd247000)
        libcamera_client.so => /system/lib64/libcamera_client.so (0x7258f6543000)
        libcodec2.so => /system/lib64/libcodec2.so (0x7258fd0d2000)
        libcodec2_vndk.so => /system/lib64/libcodec2_vndk.so (0x7258f6304000)
        libdatasource.so => /system/lib64/libdatasource.so (0x7258f45c7000)
        libdl_android.so => /apex/com.android.runtime/lib64/bionic/libdl_android.so (0x7258f40f8000)
        libmedia_codeclist.so => /system/lib64/libmedia_codeclist.so (0x7258fd4c9000)
        libmedia_omx_client.so => /system/lib64/libmedia_omx_client.so (0x7258f63f7000)
        libaudioclient.so => /system/lib64/libaudioclient.so (0x7258ee888000)
        libmediametrics.so => /system/lib64/libmediametrics.so (0x7258f1ac1000)
        libmedia_helper.so => /system/lib64/libmedia_helper.so (0x7258f421e000)
        libsfplugin_ccodec.so => /system/lib64/libsfplugin_ccodec.so (0x7258f9900000)
        libsfplugin_ccodec_utils.so => /system/lib64/libsfplugin_ccodec_utils.so (0x7258f5d88000)
        libstagefright_codecbase.so => /system/lib64/libstagefright_codecbase.so (0x7258f5c5f000)
        libstagefright_omx_utils.so => /system/lib64/libstagefright_omx_utils.so (0x7258f984a000)
        libRScpp.so => /system/lib64/libRScpp.so (0x7258f12a7000)
        libhidlallocatorutils.so => /system/lib64/libhidlallocatorutils.so (0x7258f1247000)
        libhidlbase.so => /system/lib64/libhidlbase.so (0x7258fd702000)
        libhidlmemory.so => /system/lib64/libhidlmemory.so (0x7258fd1a6000)
        android.hidl.allocator@1.0.so => /system/lib64/android.hidl.allocator@1.0.so (0x7258f4107000)
        android.hardware.cas.native@1.0.so => /system/lib64/android.hardware.cas.native@1.0.so (0x7258f39e0000)
        android.hardware.drm@1.0.so => /system/lib64/android.hardware.drm@1.0.so (0x7258f640a000)
        android.hardware.media.omx@1.0.so => /system/lib64/android.hardware.media.omx@1.0.so (0x7258f3803000)
        framework-permission-aidl-cpp.so => /system/lib64/framework-permission-aidl-cpp.so (0x7258f5c21000)
        libaudioclient_aidl_conversion.so => /system/lib64/libaudioclient_aidl_conversion.so (0x7258f629e000)
        packagemanager_aidl-cpp.so => /system/lib64/packagemanager_aidl-cpp.so (0x7258f68a8000)
        android.hidl.token@1.0-utils.so => /system/lib64/android.hidl.token@1.0-utils.so (0x7258fd348000)
        android.media.audio.common.types-V1-cpp.so => /system/lib64/android.media.audio.common.types-V1-cpp.so (0x7258f396f000)
        audioclient-types-aidl-cpp.so => /system/lib64/audioclient-types-aidl-cpp.so (0x7258f605b000)
        av-types-aidl-cpp.so => /system/lib64/av-types-aidl-cpp.so (0x7258ffc98000)
        libprocessgroup.so => /system/lib64/libprocessgroup.so (0x7258f9462000)
        libexpat.so => /system/lib64/libexpat.so (0x7258f5e46000)
        android.hardware.graphics.bufferqueue@1.0.so => /system/lib64/android.hardware.graphics.bufferqueue@1.0.so (0x7258f1382000)
        libandroid_runtime_lazy.so => /system/lib64/libandroid_runtime_lazy.so (0x7258f9a09000)
        libmediadrm.so => /system/lib64/libmediadrm.so (0x7258f1b87000)
        libmedia_jni_utils.so => /system/lib64/libmedia_jni_utils.so (0x7258fd3ea000)
        libnativewindow.so => /system/lib64/libnativewindow.so (0x7258f5e00000)
        libmediandk_utils.so => /system/lib64/libmediandk_utils.so (0x7258ee995000)
        android.hardware.drm-V1-ndk.so => /system/lib64/android.hardware.drm-V1-ndk.so (0x7258ffc4d000)
        libvndksupport.so => /system/lib64/libvndksupport.so (0x7258f69f9000)
        android.hardware.graphics.allocator@2.0.so => /system/lib64/android.hardware.graphics.allocator@2.0.so (0x7258fd051000)
        android.hardware.graphics.allocator@3.0.so => /system/lib64/android.hardware.graphics.allocator@3.0.so (0x7258f1b4e000)
        android.hardware.graphics.allocator@4.0.so => /system/lib64/android.hardware.graphics.allocator@4.0.so (0x7258f3905000)
        android.hardware.graphics.allocator-V1-ndk.so => /system/lib64/android.hardware.graphics.allocator-V1-ndk.so (0x7258fd919000)
        android.hardware.graphics.common-V3-ndk.so => /system/lib64/android.hardware.graphics.common-V3-ndk.so (0x7258f36d6000)
        android.hardware.graphics.common@1.2.so => /system/lib64/android.hardware.graphics.common@1.2.so (0x7258fd1c1000)
        android.hardware.graphics.mapper@2.0.so => /system/lib64/android.hardware.graphics.mapper@2.0.so (0x7258fdada000)
        android.hardware.graphics.mapper@2.1.so => /system/lib64/android.hardware.graphics.mapper@2.1.so (0x7258fd29b000)
        android.hardware.graphics.mapper@3.0.so => /system/lib64/android.hardware.graphics.mapper@3.0.so (0x7258f9612000)
        android.hardware.graphics.mapper@4.0.so => /system/lib64/android.hardware.graphics.mapper@4.0.so (0x7258f5e81000)
        libgralloctypes.so => /system/lib64/libgralloctypes.so (0x7258f61e3000)
        libsync.so => /system/lib64/libsync.so (0x7258fda9f000)
        android.hardware.graphics.bufferqueue@2.0.so => /system/lib64/android.hardware.graphics.bufferqueue@2.0.so (0x7258fd8c2000)
        android.hardware.graphics.common@1.1.so => /system/lib64/android.hardware.graphics.common@1.1.so (0x7258ee7c3000)
        libbufferhub.so => /system/lib64/libbufferhub.so (0x7258f9b6e000)
        libbufferhubqueue.so => /system/lib64/libbufferhubqueue.so (0x7258f1b15000)
        libpdx_default_transport.so => /system/lib64/libpdx_default_transport.so (0x7258fd314000)
        libgraphicsenv.so => /system/lib64/libgraphicsenv.so (0x7258f9bc1000)
        libbacktrace.so => /system/lib64/libbacktrace.so (0x7258f41d3000)
        android.hardware.configstore@1.0.so => /system/lib64/android.hardware.configstore@1.0.so (0x7258f618e000)
        android.hardware.configstore-utils.so => /system/lib64/android.hardware.configstore-utils.so (0x7258ef6c9000)
        libnativebridge_lazy.so => /system/lib64/libnativebridge_lazy.so (0x7258f11e7000)
        libnativeloader_lazy.so => /system/lib64/libnativeloader_lazy.so (0x7258f41ab000)
        libSurfaceFlingerProp.so => /system/lib64/libSurfaceFlingerProp.so (0x7258ef716000)
        libGLESv1_CM.so => /system/lib64/libGLESv1_CM.so (0x7258f38e7000)
        libspeexresampler.so => /system/lib64/libspeexresampler.so (0x7258f9650000)
        libcamera_metadata.so => /system/lib64/libcamera_metadata.so (0x7258f955d000)
        lib-platform-compat-native-api.so => /system/lib64/lib-platform-compat-native-api.so (0x7258fd5e6000)
        android.hardware.media.bufferpool@2.0.so => /system/lib64/android.hardware.media.bufferpool@2.0.so (0x7258f9883000)
        libdmabufheap.so => /system/lib64/libdmabufheap.so (0x7258f94d2000)
        libfmq.so => /system/lib64/libfmq.so (0x7258f625a000)
        libion.so => /system/lib64/libion.so (0x7258fd155000)
        libstagefright_bufferpool@2.0.1.so => /system/lib64/libstagefright_bufferpool@2.0.1.so (0x7258ee80f000)
        audioflinger-aidl-cpp.so => /system/lib64/audioflinger-aidl-cpp.so (0x7258f9abb000)
        audiopolicy-aidl-cpp.so => /system/lib64/audiopolicy-aidl-cpp.so (0x7258fdb2e000)
        spatializer-aidl-cpp.so => /system/lib64/spatializer-aidl-cpp.so (0x7258f5d40000)
        audiopolicy-types-aidl-cpp.so => /system/lib64/audiopolicy-types-aidl-cpp.so (0x7258fdbcb000)
        capture_state_listener-aidl-cpp.so => /system/lib64/capture_state_listener-aidl-cpp.so (0x7258f6171000)
        libaudiofoundation.so => /system/lib64/libaudiofoundation.so (0x7258f405f000)
        libaudiopolicy.so => /system/lib64/libaudiopolicy.so (0x7258f5cdc000)
        libaudiomanager.so => /system/lib64/libaudiomanager.so (0x7258fda5b000)
        libmediautils.so => /system/lib64/libmediautils.so (0x7258fd815000)
        libnblog.so => /system/lib64/libnblog.so (0x7258f10d3000)
        libshmemcompat.so => /system/lib64/libshmemcompat.so (0x7258fd7f5000)
        mediametricsservice-aidl-cpp.so => /system/lib64/mediametricsservice-aidl-cpp.so (0x7258f611b000)
        android.hardware.media.c2@1.0.so => /system/lib64/android.hardware.media.c2@1.0.so (0x7258f5ec6000)
        libcodec2_client.so => /system/lib64/libcodec2_client.so (0x7258f3987000)
        libstagefright_bufferqueue_helper.so => /system/lib64/libstagefright_bufferqueue_helper.so (0x7258f1063000)
        libstagefright_omx.so => /system/lib64/libstagefright_omx.so (0x7258f1329000)
        libstagefright_surface_utils.so => /system/lib64/libstagefright_surface_utils.so (0x7258fda30000)
        libstagefright_xmlparser.so => /system/lib64/libstagefright_xmlparser.so (0x7258f1207000)
        android.hidl.memory@1.0.so => /system/lib64/android.hidl.memory@1.0.so (0x7258f98c0000)
        android.hidl.memory.token@1.0.so => /system/lib64/android.hidl.memory.token@1.0.so (0x7258f4263000)
        android.hardware.cas@1.0.so => /system/lib64/android.hardware.cas@1.0.so (0x7258ef761000)
        android.hardware.graphics.common@1.0.so => /system/lib64/android.hardware.graphics.common@1.0.so (0x7258fd39c000)
        android.hardware.media@1.0.so => /system/lib64/android.hardware.media@1.0.so (0x7258fd44f000)
        shared-file-region-aidl-cpp.so => /system/lib64/shared-file-region-aidl-cpp.so (0x7258ee7b5000)
        android.hidl.token@1.0.so => /system/lib64/android.hidl.token@1.0.so (0x7258fd883000)
        libcgrouprc.so => /system/lib64/libcgrouprc.so (0x7258fd407000)
        libmediadrmmetrics_lite.so => /system/lib64/libmediadrmmetrics_lite.so (0x7258f1081000)
        android.hardware.drm@1.1.so => /system/lib64/android.hardware.drm@1.1.so (0x7258f968e000)
        android.hardware.drm@1.2.so => /system/lib64/android.hardware.drm@1.2.so (0x7258f3708000)
        android.hardware.drm@1.3.so => /system/lib64/android.hardware.drm@1.3.so (0x7258f364f000)
        android.hardware.drm@1.4.so => /system/lib64/android.hardware.drm@1.4.so (0x7258f9582000)
        android.hardware.common-V2-ndk.so => /system/lib64/android.hardware.common-V2-ndk.so (0x7258f379c000)
        libselinux.so => /system/lib64/libselinux.so (0x7258eea04000)
        libunwindstack.so => /system/lib64/libunwindstack.so (0x7258f649e000)
        android.hardware.configstore@1.1.so => /system/lib64/android.hardware.configstore@1.1.so (0x7258f99c9000)
        effect-aidl-cpp.so => /system/lib64/effect-aidl-cpp.so (0x7258f5c82000)
        libpermission.so => /system/lib64/libpermission.so (0x7258eea50000)
        libshmemutil.so => /system/lib64/libshmemutil.so (0x7258f4161000)
        android.hidl.safe_union@1.0.so => /system/lib64/android.hidl.safe_union@1.0.so (0x7258f9a40000)
        android.hardware.media.c2@1.1.so => /system/lib64/android.hardware.media.c2@1.1.so (0x7258f37cb000)
        android.hardware.media.c2@1.2.so => /system/lib64/android.hardware.media.c2@1.2.so (0x7258fd108000)
        libcodec2_hidl_client@1.0.so => /system/lib64/libcodec2_hidl_client@1.0.so (0x7258f6003000)
        libcodec2_hidl_client@1.1.so => /system/lib64/libcodec2_hidl_client@1.1.so (0x7258fd504000)
        libcodec2_hidl_client@1.2.so => /system/lib64/libcodec2_hidl_client@1.2.so (0x7258f3881000)
        libprotobuf-cpp-lite.so => /system/lib64/libprotobuf-cpp-lite.so (0x7258f6080000)
        libpcre2.so => /system/lib64/libpcre2.so (0x7258f1154000)
        libpackagelistparser.so => /system/lib64/libpackagelistparser.so (0x7258f623c000)
        liblzma.so => /system/lib64/liblzma.so (0x7258f9803000)
        libandroidicu.so => /apex/com.android.i18n/lib64/libandroidicu.so (0x7258fd09a000)
        libbase.so => /system/lib64/libbase.so (0x7258fd561000)
        libicuuc.so => /apex/com.android.i18n/lib64/libicuuc.so (0x7258f3a04000)
        libicui18n.so => /apex/com.android.i18n/lib64/libicui18n.so (0x7258f42ad000)
        libc++.so => /system/lib64/libc++.so (0x7258f6903000)

ldd for /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so

Standard PC (Q35 + ICH9, 2009):/ # /apex/com.android.runtime/bin/linker64 --list /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so                                                                                                                                     
        linux-vdso.so.1 => [vdso] (0x7ffcc15fb000)
        android.hardware.graphics.mapper@2.0.so => /system/lib64/android.hardware.graphics.mapper@2.0.so (0x7314bd7d1000)
        android.hardware.graphics.mapper@2.1.so => /system/lib64/android.hardware.graphics.mapper@2.1.so (0x7314bd546000)
        libbase.so => /system/lib64/libbase.so (0x7314bd4a8000)
        libcutils.so => /system/lib64/libcutils.so (0x7314bd91d000)
        libhardware.so => /system/lib64/libhardware.so (0x7314bd733000)
        **libhidlbase.so => /system/lib64/libhidlbase.so (0x7314bd840000)**
        liblog.so => /system/lib64/liblog.so (0x7314bd82d000)
        libsync.so => /system/lib64/libsync.so (0x7314bd6db000)
        libutils.so => /system/lib64/libutils.so (0x7314bd9cf000)
        libc++.so => /system/lib64/libc++.so (0x7314bd606000)
        libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x7314bc704000)
        libm.so => /apex/com.android.runtime/lib64/bionic/libm.so (0x7314bd959000)
        libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x7314bd502000)
        android.hardware.graphics.common@1.0.so => /system/lib64/android.hardware.graphics.common@1.0.so (0x7314bd77a000)
        android.hardware.graphics.common@1.1.so => /system/lib64/android.hardware.graphics.common@1.1.so (0x7314bd588000)
        libvndksupport.so => /system/lib64/libvndksupport.so (0x7314bd7b7000)
        libdl_android.so => /apex/com.android.runtime/lib64/bionic/libdl_android.so (0x7314bd5cd000)
Standard PC (Q35 + ICH9, 2009):/ # ldd /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl-2.1.so                                                                                                                                                                               
        linux-vdso.so.1 => [vdso] (0x7ffd29ffa000)
        android.hardware.graphics.mapper@2.0.so => /system/lib64/android.hardware.graphics.mapper@2.0.so (0x798ce6559000)
        android.hardware.graphics.mapper@2.1.so => /system/lib64/android.hardware.graphics.mapper@2.1.so (0x798ce590f000)
        libbase.so => /system/lib64/libbase.so (0x798cea2f1000)
        libcutils.so => /system/lib64/libcutils.so (0x798cea25b000)
        libhardware.so => /system/lib64/libhardware.so (0x798ce58c3000)
        libhidlbase.so => /system/lib64/libhidlbase.so (0x798ce646d000)
        liblog.so => /system/lib64/liblog.so (0x798cea293000)
        libsync.so => /system/lib64/libsync.so (0x798ce65b9000)
        libutils.so => /system/lib64/libutils.so (0x798ce8d50000)
        libc++.so => /system/lib64/libc++.so (0x798ce5942000)
        libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x798ce868c000)
        libm.so => /apex/com.android.runtime/lib64/bionic/libm.so (0x798ce8d8d000)
        libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x798ce8658000)
        android.hardware.graphics.common@1.0.so => /system/lib64/android.hardware.graphics.common@1.0.so (0x798cea36a000)
        android.hardware.graphics.common@1.1.so => /system/lib64/android.hardware.graphics.common@1.1.so (0x798ce5898000)
        libvndksupport.so => /system/lib64/libvndksupport.so (0x798ce8d17000)
        libdl_android.so => /apex/com.android.runtime/lib64/bionic/libdl_android.so (0x798ce65e6000)

linked libs for running service android.hardware.graphics.allocator@2.0-service

1|Standard PC (Q35 + ICH9, 2009):/ # lsof -p 923 (android.hardware.graphics.allocator@2.0-service)                                                                                                                                                                                                                                      
COMMAND     PID       USER   FD      TYPE             DEVICE  SIZE/OFF       NODE NAME
allocator@2.0-s   923     system  cwd       DIR                7,0      4096          2 /
allocator@2.0-s   923     system  rtd       DIR                7,0      4096          2 /
allocator@2.0-s   923     system  txt       REG                7,0      5696      10569 /system/vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
allocator@2.0-s   923     system  mem       REG                7,0      5696      10569 /system/vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
allocator@2.0-s   923     system  mem       REG                7,0      5696      10569 /system/vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
allocator@2.0-s   923     system  mem       REG                7,0      5696      10569 /system/vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
allocator@2.0-s   923     system  mem       REG                7,0    107592       7387 /system/lib64/android.hardware.graphics.mapper@2.1.so
allocator@2.0-s   923     system  mem       REG                7,0     13360      16041 /system/vendor/lib64/hw/gralloc.minigbm_arcvm.so
allocator@2.0-s   923     system  mem       REG                7,0      3504       7378 /system/lib64/android.hardware.graphics.common@1.1.so
allocator@2.0-s   923     system  mem       REG                7,0      3504       7378 /system/lib64/android.hardware.graphics.common@1.1.so
allocator@2.0-s   923     system  mem       REG                7,0      3504       7378 /system/lib64/android.hardware.graphics.common@1.1.so
allocator@2.0-s   923     system  mem       REG                7,0      4240       7379 /system/lib64/android.hardware.graphics.common@1.2.so
allocator@2.0-s   923     system  mem       REG                7,0      4240       7379 /system/lib64/android.hardware.graphics.common@1.2.so
allocator@2.0-s   923     system  mem       REG                7,0      4240       7379 /system/lib64/android.hardware.graphics.common@1.2.so
allocator@2.0-s   923     system  mem       REG                7,0    116864       7388 /system/lib64/android.hardware.graphics.mapper@3.0.so
allocator@2.0-s   923     system  mem       REG                7,0    156984       7389 /system/lib64/android.hardware.graphics.mapper@4.0.so
allocator@2.0-s   923     system  mem       REG                7,0     82640       7779 /system/lib64/libgralloctypes.so
allocator@2.0-s   923     system  mem       REG                7,0     89816       7372 /system/lib64/android.hardware.graphics.allocator@3.0.so
allocator@2.0-s   923     system  mem       REG                7,0     21008       7376 /system/lib64/android.hardware.graphics.common-V3-ndk.so
allocator@2.0-s   923     system  mem       REG                7,0    342424       8015 /system/lib64/libui.so
allocator@2.0-s   923     system  mem       REG                7,0     86864      16089 /system/vendor/lib64/libminigbm_gralloc_arcvm.so
allocator@2.0-s   923     system  mem       REG                7,0    801832       7637 /system/lib64/libbinder.so
allocator@2.0-s   923     system  mem       REG                7,0      7240       8001 /system/lib64/libsync.so
allocator@2.0-s   923     system  mem       REG                7,0      7240       8001 /system/lib64/libsync.so
allocator@2.0-s   923     system  mem       REG                7,0     83344       7373 /system/lib64/android.hardware.graphics.allocator@4.0.so
allocator@2.0-s   923     system  mem       REG                7,0     11888       7345 /system/lib64/android.hardware.common-V2-ndk.so
allocator@2.0-s   923     system  mem       REG                7,0     33064       7370 /system/lib64/android.hardware.graphics.allocator-V1-ndk.so
allocator@2.0-s   923     system  mem       REG                7,0     87112       7735 /system/lib64/libdmabufheap.so
allocator@2.0-s   923     system  mem       REG                7,0     95632       7738 /system/lib64/libdrm.so
allocator@2.0-s   923     system  mem       REG                7,0      6040       7601 /system/lib64/libandroid_runtime_lazy.so
allocator@2.0-s   923     system  mem       REG                7,0      6040       7601 /system/lib64/libandroid_runtime_lazy.so
allocator@2.0-s   923     system  mem       REG                7,0      6040       7601 /system/lib64/libandroid_runtime_lazy.so
allocator@2.0-s   923     system  mem       REG                7,0      6040       7601 /system/lib64/libandroid_runtime_lazy.so
allocator@2.0-s   923     system  mem       REG                7,0     24840       7885 /system/lib64/libnativewindow.so
allocator@2.0-s   923     system  mem       REG                7,0     89496       7638 /system/lib64/libbinder_ndk.so
allocator@2.0-s   923     system  mem       REG                7,0     19264      16018 /system/vendor/lib64/hw/android.hardware.graphics.allocator@2.0-impl.so
allocator@2.0-s   923     system  mem       REG                7,0      7352       7783 /system/lib64/libhardware.so
allocator@2.0-s   923     system  mem       REG                7,0      7352       7783 /system/lib64/libhardware.so
allocator@2.0-s   923     system  mem       CHR              237,2                    5 /dev/binderfs/hwbinder
allocator@2.0-s   923     system  mem       REG                7,0     31544       7911 /system/lib64/libnetd_client.so
**allocator@2.0-s   923     system  mem       REG                7,0    263896       7632 /system/lib64/libbase.so**
allocator@2.0-s   923     system  mem       REG                7,0      4280        619 /apex/com.android.runtime/lib64/bionic/libdl_android.so
allocator@2.0-s   923     system  mem       REG                7,0      4280        619 /apex/com.android.runtime/lib64/bionic/libdl_android.so
allocator@2.0-s   923     system  mem       REG                7,0      4280        619 /apex/com.android.runtime/lib64/bionic/libdl_android.so
allocator@2.0-s   923     system  mem       REG                7,0    114080       8022 /system/lib64/libutils.so
allocator@2.0-s   923     system  mem       REG                7,0      5536        618 /apex/com.android.runtime/lib64/bionic/libdl.so
allocator@2.0-s   923     system  mem       REG                7,0      5536        618 /apex/com.android.runtime/lib64/bionic/libdl.so
allocator@2.0-s   923     system  mem       REG                7,0      5536        618 /apex/com.android.runtime/lib64/bionic/libdl.so
allocator@2.0-s   923     system  mem       REG                7,0     59680       7840 /system/lib64/liblog.so
allocator@2.0-s   923     system  mem       REG                7,0    773000       7793 /system/lib64/libhidlbase.so
allocator@2.0-s   923     system  mem       REG                7,0    734008       7659 /system/lib64/libc++.so
allocator@2.0-s   923     system  mem       REG                7,0   1023880        617 /apex/com.android.runtime/lib64/bionic/libc.so
allocator@2.0-s   923     system  mem       REG                7,0     93464       7725 /system/lib64/libcutils.so
allocator@2.0-s   923     system  mem       REG                7,0      3440       7377 /system/lib64/android.hardware.graphics.common@1.0.so
allocator@2.0-s   923     system  mem       REG                7,0      3440       7377 /system/lib64/android.hardware.graphics.common@1.0.so
allocator@2.0-s   923     system  mem       REG                7,0      3440       7377 /system/lib64/android.hardware.graphics.common@1.0.so
allocator@2.0-s   923     system  mem       REG                7,0    324376        620 /apex/com.android.runtime/lib64/bionic/libm.so
allocator@2.0-s   923     system  mem       REG               0,20    131072        257 /dev/__properties__/u:object_r:vendor_default_prop:s0
allocator@2.0-s   923     system  mem       REG                7,0     89712       7371 /system/lib64/android.hardware.graphics.allocator@2.0.so
allocator@2.0-s   923     system  mem       REG               0,20    131072        126 /dev/__properties__/u:object_r:exported_default_prop:s0
allocator@2.0-s   923     system  mem       REG                7,0      5648       8029 /system/lib64/libvndksupport.so
allocator@2.0-s   923     system  mem       REG                7,0      5648       8029 /system/lib64/libvndksupport.so
allocator@2.0-s   923     system  mem       REG                7,0      5648       8029 /system/lib64/libvndksupport.so
allocator@2.0-s   923     system  mem       REG                7,0      5648       8029 /system/lib64/libvndksupport.so
allocator@2.0-s   923     system  mem       REG               0,20    131072         49 /dev/__properties__/u:object_r:build_prop:s0
allocator@2.0-s   923     system  mem       REG                7,0    102840       7386 /system/lib64/android.hardware.graphics.mapper@2.0.so
allocator@2.0-s   923     system  mem       REG               0,20    131072        263 /dev/__properties__/u:object_r:vndk_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        146 /dev/__properties__/u:object_r:heapprofd_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        159 /dev/__properties__/u:object_r:libc_debug_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        141 /dev/__properties__/u:object_r:gwp_asan_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072         88 /dev/__properties__/u:object_r:debug_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        278 /dev/__properties__/properties_serial
allocator@2.0-s   923     system  mem       REG               0,20     73304         15 /dev/__properties__/property_info
allocator@2.0-s   923     system  mem       REG               0,20    131072        165 /dev/__properties__/u:object_r:log_tag_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        148 /dev/__properties__/u:object_r:hwservicemanager_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        259 /dev/__properties__/u:object_r:vendor_socket_hook_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        263 /dev/__properties__/u:object_r:vndk_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072         88 /dev/__properties__/u:object_r:debug_prop:s0
allocator@2.0-s   923     system  mem       REG               0,20    131072        278 /dev/__properties__/properties_serial
allocator@2.0-s   923     system  mem       REG               0,20     73304         15 /dev/__properties__/property_info
allocator@2.0-s   923     system  mem       REG                7,0   1744232        595 /apex/com.android.runtime/bin/linker64
allocator@2.0-s   923     system    0u      CHR                1,3       0t0         10 /dev/null
allocator@2.0-s   923     system    1u      CHR                1,3       0t0         10 /dev/null
allocator@2.0-s   923     system    2u      CHR                1,3       0t0         10 /dev/null
allocator@2.0-s   923     system    3u      CHR              237,2       0t0          5 /dev/binderfs/hwbinder
allocator@2.0-s   923     system    4u     unix                          0t0      14130 socket
allocator@2.0-s   923     system    5u      CHR            226,128       0t0        493 /dev/dri/renderD128

@onlineapps-cloud
Copy link

onlineapps-cloud commented Feb 16, 2025

hi, i have same error on Bliss-v16.9.7-x86_64-OFFICIAL-foss-20241011 in proxmox:

scrcpy
scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.1.216:5555              device  Generic_Android_x86_64
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 8.3 MB/s (90640 bytes in 0.010s)
[server] INFO: Device: [unknown] QEMU Generic Android-x86_64 (Android 13)
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.UnsupportedOperationException: Cannot create AudioRecord
        at android.media.AudioRecord$Builder.build(AudioRecord.java:977)
        at com.genymobile.scrcpy.FakeContext$$ExternalSyntheticApiModelOutline0.m(D8$$SyntheticClass:0)
        at com.genymobile.scrcpy.audio.AudioDirectCapture.createAudioRecord(AudioDirectCapture.java:65)
        at com.genymobile.scrcpy.audio.AudioDirectCapture.startRecording(AudioDirectCapture.java:108)
        at com.genymobile.scrcpy.audio.AudioDirectCapture.start(AudioDirectCapture.java:137)
        at com.genymobile.scrcpy.audio.AudioEncoder.encode(AudioEncoder.java:204)
        at com.genymobile.scrcpy.audio.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-audio-AudioEncoder(AudioEncoder.java:133)
        at com.genymobile.scrcpy.audio.AudioEncoder$$ExternalSyntheticLambda3.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
[server] INFO: Retrying with -m1024...
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.2.2-1~mx23ahs
INFO: Trilinear filtering enabled
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1280x800
[server] ERROR: Capture/encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3572)
        at com.genymobile.scrcpy.video.SurfaceEncoder.encode(SurfaceEncoder.java:202)
        at com.genymobile.scrcpy.video.SurfaceEncoder.streamCapture(SurfaceEncoder.java:110)
        at com.genymobile.scrcpy.video.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-video-SurfaceEncoder(SurfaceEncoder.java:296)
        at com.genymobile.scrcpy.video.SurfaceEncoder$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
WARN: Device disconnected

Image
2 different scrcpy version return different error when i want to connect.

@rocksit
Copy link

rocksit commented Feb 18, 2025

@onlineapps-cloud I think this is not an scrcpy issue, anyway. The scrcpy tool only forwards an error message of the android system, that is not able load a viable encoder to capture your screen. scrcpy can't work without an encoder. You could verify this, by opening a root adb shell to your Bliss os and running
screencopy --verbose /sdcard/video.mp4 It will probably fail. When you take a look in adb logcat after that, you will find the vndksupport (vendor native devel.kit) unable to load an encoder for the linked libraries of the screenrecord tool. The same goes with scrcpy. I described this phenomenon in an earlier post here.

Here is my first workaround for the Problem:

I reasoned, that the "sphal" namespace of the vndk loader may be incorrectly configured in the android bliss (I use Bliss-v16.9.7-x86_64-OFFICIAL-foss-20241011.iso), at least for the com.android.media.swcodec subsystem. My bet is, that while AG (android generic project) or Bliss maintainers took some updated code from AOSP code base, they forgot to patch the linker namespace to reflect the X86 arch of Bliss in favor of android ARM64 default, when the dynamic linker detects X86 arch on bootup.

After digging a bit in the vndk linker docu, this suspicion seems to hold. The Bliss video codec loader is configured in a single process HAL environment (sphal), meaning that the os provides it with an separated and isolated shared objects loader environment, (mainly) not shared with other programms.

The general bliss/android NS configuration is done on boot time dynamically (maybe here /etc/init/patch_linker.rc ?) and stored in /linkerconfig/ folder. As the logcat shows the component of failure to be com.android.media.swcodec, the vndk linker context in charge is /linkerconfig/com.android.media.swcodec/ld.config.txt. On introspection one can find for this sphal NS:

namespace.sphal.search.paths = /odm/${LIB}
namespace.sphal.search.paths += /vendor/${LIB}
namespace.sphal.search.paths += /vendor/${LIB}/egl
namespace.sphal.search.paths += /vendor/${LIB}/hw
namespace.sphal.search.paths += /vendor/${LIB}/arm
namespace.sphal.search.paths += /vendor/${LIB}/arm/nb
namespace.sphal.search.paths += /vendor/${LIB}/arm64
namespace.sphal.search.paths += /vendor/${LIB}/arm64/nb
namespace.sphal.search.paths += /system/${LIB}/arm
namespace.sphal.search.paths += /system/${LIB}/arm/nb
namespace.sphal.search.paths += /system/${LIB}/arm64
namespace.sphal.search.paths += /system/${LIB}/arm64/nb
namespace.sphal.search.paths += /system/${LIB}

So, /system/${LIB} is searched after namespace.sphal.search.paths += /system/${LIB}/arm64 what causes the trouble, because libraries like libbase.so exist for arm64 and x86 both. The vndk linker is configured to stop after a failed load request, the right lib will never be loaded, the codec loader stops with an error.

A simple fix seems to prepend the /system/lib64 path to the arm64 search path. I did it and created this little patch file here

--- /linkerconfig/com.android.media.swcodec/ld.config.txt       2025-02-18 00:50:14.717676000 +0100
+++ /linkerconfig/com.android.media.swcodec/ld.config.txt       2025-02-18 00:58:54.309676000 +0100
@@ -236,9 +236,9 @@
 namespace.sphal.search.paths += /vendor/${LIB}/arm64/nb
 namespace.sphal.search.paths += /system/${LIB}/arm
 namespace.sphal.search.paths += /system/${LIB}/arm/nb
+namespace.sphal.search.paths += /system/${LIB}
 namespace.sphal.search.paths += /system/${LIB}/arm64
 namespace.sphal.search.paths += /system/${LIB}/arm64/nb
-namespace.sphal.search.paths += /system/${LIB}
 namespace.sphal.permitted.paths = /vendor/${LIB}/egl
 namespace.sphal.permitted.paths += /system/vendor/${LIB}/egl
 namespace.sphal.permitted.paths += /odm/${LIB}

Applying this patch with patch -p0 < com.android.media.swcodec_ld.config.patch on your adb root shell will make the codec loader (and screenrecord and scrcpy and others) work again. Due to the sphal isolated nature, the other (arm64) apps loader NS is not altered by this and they should keep on working. However please note, that I am not an android developer or security expert and this change may have implications, I'm not aware of. So please use with caution.

The best thing would be, if Bliss or AG system developers adapt the dynamic runtime linker configuration, to generate a correct namespace for the template file /system/apex/com.android.media.swcodec/etc/ld.config.txt, what does not happen yet. Without this fix, one has the option to apply this patch manually on every android boot, or write a /etc/init/ startup service and selinux policy adoption for it, to load this patch every bootup. Not perfect, nor nice, but a first workaround for the anoying scrcpy & screenrecord Bliss problem. Maybe someone has a better idea to fix this, while the Bliss team find the time to adopt the linker config in their build processes.

@yume-chan
Copy link
Contributor

@rocksit
Copy link

rocksit commented Feb 18, 2025

Hm, true. I did not watch out for this. Looks like head of the x86 linker will skip the arm64 folders, so that system/lib64 comes to play.. sphal.cc
So with next releases of bliss, media codec loader should work out of the box, hopefully :)

@hmtheboy154
Copy link

Hm, true. I did not watch out for this. Looks like head of the x86 linker will skip the arm64 folders, so that system/lib64 comes to play.. sphal.cc So with next releases of bliss, media codec loader should work out of the box, hopefully :)

Not hopefully, it's working. I already tested that.
I forgot to announce anything about this issue, we force searching for arm path for some hacks that is related to some specific apps like Panda Keymapper, but we have a better hack so that is reverted. If anyone building Bliss manually now this will be fixed OOTB.

@onlineapps-cloud
Copy link

onlineapps-cloud commented Feb 19, 2025

i can confirm that scrcpy work well on Bliss OS Zenith

Image

@rocksit
Copy link

rocksit commented Feb 19, 2025

Great to read :) @rom1v I suggest to close this issue..

@unixfox
Copy link

unixfox commented Feb 19, 2025

@onlineapps-cloud sorry to hijack this thread but which ISO did you use? I tried with Bliss-Zenith-v16.9.6-x86_64-OFFICIAL-gapps-20240715.iso but I'm still getting the same error message.

Sorry that was due to running Blissos in VMWARE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests