various applets occasionally crash on transparent panel

Bug #1675888 reported by Buzea Bogdan
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mate-panel (Ubuntu)
Fix Released
Low
Unassigned
Zesty
Fix Released
Low
Unassigned

Bug Description

[Impact]

Almost all panel applets occasionally crash if the panel is transparent.
Usually it happens on session start. It affects all panels that are on the
screen, e.g. if you have top and bottom panels, then the applets from both
panels would crash.

The patch attached to this report fixes the issue.

The fix is already present in Artful and tested by developers and users.
Would be nice to backport it to Zesty as well, as it's really a major
inconvenience for users who prefer to have a transparent panel.

[Test Case]

If you see the applets crashes on session start, then the issue is already
reproduced. Otherwise you can try moving transparency slider in the panel
properties very fast back and forth - after some tries it will cause some
applets to crash. It's been confirmed that it's the same crash as happens
on session start, with the same backtrace and the same root cause.

[Regression Potential]

None. All that's done is to replace the direct call of cairo function with
the call to GDK's cairo support function. It proved to be the proper way to
do it.

[Other Info]

The patch is included into the debdiff attached to this report.

The debdiff contains patches to fix bug 1675888, bug 1676840, bug 1690517,
bug 1695648. See other reports for the corresponding SRU templates.

Note that the debdiff attached to bug 1690517 is a separate one for Artful.

[Original Description]

crash on testing shortcuts: Ctrl+ Alt +Numpad

ProblemType: Crash
DistroRelease: Ubuntu 17.04
Package: mate-panel 1.18.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.10.0-13.15-generic 4.10.1
Uname: Linux 4.10.0-13-generic x86_64
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
CurrentDesktop: MATE
Date: Fri Mar 24 20:13:18 2017
ExecutablePath: /usr/lib/mate-panel/notification-area-applet
InstallationDate: Installed on 2016-06-28 (268 days ago)
InstallationMedia: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
ProcCmdline: /usr/lib/mate-panel/notification-area-applet
ProcEnviron:
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
 LANGUAGE=ro_RO
 LANG=ro_RO.UTF-8
Signal: 5
SourcePackage: mate-panel
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 XGetGeometry () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 mate_panel_applet_get_background () from /usr/lib/x86_64-linux-gnu/libmate-panel-applet-4.so.1
Title: notification-area-applet crashed with signal 5 in _XReply()
UpgradeStatus: Upgraded to zesty on 2017-03-17 (6 days ago)
UserGroups: adm audio cdrom dialout dip fax floppy lpadmin netdev plugdev sambashare scanner sudo tape vboxusers video

