Friday, 30 April 2021

Android MediaCodec encoder crashing as soon as it starts on certain devices

I have some MediaCodec code that continuously records what is rendered on the screen. The code works all fine on Pixel and a lot of other devices. It's some Chinese OEMs and some Motorola phones where the code doesn't work and following is the crash that I get. Can I get some help in decrypting what the following log means.

2021-04-25 15:53:47.358 1144-4233/? E/ANDR-PERF-MPCTL: poll() has timed out for /sys/module/msm_performance/events/cpu_hotplug
2021-04-25 15:53:47.358 1144-4233/? E/ANDR-PERF-MPCTL: Block on poll()
2021-04-25 15:53:48.190 1421-31056/? E/OMX-VDEC-1080P: Enable/Disable allocate-native-handle allowed only on input port!
2021-04-25 15:53:48.190 1421-31056/? E/OMX-VDEC-1080P: set_parameter: Error: 0x80001019, setting param 0x7f00005d
2021-04-25 15:53:48.190 1421-31056/? E/OMXNodeInstance: setParameter(0xe7624104:qcom.decoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:48.198 1144-1207/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
2021-04-25 15:53:48.214 1421-18165/? E/OMXNodeInstance: getConfig(0xe7624104:qcom.decoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:48.276 1421-31056/? E/OMXNodeInstance: setConfig(0xe995b0c0:google.aac.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
2021-04-25 15:53:48.276 1421-31056/? E/OMXNodeInstance: getConfig(0xe995b0c0:google.aac.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
2021-04-25 15:53:48.281 1421-31056/? E/OMXNodeInstance: getConfig(0xe7624104:qcom.decoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:48.339 1421-1684/? E/OMXNodeInstance: getConfig(0xe7624104:qcom.decoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:50.362 1144-4233/? E/ANDR-PERF-MPCTL: poll() has timed out for /sys/module/msm_performance/events/cpu_hotplug
2021-04-25 15:53:50.362 1144-4233/? E/ANDR-PERF-MPCTL: Block on poll()
2021-04-25 15:53:51.165 2281-3729/? E/WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
2021-04-25 15:53:51.179 2281-3729/? E/WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
2021-04-25 15:53:51.242 1063-27049/? E/ResolverController: No valid NAT64 prefix (139, <unspecified>/0)
2021-04-25 15:53:52.186 2281-8278/? E/InputDispatcher: Window handle Window{7df82d9 u0 Sys2003:com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity} has no registered input channel
2021-04-25 15:53:52.255 2281-5646/? E/WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
2021-04-25 15:53:52.265 2281-5646/? E/WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
2021-04-25 15:53:52.379 1421-1684/? E/OMXNodeInstance: setParameter(0xeb2ecfc4:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Input:0 en=0) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:52.379 1421-1684/? E/OMXNodeInstance: setParameter(0xeb2ecfc4:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:52.398 1421-18165/? E/OMXNodeInstance: getConfig(0xeb2ecfc4:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
2021-04-25 15:53:52.411 1421-18165/? E/OMXNodeInstance: getConfig(0xeb2ecfc4:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
2021-04-25 15:53:52.414 1421-18165/? E/OMXNodeInstance: getParameter(0xeb2ecfc4:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
2021-04-25 15:53:52.418 1421-18165/? E/OMXNodeInstance: getParameter(0xeb2ecfc4:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
2021-04-25 15:53:52.503 2281-2319/? E/SurfaceFlinger: captureScreen failed to readInt32: -22
2021-04-25 15:53:52.613 26712-26712/com.ggtv.dev E/ThemeUtils: View class it.sephiroth.android.library.xtooltip.TooltipOverlay is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
2021-04-25 15:53:52.664 26712-26712/com.ggtv.dev E/ThemeUtils: View class androidx.appcompat.widget.AppCompatTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
2021-04-25 15:53:52.704 2281-5646/? E/WindowManager: Unknown window type: 1000
2021-04-25 15:53:52.706 2281-5646/? E/WindowManager: Unknown window type: 1000
2021-04-25 15:53:52.708 2281-5646/? E/WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
2021-04-25 15:53:52.755 1183-2271/? E/BufferQueueLayer: dimensions too large 9914 x 20000
2021-04-25 15:53:52.755 1183-2271/? E/SurfaceFlinger: createBufferQueueLayer() failed (Invalid argument)
2021-04-25 15:53:52.755 2281-5646/? E/SurfaceComposerClient: SurfaceComposerClient::createSurface error Invalid argument
2021-04-25 15:53:52.790 1183-2271/? E/BufferQueueLayer: dimensions too large 9914 x 20000
2021-04-25 15:53:52.790 1183-2271/? E/SurfaceFlinger: createBufferQueueLayer() failed (Invalid argument)
2021-04-25 15:53:52.790 2281-8278/? E/SurfaceComposerClient: SurfaceComposerClient::createSurface error Invalid argument
2021-04-25 15:53:52.860 2281-2683/? E/InputDispatcher: channel 'c994aed ToolTip:e7161e2 (server)' ~ Channel is unrecoverably broken and will be disposed!
2021-04-25 15:53:52.860 2281-2683/? E/InputDispatcher: channel '7845e0 com.ggtv.dev (server)' ~ Channel is unrecoverably broken and will be disposed!
2021-04-25 15:53:52.860 2281-2683/? E/InputDispatcher: channel '9eab79d com.ggtv.dev (server)' ~ Channel is unrecoverably broken and will be disposed!
2021-04-25 15:53:52.860 1421-1684/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
2021-04-25 15:53:52.860 1421-31056/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
2021-04-25 15:53:52.861 1421-18165/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
2021-04-25 15:53:52.879 2281-2683/? E/InputDispatcher: channel 'a54ba3a com.ggtv.dev/tv.heyo.app.ui.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!


from Android MediaCodec encoder crashing as soon as it starts on certain devices

No comments:

Post a Comment