Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.5.1
-
None
-
Ubuntu 14.0
Architecture: amd64 (x86_64)
Kernel: Linux 3.13.9 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libqt5gui5 and xserver-xorg depend on:
ii dpkg 1.17.5ubuntu5
ii fontconfig 2.11.0-0ubuntu4
ii keyboard-configuration 1.70ubuntu8
ii libaudit1 1:2.3.2-2ubuntu1
ii libc6 2.19-0ubuntu6.6
ii libdrm-intel1 2.4.52-1
ii libdrm-nouveau2 2.4.52-1
ii libdrm-radeon1 2.4.52-1
ii libdrm2 2.4.52-1
ii libegl1-mesa 10.1.0-4ubuntu5
ii libfontconfig1 2.11.0-0ubuntu4
ii libfreetype6 2.5.2-1ubuntu2
ii libgbm1 10.1.0-4ubuntu5
ii libgcrypt11 1.5.3-2ubuntu4
ii libgl1-mesa-glx 10.1.0-4ubuntu5
ii libglapi-mesa 10.1.0-4ubuntu5
ii libglib2.0-0 2.40.0-2
ii libgtk2.0-0 2.24.23-0ubuntu1
ii libharfbuzz0b 0.9.27-1
ii libice6 2:1.0.8-2
ii libjpeg8 8c-2ubuntu8
ii libmtdev1 1.1.4-1ubuntu1
ii libpango-1.0-0 1.36.3-1ubuntu1
ii libpciaccess0 0.13.2-1
ii libpixman-1-0 0.30.2-2ubuntu1
ii libpng12-0 1.2.50-1ubuntu2
ii libqt5core5a 5.4.1+dfsg-2ubuntu4
ii libqt5dbus5 5.4.1+dfsg-2ubuntu4
ii libselinux1 2.2.2-1
ii libsm6 2:1.2.1-2
ii libstdc++6 4.9.2-10ubuntu1
ii libudev1 204-5ubuntu20
ii libx11-6 2:1.6.2-1ubuntu2
ii libx11-xcb1 2:1.6.2-1ubuntu2
ii libxau6 1:1.0.8-1
ii libxcb-dri2-0 1.10-2ubuntu1
ii libxcb-dri3-0 1.10-2ubuntu1
ii libxcb-glx0 1.10-2ubuntu1
ii libxcb-icccm4 0.4.1-1ubuntu1
ii libxcb-image0 0.4.0-1
ii libxcb-keysyms1 0.4.0-1
ii libxcb-randr0 1.10-3+b1
ii libxcb-render-util0 0.3.9-1
ii libxcb-render0 1.10-2ubuntu1
ii libxcb-shape0 1.10-2ubuntu1
ii libxcb-shm0 1.10-2ubuntu1
ii libxcb-sync1 1.10-2ubuntu1
ii libxcb-util0 0.3.8-3
ii libxcb-xfixes0 1.10-2ubuntu1
ii libxcb-xkb1 1.10-3+b1
ii libxcb1 1.10-2ubuntu1
ii libxcursor1 1:1.1.14-1
ii libxdamage1 1:1.1.4-1ubuntu1
ii libxdmcp6 1:1.1.1-1
ii libxext6 2:1.3.2-1
ii libxfixes3 1:5.0.1-1ubuntu1
ii libxfont1 1:1.4.7-1
ii libxi6 2:1.7.1.901-1ubuntu1
ii libxinerama1 2:1.1.3-1
ii libxkbcommon-x11-0 0.4.3-2
ii libxkbcommon0 0.4.3-2
ii libxrandr2 2:1.4.2-1
ii libxrender1 1:0.9.8-1
ii libxshmfence1 1.1-2
ii libxtst6 2:1.2.2-1
ii libxv1 2:1.0.10-1
ii multiarch-support 2.19-0ubuntu6
ii udev 204-5ubuntu20
ii x11-xkb-utils 7.7+1
ii xkb-data 2.10.1-1ubuntu1
ii xserver-common 2:1.15.1-0ubuntu2
ii xserver-xorg 1:7.7+1ubuntu8
ii xserver-xorg-core 2:1.15.1-0ubuntu2
ii xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
ii xserver-xorg-video-fbdev 1:0.4.4-1build1
ii zlib1g 1:1.2.8.dfsg-1ubuntu1Ubuntu 14.0 Architecture: amd64 (x86_64) Kernel: Linux 3.13.9 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libqt5gui5 and xserver-xorg depend on: ii dpkg 1.17.5ubuntu5 ii fontconfig 2.11.0-0ubuntu4 ii keyboard-configuration 1.70ubuntu8 ii libaudit1 1:2.3.2-2ubuntu1 ii libc6 2.19-0ubuntu6.6 ii libdrm-intel1 2.4.52-1 ii libdrm-nouveau2 2.4.52-1 ii libdrm-radeon1 2.4.52-1 ii libdrm2 2.4.52-1 ii libegl1-mesa 10.1.0-4ubuntu5 ii libfontconfig1 2.11.0-0ubuntu4 ii libfreetype6 2.5.2-1ubuntu2 ii libgbm1 10.1.0-4ubuntu5 ii libgcrypt11 1.5.3-2ubuntu4 ii libgl1-mesa-glx 10.1.0-4ubuntu5 ii libglapi-mesa 10.1.0-4ubuntu5 ii libglib2.0-0 2.40.0-2 ii libgtk2.0-0 2.24.23-0ubuntu1 ii libharfbuzz0b 0.9.27-1 ii libice6 2:1.0.8-2 ii libjpeg8 8c-2ubuntu8 ii libmtdev1 1.1.4-1ubuntu1 ii libpango-1.0-0 1.36.3-1ubuntu1 ii libpciaccess0 0.13.2-1 ii libpixman-1-0 0.30.2-2ubuntu1 ii libpng12-0 1.2.50-1ubuntu2 ii libqt5core5a 5.4.1+dfsg-2ubuntu4 ii libqt5dbus5 5.4.1+dfsg-2ubuntu4 ii libselinux1 2.2.2-1 ii libsm6 2:1.2.1-2 ii libstdc++6 4.9.2-10ubuntu1 ii libudev1 204-5ubuntu20 ii libx11-6 2:1.6.2-1ubuntu2 ii libx11-xcb1 2:1.6.2-1ubuntu2 ii libxau6 1:1.0.8-1 ii libxcb-dri2-0 1.10-2ubuntu1 ii libxcb-dri3-0 1.10-2ubuntu1 ii libxcb-glx0 1.10-2ubuntu1 ii libxcb-icccm4 0.4.1-1ubuntu1 ii libxcb-image0 0.4.0-1 ii libxcb-keysyms1 0.4.0-1 ii libxcb-randr0 1.10-3+b1 ii libxcb-render-util0 0.3.9-1 ii libxcb-render0 1.10-2ubuntu1 ii libxcb-shape0 1.10-2ubuntu1 ii libxcb-shm0 1.10-2ubuntu1 ii libxcb-sync1 1.10-2ubuntu1 ii libxcb-util0 0.3.8-3 ii libxcb-xfixes0 1.10-2ubuntu1 ii libxcb-xkb1 1.10-3+b1 ii libxcb1 1.10-2ubuntu1 ii libxcursor1 1:1.1.14-1 ii libxdamage1 1:1.1.4-1ubuntu1 ii libxdmcp6 1:1.1.1-1 ii libxext6 2:1.3.2-1 ii libxfixes3 1:5.0.1-1ubuntu1 ii libxfont1 1:1.4.7-1 ii libxi6 2:1.7.1.901-1ubuntu1 ii libxinerama1 2:1.1.3-1 ii libxkbcommon-x11-0 0.4.3-2 ii libxkbcommon0 0.4.3-2 ii libxrandr2 2:1.4.2-1 ii libxrender1 1:0.9.8-1 ii libxshmfence1 1.1-2 ii libxtst6 2:1.2.2-1 ii libxv1 2:1.0.10-1 ii multiarch-support 2.19-0ubuntu6 ii udev 204-5ubuntu20 ii x11-xkb-utils 7.7+1 ii xkb-data 2.10.1-1ubuntu1 ii xserver-common 2:1.15.1-0ubuntu2 ii xserver-xorg 1:7.7+1ubuntu8 ii xserver-xorg-core 2:1.15.1-0ubuntu2 ii xserver-xorg-input-evdev 1:2.8.2-1ubuntu2 ii xserver-xorg-video-fbdev 1:0.4.4-1build1 ii zlib1g 1:1.2.8.dfsg-1ubuntu1
Description
Repro steps:
1. Start X11.
2. Run the widgets/scroller/graphicsview demo. Mouse and touch drags are ignored, and the program appears unresponsive.
3. Kill the graphicsview demo.
4. Run the same program again. Mouse and touch drags move the items around as expected.
The easy way to do the above is to write a ~/.xsession file containing just
exec /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/scroller/graphicsview/graphicsview
Fix it with this (ugly) workaround:
timeout 0.02s /usr/lib/x86_64-linux-gnu/qt5/examples/gui/rasterwindow/rasterwindow exec /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/scroller/graphicsview/graphicsview
Note: I haven't started a window manager in the above, so that rules out one possible confounding factor. In fact, if I do start a window manager, it's necessary to let it start managing before performing the workaround step.
I wonder if something is being initialised too late, but persists on the X server so that the next application finds it.
Further investigation reveals the minimum I need to do for the workaround is
#include <QGuiApplication> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); return EXIT_SUCCESS; }
It's not enough to just cause the GUI lib to be linked (e.g. by referencing QGuiApplication::staticMetaObject), but OTOH it's not necessary to call any more than the constructor. Running the above program before my application makes mouse/touch dragging work (for me).
Attachments
For Gerrit Dashboard: QTBUG-45564 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
110924,3 | xcb: Fix updating physical screen size | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |