Changing external screen resolution with dual monitors
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | GTK+ |
Fix Released
|
Medium
|
||
| | ubuntu-mate |
Medium
|
Martin Wimpress | ||
| | gtk+2.0 (Debian) |
Fix Released
|
Unknown
|
||
| | gtk+2.0 (Ubuntu) |
Medium
|
Unassigned | ||
| | Precise |
Medium
|
Vlad Orlov | ||
| | Trusty |
Medium
|
Vlad Orlov | ||
| | mate-control-center (Ubuntu) |
Medium
|
Martin Wimpress | ||
Bug Description
[Impact]
Due to a bug in GTK+2, mate-display-
The attached patches fix the issue in GTK+2 and prevent crashing of m-d-p.
Since this issue caused much inconvenience for users, the fix should be backported to all current stable releases of Ubuntu.
[Test Case]
The easiest way to reproduce it is via Virtualbox:
1. Run mate-display-
2. Make the VM go full-screen.
3. See m-d-p crash.
[Regression Potential]
After several months of testing the patched version of GTK+2 in Debian Jessie, I found no regressions.
I consider the regression risk very low here.
There were originally some bugs with a few applications (notably Spotify) crashing. We think we've backported patches to fix that - some refcounting issues - but please check a few apps to see they still work.
[ Original report ]
Changing extrnal screen resolution with dual mon
ProblemType: Crash
DistroRelease: Ubuntu 14.10
Package: mate-control-center 1.8.1+dfsg1-4
ProcVersionSign
Uname: Linux 3.16.0-6-generic i686
ApportVersion: 2.14.5-0ubuntu3
Architecture: i386
CrashCounter: 1
Date: Sun Aug 3 07:09:21 2014
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2014-08-03 (0 days ago)
InstallationMedia: Ubuntu MATE 14.10 "Utopic Unicorn" - Alpha i386 (20140731)
ProcCmdline: mate-display-
SegvAnalysis: Skipped: missing required field "Disassembly"
Signal: 11
SourcePackage: mate-control-center
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
| Apport retracing service (apport) wrote : | #2 |
| Changed in mate-control-center (Ubuntu): | |
| importance: | Undecided → Medium |
| tags: | removed: need-i386-retrace |
Added to the upstream issue tracker.
* https:/
| Changed in ubuntu-mate: | |
| status: | New → Confirmed |
| Changed in mate-control-center (Ubuntu): | |
| status: | New → Confirmed |
| Changed in ubuntu-mate: | |
| assignee: | nobody → Stefano Karapetsas (stefano-karapetsas) |
| importance: | Undecided → Medium |
| summary: |
- Changing extrnal screen resolution with dual mon + Changing external screen resolution with dual monitors |
| Vlad Orlov (monsta) wrote : | #7 |
I suspect this is a bug in GTK+2, which is still not fixed upstream.
They've fixed it in GTK+3 only, that's why in MATE GTK+3 mate-display-
I've linked the upstream bug report here.
| Launchpad Janitor (janitor) wrote : | #8 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in gtk+2.0 (Ubuntu): | |
| status: | New → Confirmed |
| Changed in gtk: | |
| importance: | Unknown → Medium |
| status: | Unknown → Fix Released |
| tags: | added: precise trusty |
| Changed in gtk+2.0 (Ubuntu): | |
| importance: | Undecided → Medium |
| tags: | added: vivid |
| Vlad Orlov (monsta) wrote : | #9 |
Attached the patch for GTK+2 which makes gdk_event_
I've tested it in Precise, Trusty and Utopic. It applies cleanly in all three Ubuntu releases, and mate-display-
The attachment "This patch makes gdk_event_
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| Changed in gtk+2.0 (Debian): | |
| status: | Unknown → Confirmed |
| Martin Wimpress (flexiondotorg) wrote : | #11 |
This issue was fixed by the following upstream commit.
* https:/
GTK 2.24.26 has since been released and incorporates the fix.
| Changed in ubuntu-mate: | |
| status: | Confirmed → Triaged |
| assignee: | Stefano Karapetsas (stefano-karapetsas) → Martin Wimpress (flexiondotorg) |
| Changed in mate-control-center (Ubuntu): | |
| assignee: | nobody → Martin Wimpress (flexiondotorg) |
| Launchpad Janitor (janitor) wrote : | #12 |
This bug was fixed in the package gtk+2.0 - 2.24.26-0ubuntu1
---------------
gtk+2.0 (2.24.26-0ubuntu1) vivid; urgency=medium
* New upstream release.
+ Protect gdk_event_
(LP: #1351890)
* Now need to build with --enable-man to build the manpages, and build-dep
on libxml2-utils to get xmlcatalog which configure uses to decide whether
to build them.
-- Iain Lane <email address hidden> Fri, 20 Feb 2015 17:48:37 +0000
| Changed in gtk+2.0 (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Vlad Orlov (monsta) wrote : | #13 |
Thanks.
Please apply the patch in Precise, Trusty and Utopic.
| tags: | removed: vivid |
| Vlad Orlov (monsta) wrote : | #14 |
| Vlad Orlov (monsta) wrote : | #15 |
| Vlad Orlov (monsta) wrote : | #16 |
| Changed in ubuntu-mate: | |
| status: | Triaged → Fix Released |
| Changed in mate-control-center (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Changed in gtk+2.0 (Debian): | |
| status: | Confirmed → Fix Released |
| Sebastien Bacher (seb128) wrote : | #17 |
That commit creates issues, for example the spotify linux client segfaults with it, see https:/
| Iain Lane (laney) wrote : | #18 |
I'm going to backport those extra commits now. If you want the SRU, please update those diffs too.
| Vlad Orlov (monsta) wrote : | #19 |
Update what?
The debdiffs are fine.
| Vlad Orlov (monsta) wrote : | #20 |
Sebastien, the new segfault seems to be fixed upstream in https:/
| Vlad Orlov (monsta) wrote : | #21 |
Iain, did you mean I need to include the new fix in the debdiffs as well?
| Vlad Orlov (monsta) wrote : | #22 |
Whoops, looks like there are two fixes actually, the second one is in https:/
| Vlad Orlov (monsta) wrote : | #23 |
Iain, I've seen you've added them in Debian Jessie and Ubuntu 15.04, thanks :)
| Vlad Orlov (monsta) wrote : | #24 |
| Vlad Orlov (monsta) wrote : | #25 |
| Vlad Orlov (monsta) wrote : | #26 |
| Vlad Orlov (monsta) wrote : | #27 |
[Impact]
Due to a bug in GTK+2, mate-display-
The attached patches fix the issue in GTK+2 and prevent crashing of m-d-p.
Since this issue caused much inconvenience for users, the fix should be backported to all current stable releases of Ubuntu.
[Test Case]
The easiest way to reproduce it is via Virtualbox:
1. Run mate-display-
2. Make the VM go full-screen.
3. See m-d-p crash.
[Regression Potential]
After several months of testing the patched version of GTK+2 in Debian Jessie, I found no regressions.
I consider the regression risk very low here.
| Vlad Orlov (monsta) wrote : | #28 |
There we go. All three debdiffs have been updated to include two more patches mentioned in the comments above (thanks to Sebastien Bacher and Iain Lane).
| Vlad Orlov (monsta) wrote : | #29 |
Hmm, not sure why Ubuntu Sponsors Team wasn't auto-subscribed after my debdiffs. Ok, fixed that manually.
| Vlad Orlov (monsta) wrote : | #30 |
Any progress on reviewing the debdiffs?
| Iain Lane (laney) wrote : | #31 |
sorry, I forgot to subscribe so I wasn't getting emails from this bug. Seb just pointed me to it again.
I'm going to look at your diffs now.
| Changed in mate-control-center (Ubuntu Precise): | |
| status: | New → Invalid |
| Changed in mate-control-center (Ubuntu Trusty): | |
| status: | New → Invalid |
| description: | updated |
| Iain Lane (laney) wrote : | #32 |
uploaded, thanks!
| Changed in gtk+2.0 (Ubuntu Precise): | |
| status: | New → In Progress |
| Changed in gtk+2.0 (Ubuntu Trusty): | |
| status: | New → In Progress |
| Changed in gtk+2.0 (Ubuntu Precise): | |
| assignee: | nobody → Monsta (monsta-mint) |
| Changed in gtk+2.0 (Ubuntu Trusty): | |
| assignee: | nobody → Monsta (monsta-mint) |
Hello Guy, or anyone else affected,
Accepted gtk+2.0 into precise-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in gtk+2.0 (Ubuntu Precise): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Vlad Orlov (monsta) wrote : | #34 |
Looks good in Precise, waiting for Trusty package so I could tag it as verification-done.
| Sebastien Bacher (seb128) wrote : | #35 |
the trusty SRU is waiting for review from the SRU team
https:/
| no longer affects: | mate-control-center (Ubuntu Precise) |
| no longer affects: | mate-control-center (Ubuntu Trusty) |
| Changed in gtk+2.0 (Ubuntu Precise): | |
| importance: | Undecided → Medium |
| Changed in gtk+2.0 (Ubuntu Trusty): | |
| importance: | Undecided → Medium |
| xiaoyiwu (xiaoyiwu) wrote : | #36 |
this bug is exist in gtk+2.0-2.24.25
| xiaoyiwu (xiaoyiwu) wrote : | #37 |
(gdb) bt
#0 0x00000000007c8030 in ?? ()
#1 0x00007ffff652c073 in gdk_event_
event=
at /build/
#2 gdk_event_translate (display=0x669020, event=0x8c9c80,
xevent=
at /build/
#3 0x00007ffff652d696 in _gdk_events_queue (display=
at /build/
#4 0x00007ffff652d73e in gdk_event_dispatch (source=<optimized out>,
callback=
at /build/
#5 0x00007ffff507ec5d in g_main_
from /lib/x86_
#6 0x00007ffff507ef48 in ?? () from /lib/x86_
#7 0x00007ffff507f272 in g_main_loop_run ()
from /lib/x86_
#8 0x00007ffff68b8747 in IA__gtk_main ()
at /build/
| Vlad Orlov (monsta) wrote : | #38 |
The fix for Trusty is still in that queue - did something wrong happened?
| xiaoyiwu (xiaoyiwu) wrote : | #39 |
add a monitor in utopic!
| Vlad Orlov (monsta) wrote : | #40 |
Won't happen, Utopic is EOL since 23 July 2015
https:/
| Vlad Orlov (monsta) wrote : | #41 |
Guys, please do something for Trusty...
| Timo Aaltonen (tjaalton) wrote : | #42 |
Hello Guy, or anyone else affected,
Accepted gtk+2.0 into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in gtk+2.0 (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| Vlad Orlov (monsta) wrote : | #43 |
Looks good in Trusty. Since Precise has the fix in -proposed already as well, tagging it as verification-done.
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #44 |
This bug was fixed in the package gtk+2.0 - 2.24.10-0ubuntu6.2
---------------
gtk+2.0 (2.24.10-
* fix_gdk_
function safe against changes in the filter list, prevents weird crashes in
various apps. (LP: #1351890)
* gdk-Fix-
gdkwindow-
errors after fix_gdk_
applications like Spotify.
-- Vlad Orlov <email address hidden> Tue, 28 Jul 2015 10:11:37 +0100
| Changed in gtk+2.0 (Ubuntu Precise): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for gtk+2.0 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #46 |
This bug was fixed in the package gtk+2.0 - 2.24.23-0ubuntu1.3
---------------
gtk+2.0 (2.24.23-
* fix_gdk_
function safe against changes in the filter list, prevents weird crashes in
various apps. (LP: #1351890)
* gdk-Fix-
gdkwindow-
errors after fix_gdk_
applications like Spotify.
-- Vlad Orlov <email address hidden> Tue, 28 Jul 2015 10:17:14 +0100
| Changed in gtk+2.0 (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Vlad Orlov (monsta) wrote : | #47 |
Thanks! :)


StacktraceTop: apply_filters (filters=<optimized out>, event=0x90aa720, xevent=0xbfb1f34c) at /build/ buildd/ gtk+2.0- 2.24.24/ gdk/x11/ gdkevents- x11.c:356 translate (display= display@ entry=0x8f040a0 , event=event@ entry=0x90aa720 , xevent= xevent@ entry=0xbfb1f34 c, return_ exposes= return_ exposes@ entry=0) at /build/ buildd/ gtk+2.0- 2.24.24/ gdk/x11/ gdkevents- x11.c:1052 display@ entry=0x8f040a0 ) at /build/ buildd/ gtk+2.0- 2.24.24/ gdk/x11/ gdkevents- x11.c:2336 source@ entry=0x8f0a1c8 , callback=0x0, user_data=0x0) at /build/ buildd/ gtk+2.0- 2.24.24/ gdk/x11/ gdkevents- x11.c:2397
?? ()
gdk_event_
gdk_event_
_gdk_events_queue (display=
gdk_event_dispatch (source=