Waylandsink segmentation fault
horai
ivo.hora at seznam.cz
Wed Sep 4 20:15:02 UTC 2019
Dear all,
I am testing Gstreamer Waylandsink example:
https://github.com/GStreamer/gst-plugins-bad/tree/master/tests/examples/waylandsink
The window opens properly and is running video example, but upon button
click (button NULL), I want to erase the video rendering area I have created
therefore I added this piece of code:
GtkAllocation allocation;
gtk_widget_get_allocation(d->video_widget,&allocation);
GstWaylandSink *sink = GST_WAYLAND_SINK (d->overlay);
GstVideoOverlay* overlay;
overlay = d->overlay;
gst_video_overlay_set_render_rectangle (overlay, allocation.x,
allocation.y, -1, -1);
I am feeding the method with these values: x 26 y 60 width -1 height -1
I got this error in Wayland Gnome shell:
0:00:02.355175744 25457 0x5641c5dd4150 ERROR fdmemory
gstfdmemory.c:127:gst_fd_mem_map: 0x7f9edc00b680: fd 17: mmap failed: Cannot
allocate memory
0:00:02.355213222 25457 0x5641c5dd4150 ERROR waylandsink
wlshmallocator.c:78:gst_wl_shm_allocator_alloc:<wlshmallocator0> GstFdMemory
map failed
0:00:02.355238267 25457 0x5641c5dd4150 WARN GST_BUFFER
gstbuffer.c:907:gst_buffer_new_allocate: failed to allocate
5680698421285089536 bytes
(waylandexample:25457): GStreamer-CRITICAL **: 22:03:17.493:
gst_buffer_memset: assertion 'GST_IS_BUFFER (buffer)' failed
(waylandexample:25457): GStreamer-CRITICAL **: 22:03:17.493:
gst_buffer_peek_memory: assertion 'GST_IS_BUFFER (buffer)' failed
I am also enclosing backtrace:
Thread 1 "waylandexample" received signal SIGSEGV, Segmentation fault.
0x00007ffff6464ddd in wl_proxy_add_listener () from
/lib/x86_64-linux-gnu/libwayland-client.so.0
(gdb) bt
#0 0x00007ffff6464ddd in wl_proxy_add_listener () at
/lib/x86_64-linux-gnu/libwayland-client.so.0
#1 0x00007fffee6b4a51 in () at
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwaylandsink.so
#2 0x00007fffee6b6165 in () at
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwaylandsink.so
#3 0x00007fffee6b1ec8 in () at
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwaylandsink.so
#4 0x00007ffff71085c6 in gst_video_overlay_set_render_rectangle () at
/lib/x86_64-linux-gnu/libgstvideo-1.0.so.0
#5 0x00005555555568ea in null_clicked_cb (button=0x5555559866c0,
d=0x555555962580) at main.c:200
#6 0x00007ffff7e1eec6 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7 0x00007ffff7e3b38d in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffff7e3b97f in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff772e9dd in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#10 0x00007ffff772ea45 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#11 0x00007ffff7e1eec6 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff7e3b38d in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff7e3b97f in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff772cf50 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#15 0x00007ffff6cd38ee in ffi_call_unix64 () at
/lib/x86_64-linux-gnu/libffi.so.6
#16 0x00007ffff6cd32bf in ffi_call () at /lib/x86_64-linux-gnu/libffi.so.6
#17 0x00007ffff7e1f906 in g_cclosure_marshal_generic_va () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff7e1eec6 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff7e3b38d in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff7e3b97f in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff77f12e4 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#22 0x00007ffff7e21d02 in g_cclosure_marshal_VOID__BOXEDv () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff7e1eec6 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007ffff7e3b38d in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#25 0x00007ffff7e3b97f in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#26 0x00007ffff77ee4c2 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#27 0x00007ffff77efa8b in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#28 0x00007ffff77f2886 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#29 0x00007ffff77bb44c in gtk_event_controller_handle_event () at
/lib/x86_64-linux-gnu/libgtk-3.so.0
#30 0x00007ffff797507b in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#31 0x00007ffff79c9274 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#32 0x00007ffff7e1eec6 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#33 0x00007ffff7e3ad74 in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#34 0x00007ffff7e3b97f in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#35 0x00007ffff7977324 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#36 0x00007ffff7837976 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#37 0x00007ffff7839a83 in gtk_main_do_event () at
/lib/x86_64-linux-gnu/libgtk-3.so.0
#38 0x00007ffff753b465 in () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#39 0x00007ffff75965b2 in () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#40 0x00007ffff7d3cf2e in g_main_context_dispatch () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007ffff7d3d1c8 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007ffff7d3d4c2 in g_main_loop_run () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007ffff7838b15 in gtk_main () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#44 0x0000555555556df7 in main (argc=1, argv=0x7fffffffe268) at main.c:299
Does anyone know what the problem might be?
Thank you
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list