macOS openGL cocoa issue

Roman roman.x149x at gmail.com
Thu Mar 14 16:06:34 UTC 2019


Hi all. I faced with the strange problem on my macbook pro 2018 with macOS
10.14.3 (Mojave), xcode 10.1. I use gstreamer 1.15.2 package downloaded
from https://gstreamer.freedesktop.org. I tried to use my self app and test
app from gl examples
(gst-plugins-bad/tests/examples/gl/cocoa/cocoa-videooverlay.m master
branch) and I have the same results. When I run app all fine, but after on
close window or end playback by EOS event (please see source code of the
test example) I have the next output inside xcode console:


2019-03-14 22:36:16.344887+0000 test123[88544:4060512] [default] Unable to
load Info.plist exceptions (eGPUOverrides)
app created
2019-03-14 22:36:16.487001+0000 test123[88544:4060510] MessageTracer:
Falling back to default whitelist
setting window handle 4311748848d
end of stream
=================================================================
Main Thread Checker: UI API called on a background thread: -[NSView
removeFromSuperview]
PID: 88544, TID: 4060531, Thread name: gstglcontext, Queue name:
com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   libgstgl-1.0.0.dylib                0x00000001007b7727
gst_gl_window_cocoa_close + 103
5   libgstgl-1.0.0.dylib                0x000000010079486a
gst_gl_context_create_thread + 714
6   libglib-2.0.0.dylib                 0x0000000100c5259a g_thread_proxy +
90
7   libsystem_pthread.dylib             0x0000000100df4e35 _pthread_body +
126
8   libsystem_pthread.dylib             0x0000000100df7ec7 _pthread_start +
70
9   libsystem_pthread.dylib             0x0000000100df3e51 thread_start + 13
2019-03-14 22:36:36.524495+0000 test123[88544:4060531] [reports] Main
Thread Checker: UI API called on a background thread: -[NSView
removeFromSuperview]
PID: 88544, TID: 4060531, Thread name: gstglcontext, Queue name:
com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   libgstgl-1.0.0.dylib                0x00000001007b7727
gst_gl_window_cocoa_close + 103
5   libgstgl-1.0.0.dylib                0x000000010079486a
gst_gl_context_create_thread + 714
6   libglib-2.0.0.dylib                 0x0000000100c5259a g_thread_proxy +
90
7   libsystem_pthread.dylib             0x0000000100df4e35 _pthread_body +
126
8   libsystem_pthread.dylib             0x0000000100df7ec7 _pthread_start +
70
9   libsystem_pthread.dylib             0x0000000100df3e51 thread_start + 13

I copied the source code of cocoa-videooverlay.m to simple new test
project. If I run this test app from console everything is fine: I have not
this error on output. Log:

app created
setting window handle 140348288476096d
end of stream

 As far as I understand this not good to finalize nsview operation inside
separate thread. Is it gstreamer bug? Can anybody to help me of solve this
problem?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190314/487fc253/attachment.html>


More information about the gstreamer-devel mailing list