gloverlaycompositor: Crash on Android when overlaying subtitles
Hi,
I have been working on the android gstplayer example. However, I keep getting crashes when the video should display subtitles and when I set the following commands:
gst_player_set_subtitle_track_enabled(player->player,TRUE);
gst_player_set_subtitle_track(player->player,0);
I don't get any crashes when I set:
gst_player_set_subtitle_track_enabled(player->player,FALSE);
Please, could you tell me what I am doing wrong with this feature? Note that I successfully make gst_player_set_audio_track work with your app example.
You can easily reproduce this issue if you pull following repo and using the lastest gstreamer android lib 1.14.4 Github repo: https://github.com/GStreamer/gst-examples/tree/master/playback/player/android
Thanks to @slomo, I could get a way to debug this issue using the addr2line command on /lib/arm/libgstreamer_android.so addr2line -a 00f3eb7c -e /lib/arm/libgstreamer_android.so
output: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gst-plugins-base-1.0-1.14.4/gst-libs/gst/gl/gstgloverlaycompositor.c:262
Here is the 10 first addr2line:
#00 pc addr2line 00f3eb7c: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gst-plugins-base-1.0-1.14.4/gst-libs/gst/gl/gstgloverlaycompositor.c:262
#1 (closed) pc addr2line 00f3f037: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gst-plugins-base-1.0-1.14.4/gst-libs/gst/gl/gstgloverlaycompositor.c:587
#2 (moved) pc addr2line 00c2ebe3: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gst-plugins-base-1.0-1.14.4/ext/gl/gstglimagesink.c:1615
#3 (closed) pc addr2line 00c2f295: /Us/home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gst-plugins-base-1.0-1.14.4/ext/gl/gstglimagesink.c:1716
#4 (closed) pc addr2line 016ee00f: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gstreamer-1.0-1.14.4/libs/gst/base/gstbasesink.c:3498
#5 (closed) pc addr2line 016ee491: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gstreamer-1.0-1.14.4/libs/gst/base/gstbasesink.c:3672
#6 pc addr2line 01735e69: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gstreamer-1.0-1.14.4/libs/gst/base/gstbasesink.c:3672
#7 pc addr2line 017373f1: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gstreamer-1.0-1.14.4/gst/gstpad.c:4578
#8 pc addr2line 0173c76d: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gstreamer-1.0-1.14.4/gst/gstpad.c:4697
#9 pc addr2line 016f579f: /home/nirbheek/projects/repositories/gst/cerbero.git/build/sources/android_universal/armv7/gstreamer-1.0-1.14.4/libs/gst/base/gstbasetransform.c:2321
Here is the orinal crash log when it occurs:
com.mediaplayer.smart A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x18 in tid 20417 (Thread-8)
? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
? A/DEBUG: Build fingerprint: 'Xiaomi/lithium/lithium:8.0.0/OPR1.170623.032/V10.0.1.0.OAHMIFH:user/release-keys'
? A/DEBUG: Revision: '0'
? A/DEBUG: ABI: 'arm'
? A/DEBUG: pid: 20374, tid: 20417, name: Thread-8 >>> com.mediaplayer.smart <<<
? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18
? A/DEBUG: Cause: null pointer dereference
? A/DEBUG: r0 cd5918d0 r1 fffffdb1 r2 00000000 r3 3f800000
? A/DEBUG: r4 c92d09f8 r5 c99165c0 r6 013d9668 r7 c6fbc610
? A/DEBUG: r8 00000000 r9 c6fbc59c sl c6fbc594 fp c6fbc598
? A/DEBUG: ip d310cbec sp c6fbc560 lr d2456395 pc d1d18b7c cpsr 68070030
? A/DEBUG: backtrace:
? A/DEBUG: #00 pc 00f3eb7c /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #01 pc 00f3f037 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_gl_overlay_compositor_upload_overlays+258)
? A/DEBUG: #02 pc 00c2ebe3 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #03 pc 00c2f295 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #04 pc 016ee00f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #05 pc 016ee491 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #06 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #07 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #08 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #09 pc 016f579f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #10 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #11 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #12 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #13 pc 016f579f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #14 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #15 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #16 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #17 pc 016f579f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #18 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #19 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #20 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #21 pc 0172a14b /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_proxy_pad_chain_default+82)
? A/DEBUG: #22 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #23 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #24 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #25 pc 0172a14b /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_proxy_pad_chain_default+82)
? A/DEBUG: #26 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #27 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #28 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #29 pc 016f579f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #30 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #31 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #32 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #33 pc 016f579f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #34 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #35 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #36 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #37 pc 0172a14b /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_proxy_pad_chain_default+82)
? A/DEBUG: #38 pc 01735e69 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #39 pc 017373f1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #40 pc 0173c76d /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so (gst_pad_push+252)
? A/DEBUG: #41 pc 015e2beb /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #42 pc 0175cd95 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #43 pc 017c7b5f /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #44 pc 017c75e1 /data/app/com.mediaplayer.smart-C_3eg9OcxojYe-VeOruUYw==/lib/arm/libgstreamer_android.so
? A/DEBUG: #45 pc 0004842f /system/lib/libc.so (_ZL15__pthread_startPv+22)
? A/DEBUG: #46 pc 0001b56d /system/lib/libc.so (__start_thread+32)
? E/crash_dump32: cannot open libmiuindbg.so: No such file or directory
? E//system/bin/tombstoned: Tombstone written to: /data/tombstones//tombstone_06
? E/octvm_klo: read: Unexpected EOF!
? E/AudioFlinger: open /proc/20374/cmdline error
? E/SurfaceFlinger: Failed to find layer (SurfaceView - com.mediaplayer.smart/com.corproxy.mediaplayer.play.Play#0) in layer parent (no-parent).
? E/SurfaceFlinger: Failed to find layer (Background for - SurfaceView - com.mediaplayer.smart/com.corproxy.mediaplayer.play.Play#0) in layer parent (no-parent).
? E/ActivityTrigger: activityResumeTrigger: not whiteListedorg.mozilla.firefox/org.mozilla.gecko.BrowserApp/2015580529
? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
? E/GeckoSearchEngineManager: Error missing list.json
? E/GeckoSearchEngineManager: Could not find search plugin files in profile directory
? E/GeckoSearchEngineManager: Could not create search engine from name: null
? E/ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/scsi_host/host0/../../../clkscale_enable with 1
return value 2
? E/NetworkScheduler: Invalid component specified.
? E/PropertyValuesHolder: java.lang.reflect.InvocationTargetException
? E/PropertyValuesHolder: java.lang.reflect.InvocationTargetException
? E/AppScanObserverService: Result available, null observers for user: 0
Best regards, Nasser