Closed wyjxp closed 1 year ago
We don't directly support the Android simulator but depending on your OS and hardware it should work.
For Windows make sure you're targeting the x86_64 simulator and that your graphics hardware supports Vulkan (OpenGLES 3.1 will also work if you're able to target Vulkan).
Unfortunately we're unable to support the simulator on macOS as it does not support Vulkan and only supports OpenGLES 3.0 (OpenGLES 3.1 is required).
just StartCapture, then app crash.
log
``` 2023-08-30 19:38:23.903 2491-2515/? I/Unity: [AVProMovieCapture] Start File Capture: 800x452 @ 30.00fps [RGBA32] vcodec:'H264' to file: '/storage/emulated/0/Android/data/com.jjhgame.XXXX/files/Captures/9041.mp4' (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39) 2023-08-30 19:38:23.903 2491-2515/? I/AVProMovieCapture: 💬️ (PluginInterface.cpp:70) AVPMC_CreateRecorderVideo - 5.1.5-trial 2023-08-30 19:38:23.903 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:49) IVideoRecorder::newVideoRecorder - android api level is 32 2023-08-30 19:38:23.903 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:56) IVideoRecorder::newVideoRecorder - creating video recorder for API 28 2023-08-30 19:38:23.905 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:1082) VideoRecorder::createMuxer - creating file at: /storage/emulated/0/Android/data/com.jjhgame.XXXX/files/Captures/9041.mp4 2023-08-30 19:38:23.992 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(299) 2023-08-30 19:38:23.997 2491-2515/? D/MPEG4Writer: PreAllocation enabled 2023-08-30 19:38:24.075 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetFormatAdjustmentForEncode - media codec name: c2.android.avc.encoder 2023-08-30 19:38:24.075 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetFormatAdjustmentForEncode - supported bitrates: [1-12,000,000] 2023-08-30 19:38:24.076 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetFormatAdjustmentForEncode - supported widths: [16-2,048] 2023-08-30 19:38:24.076 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetFormatAdjustmentForEncode - supported heights: [16-2,048] 2023-08-30 19:38:24.076 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetFormatAdjustmentForEncode - width alignment: 2 2023-08-30 19:38:24.076 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetFormatAdjustmentForEncode - height alignment: 2 2023-08-30 19:38:24.273 1431-1431/? I/m.mumu.launcher: type=1400 audit(0.0:4638): avc: denied { read } for scontext=u:r:system_app:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1 2023-08-30 19:38:24.288 2491-2630/? D/CCodec: allocate(c2.android.avc.encoder) 2023-08-30 19:38:24.289 2491-2630/? E/HidlServiceManagement: getService: Potential race detected, descriptor: android.hidl.manager@1.2::IServiceManager instance: default 2023-08-30 19:38:24.290 2491-2630/? I/Codec2Client: Available Codec2 services: "software" 2023-08-30 19:38:24.328 2491-2630/? E/HidlServiceManagement: getService: Potential race detected, descriptor: android.hardware.media.c2@1.0::IComponentStore instance: software 2023-08-30 19:38:24.331 1049-2467/? V/C2Store: in init 2023-08-30 19:38:24.331 1049-2467/? V/C2Store: loading dll 2023-08-30 19:38:24.334 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(201) 2023-08-30 19:38:24.368 1049-2467/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004) 2023-08-30 19:38:24.368 1049-2467/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812) 2023-08-30 19:38:24.369 1049-2467/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004) 2023-08-30 19:38:24.369 1049-2467/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812) 2023-08-30 19:38:24.430 2491-2630/? I/CCodec: Created component [c2.android.avc.encoder] 2023-08-30 19:38:24.435 2491-2630/? D/CCodecConfig: read media type: video/avc 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: ignored struct field coding.gop.values 2023-08-30 19:38:24.435 2491-2630/? D/ReflectedParamUpdater: ignored struct field coding.qp.values 2023-08-30 19:38:24.435 2491-2630/? D/CCodecConfig: ignoring local param raw.color (0xc2001809) as it is already supported 2023-08-30 19:38:24.436 2491-2630/? I/CCodecConfig: query failed after returning 12 values (BAD_INDEX) 2023-08-30 19:38:24.436 2491-2630/? D/CCodecConfig: c2 config diff is Dict { c2::u32 coded.bitrate.value = 64000 c2::float coded.frame-rate.value = 1 c2::u32 coded.pl.level = 20492 c2::u32 coded.pl.profile = 20481 c2::u32 coded.vui.color.matrix = 0 c2::u32 coded.vui.color.primaries = 0 c2::u32 coded.vui.color.range = 0 c2::u32 coded.vui.color.transfer = 0 c2::u32 coding.intra-refresh.mode = 0 c2::float coding.intra-refresh.period = 0 c2::u32 coding.request-sync-frame.value = 0 c2::i64 coding.sync-frame-interval.value = 1000000 c2::u32 input.delay.value = 0 string input.media-type.value = "video/raw" string output.media-type.value = "video/avc" c2::u32 raw.color.matrix = 0 c2::u32 raw.color.primaries = 0 c2::u32 raw.color.range = 0 c2::u32 raw.color.transfer = 0 c2::u32 raw.size.height = 16 c2::u32 raw.size.width = 16 } 2023-08-30 19:38:24.436 2491-2630/? W/ColorUtils: expected specified color aspects (0:0:0:0) 2023-08-30 19:38:24.437 949-949/? E/SELinux: avc: denied { find } for pid=1046 uid=1013 name=media_resource_monitor scontext=u:r:init:s0 tcontext=u:object_r:media_session_service:s0 tclass=service_manager permissive=1 2023-08-30 19:38:24.433 949-949/? I/servicemanager: type=1400 audit(0.0:4639): avc: denied { transfer } for scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=binder permissive=1 2023-08-30 19:38:24.459 2491-2491/? I/UnityMain: type=1400 audit(0.0:4640): avc: denied { read } for name="libutils.so" dev="sda6" ino=298 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1 2023-08-30 19:38:24.468 2491-2515/? D/CodecSeeding: Seed: codec c2.android.avc.encoder, mediatype video/avc, overrideable 1 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-bpp,0) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-bpp-1080p,1.90) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-bpp-720p,2.25) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-bpp-540p,2.65) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-bpp-480p,3.00) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-bpp-320x240,0) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-qpmax,-1) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-qpmax-1080p,45) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-qpmax-720p,43) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-qpmax-540p,42) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-target-qpmax-480p,38) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-bitrate-phaseout,1.75) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setTuningValue(vq-boost-missing-qp,0.20) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setFeatureValue(intra-refresh,0) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setFeatureValue(qp-bounds,0) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setFeatureValue(_vq_eligible.device,1) 2023-08-30 19:38:24.468 2491-2515/? D/CodecProperties: setFeatureValue(_quality.target,1) 2023-08-30 19:38:24.468 2491-2515/? D/CodecSeeding: Seed: codec c2.android.avc.encoder, mediatype video/avc, overrideable 0 2023-08-30 19:38:24.468 2491-2515/? D/MediaCodec: shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = { int32_t android._encoding-quality-level = 0 } 2023-08-30 19:38:24.469 2491-2630/? D/CCodec: [c2.android.avc.encoder] buffers are bound to CCodec for this session 2023-08-30 19:38:24.469 2491-2630/? D/CCodecConfig: no c2 equivalents for color-format 2023-08-30 19:38:24.469 2491-2630/? D/CCodecConfig: no c2 equivalents for flags 2023-08-30 19:38:24.469 2491-2630/? D/CCodecConfig: no c2 equivalents for encoder 2023-08-30 19:38:24.469 2491-2630/? D/CCodecConfig: c2 config diff is c2::u32 coded.bitrate.value = 2500000 c2::float coded.frame-rate.value = 30 c2::u32 raw.size.height = 452 c2::u32 raw.size.width = 800 2023-08-30 19:38:24.469 2491-2630/? W/ColorUtils: expected specified color aspects (0:0:0:0) 2023-08-30 19:38:24.469 1049-1096/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004) 2023-08-30 19:38:24.469 1049-1096/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812) 2023-08-30 19:38:24.470 2491-2630/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.476 2491-2630/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.478 2491-2630/? D/BufferPoolAccessor2.0: Destruction - bufferpool2 0x715156c51eb8 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched 2023-08-30 19:38:24.493 2491-2630/? D/CCodec: setup formats input: AMessage(what = 0x00000000) = { Rect crop(0, 0, 799, 451) int32_t color-standard = 0 int32_t color-range = 0 int32_t color-transfer = 0 int32_t frame-rate = 30 int32_t height = 452 int32_t intra-refresh-period = 0 string mime = "video/raw" int32_t width = 800 int32_t android._dataspace = 0 int32_t using-sw-read-often = 1 int64_t android._C2MemoryUsage = 1 int32_t color-format = 2135033992 int32_t android._color-format = 19 int32_t stride = 800 int32_t slice-height = 452 } 2023-08-30 19:38:24.493 2491-2630/? D/CCodec: setup formats output: AMessage(what = 0x00000000) = { int32_t bitrate = 2500000 Rect crop(0, 0, 799, 451) int32_t color-standard = 0 int32_t color-range = 0 int32_t color-transfer = 0 int32_t frame-rate = 30 int32_t height = 452 int32_t intra-refresh-period = 0 int32_t level = 4096 int32_t max-bitrate = 2500000 string mime = "video/avc" int32_t profile = 65536 int32_t width = 800 } 2023-08-30 19:38:24.493 2491-2630/? I/CCodecConfig: query failed after returning 13 values (BAD_INDEX) 2023-08-30 19:38:24.495 2491-2630/? W/Codec2Client: query -- param skipped: index = 1342179345. 2023-08-30 19:38:24.495 2491-2630/? W/Codec2Client: query -- param skipped: index = 2415921170. 2023-08-30 19:38:24.495 2491-2630/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] Using basic input block pool with poolID 1 => got 1 - OK (0) 2023-08-30 19:38:24.495 2491-2630/? D/C2Store: Using ION 2023-08-30 19:38:24.495 1049-2467/? D/C2Store: Using ION 2023-08-30 19:38:24.495 1049-2467/? E/ashmem: memfd: ro.vndk.version not defined or invalid (), this is mandated since P. 2023-08-30 19:38:24.496 2491-2630/? I/CCodecBufferChannel: [c2.android.avc.encoder#300] Created output block pool with allocatorID 16 => poolID 17 - OK 2023-08-30 19:38:24.493 1049-1049/? I/HwBinder:1049_5: type=1400 audit(0.0:4641): avc: denied { getattr } for path="/dev/ion" dev="tmpfs" ino=8460 scontext=u:r:init:s0 tcontext=u:object_r:ion_device:s0 tclass=chr_file permissive=1 2023-08-30 19:38:24.496 2491-2630/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] Configured output block pool ids 17 => OK 2023-08-30 19:38:24.493 1049-1049/? I/HwBinder:1049_5: type=1400 audit(0.0:4642): avc: denied { read } for name="ion" dev="tmpfs" ino=8460 scontext=u:r:init:s0 tcontext=u:object_r:ion_device:s0 tclass=chr_file permissive=1 2023-08-30 19:38:24.497 2491-2630/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.497 2491-2630/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.493 1049-1049/? I/HwBinder:1049_5: type=1400 audit(0.0:4643): avc: denied { open } for path="/dev/ion" dev="tmpfs" ino=8460 scontext=u:r:init:s0 tcontext=u:object_r:ion_device:s0 tclass=chr_file permissive=1 2023-08-30 19:38:24.497 1046-1145/? W/ResourceManagerService: Ignoring request to add new resource entry with value <= 0 2023-08-30 19:38:24.498 2491-2630/? D/CCodecBuffers: [c2.android.avc.encoder#300:2D-BB-Input] updating image-data 2023-08-30 19:38:24.498 2491-2630/? D/CCodecBuffers: [c2.android.avc.encoder#300:2D-BB-Input] updating stride = 800, width: 800, height: 452 2023-08-30 19:38:24.498 2491-2630/? D/CCodecBuffers: [c2.android.avc.encoder#300:2D-BB-Input] updating vstride = 452 2023-08-30 19:38:24.499 2491-2630/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.499 2491-2630/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.500 2491-2630/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.500 2491-2630/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.502 2491-2630/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.502 2491-2630/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.504 1049-2635/? D/SimpleC2Component: Using output block pool with poolID 17 => got 17 - 0 2023-08-30 19:38:24.504 1049-2635/? D/C2SoftAvcEnc: Params width 800 height 452 level 41 colorFormat 0 bframes 0 2023-08-30 19:38:24.505 2491-2630/? D/CCodecBuffers: [c2.android.avc.encoder#300:2D-BB-Input[N]] updating image-data 2023-08-30 19:38:24.505 2491-2630/? D/CCodecBuffers: [c2.android.avc.encoder#300:2D-BB-Input[N]] updating stride = 800, width: 800, height: 452 2023-08-30 19:38:24.505 2491-2630/? D/CCodecBuffers: [c2.android.avc.encoder#300:2D-BB-Input[N]] updating vstride = 452 2023-08-30 19:38:24.511 1049-2635/? E/C2SoftAvcEnc: Unable to set air params = 0x1ad 2023-08-30 19:38:24.511 2491-2629/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] MediaCodec discarded an unknown buffer 2023-08-30 19:38:24.557 2491-2629/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] MediaCodec discarded an unknown buffer 2023-08-30 19:38:24.557 2491-2629/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] MediaCodec discarded an unknown buffer 2023-08-30 19:38:24.558 2491-2629/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] MediaCodec discarded an unknown buffer 2023-08-30 19:38:24.559 2491-2629/? D/CCodecBufferChannel: [c2.android.avc.encoder#300] MediaCodec discarded an unknown buffer 2023-08-30 19:38:24.562 2491-2630/? I/hw-BpHwBinder: onLastStrongRef automatically unlinking death recipients 2023-08-30 19:38:24.562 1049-2467/? V/C2Store: in ~ComponentModule 2023-08-30 19:38:24.562 1049-2467/? V/C2Store: unloading dll 2023-08-30 19:38:24.563 1049-2464/? D/BufferPoolAccessor2.0: Destruction - bufferpool2 0x7e01341d30f8 cached: 0/0M, 0/0% in use; allocs: 0, 0% recycled; transfers: 0, 0% unfetched 2023-08-30 19:38:24.565 2491-2515/? I/AVProMovieCapture: 💬️ Manager.GetVideoCodecImageCapabilities - Colour format is YUV8_420 2023-08-30 19:38:24.576 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(74) 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:503) VideoRecorder::createVideoCodec - Media format: 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:504) VideoRecorder::createVideoCodec - MIME type: video/avc 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:505) VideoRecorder::createVideoCodec - Width: 800 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:506) VideoRecorder::createVideoCodec - Height: 452 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:507) VideoRecorder::createVideoCodec - Frame rate: 30.000000 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:508) VideoRecorder::createVideoCodec - Bitrate: 2500000 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:509) VideoRecorder::createVideoCodec - I-Frame interval: 1.000000 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:510) VideoRecorder::createVideoCodec - Stride: 800 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:511) VideoRecorder::createVideoCodec - Slice height: 452 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:512) VideoRecorder::createVideoCodec - Colour range: Limited 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:513) VideoRecorder::createVideoCodec - Profile: 8 2023-08-30 19:38:24.586 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:514) VideoRecorder::createVideoCodec - Level: 200 2023-08-30 19:38:24.588 2491-2639/? D/CCodec: allocate(c2.android.avc.encoder) 2023-08-30 19:38:24.588 1049-2464/? V/C2Store: in init 2023-08-30 19:38:24.588 1049-2464/? V/C2Store: loading dll 2023-08-30 19:38:24.588 1049-2464/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004) 2023-08-30 19:38:24.589 1049-2464/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812) 2023-08-30 19:38:24.589 1049-2464/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--004) for field values of struct #Param::CoreIndex(F-12004) 2023-08-30 19:38:24.589 1049-2464/? I/mediaswcodec: missing struct descriptor #Param::CoreIndex(--1812) for field values of struct #Param::CoreIndex(F-11812) 2023-08-30 19:38:24.590 2491-2639/? I/CCodec: Created component [c2.android.avc.encoder] 2023-08-30 19:38:24.590 2491-2639/? D/CCodecConfig: read media type: video/avc 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values 2023-08-30 19:38:24.597 2491-2639/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values 2023-08-30 19:38:24.598 2491-2639/? D/ReflectedParamUpdater: ignored struct field coding.gop.values 2023-08-30 19:38:24.598 2491-2639/? D/ReflectedParamUpdater: ignored struct field coding.qp.values 2023-08-30 19:38:24.598 2491-2639/? D/CCodecConfig: ignoring local param raw.color (0xc2001809) as it is already supported 2023-08-30 19:38:24.599 2491-2639/? I/CCodecConfig: query failed after returning 12 values (BAD_INDEX) 2023-08-30 19:38:24.599 2491-2639/? D/CCodecConfig: c2 config diff is Dict { c2::u32 coded.bitrate.value = 64000 c2::float coded.frame-rate.value = 1 c2::u32 coded.pl.level = 20492 c2::u32 coded.pl.profile = 20481 c2::u32 coded.vui.color.matrix = 0 c2::u32 coded.vui.color.primaries = 0 c2::u32 coded.vui.color.range = 0 c2::u32 coded.vui.color.transfer = 0 c2::u32 coding.intra-refresh.mode = 0 c2::float coding.intra-refresh.period = 0 c2::u32 coding.request-sync-frame.value = 0 c2::i64 coding.sync-frame-interval.value = 1000000 c2::u32 input.delay.value = 0 string input.media-type.value = "video/raw" string output.media-type.value = "video/avc" c2::u32 raw.color.matrix = 0 c2::u32 raw.color.primaries = 0 c2::u32 raw.color.range = 0 c2::u32 raw.color.transfer = 0 c2::u32 raw.size.height = 16 c2::u32 raw.size.width = 16 } 2023-08-30 19:38:24.600 2491-2639/? W/ColorUtils: expected specified color aspects (0:0:0:0) 2023-08-30 19:38:24.601 2491-2515/? D/MediaCodec: shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = { int32_t android._encoding-quality-level = 0 } 2023-08-30 19:38:24.602 2491-2639/? D/CCodec: [c2.android.avc.encoder] buffers are bound to CCodec for this session 2023-08-30 19:38:24.602 2491-2639/? D/CCodecConfig: no c2 equivalents for color-format 2023-08-30 19:38:24.602 2491-2639/? D/CCodecConfig: no c2 equivalents for color-standard 2023-08-30 19:38:24.602 2491-2639/? D/CCodecConfig: no c2 equivalents for flags 2023-08-30 19:38:24.602 2491-2639/? D/CCodecConfig: no c2 equivalents for encoder 2023-08-30 19:38:24.603 2491-2639/? D/CCodecConfig: c2 config diff is c2::u32 coded.bitrate.value = 2500000 c2::float coded.frame-rate.value = 30 c2::u32 coded.pl.level = 20489 c2::u32 coded.vui.color.matrix = 1 c2::u32 coded.vui.color.primaries = 1 c2::u32 coded.vui.color.range = 2 c2::u32 coded.vui.color.transfer = 3 c2::u32 raw.color.matrix = 1 c2::u32 raw.color.primaries = 1 c2::u32 raw.color.range = 2 c2::u32 raw.color.transfer = 3 c2::u32 raw.size.height = 452 c2::u32 raw.size.width = 800 2023-08-30 19:38:24.603 2491-2639/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.611 2491-2639/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.613 2491-2639/? D/BufferPoolAccessor2.0: Destruction - bufferpool2 0x715156c510d8 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched 2023-08-30 19:38:24.628 2491-2639/? D/CCodec: setup formats input: AMessage(what = 0x00000000) = { Rect crop(0, 0, 799, 451) int32_t color-standard = 1 int32_t color-range = 2 int32_t color-transfer = 3 int32_t frame-rate = 30 int32_t height = 452 int32_t intra-refresh-period = 0 string mime = "video/raw" int32_t width = 800 int32_t android._dataspace = 260 int32_t using-sw-read-often = 1 int64_t android._C2MemoryUsage = 1 int32_t color-format = 2135033992 int32_t android._color-format = 19 int32_t stride = 800 int32_t slice-height = 452 } 2023-08-30 19:38:24.628 2491-2639/? D/CCodec: setup formats output: AMessage(what = 0x00000000) = { int32_t bitrate = 2500000 Rect crop(0, 0, 799, 451) int32_t color-standard = 1 int32_t color-range = 2 int32_t color-transfer = 3 int32_t frame-rate = 30 int32_t height = 452 int32_t intra-refresh-period = 0 int32_t level = 512 int32_t max-bitrate = 2500000 string mime = "video/avc" int32_t profile = 65536 int32_t width = 800 } 2023-08-30 19:38:24.629 2491-2639/? I/CCodecConfig: query failed after returning 13 values (BAD_INDEX) 2023-08-30 19:38:24.629 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorderAPI28.cpp:228) VideoRecorderAPI28::createVideoCodecPostConfigure - codec name is: c2.android.avc.encoder 2023-08-30 19:38:24.629 2491-2638/? I/MediaCodec: MediaCodec will operate in async mode 2023-08-30 19:38:24.629 2491-2515/? D/MediaCodec: keep callback message for reclaim 2023-08-30 19:38:24.630 2491-2639/? W/Codec2Client: query -- param skipped: index = 1342179345. 2023-08-30 19:38:24.630 2491-2639/? W/Codec2Client: query -- param skipped: index = 2415921170. 2023-08-30 19:38:24.632 2491-2639/? D/CCodecBufferChannel: [c2.android.avc.encoder#787] Using basic input block pool with poolID 1 => got 1 - OK (0) 2023-08-30 19:38:24.633 2491-2639/? I/CCodecBufferChannel: [c2.android.avc.encoder#787] Created output block pool with allocatorID 16 => poolID 18 - OK 2023-08-30 19:38:24.633 2491-2639/? D/CCodecBufferChannel: [c2.android.avc.encoder#787] Configured output block pool ids 18 => OK 2023-08-30 19:38:24.633 2491-2639/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.633 2491-2639/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.634 1046-1145/? W/ResourceManagerService: Ignoring request to add new resource entry with value <= 0 2023-08-30 19:38:24.635 2491-2639/? D/CCodecBuffers: [c2.android.avc.encoder#787:2D-BB-Input] updating image-data 2023-08-30 19:38:24.635 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:602) VideoRecorder::createVideoCodec - plane 0 row stride: 800 2023-08-30 19:38:24.635 2491-2639/? D/CCodecBuffers: [c2.android.avc.encoder#787:2D-BB-Input] updating stride = 800, width: 800, height: 452 2023-08-30 19:38:24.635 2491-2639/? D/CCodecBuffers: [c2.android.avc.encoder#787:2D-BB-Input] updating vstride = 452 2023-08-30 19:38:24.635 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:603) VideoRecorder::createVideoCodec - plane 1 row stride: 400 2023-08-30 19:38:24.635 2491-2639/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.635 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:604) VideoRecorder::createVideoCodec - slice height: 452 2023-08-30 19:38:24.635 2491-2639/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.635 2491-2515/? I/AVProMovieCapture: 💬️ (VideoRecorder.cpp:605) VideoRecorder::createVideoCodec - pixel format: YUV8_420 2023-08-30 19:38:24.635 2491-2515/? I/AVProMovieCapture: 💬️ (PluginState.cpp:71) PluginState::RegisterRecorder - Registered handle 52880 2023-08-30 19:38:24.635 2491-2515/? I/AVProMovieCapture: 💬️ (PluginInterface.cpp:212) AVPMC_CreateRecorderVideo: newRecorderHandle = 52880 2023-08-30 19:38:24.645 2491-2639/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.645 2491-2639/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.647 2491-2639/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.647 2491-2639/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.650 1049-2640/? D/SimpleC2Component: Using output block pool with poolID 18 => got 18 - 0 2023-08-30 19:38:24.650 1049-2640/? D/C2SoftAvcEnc: Params width 800 height 452 level 31 colorFormat 0 bframes 0 2023-08-30 19:38:24.650 2491-2639/? W/gralloc_x86: gralloc_alloc: Requested YCbCr_420_888, taking experimental path. usage=33 2023-08-30 19:38:24.650 2491-2639/? D/gralloc_x86: gralloc_alloc: Creating ashmem region of size 544768 2023-08-30 19:38:24.651 1049-2640/? E/C2SoftAvcEnc: Unable to set air params = 0x1ad --------- beginning of crash 2023-08-30 19:38:24.657 2491-2638/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 2638 (NDK MediaCodec_), pid 2491 (jhgame.XXXX) 2023-08-30 19:38:24.676 2645-2645/? I/unknown: type=1400 audit(0.0:4644): avc: denied { execute_no_trans } for comm=4E444B204D65646961436F6465635F path="/apex/com.android.runtime/bin/crash_dump64" dev="sda6" ino=462 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1 app=com.jjhgame.XXXX 2023-08-30 19:38:24.732 2646-2646/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto 2023-08-30 19:38:24.734 980-980/? I/tombstoned: received crash request for pid 2638 2023-08-30 19:38:24.746 2646-2646/? I/crash_dump64: performing dump of process 2491 (target tid = 2638) 2023-08-30 19:38:24.788 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(90) 2023-08-30 19:38:24.901 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(18) 2023-08-30 19:38:25.013 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(2) 2023-08-30 19:38:25.630 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(378) 2023-08-30 19:38:25.979 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(137) 2023-08-30 19:38:26.136 2646-2646/? I/crash_dump64: type=1400 audit(0.0:4650): avc: denied { getattr } for path="/dev/vaddress" dev="tmpfs" ino=11799 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1 app=com.jjhgame.XXXX 2023-08-30 19:38:26.309 2646-2646/? I/crash_dump64: type=1400 audit(0.0:4651): avc: denied { read } for name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=9526 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=1 app=com.jjhgame.XXXX 2023-08-30 19:38:26.309 2646-2646/? I/crash_dump64: type=1400 audit(0.0:4652): avc: denied { open } for path="/dev/__properties__/u:object_r:odsign_prop:s0" dev="tmpfs" ino=9526 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=1 app=com.jjhgame.XXXX 2023-08-30 19:38:26.309 2646-2646/? I/crash_dump64: type=1400 audit(0.0:4653): avc: denied { getattr } for path="/dev/__properties__/u:object_r:odsign_prop:s0" dev="tmpfs" ino=9526 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=1 app=com.jjhgame.XXXX 2023-08-30 19:38:26.309 2646-2646/? I/crash_dump64: type=1400 audit(0.0:4654): avc: denied { map } for path="/dev/__properties__/u:object_r:odsign_prop:s0" dev="tmpfs" ino=9526 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=1 app=com.jjhgame.XXXX 2023-08-30 19:38:26.360 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(158) 2023-08-30 19:38:26.504 1035-1137/? D/AudioFlinger: mixer(0x7a182805ca60) throttle end: throttle time(6) 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus8Pro/OnePlus8Pro:12/V417IR/2308172228:user/release-keys' 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: Revision: '0' 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: ABI: 'x86_64' 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: Timestamp: 2023-08-30 19:38:24.753716241+0800 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: Process uptime: 0s 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: Cmdline: com.jjhgame.XXXX 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: pid: 2491, tid: 2638, name: NDK MediaCodec_ >>> com.jjhgame.XXXX <<< 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: uid: 10059 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: Cause: null pointer dereference 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: rax 0000000006bf8540 rbx 00007150f694fb40 rcx 00007150c69cb100 rdx 0000000000000000 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: r8 0000000000000020 r9 0000000000800001 r10 00000000ffffc000 r11 00007153108b90f8 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: r12 ffff8eacf4d02860 r13 0000000000000000 r14 00007150d695a140 r15 000071503128db08 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: rdi 00007150f694fb00 rsi 0000715186980320 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: rbp 000071503128dab0 rsp 000071503128da28 rip 0000000006bf8545 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: backtrace: 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: #00 pc 000000000007c545 /data/app/~~5BOhX8FRhDr-G3NuAt7_lQ==/com.jjhgame.XXXX-KaKvIsYK6odbAkat_iHsFg==/lib/arm64/libAVProMovieCaptureNative.so 2023-08-30 19:38:26.612 2646-2646/? A/DEBUG: #01 pc 0000000000014ce6 /system/lib64/libmediandk.so (CodecHandler::onMessageReceived(android::sp