Revision history for this message
Buzea Bogdan (bogdanke8) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 XGetGeometry (dpy=0x5620fdc52ca0, d=d@entry=14710537, root=root@entry=0x7ffdf2d86290, x=x@entry=0x7ffdf2d86278, y=y@entry=0x7ffdf2d8627c, width=width@entry=0x7ffdf2d86280, height=0x7ffdf2d86284, borderWidth=0x7ffdf2d86288, depth=0x7ffdf2d8628c) at ../../src/GetGeom.c:47
 mate_panel_applet_create_foreign_surface_for_display (xid=14710537, visual=0x5620fdc6c4f0, display=0x5620fdc610e0) at mate-panel-applet.c:1306
 mate_panel_applet_get_pattern_from_pixmap (y=0, x=1005, xid=14710537, applet=<optimized out>) at mate-panel-applet.c:1339
 mate_panel_applet_handle_background_string (pattern=0x7ffdf2d862e8, color=<optimized out>, applet=<optimized out>) at mate-panel-applet.c:1419
 mate_panel_applet_get_background (applet=<optimized out>, color=<optimized out>, pattern=0x7ffdf2d862e8) at mate-panel-applet.c:1448

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in mate-panel (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: notification-area-applet crashed with signal 5 in _XReply()

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mate-panel (Ubuntu):
status: New → Confirmed
Revision history for this message
Vlad Orlov (monsta) wrote :

Do you use a transparent panel?

See https://ubuntu-mate.community/t/zesty-multiple-applet-crashes-on-login-when-using-transparent-panels/13192 for possibly same or similar issue.

Revision history for this message
Buzea Bogdan (bogdanke8) wrote :

Yes, in general I make the top panel transparent. Now I upgrade on Ubuntu 17.10, so I dont have exactly the same setting... But I supose I had transparent panel because I like them very much.

Revision history for this message
Vlad Orlov (monsta) wrote :

In 17.10 this bug shouldn't happen anymore, it had been fixed in mate-panel 1.18.4 which is now in the repos. Would be nice to get it fixed in 17.04 as well, so I'll upload a patch for that.

Revision history for this message
Vlad Orlov (monsta) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix occasional transparent panel crashes for Zesty" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Vlad Orlov (monsta) wrote :

Since this affects various applets, I think it won't hurt to add links to upstream reports (with backtraces included).

https://github.com/mate-desktop/mate-panel/issues/604
https://github.com/mate-desktop/mate-panel/issues/369

summary: - notification-area-applet crashed with signal 5 in _XReply()
+ various applets occasionally crash on transparent panel
Vlad Orlov (monsta)
tags: added: ubuntu-mate-zesty-sru
Changed in mate-panel (Ubuntu Zesty):
status: New → Triaged
Changed in mate-panel (Ubuntu):
status: Confirmed → Fix Released
Changed in mate-panel (Ubuntu Zesty):
importance: Undecided → Low
Changed in mate-panel (Ubuntu):
importance: Medium → Low
Revision history for this message
Vlad Orlov (monsta) wrote :

Attaching the debdiff with patches to fix bug 1675888, bug 1676840, bug 1690517,
bug 1695648 for Zesty.

description: updated
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Uploaded.

Thanks!

Revision history for this message
Buzea Bogdan (bogdanke8) wrote : Re: [Bug 1675888] Re: various applets occasionally crash on transparent panel
Download full text (4.2 KiB)

Awesome, thanks!

Pe 25 nov. 2017 05:20, "Simon Quigley" <email address hidden> a scris:

> Uploaded.
>
> Thanks!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1675888
>
> Title:
> various applets occasionally crash on transparent panel
>
> Status in mate-panel package in Ubuntu:
> Fix Released
> Status in mate-panel source package in Zesty:
> Triaged
>
> Bug description:
> [Impact]
>
> Almost all panel applets occasionally crash if the panel is transparent.
> Usually it happens on session start. It affects all panels that are on
> the
> screen, e.g. if you have top and bottom panels, then the applets from
> both
> panels would crash.
>
> The patch attached to this report fixes the issue.
>
> The fix is already present in Artful and tested by developers and users.
> Would be nice to backport it to Zesty as well, as it's really a major
> inconvenience for users who prefer to have a transparent panel.
>
> [Test Case]
>
> If you see the applets crashes on session start, then the issue is
> already
> reproduced. Otherwise you can try moving transparency slider in the panel
> properties very fast back and forth - after some tries it will cause some
> applets to crash. It's been confirmed that it's the same crash as happens
> on session start, with the same backtrace and the same root cause.
>
> [Regression Potential]
>
> None. All that's done is to replace the direct call of cairo function
> with
> the call to GDK's cairo support function. It proved to be the proper way
> to
> do it.
>
> [Other Info]
>
> The patch is included into the debdiff attached to this report.
>
> The debdiff contains patches to fix bug 1675888, bug 1676840, bug
> 1690517,
> bug 1695648. See other reports for the corresponding SRU templates.
>
> Note that the debdiff attached to bug 1690517 is a separate one for
> Artful.
>
> [Original Description]
>
> crash on testing shortcuts: Ctrl+ Alt +Numpad
>
> ProblemType: Crash
> DistroRelease: Ubuntu 17.04
> Package: mate-panel 1.18.0-0ubuntu1
> ProcVersionSignature: Ubuntu 4.10.0-13.15-generic 4.10.1
> Uname: Linux 4.10.0-13-generic x86_64
> ApportVersion: 2.20.4-0ubuntu2
> Architecture: amd64
> CurrentDesktop: MATE
> Date: Fri Mar 24 20:13:18 2017
> ExecutablePath: /usr/lib/mate-panel/notification-area-applet
> InstallationDate: Installed on 2016-06-28 (268 days ago)
> InstallationMedia: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Release amd64
> (20160420.1)
> ProcCmdline: /usr/lib/mate-panel/notification-area-applet
> ProcEnviron:
> SHELL=/bin/bash
> XDG_RUNTIME_DIR=<set>
> PATH=(custom, no user)
> LANGUAGE=ro_RO
> LANG=ro_RO.UTF-8
> Signal: 5
> SourcePackage: mate-panel
> StacktraceTop:
> ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
> ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
> _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
> XGetGeometry () from /usr/lib/x86_64-linux-gnu/libX11.so.6
> mate_panel_applet_get_background () from /usr/lib/x86_64-linux-gnu/
> libmate-panel-applet-4.so.1
> Title: notification-area-app...

Read more...

Revision history for this message
Vlad Orlov (monsta) wrote :

Thanks, waiting for it to show in the -proposed.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Buzea, or anyone else affected,

Accepted mate-panel into zesty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mate-panel/1.18.1-0ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

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-zesty to verification-done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-zesty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in mate-panel (Ubuntu Zesty):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-zesty
Revision history for this message
Vlad Orlov (monsta) wrote :

Testing in Zesty...

- replaced local builds of mate-panel, mate-panel-common, gir1.2-mate-panel, libmate-panel-applet-4-1 packages with version 1.18.1-0ubuntu2.1 from zesty-proposed
- set the panel background on both top and bottom panels to be transparent
- logged out and back in - no applets were crashing
- opened the properties dialog for the top panel
- moved the transparency slider very fast back and forth a few times - no crashes
- repeated the same test with the slider for the bottom panel - no crashes

All good, the applet crashes don't happen anymore.

tags: added: verification-done verification-done-zesty
removed: verification-needed verification-needed-zesty
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mate-panel - 1.18.1-0ubuntu2.1

---------------
mate-panel (1.18.1-0ubuntu2.1) zesty; urgency=medium

  * Added patches:
    + fix-transparent-panel-crashes.patch - fixes occasional crashes
      when the panel is transparent (LP: #1675888)
    + fix-crash-on-empty-icon-field.patch - fixes crashes when some
      .desktop file has empty Icon field (LP: #1676840)
    + fix-file-folder-launchers.patch - makes file/folder launchers
      work again (LP: #1690517)
    + fix-crash-on-unknown-signals.patch - fixes tray area crashes
      on unknown signals from apps using indicators (LP: #1695648)

 -- Vlad Orlov <email address hidden> Mon, 06 Nov 2017 20:44:51 +0300

Changed in mate-panel (Ubuntu Zesty):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for mate-panel 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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.