Meidapipe hands livestreaming: FATAL EXCEPTION: ExternalTextureConverter - android

enter image description here
This is an peoject imported from Mediapipe's git :project:https://github.com/google/mediapipe/tree/master/mediapipe/examples/android/solutions
There're three modes:static image, video, live-camera. Only static image mode can run successfully, video mode and live mode will crash and have erros like this:
`*E/BufferQueueProducer: [SurfaceTexture-1-4220-0](id:107c00000000,api:4,p:431,c:4220) dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer: [SurfaceTexture-1-4220-0](id:107c00000000,api:4,p:431,c:4220) queueBuffer: BufferQueue has been abandoned
D/GlThread: Stopping GL thread ExternalTextureConverter
E/AndroidRuntime: FATAL EXCEPTION: ExternalTextureConverter
Process: com.google.mediapipe.apps.hands, PID: 4220
java.lang.RuntimeException: Framebuffer not complete, status=36054
at com.google.mediapipe.glutil.GlThread.bindFramebuffer(GlThread.java:114)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.createFrame(ExternalTextureConverter.java:477)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.nextOutputFrame(ExternalTextureConverter.java:506)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.renderNext(ExternalTextureConverter.java:434)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.lambda$onFrameAvailable$0$com-google-mediapipe-components-ExternalTextureConverter$RenderThread(ExternalTextureConverter.java:386)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread$$ExternalSyntheticLambda0.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at com.google.mediapipe.glutil.GlThread.run(GlThread.java:141)
E/BufferQueueProducer: [SurfaceTexture-1-4220-0](id:107c00000000,api:4,p:431,c:4220) queueBuffer: BufferQueue has been abandoned*`
Is there anybody who has met this erro?And how to solve it.

Related

Adreno: DequeueBuffer: dequeueBuffer failed BufferQueueProducer: [SurfaceView -] query: BufferQueue has been abandoned. App by Android&Unity black

