software-center crashed with signal 5 in _XReadEvents()

Bug #1211887 reported by Ken
446
This bug affects 54 people
Affects Status Importance Assigned to Milestone
Webkit
Fix Released
Medium
software-center (Ubuntu)
Invalid
High
Unassigned
Saucy
Invalid
High
Unassigned
webkit (Ubuntu)
Invalid
High
Unassigned
Saucy
Fix Released
High
Unassigned
webkitgtk (Ubuntu)
Fix Released
High
Unassigned
Saucy
Invalid
High
Unassigned

Bug Description

* Impact: software-center hits Xerrors quite often

* Test case:
run software-center, it should be stable (or watch the error buckets on https://errors.ubuntu.com/problem/94f7beb32c9a9172de3f9281691510762d655d47)

* Regression potential:
check that webkit clients are stable (software-center, epiphany-browser, yelp, empathy...)

----------

Everytime I open software centre after about 30 sec. it crashes
Terminal output
kenn@kenn-520-1138cb:~$ software-center
/usr/lib/python2.7/dist-packages/gi/types.py:226: RuntimeWarning: Mixin class softwarecenter.ui.gtk3.widgets.stars.StarRenderer is an old style class, please update this to derive from "object".
  RuntimeWarning)
/usr/lib/python2.7/dist-packages/gi/types.py:226: RuntimeWarning: Mixin class softwarecenter.ui.gtk3.widgets.stars.ShapeStar is an old style class, please update this to derive from "object".
  RuntimeWarning)
2013-08-13 13:18:59,709 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-08-13 13:19:00,402 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2013-08-13 13:19:00,403 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2013-08-13 13:19:00,407 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/gi/importer.py', 51, 'find_module')'
2013-08-13 13:19:00,407 - root - ERROR - Could not find any typelib for LaunchpadIntegration
2013-08-13 13:19:00,438 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()

(software-center:15225): Gdk-ERROR **: The program 'software-center' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 3604 error_code 9 request_code 62 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
kenn@kenn-520-1138cb:~$

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: software-center 13.08-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-1.4-generic 3.11.0-rc4
Uname: Linux 3.11.0-1-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.12-0ubuntu3
Architecture: amd64
CrashCounter: 1
Date: Tue Aug 13 12:55:55 2013
ExecutablePath: /usr/share/software-center/software-center
InstallationDate: Installed on 2013-07-10 (33 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130709)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
Signal: 5
SourcePackage: software-center
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 _XReadEvents () from /usr/lib/x86_64-linux-gnu/libX11.so.6
 ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
 cairo_surface_flush () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
Title: software-center crashed with signal 5 in _XReadEvents()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Ken (ken3-burtinsky) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 _cairo_xlib_shm_surface_flush (abstract_surface=0x42535e0, flags=<optimized out>) at /build/buildd/cairo-1.12.14/src/cairo-xlib-surface-shm.c:696
 INT_cairo_surface_flush (surface=0x42535e0) at /build/buildd/cairo-1.12.14/src/cairo-surface.c:1510
 _cairo_xlib_surface_discard_shm (surface=surface@entry=0x59cb8a0) at /build/buildd/cairo-1.12.14/src/cairo-xlib-surface.c:369
 _cairo_xlib_surface_finish (abstract_surface=0x59cb8a0) at /build/buildd/cairo-1.12.14/src/cairo-xlib-surface.c:401
 _cairo_surface_finish (surface=0x59cb8a0) at /build/buildd/cairo-1.12.14/src/cairo-surface.c:1007

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 software-center (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in software-center (Ubuntu):
status: New → Confirmed
tags: added: bugpattern-needed
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1211887

tags: added: iso-testing
information type: Private → Public
Revision history for this message
In , Sebastien Bacher (seb128) wrote :
Download full text (33.8 KiB)

The issue has been reported on https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1211887

The bug and duplicates don't have specific steps to reproduce, that's happening with software-center which is a python-webkit user. The webkit version is 1.10.2 but webkit2 updates seem to have similar issues

"#0 0x00007fe1520211f9 in g_logv (log_domain=0x7fe14fd95d46 "Gdk", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fff7b1b15c8) at /build/buildd/glib2.0-2.37.5/./glib/gmessages.c:989
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x7fe152020990 <g_log_default_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = 0
        test_level = <optimized out>
        was_fatal = <optimized out>
        was_recursion = <optimized out>
        msg = 0x4514600 "The program 'software-center' received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was 'BadDrawable (invalid Pixmap or Window parameter)'.\n (Details: serial 3589 "...
        msg_alloc = 0x4514600 "The program 'software-center' received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was 'BadDrawable (invalid Pixmap or Window parameter)'.\n (Details: serial 3589 "...
        i = 2
#1 0x00007fe152021342 in g_log (log_domain=log_domain@entry=0x7fe14fd95d46 "Gdk", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x7fe14fda1a08 "%s") at /build/buildd/glib2.0-2.37.5/./glib/gmessages.c:1025
        args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7fff7b1b16a0, reg_save_area = 0x7fff7b1b15e0}}
