You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a program with parallel processing using openmp, if a GtkProgressBar is
updated, when using gtk-qt-engine, the progress bar rendering is corrupted and
the following errors are repeatedly generated:
(th_run:2015): Gdk-CRITICAL **: gdk_pixmap_foreign_new_for_display: assertion
`(anid != 0)' failed
(th_run:2015): Gdk-CRITICAL **: gdk_draw_drawable: assertion `GDK_IS_DRAWABLE
(src)' failed
(th_run:2015): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
(object)' failed
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
(I'm not sure whether the Qt errors really come after or before the Gdk errors)
N.B. The progress bar updates are wrapped in an openmp "CRITICAL" directive
which prevents multiple threads attempting to update the GUI simultaneously --
but it is not possible to wrap them in a MASTER directive as the information
needed to update any one progress bar is only accessible to its own thread.
Which Qt style are you using?
I'm using Oxygen widgets with Keramic window decorations and Air theme, on
Debian Stable (Gtk+ 2.20, Qt 4.6.3, gtk-qt-engine 1.1+svn5-4+b1).
The problem does not occur if a native Gtk+ theme is selected.
A correspondent on the Gtk-apps-devel list suggested that replacing QPixmap
with QImage might be the solution.
Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 9:22
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 21 Feb 2012 at 9:22The text was updated successfully, but these errors were encountered: