Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549366 - Qt Runtime problem: QPixmap: Must construct a QApplication before a QPaintDevice
Summary: Qt Runtime problem: QPixmap: Must construct a QApplication before a QPaintDevice
Status: RESOLVED DUPLICATE of bug 549276
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-13 11:03 UTC by Marco Ziebell
Modified: 2015-05-13 13:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Ziebell 2015-05-13 11:03:40 UTC
If I start any application which uses Qt as GUI provider it fails with the message
"QPixmap: Must construct a QApplication before a QPaintDevice"

Looking at the callstack thats seems to be not true, QApplication is called.
I'm not sure how to proceed.



m@MG /tmp $ qlist -ICv qt
app-eselect/eselect-qtgraphicssystem-1.1.1
dev-qt/qtchooser-0_p20150102
dev-qt/qtcore-4.8.6-r2
dev-qt/qtdbus-4.8.6-r1
dev-qt/qtgui-4.8.6-r4
dev-qt/qtscript-4.8.6-r2
dev-qt/qtsvg-4.8.6-r1
dev-qt/qttest-4.8.6-r1
dev-qt/qttranslations-4.8.6-r1
dev-qt/qtwebkit-4.8.6-r1
dev-qt/qtxmlpatterns-4.8.6-r1


#0  0x000000382a033577 in raise () from /lib64/libc.so.6
#1  0x000000382a0347c9 in abort () from /lib64/libc.so.6
#2  0x00007ffff731fe3f in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=<optimized out>)
    at /usr/src/debug/dev-qt/qtcore-4.8.6-r2/qt-everywhere-opensource-src-4.8.6/src/corelib/global/qglobal.cpp:2359
#3  0x00007ffff731ff08 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (
    msgType=msgType@entry=QtFatalMsg, 
    msg=msg@entry=0x7ffff7dab868 "QPixmap: Must construct a QApplication before a QPaintDevice", ap=ap@entry=0x7fffffffbfe0)
    at /usr/src/debug/dev-qt/qtcore-4.8.6-r2/qt-everywhere-opensource-src-4.8.6/src/corelib/global/qglobal.cpp:2405
#4  0x00007ffff73205b8 in qFatal (msg=msg@entry=0x7ffff7dab868 "QPixmap: Must construct a QApplication before a QPaintDevice")
    at /usr/src/debug/dev-qt/qtcore-4.8.6-r2/qt-everywhere-opensource-src-4.8.6/src/corelib/global/qglobal.cpp:2588
#5  0x00007ffff783f3d5 in qt_pixmap_thread_test ()
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/image/qpixmap.cpp:102
#6  0x00007ffff783f5b6 in QPixmap::QPixmap (this=0x4efd48)
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/image/qpixmap.cpp:174
#7  0x00007ffff77f8f7e in QCursorData::QCursorData (this=0x4efd30, s=<optimized out>)
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qcursor_x11.cpp:77
#8  0x00007ffff7790628 in QCursorData::initialize ()
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qcursor.cpp:403
#9  0x00007ffff77fa831 in QX11Data::xdndSetup ()
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qdnd_x11.cpp:708
#10 0x00007ffff77edcc1 in qt_init (priv=priv@entry=0x4c4cf0, display=display@entry=0x0, visual=visual@entry=0, 
    colormap=colormap@entry=0)
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qapplication_x11.cpp:2006
#11 0x00007ffff7784012 in QApplicationPrivate::construct (this=0x4c4cf0, dpy=dpy@entry=0x0, visual=visual@entry=0, 
    cmap=cmap@entry=0)
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qapplication.cpp:842
#12 0x00007ffff77841e5 in QApplication::QApplication (this=0x7fffffffcd50, argc=@0x7fffffffc8bc: 1, argv=0x7fffffffcb50, 
    _internal=17041414)
    at /usr/src/debug/dev-qt/qtgui-4.8.6-r4/qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qapplication.cpp:741
#13 0x000000000042dff1 in XxApp::XxApp (this=0x7fffffffcd50, argc=<optimized out>, argv=<optimized out>, cmdline=...)
    at app.cpp:239
#14 0x0000000000434f66 in main (argc=3, argv=0x7fffffffd788, envp=<optimized out>) at main.cpp:79

MG tmp # emerge --info qtgui
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 4.0.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.1-gentoo-x86_64-AMD_A6-4400M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     3381256 total,   1429728 free
KiB Swap:    8190972 total,   8190972 free
Timestamp of repository gentoo: Wed, 13 May 2015 05:15:01 +0000
sh dash 0.5.7.4
ld GNU gold (Gentoo 2.25 p1.0 2.25) 1.11
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000

local-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -pipe -O1 -g3 -ggdb3 -fno-omit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -pipe -O1 -g3 -ggdb3 -fno-omit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --quiet=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync multilib-strict network-sandbox news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j2 V=0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl aes alsa amd64 avx branding fma fma3 fma4 hdaps ipv6 mmx mmxext nls nptl openmp pic popcnt seccomp sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 threads truetype unicode vdpau vim-syntax xop" ABI_X86="64" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console pdfimport presenter-minimizer" LINGUAS="de" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="r600 radeon" XFCE_PLUGINS="trash clock battery"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-qt/qtgui-4.8.6-r4::gentoo was built with the following:
USE="debug glib gtkstyle xv -accessibility (-aqua) -cups -egl -exceptions -mng -nas -nis -pch -qt3support -tiff -trace -xinerama" ABI_X86="64 -32 -x32"
CFLAGS="-march=native -mtune=native -pipe -O1 -g3 -ggdb3 -fno-omit-frame-pointer -fno-lto -fno-use-linker-plugin"
CXXFLAGS="-march=native -mtune=native -pipe -O1 -g3 -ggdb3 -fno-omit-frame-pointer -fno-lto -fno-use-linker-plugin"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu -fno-lto -fno-use-linker-plugin"


Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-05-13 12:56:33 UTC
dup of bug #549276?
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2015-05-13 13:23:10 UTC
Yep

*** This bug has been marked as a duplicate of bug 549276 ***