Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 506906

Summary: media-video/minitube-2.3 fails to paint UI control buttons - QPainter::end: Painter not active, aborted
Product: Gentoo Linux Reporter: Sven Müller <musv>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: media-video
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://flavio.tordini.org/forums/topic/qtpainter-error-fails-to-paint-ui-control-buttons
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info minitube

Description Sven Müller 2014-04-06 10:39:29 UTC
Minitube doesn't show the controls in the GUI, e.g. Play, Stop, Forward, Rewind, ... I guess, the bug should be filed to the upstream.

Starting Minitube gives me in Console:

QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted

Don't know if those messages are related to the error. 


Installed Qt-Environment:

eix -Ic qt
[I] app-admin/eselect-qtgraphicssystem (1.1.1@23.09.2012): Utility to change the active Qt Graphics System
[I] app-emulation/emul-linux-x86-qtlibs (20131008@05.04.2014): Provides precompiled 32bit libraries
[I] app-i18n/ibus-qt (1.3.2@14.01.2014): Qt IBus library and Qt input method plugin
[I] dev-libs/libdbusmenu-qt (0.9.2@24.09.2012): A library providing Qt implementation of DBusMenu specification
[I] dev-python/PyQt4 (4.10.3-r2@14.01.2014): Python bindings for the Qt toolkit
[I] dev-qt/qt3support (4.8.5(4)@30.10.2013): The Qt3Support module for the Qt toolkit
[I] dev-qt/qtcore (4.8.5-r1(4)@14.01.2014): Cross-platform application development framework
[I] dev-qt/qtdbus (4.8.5(4)@30.10.2013): The DBus module for the Qt toolkit
[I] dev-qt/qtdeclarative (4.8.5(4)@30.10.2013): The Declarative module for the Qt toolkit
[I] dev-qt/qtgui (4.8.5-r1(4)@01.02.2014): The GUI module for the Qt toolkit
[I] dev-qt/qtlockedfile (2.4.1_p20130904@14.01.2014): QFile extension with advisory locking functions
[I] dev-qt/qtmultimedia (4.8.5(4)@30.10.2013): The Multimedia module for the Qt toolkit
[I] dev-qt/qtopengl (4.8.5(4)@30.10.2013): The OpenGL module for the Qt toolkit
[I] dev-qt/qtscript (4.8.5(4)@30.10.2013): The QtScript module for the Qt toolkit
[I] dev-qt/qtsingleapplication (2.6.1_p20130904@14.01.2014): Qt library to start applications only once per user
[I] dev-qt/qtsql (4.8.5(4)@30.10.2013): The SQL module for the Qt toolkit
[I] dev-qt/qtsvg (4.8.5(4)@30.10.2013): The SVG module for the Qt toolkit
[I] dev-qt/qttest (4.8.5(4)@30.10.2013): The QtTest module for unit testing Qt applications and libraries
[I] dev-qt/qtwebkit (4.8.5(4)@14.01.2014): The WebKit module for the Qt toolkit
[I] dev-qt/qtxmlpatterns (4.8.5(4)@30.10.2013): The XmlPatterns module for the Qt toolkit
[I] dev-util/kdevelop-pg-qt (1.0.0@29.09.2012): A LL(1) parser generator used mainly by KDevelop language plugins
[I] sys-auth/polkit-qt (0.103.0@24.09.2012): PolicyKit Qt4 API wrapper library.
[I] x11-libs/qtscriptgenerator (0.2.0@29.09.2012): Tool for generating Qt bindings for Qt Script
[I] x11-themes/qtcurve (1.8.18@01.02.2014): A set of widget styles for Qt and GTK2
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-06 14:11:38 UTC
Please post your `emerge --info media-video/minitube' output in a comment.
Comment 2 Sven Müller 2014-04-06 15:23:11 UTC
Created attachment 374390 [details]
emerge --info minitube
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-06 15:26:33 UTC
The output of `eselect qtgraphicssystem list' might be useful.
Comment 4 Sven Müller 2014-04-06 16:14:19 UTC
Available Qt Graphics Systems:
  [1]   native
  [2]   opengl (experimental)
  [3]   raster (default) *
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2014-04-06 18:18:04 UTC
it could be a missing USE flag in Qt but I am not sure. I will let the Qt people comment on that. ( i am seeing the same problem as well )
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2014-04-06 20:56:09 UTC
I think the QPainter is trying to paint on a zero-sized surface, which, briefly looking at the code, appears to happen beacause it is constructed with a null QImage. The null QImage is in turn caused by a missing icon.

In short, this is either an upstream bug (missing icon in the tarball), or a missing dependency on a proper icon set in the ebuild.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2014-04-07 11:53:57 UTC
(In reply to Davide Pesavento from comment #6)
> I think the QPainter is trying to paint on a zero-sized surface, which,
> briefly looking at the code, appears to happen beacause it is constructed
> with a null QImage. The null QImage is in turn caused by a missing icon.
> 
> In short, this is either an upstream bug (missing icon in the tarball), or a
> missing dependency on a proper icon set in the ebuild.

Thanks a lot Davide. Sven would you be able to open a bug upstream (or maybe try a different icon set)?
Comment 8 Sven Müller 2014-04-09 16:44:49 UTC
changed the QT-Theme from QtCurve to Oxygen and the Icon Set from KDE Crystal Diamond Icons to Oxygen Team. 

No change in Minitube.
Comment 9 Sven Müller 2014-04-10 19:11:13 UTC
Posted the bug report in the Minitube forum, which seems to be something like the Minitube bugzilla.

http://flavio.tordini.org/forums/topic/qtpainter-error-fails-to-paint-ui-control-buttons
Comment 10 Michael Palimaka (kensington) gentoo-dev 2016-11-30 07:09:20 UTC
Does this issue persist with 2.5.2?
Comment 11 Sven Müller 2017-07-13 18:34:07 UTC
The UI works perfectly in 2.5.2. 

But I'm not able to load any video: 

403 "Error transferring https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&maxResults=50&q=hrxPzxOwI_4 - server replied: Forbidden" QNetworkReply::NetworkError(ContentOperationNotPermittedError)
"Error transferring https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&maxResults=50&q=hrxPzxOwI_4 - server replied: Forbidden"
403 "Error transferring https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&maxResults=50&q=matt gray reformation - server replied: Forbidden" QNetworkReply::NetworkError(ContentOperationNotPermittedError)
"Error transferring https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&maxResults=50&q=matt gray reformation - server replied: Forbidden

But that's another story.