[Bug 779701] New: Failure to build Basic tutorial example 5 code as-is
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Mar 7 12:33:52 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=779701
Bug ID: 779701
Summary: Failure to build Basic tutorial example 5 code as-is
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: documentation
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: eduardas.m at fods.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
There is probably an error in the basic tutorial 5 source code on this page:
https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html
There are three lines that have double commas:
controls = gtk_box_new (GTK_ORIENTATION_HORIZONTAL,, 0);
main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL,, 0);
main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL,, 0);
>From the GTK+ 3 documentation it is apparent that gtk_box_new only takes two
arguments: https://developer.gnome.org/gtk3/stable/GtkBox.html#gtk-box-new
When the lines are edited only to have one comma each, I can get the example to
build on Ubuntu 14.04, but get a runtime error:
State set to READY
(main:13018): Gtk-WARNING **: drawing failure for widget `GtkDrawingArea': NULL
pointer
*** Error in `./main': double free or corruption (fasttop): 0x00000000012cdd00
***
Aborted (core dumped)
On Antergos (Arch Linux) running in a VirtualBox VM I also get a runtime error
after building the code with the commas corrected:
State set to READY
(main:1137): Gtk-WARNING **: drawing failure for widget 'GtkDrawingArea': NULL
pointer
(main:1137): Gtk-WARNING **: drawing failure for widget 'GtkBox': NULL pointer
(main:1137): Gtk-WARNING **: drawing failure for widget 'GtkBox': NULL pointer
(main:1137): Gtk-WARNING **: drawing failure for widget 'GtkWindow': NULL
pointer
main: cairo.c:305: cairo_destroy: Assertion
`CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&cr->ref_count)' failed.
Aborted (core dumped)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list