#2 0x00007fe14fd74970 in _gdk_x11_display_error_event (display=display@entry=0x24240c0, error=error@entry=0x7fff7b1b1760) at /build/buildd/gtk+3.0-3.8.2/./gdk/x11/gdkdisplay-x11.c:2556
        buf = "BadDrawable (invalid Pixmap or Window parameter)", '\000' <repeats 15 times>
        msg = <optimized out>
        display_x11 = 0x24240c0
        tmp_list = <optimized out>
        ignore = 0
#3 0x00007fe14fd7f321 in gdk_x_error (xdisplay=0x2416b00, error=0x7fff7b1b1760) at /build/buildd/gtk+3.0-3.8.2/./gdk/x11/gdkmain-x11.c:303
        error_display = 0x24240c0
        manager = <optimized out>
        displays = 0x0
        error = 0x7fff7b1b1760
        xdisplay = 0x2416b00
#4 0x00007fe14f829b9b in _XError (dpy=dpy@entry=0x2416b00, rep=rep@entry=0x43fc520) at ../../src/XlibInt.c:1581
        rtn_val = <optimized out>
        event = {type = 0, xany = {type = 0, serial = 37841664, send_event = 62914834, display = 0xe05, window = 33570313}, xkey = {type = 0, serial = 37841664, send_event = 62914834, display = 0xe05, window = 33570313, root = 140605681420488, subwindow = 0, time = 45003616, x = 806187680, y = 32737, x_root = 678147232, y_root = 32737, state = 37841664, keycode = 0, same_screen = 1408724085}, xbutton = {type = 0, serial = 37841664, send_event = 62914834, display = 0xe05, window = 33570313, root = 140605681420488, subwindow = 0, time = 45003616, x = 806187680, y = 32737, x_root = 678147232, y_root = 32737, state = 37841664, button = 0, same_screen = 1408724085}, xmotion = {type = 0, serial = 37841664, send_e...

Changed in software-center (Ubuntu):
importance: Medium → High
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in webkit:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Doug McMahon (mc3man) wrote :

Crashes here only when trying to open to the default "All Software" window, otherwise is ok. The "All Software" can be opened if not the first or second action

Start from terminal on an app, Ex.

 software-center gedit

After it opens click on little arrow to the right of "All Software" icon, from the dropdown pick anything, "Provided by Ubuntu" will do.
After that opens then, if desired, you can click on the "All Software" icon to go to the main page.

tags: added: trusty
Revision history for this message
In , Sebastien Bacher (seb128) wrote :

Created attachment 218591
stacktrace of the issue, using GDK_SYNCHRONIZE=1

That's a stracktrace collected using GDK_SYNCHRONIZE=1 and b gdk_x_error

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

(the new stacktace is from webkit 2.3.2 ... those issues started in Ubuntu in 13.10, or we didn't change cairo or webkit that cycle, could it be a GTK issue? (we updated from 3.6 to 3.8 in the cycle where reports started))

Revision history for this message
In , Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

There is a tentative patch that I've uploaded to the desktop ppa for trusty, https://launchpad.net/~ubuntu-desktop/+archive/ppa ... if somebody having the issue could try the fix there that would be great

Changed in software-center (Ubuntu Saucy):
importance: Undecided → High
status: New → Triaged
Changed in software-center (Ubuntu):
status: Confirmed → In Progress
Changed in software-center (Ubuntu Saucy):
status: Triaged → In Progress
Revision history for this message
In , Gns-m (gns-m) wrote :

Created attachment 218656
Patch

Revision history for this message
In , Gns-m (gns-m) wrote :

I could not reproduce this with WebKit master and cairo 1.12.16, it looks from the trace like resizing the window should be enough to trigger it, but that is not enough in GtkLauncher/MiniBrowser. Nevertheless, this should fix it.

Revision history for this message
In , Gns-m (gns-m) wrote :
Changed in webkit:
status: New → Fix Released
Revision history for this message
In , Sebastien Bacher (seb128) wrote :

Created attachment 218742
new stacktrace of the issue

That's still an issue, could somebody reopen? :/

That's the change tested
https://launchpadlibrarian.net/158610191/webkitgtk_2.3.2-1ubuntu2_2.3.2-1ubuntu3~build1.diff.gz

software-center still hits the Xerror on start, new bt joined, it looks the same

Revision history for this message
Sebastien Bacher (seb128) wrote :

seems like the fix is not enough, upstream is working on other changes

Revision history for this message
Sebastien Bacher (seb128) wrote :

webkitgtk (2.3.2-1ubuntu4) trusty; urgency=low

  * debian/patches/bugzilla_clear_surface.patch:
    - updated version of the change, should fix the software-center Xerrors
      reports. Thanks Benjamin Otte for the work on the issue
      (lp: #1211887)

Changed in webkitgtk (Ubuntu):
importance: Undecided → High
status: New → Fix Released
Changed in webkitgtk (Ubuntu Saucy):
status: New → Invalid
importance: Undecided → High
Changed in webkit (Ubuntu):
status: New → Invalid
Changed in webkit (Ubuntu Saucy):
importance: Undecided → High
status: New → In Progress
Changed in webkit (Ubuntu):
importance: Undecided → High
Changed in software-center (Ubuntu):
status: In Progress → Invalid
Changed in software-center (Ubuntu Saucy):
status: In Progress → Invalid
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

Sebastien - I don't actually see this fix in Trusty, but I'll approve the Saucy SRU anyway with the understanding that you'll sort out Trusty before we can release the Saucy SRU.

Changed in webkit (Ubuntu Saucy):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ken, or anyone else affected,

Accepted webkit into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/webkit/1.10.2-0ubuntu3 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 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 to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. 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!

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Brian: webkit has been renamed webkitgtk in trusty, see https://launchpad.net/ubuntu/+source/webkitgtk/2.3.2-1ubuntu4

Revision history for this message
Ross Younger (crazyscot) wrote :

On my saucy box, I installed gir1.2-javascriptcoregtk-3.0 and gir1.2-webkit-3.0 version 1.10.2-0ubuntu3 from proposed.
I am happy to report that that resolved the issue for me.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Stéphane Graber (stgraber) wrote : Update Released

The verification of this Stable Release Update 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 regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webkit - 1.10.2-0ubuntu3

---------------
webkit (1.10.2-0ubuntu3) saucy; urgency=low

  * debian/patches/bugzilla_clear_surface.patch:
    - correctly clear the surfaces, should fix the software-center Xerrors
      reports. Thanks Benjamin Otte for the work on the issue
      (lp: #1211887)
 -- Sebastien Bacher <email address hidden> Thu, 12 Dec 2013 10:40:49 +0100

Changed in webkit (Ubuntu Saucy):
status: Fix Committed → Fix Released
Revision history for this message
In , Alberto Garcia (berto) wrote :

(In reply to comment #7)
> That's still an issue, could somebody reopen? :/

Hey, is this still crashing with webkit 2.4.x? Please confirm and I'll reopen the bug.

Revision history for this message
In , Jeremy Bícha (jbicha) wrote :

(In reply to comment #8)
> Hey, is this still crashing with webkit 2.4.x? Please confirm and I'll
> reopen the bug.

I wasn't able to reproduce this bug with WebKit 2.4.11 so I dropped the patch from Ubuntu 16.10 "yakkety" today. We'll let you know if it ends up that the patch was needed after all.

To post a comment you must log in.