after open and forceStopPackage an android app(which use openGL-es and NativeActivity 'void android_main(struct android_app* app)') in the other main Unity App many times, got this error, and the whole screeen is black...
4321-22222/? I/Adreno: DequeueBuffer: dequeueBuffer failed
123-1111/? E/BufferQueueProducer: [SurfaceView - com.xxx/com.xxx.UnityAppActivity#1] query: BufferQueue has been abandoned
123-1111/? E/BufferQueueProducer: [SurfaceView - com.xxx/com.xxx.UnityAppActivity#1] dequeueBuffer: BufferQueue has been abandoned

Qt Custom Android launcher black screen on HOME key

I'm debugging an issue with android > 7 (didn't manage to get the issue on android 6), where an application built as a launcher would result in a black screen on home key press.
I created a simple QtQuick application, with just an ApplicationWindow and a Rectangle, nothing special, just to have something visual.
In AndroidManifest.xml (generated by Qt), I added :
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
and set android:launchMode to "singleInstance" (also tried singleTask).
Tried building the app with: Qt 5.12.5/15.13.2/5.15.1, NDK 19/21 and in 99% of the builds I just get a black screen when pressing home key.
There are some rare cases where the home key works and it will open the launcher as it should (after manually launching another activity) , when that happens it keeps working till I reinstall it again.
I can't find any solution to this issue, or what could be the possible reason that in rare cases it works. Only thing I could conclude so far is that there must be a difference in execution order when the application is launched.
This are the adb logs when I launch Youtube then press home key:
09-10 14:29:05.229 4531 4600 I chromium: [4531:4600:INFO:mdns_app_filter.cc(1531)] MdnsAppFilter: Done announcing.
09-10 14:29:07.087 3184 3298 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
09-10 14:29:07.839 13637 13637 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:29:07.859 13637 13637 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:29:07.860 13637 13637 I AVUtils : Opened libavenhancements.so
09-10 14:29:07.860 13637 13637 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:29:07.860 13637 13637 I AVUtils : CREATE function success
09-10 14:29:07.860 13637 13637 I AVUtils : Opened libavenhancements.so
09-10 14:29:07.860 13637 13637 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:29:07.860 13637 13637 I AVUtils : CREATE function success
09-10 14:29:07.865 13637 13637 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:29:07.865 13637 13637 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:29:07.865 13637 13637 I AVUtils : CREATE function success
09-10 14:29:07.868 13637 13637 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-10 14:29:08.255 13637 13637 W app_process: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
09-10 14:29:08.268 13637 13637 I app_process: The ClassLoaderContext is a special shared library.
09-10 14:29:08.376 13637 13637 D AndroidRuntime: Calling main entry com.android.commands.input.Input
09-10 14:29:08.377 13637 13637 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=9786662, downTime=9786662, deviceId=-1, source=0x101 }
09-10 14:29:08.382 13637 13637 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=9786662, downTime=9786662, deviceId=-1, source=0x101 }
09-10 14:29:08.387 3184 3261 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity (has extras)} from uid 1000
09-10 14:29:08.407 3328 3328 I vol.Events: writeEvent dismiss_dialog volume_controller
09-10 14:29:08.413 13567 13567 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#ce7a413
09-10 14:29:08.420 13637 13637 D AndroidRuntime: Shutting down VM
09-10 14:29:08.446 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.494 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.494 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.641 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.642 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.646 13567 13567 E Qt JAVA : Surface 1 not found!
09-10 14:29:08.652 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.655 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.663 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:29:08.663 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:29:08.673 3318 3318 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3160
09-10 14:29:08.679 3318 3318 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1829
09-10 14:29:08.727 3184 3290 W HdmiCecController: Failed to send <Text View On> src: 4, dst: 0 with errorCode=1
09-10 14:29:08.743 3184 3207 I ActivityManager: Displayed org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity: +310ms (total +5s740ms)
09-10 14:29:08.903 3004 4033 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen org.qtproject.testlauncher#0
09-10 14:29:08.903 3004 4033 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen org.qtproject.testlauncher#0
09-10 14:29:08.925 7169 7169 I starboard: Prepare to suspend
09-10 14:29:08.926 7169 7169 I starboard_media: Media focus: none
09-10 14:29:08.927 4531 4531 D WargCastTvAppManager: com.google.android.youtube.tv's active state now is : false
09-10 14:29:08.927 4531 4531 D WargCastTvAppManager: Cast TV app is inactive now: com.google.android.youtube.tv
09-10 14:29:08.927 4531 4531 D WargCastTvAppManager: Cast TV app is disconnected now: com.google.android.youtube.tv
09-10 14:29:08.938 4531 4531 D WargServiceStub: TV app is closed: com.google.android.libraries.cast.tv.warg.service.internal.CastTvApp#bfa4d3f
09-10 14:29:08.939 4531 4531 I chromium: [4531:4531:INFO:application_manager_impl.cc(1532)] App stopping: AndroidNativeApp (YouTube), session_id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.939 4531 4531 I chromium: [4531:4531:INFO:application_manager_impl.cc(1536)] App stopped: AndroidNativeApp (YouTube), session_id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.940 4531 4531 I chromium: [4531:4531:INFO:resource_manager_impl.cc(244)] All resources released for app AndroidNativeApp (YouTube), session_id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.940 4531 4531 E chromium: [4531:4531:ERROR:hash_util.cc(101)] Unknown app_id AndroidNativeApp
09-10 14:29:08.940 4531 4531 E chromium: [4531:4531:ERROR:cast_metrics_helper.cc(129)] No start time for app: app_id=E8C28D3C
09-10 14:29:08.940 4531 4531 I chromium: [4531:4531:INFO:application_manager_impl.cc(1791)] Focusing foreground application: session=312d0999-4abe-4b47-b2d4-6a0a87f460f7
09-10 14:29:08.941 4531 4531 I chromium: [4531:4531:INFO:api_reboot.cc(286)] active_activities count=0
09-10 14:29:08.941 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=local-client.457): CastV2.Connection.Connect.In
09-10 14:29:08.941 4531 4531 E chromium: [4531:4531:ERROR:media_classifier_manager.cc(89)] No mixer control available
09-10 14:29:08.942 4531 4531 W chromium: [4531:4531:WARNING:media_control_handler.cc(49)] Unknown player state:
09-10 14:29:08.943 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=local-client.458): CastV2.Connection.Connect.In
09-10 14:29:08.943 4531 4531 D cr_CastToNative: [NativeApplication.java:224] onDestroyed
09-10 14:29:08.944 4531 4600 I chromium: [4531:4600:INFO:mdns_cast_service.cc(780)] Device discovery state is idle
09-10 14:29:08.947 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.456): CastV2.Connection.Close.Out
09-10 14:29:08.948 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.70): CastV2.Connection.Close.Out
09-10 14:29:08.948 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.70): CastV2.Connection.Close.Out
09-10 14:29:08.949 4531 4601 E chromium: [4531:4601:ERROR:v2_transport.cc(1018)] Invalid connection: e0898d4e-696d-4ffb-aed7-910ddceb8a24:local-client.455:mediacontrol-0
09-10 14:29:08.949 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=local-client.455): CastV2.Connection.Close.Out
09-10 14:29:08.949 4531 4601 I chromium: [4531:4601:INFO:v2_transport.cc(472)] Removed Cast V2 endpoint: id=e0898d4e-696d-4ffb-aed7-910ddceb8a24
09-10 14:29:08.950 4531 4601 I chromium: [4531:4601:INFO:v2_transport.cc(1212)] Heartbeat for V2TransportImpl stopping
09-10 14:29:09.067 4531 4601 E chromium: [4531:4601:ERROR:connection_namespace_handler.cc(214)] Connection not found: e0898d4e-696d-4ffb-aed7-910ddceb8a24:ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.456:com.google.android.gms-308
09-10 14:29:09.070 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.456): CastV2.Connection.Close.In.NotFound
09-10 14:29:09.108 4531 4601 I chromium: [4531:4601:INFO:v2_ssl_socket.cc(356)] Stop reading on pending closed socket
09-10 14:29:09.180 7169 7169 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
09-10 14:29:09.208 3184 3290 W HdmiCecController: Failed to send <Give Device Power Status> src: 4, dst: 0 with errorCode=1
09-10 14:29:09.194 7169 7169 I chatty : uid=10041(com.google.android.youtube.tv) identical 4 lines
09-10 14:29:09.197 7169 7169 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
09-10 14:29:09.307 7309 7317 W System : A resource failed to call close.
09-10 14:29:09.354 3184 3193 I system_server: Background concurrent copying GC freed 30729(1568KB) AllocSpace objects, 9(372KB) LOS objects, 19% free, 8MB/10MB, paused 326us total 204.430ms
09-10 14:29:09.398 7169 7240 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
I believe this is the main issue E Qt JAVA : Surface 1 not found! as it's not outputted in case when the home key works.
Then there is this case when I just press home key while having only launcher open:
09-10 14:35:43.408 14291 14291 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:35:43.418 14291 14291 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:35:43.418 14291 14291 I AVUtils : Opened libavenhancements.so
09-10 14:35:43.419 14291 14291 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:35:43.419 14291 14291 I AVUtils : CREATE function success
09-10 14:35:43.419 14291 14291 I AVUtils : Opened libavenhancements.so
09-10 14:35:43.419 14291 14291 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:35:43.419 14291 14291 I AVUtils : CREATE function success
09-10 14:35:43.419 14291 14291 I AVUtils : createInstance(32bit) : _ZN7android19createExtendedUtilsEv
09-10 14:35:43.419 14291 14291 I AVUtils : symbol _ZN7android19createExtendedUtilsEv found: (null)
09-10 14:35:43.419 14291 14291 I AVUtils : CREATE function success
09-10 14:35:43.419 14291 14291 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-10 14:35:43.484 4531 4600 I chromium: [4531:4600:INFO:mdns_app_filter.cc(2604)] MdnsAppFilter: responses sent in 40 seconds: 8
09-10 14:35:43.645 14291 14291 W app_process: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
09-10 14:35:43.650 14291 14291 I app_process: The ClassLoaderContext is a special shared library.
09-10 14:35:43.718 14291 14291 D AndroidRuntime: Calling main entry com.android.commands.input.Input
09-10 14:35:43.719 14291 14291 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=10182003, downTime=10182003, deviceId=-1, source=0x101 }
09-10 14:35:43.723 14291 14291 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=10182003, downTime=10182003, deviceId=-1, source=0x101 }
09-10 14:35:43.727 3328 3328 I vol.Events: writeEvent dismiss_dialog volume_controller
09-10 14:35:43.728 3184 3261 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity (has extras)} from uid 1000
09-10 14:35:43.729 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.482): CastV2.Connection.Connect.In
09-10 14:35:43.747 14291 14291 D AndroidRuntime: Shutting down VM
09-10 14:35:43.751 4531 4601 E chromium: [4531:4601:ERROR:v2_transport.cc(853)] Not supported namespace: namespace=urn:x-cast:com.google.cast.multizone, conn=receiver-ad21cedb-cca5-1e11-0a29-1be0dd74fbc7:ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.482:com.google.android.gms-334
09-10 14:35:43.777 14155 14155 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#1336c23
09-10 14:35:43.781 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:35:43.781 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:35:43.804 4531 4601 I chromium: [4531:4601:INFO:v2_ssl_socket.cc(356)] Stop reading on pending closed socket
09-10 14:35:43.821 2987 3068 I [Gralloc]: framebuffer hal alread move to hwcomposer
09-10 14:35:43.821 2987 3068 E gralloc : ioctl c0144900 failed with code -1: Operation not permitted
09-10 14:35:43.912 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.912 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.913 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.913 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.914 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.915 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.915 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.918 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.919 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.920 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.920 14155 14195 W libtestlauncher.so: QEGLPlatformContext: eglSwapBuffers failed: 300d
09-10 14:35:43.921 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.921 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.921 3004 3053 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.922 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.924 3004 3259 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.924 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.924 3004 3056 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.925 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.925 3004 3259 E BufferQueueProducer: [SurfaceView - org.qtproject.testlauncher/org.qtproject.qt5.android.bindings.QtActivity#0] dequeueBuffer: BufferQueue has been abandoned
09-10 14:35:43.926 14155 14195 E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
09-10 14:35:43.926 14155 14195 W libtestlauncher.so: QEGLPlatformContext: eglSwapBuffers failed: 300d
09-10 14:35:44.069 3184 3290 W HdmiCecController: Failed to send <Text View On> src: 4, dst: 0 with errorCode=1
09-10 14:35:44.548 3184 3290 W HdmiCecController: Failed to send <Give Device Power Status> src: 4, dst: 0 with errorCode=1
09-10 14:35:46.135 4531 4601 I chromium: [4531:4601:INFO:metrics_recorder.cc(261)] Cast v2 action(socket_id=ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.483): CastV2.Connection.Connect.In
09-10 14:35:46.154 4531 4601 E chromium: [4531:4601:ERROR:v2_transport.cc(853)] Not supported namespace: namespace=urn:x-cast:com.google.cast.multizone, conn=receiver-ad21cedb-cca5-1e11-0a29-1be0dd74fbc7:ad21cedb-cca5-1e11-0a29-1be0dd74fbc7.483:com.google.android.gms-335
09-10 14:35:46.172 4531 4601 I chromium: [4531:4601:INFO:v2_ssl_socket.cc(356)] Stop reading on pending closed socket
Different behaviour, but I guess the main issue here is E [EGL-ERROR]: __egl_platform_dequeue_buffer:1817: failed to dequeue buffer from native window 0xd21a0808; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
Is there any way to fix this, as it seems like an Android/Qt issue? I'm all out of ideas what to try any more.

Camera 2 api showing BufferQueue has been abandoned

I am using camera 2 api in my application by following the google sample link
For the first time it is working properly. If you go back and come again many times, then the app is getting crashed saying -
[CAM_ID(0)][PREVIEW_BUF]-ERR(m_bufferCollectorThreadFunc[3196]):dequeueBuffer
failed, dequeue(5), collected(5) 2019-09-20 17:33:12.208 3250-4904/?
E/BufferQueueProducer: [SurfaceView -
com.example/com.example.FaceTrackerActivityPayment#7edb372#0#0]
dequeueBuffer: BufferQueue has been abandoned 2019-09-20 17:33:12.208
3405-15497/? E/ExynosCameraMemoryAllocator: ERR(alloc):dequeue_buffer
failed 2019-09-20 17:33:12.208 3250-4904/? E/BufferQueueProducer:
[SurfaceView -
com.example/com.example.FaceTrackerActivityPayment#7edb372#0#0]
dequeueBuffer: BufferQueue has been abandoned 2019-09-20 17:33:12.208
3405-15497/? E/ExynosCameraMemoryAllocator: ERR(alloc):dequeue_buffer
failed 2019-09-20 17:33:12.208 3250-4904/? E/BufferQueueProducer:
[SurfaceView -
com.example/com.example.FaceTrackerActivityPayment#7edb372#0#0]
dequeueBuffer: BufferQueue has been abandoned 2019-09-20 17:33:12.208
3405-15497/? E/ExynosCameraMemoryAllocator: ERR(alloc):dequeue_buffer
failed 2019-09-20 17:33:12.208 3250-4904/? E/BufferQueueProducer:
[SurfaceView -
com.example/com.example.FaceTrackerActivityPayment#7edb372#0#0]
dequeueBuffer: BufferQueue has been abandoned 2019-09-20 17:33:12.208
3405-15497/? E/ExynosCameraMemoryAllocator: ERR(alloc):dequeue_buffer
failed 2019-09-20 17:33:12.209 3250-4904/? E/BufferQueueProducer:
[SurfaceView -
com.example/com.example.FaceTrackerActivityPayment#7edb372#0#0]
dequeueBuffer: BufferQueue has been abandoned 2019-09-20 17:33:12.209
3405-15497/? E/ExynosCameraMemoryAllocator: ERR(alloc):dequeue_buffer
failed 2019-09-20 17:33:12.209 3405-15497/?
E/ExynosCameraMemoryAllocator: ####ERR(alloc):*bufHandle == NULL
failed 2019-09-20 17:33:12.209 3405-15497/?
E/ExynosCameraMemoryAllocator: ERR(dequeueBuffer):alloc failed

Android app crashes instantly after adding RealmReactPackage

I followed the instructions from the realm page and did these steps:
npm install realm
react-native link realm --> For iOS everything works out without any further steps at this point.
Opened android studio and updated changes in settings.gradle, app/build.gradle and imported the RealmReactPackage in MainApplication.java
If I build and start the app, everything is working out fine. Then I add new RealmReactPackage() to the list to the other ReactPackages.
If I start the app now, the app crashes immediately. The logcat doesn't say any reason for the crash, but I add the output anyways below.
Things I tried already:
Clear caches
Restart packager
Deinstall app from emulator
Clear node-modules and run npm install again and repeat the steps from above
My setup:
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-navigation": "v2.0.1937"
Node version 9.5.0
Android Studio version: 3.1.3
What I didn't do so far:
There is one instruction at the realm site under Examples:
Note that on Android, you need the NDK installed and must have set the ANDROID_NDK environment variable.
export ANDROID_NDK=/usr/local/Cellar/android-ndk/r10e
My Question is, is this relevant for my config or just for the examples?
LogCat Output:
07-03 17:51:04.909 1664 1676 I ActivityManager: START u0 {flg=0x10100000 cmp=com.cowoperation/.MainActivity} from uid 2000
07-03 17:51:04.938 1664 2392 I ActivityManager: Start proc 32299:com.cowoperation/u0a91 for activity com.cowoperation/.MainActivity
07-03 17:51:05.319 32299 32325 V FA : App package, google app id: com.cowoperation, 1:314188610363:android:2d8c823aa5045bd7
07-03 17:51:05.320 32299 32299 V fb-UnpackingSoSource: locked dso store /data/user/0/com.cowoperation/lib-main
07-03 17:51:05.320 32299 32325 I FA : adb shell setprop debug.firebase.analytics.app com.cowoperation
07-03 17:51:05.320 32299 32299 I fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.cowoperation/lib-main
07-03 17:51:05.321 32299 32299 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.cowoperation/lib-main
07-03 17:51:05.654 32299 32345 I zygote : Thread[30,tid=32345,Native,Thread*=0x88b19a00,peer=0x13214b48,"Thread-8"] recursive attempt to load library "/data/app/com.cowoperation-gxY-ptC8QV3xKg796vAtEA==/lib/x86/libfb.so"
07-03 17:51:05.808 1664 1690 I ActivityManager: Displayed com.cowoperation/.MainActivity: +878ms
07-03 17:51:05.880 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913}]}
07-03 17:51:05.979 32299 32345 E AndroidRuntime: Process: com.cowoperation, PID: 32299
07-03 17:51:05.979 32299 32345 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN5realm8jni_util9hack_initEv" referenced by "/data/app/com.cowoperation-gxY-ptC8QV3xKg796vAtEA==/lib/x86/librealmreact.so"...
07-03 17:51:05.980 32299 32345 E UncaughtException: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN5realm8jni_util9hack_initEv" referenced by "/data/app/com.cowoperation-gxY-ptC8QV3xKg796vAtEA==/lib/x86/librealmreact.so"...
07-03 17:51:06.074 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='app_exception(_ae)', params=Bundle[{firebase_event_origin(_o)=crash, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913, timestamp=1530633065983, fatal=1}]}
07-03 17:51:06.153 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=596, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913}]}
07-03 17:51:06.359 1664 2392 W ActivityManager: Force finishing activity com.cowoperation/.MainActivity
07-03 17:51:06.373 1664 1684 I ActivityManager: Showing crash dialog for package com.cowoperation u0
07-03 17:51:06.569 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=266, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913}]}

Media Codec : Insufficient sized buffer

When i play video with resolution 704x576 (using MediaCodec) . I'm seeing this error and app is crashing
Logs:
12-04 04:35:55.507 E/OMX-VDEC-1080P( 9621): Insufficient sized buffer given for playback, expected 2514944, got 2506752
12-04 04:35:55.507 E/OMXNodeInstance( 9621): OMX_UseBuffer failed with error -2147479547 (0x80001005)
12-04 04:35:55.507 E/ACodec (22699): registering GraphicBuffer 0 with OMX IL component failed: -2147483648
12-04 04:35:55.507 E/ACodec (22699): Failed to allocate output port buffers after port reconfiguration (error 0x80000000)
12-04 04:35:55.507 E/MediaCodec(22699): Codec reported an error. (omx error 0x80001001, internalError -2147483648)

Categories

Resources