StopStream crash application with EGL_BAD_SURFACE error

Completed

Comments

4 comments

  • DJI Developer Support
    I cannot find this EGL_BAD_SURFACE error in our MSDK source code. We do receive some crash report when stopStream. It should be a native crash,some crash logs should be SIGGNAL_ABORT and related with libdjivideo.so. Please paste your full crash log for me
    0
    Comment actions Permalink
  • Tomislav Robic

    Here is some errors from logcat. Here is also something about signal in this log : "A/libc: Fatal signal 11 (SIGSEGV)"

    2022-05-16 19:39:03.633 18596-18740/? E/Queue: alloc buf size 8541
    2022-05-16 19:39:03.684 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.690 18596-18735/? E/Queue: alloc buf size 11154
    2022-05-16 19:39:03.723 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.725 18596-18719/? E/Queue: alloc buf size 6652
    2022-05-16 19:39:03.733 18596-18934/? E/Lightbridge: video ppts: 36795
    2022-05-16 19:39:03.733 18596-18934/? E/Lightbridge: pkt size: 9912
    2022-05-16 19:39:03.735 18596-18934/? E/Lightbridge: video ppts: 36828
    2022-05-16 19:39:03.735 18596-18934/? E/Lightbridge: pkt size: 10875
    2022-05-16 19:39:03.736 18596-18934/? E/Lightbridge: video ppts: 36861
    2022-05-16 19:39:03.736 18596-18934/? E/Lightbridge: pkt size: 8526
    2022-05-16 19:39:03.737 18596-18934/? E/Lightbridge: video ppts: 36894
    2022-05-16 19:39:03.737 18596-18934/? E/Lightbridge: pkt size: 9775
    2022-05-16 19:39:03.738 18596-18934/? E/Lightbridge: video ppts: 36927
    2022-05-16 19:39:03.738 18596-18934/? E/Lightbridge: pkt size: 8575
    2022-05-16 19:39:03.738 18596-18934/? E/Lightbridge: video ppts: 36960
    2022-05-16 19:39:03.738 18596-18934/? E/Lightbridge: pkt size: 11524
    2022-05-16 19:39:03.746 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.761 18596-18722/? E/Queue: alloc buf size 7688
    2022-05-16 19:39:03.764 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.778 18596-18663/? E/Queue: alloc buf size 10548
    2022-05-16 19:39:03.815 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.819 18596-18709/? E/Queue: alloc buf size 7590
    2022-05-16 19:39:03.848 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.853 18596-18664/? E/Queue: alloc buf size 7649
    2022-05-16 19:39:03.865 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.868 18596-18633/? E/Queue: alloc buf size 9765
    2022-05-16 19:39:03.902 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.907 18596-18740/? E/Queue: alloc buf size 8267
    2022-05-16 19:39:03.934 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.938 18596-18735/? E/Queue: alloc buf size 6710
    2022-05-16 19:39:03.972 18596-18934/? E/Lightbridge: video ppts: 36993
    2022-05-16 19:39:03.972 18596-18934/? E/Lightbridge: pkt size: 7708
    2022-05-16 19:39:03.981 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:03.986 18596-18719/? E/Queue: alloc buf size 10250
    2022-05-16 19:39:04.029 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:04.030 18596-18722/? E/Queue: alloc buf size 7704
    2022-05-16 19:39:04.061 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:04.063 18596-18663/? E/Queue: alloc buf size 6544
    2022-05-16 19:39:04.078 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:04.079 424-424/? E/MFI-Conn:  (          mdfx_conn_conn,   76) mdfx_conn_conn(): the MFI connection fails!!
    2022-05-16 19:39:04.079 424-424/? E/MFI-Conn:  (   mdfx_conn_init_legacy,  363) mdfx_conn_init_legacy(): mdfx_conn_conn() error!!
    2022-05-16 19:39:04.080 18596-18709/? E/Queue: alloc buf size 10176
    2022-05-16 19:39:04.113 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:04.116 18596-18664/? E/Queue: alloc buf size 7558
    2022-05-16 19:39:04.129 18596-18934/? E/Lightbridge: video ppts: 37026
    2022-05-16 19:39:04.129 18596-18934/? E/Lightbridge: pkt size: 8505
    2022-05-16 19:39:04.139 18596-18934/? E/Lightbridge: video ppts: 37059
    2022-05-16 19:39:04.140 18596-18934/? E/Lightbridge: pkt size: 7777
    2022-05-16 19:39:04.143 18596-18934/? E/Lightbridge: video ppts: 37092
    2022-05-16 19:39:04.143 18596-18934/? E/Lightbridge: pkt size: 10009
    2022-05-16 19:39:04.145 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:04.149 18596-18633/? E/Queue: alloc buf size 6414
    2022-05-16 19:39:04.152 18596-18934/? E/Lightbridge: video ppts: 37125
    2022-05-16 19:39:04.152 18596-18934/? E/Lightbridge: pkt size: 7247
    2022-05-16 19:39:04.153 18596-18934/? E/Lightbridge: video ppts: 37158
    2022-05-16 19:39:04.153 18596-18934/? E/Lightbridge: pkt size: 8530
    2022-05-16 19:39:04.153 18596-18934/? E/Lightbridge: video ppts: 37191
    2022-05-16 19:39:04.154 18596-18934/? E/Lightbridge: pkt size: 10164
    2022-05-16 19:39:04.154 18596-18934/? E/Lightbridge: video ppts: 37224
    2022-05-16 19:39:04.154 18596-18934/? E/Lightbridge: pkt size: 6815
    2022-05-16 19:39:04.168 18596-18934/? E/Lightbridge: video ppts: 37257
    2022-05-16 19:39:04.168 18596-18934/? E/Lightbridge: pkt size: 7859
    2022-05-16 19:39:04.180 630-18898/? E/MtkOmxVenc: [0xf25d8800] not native mode
    2022-05-16 19:39:04.182 18596-18934/? E/Lightbridge: video ppts: 37290
    2022-05-16 19:39:04.182 18596-18934/? E/Lightbridge: pkt size: 8617
    2022-05-16 19:39:04.183 18596-18740/? E/Queue: alloc buf size 9404
    2022-05-16 19:39:03.711 418-418/? E/android.hardware.wifi@1.0-service: Invalid radio stats in link layer stats
    2022-05-16 19:39:04.242 18596-19045/? E/libEGL: eglDestroySurface:644 error 300d (EGL_BAD_SURFACE)
    2022-05-16 19:39:04.243 18596-19045/? E/Lightbridge: test before ffmpegShutdown
    2022-05-16 19:39:04.286 406-3200/? E/AudioALSAPlaybackHandlerBase: -getHardwareBufferInfo(), pcm_get_htimestamp fail, ret = -1, pcm_get_error = 
    2022-05-16 19:39:04.307 18596-19045/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x6941cc2706bcca in tid 19045 (RxNewThreadSche)
    2022-05-16 19:39:04.348 18596-18894/? E/libc: Access denied finding property "acodec.video.buflogging"
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG: Build fingerprint: 'Sony/G3121/G3121:8.0.0/48.1.A.2.112/1877064199:user/release-keys'
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG: Revision: '0'
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG: ABI: 'arm64'
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG: pid: 18596, tid: 19045, name: RxNewThreadSche  >>> tomislav.robic.dronebook <<<
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6941cc2706bcca
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x0   386941cc2706bcc2  x1   0000000000000000  x2   0000000000000000  x3   000000000000000a
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x4   00000000000001e6  x5   00000078bdb43a00  x6   00000000000000c0  x7   0000000000000003
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x8   b11c9671a5198994  x9   b11c9671a5198994  x10  00000000000001e6  x11  0000000000000000
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x12  000000789c5ab2f0  x13  ffffffffffffefff  x14  ff00000000000000  x15  2d212f2705142e01
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x16  00000078ad325638  x17  00000078ad4120e0  x18  0000000000000020  x19  000000788bfd7140
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x20  000000788bfe7140  x21  000000788bfe7cf0  x22  000000789fbfd59c  x23  00000078aec47434
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x24  0000000000000000  x25  000000789d421698  x26  0000000000000000  x27  0000000000000000
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     x28  000000789fbfd2f0  x29  000000789fbfd2f0  x30  00000078ad2a63ec
    2022-05-16 19:39:04.562 19049-19049/? A/DEBUG:     sp   000000789fbfd270  pc   00000078ad2a63f4  pstate 0000000060000000
    2022-05-16 19:39:04.567 19049-19049/? A/DEBUG: backtrace:
    2022-05-16 19:39:04.568 19049-19049/? A/DEBUG:     #00 pc 000000000001e3f4  /data/app/tomislav.robic.dronebook-8JLWhmfhf2-rZPd8DMz9IA==/base.apk (offset 0x6747000)
    2022-05-16 19:39:04.568 19049-19049/? A/DEBUG:     #01 pc 000000000001f5ec  /data/app/tomislav.robic.dronebook-8JLWhmfhf2-rZPd8DMz9IA==/base.apk (offset 0x6747000)
    2022-05-16 19:39:04.568 19049-19049/? A/DEBUG:     #02 pc 0000000000019b80  /data/app/tomislav.robic.dronebook-8JLWhmfhf2-rZPd8DMz9IA==/base.apk (offset 0x6747000)
    2022-05-16 19:39:04.568 19049-19049/? A/DEBUG:     #03 pc 000000000013b900  /system/lib64/libart.so (offset 0x3b7000)
    2022-05-16 19:39:05.190 643-750/? E/MtkAgpsNative: [TLS] conn(0), x509->error = 0x0, SEC_ERROR_NONE
    2022-05-16 19:39:06.081 424-424/? E/MFI-Conn:  (          mdfx_conn_conn,   76) mdfx_conn_conn(): the MFI connection fails!!
    2022-05-16 19:39:06.081 424-424/? E/MFI-Conn:  (   mdfx_conn_init_legacy,  363) mdfx_conn_init_legacy(): mdfx_conn_conn() error!!
    2022-05-16 19:39:06.719 418-418/? E/android.hardware.wifi@1.0-service: Invalid radio stats in link layer stats
    2022-05-16 19:39:07.964 722-722/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones//tombstone_03
    2022-05-16 19:39:07.993 432-432/? E/lowmemorykiller: Error writing /proc/18596/oom_score_adj; errno=22
    2022-05-16 19:39:07.995 948-965/? E/Process: Error getting pid for '0'
    2022-05-16 19:39:08.105 424-424/? E/MFI-Conn:  (          mdfx_conn_conn,   76) mdfx_conn_conn(): the MFI connection fails!!
    2022-05-16 19:39:08.105 424-424/? E/MFI-Conn:  (   mdfx_conn_init_legacy,  363) mdfx_conn_init_legacy(): mdfx_conn_conn() error!!
    2022-05-16 19:39:08.135 630-1651/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
    2022-05-16 19:39:08.181 948-1177/? E/InputDispatcher: channel '9311b84 tomislav.robic.dronebook/tomislav.robic.dronebook.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

    0
    Comment actions Permalink
  • DJI Developer Support
    It is broken inside /system/lib64/libart.so which means this is a system library of your Android system. Would you try our Sample on your Android device and at http://114.55.103.238:8080/players/rtc_player.html this link. This will test at the same environment as us. We cannot reproduce your issue.
    0
    Comment actions Permalink
  • Tomislav Robic

    Maybe you could reproduce it if you launch my code :  https://easyupload.io/3tr13z  .

    0
    Comment actions Permalink

Please sign in to leave a comment.