python2.7 assert failure: python: /build/buildd/cairo-1.10.2/src/cairo-surface.c:614: cairo_surface_reference: asserzione \"((*&(&surface->ref_count)->ref_count) > 0)\" non riuscita.

Bug #959570 reported by Davide Depau
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BashKaraoke
In Progress
High
Davide Depau
pycairo (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

I was trying my program with python. In this program I use GTK3 (gi.repository.Gtk), and I have a Glade interface, with a spinner. I looked for a method to start the spinner, and I found Gtk.Spinner().start(). I added the line in the program, and the problem occurred. This is the stdout:

python: /build/buildd/cairo-1.10.2/src/cairo-surface.c:614: cairo_surface_reference: asserzione "((*&(&surface->ref_count)->ref_count) > 0)" non riuscita.
Annullato (core dump creato)

Translation to English:
python: /build/buildd/cairo-1.10.2/src/cairo-surface.c:614: cairo_surface_reference: assertion "((*&(&surface->ref_count)->ref_count) > 0)" failed.
Canceled (core dump created).

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: python2.7-minimal 2.7.3~rc1-1ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
AssertionMessage: python: /build/buildd/cairo-1.10.2/src/cairo-surface.c:614: cairo_surface_reference: asserzione \"((*&(&surface->ref_count)->ref_count) > 0)\" non riuscita.
CheckboxSubmission: 491d231809a79db91e50777815c1b601
CheckboxSystem: b845c366ea09c60efa3a45c1b5b21525
Date: Mon Mar 19 19:09:28 2012
ExecutablePath: /usr/bin/python2.7
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcCmdline: python bashkaraoke-gtk-new.py
Signal: 6
SourcePackage: python2.7
StacktraceTop:
 __assert_fail_base (fmt=<optimized out>, assertion=0x7f92c05365b0 "((*&(&surface->ref_count)->ref_count) > 0)", file=0x7f92c0536580 "/build/buildd/cairo-1.10.2/src/cairo-surface.c", line=<optimized out>, function=<optimized out>) at assert.c:94
 __GI___assert_fail (assertion=0x7f92c05365b0 "((*&(&surface->ref_count)->ref_count) > 0)", file=0x7f92c0536580 "/build/buildd/cairo-1.10.2/src/cairo-surface.c", line=614, function=0x7f92c0536940 "cairo_surface_reference") at assert.c:103
 cairo_surface_reference () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
 ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
 ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
Title: python2.7 assert failure: python: /build/buildd/cairo-1.10.2/src/cairo-surface.c:614: cairo_surface_reference: asserzione \"((*&(&surface->ref_count)->ref_count) > 0)\" non riuscita.
UpgradeStatus: Upgraded to precise on 2012-02-16 (31 days ago)
UserGroups: adm admin cdrom debian-tor dialout lpadmin plugdev sambashare vboxusers

Revision history for this message
Davide Depau (depau) wrote :
Revision history for this message
Davide Depau (depau) wrote :
Revision history for this message
Davide Depau (depau) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __assert_fail_base (fmt=<optimized out>, assertion=0x7f92c05365b0 "((*&(&surface->ref_count)->ref_count) > 0)", file=0x7f92c0536580 "/build/buildd/cairo-1.10.2/src/cairo-surface.c", line=<optimized out>, function=<optimized out>) at assert.c:94
 __GI___assert_fail (assertion=0x7f92c05365b0 "((*&(&surface->ref_count)->ref_count) > 0)", file=0x7f92c0536580 "/build/buildd/cairo-1.10.2/src/cairo-surface.c", line=614, function=0x7f92c0536940 "cairo_surface_reference") at assert.c:103
 cairo_surface_reference (surface=<optimized out>) at /build/buildd/cairo-1.10.2/src/cairo-surface.c:614
 cairo_surface_reference (surface=<optimized out>) at /build/buildd/cairo-1.10.2/src/cairo-surface.c:608
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in python2.7 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Davide Depau (depau)
Changed in bashkaraoke:
assignee: nobody → Davide Depau (davidedepau1996)
importance: Undecided → Critical
importance: Critical → High
Davide Depau (depau)
visibility: private → public
Revision history for this message
Davide Depau (depau) wrote :

Problem solved by upgrading to python3.2

Changed in bashkaraoke:
status: New → Fix Committed
importance: High → Undecided
importance: Undecided → High
Matthias Klose (doko)
affects: python2.7 (Ubuntu) → pycairo (Ubuntu)
Davide Depau (depau)
Changed in bashkaraoke:
status: Fix Committed → In Progress
Revision history for this message
Davide Depau (depau) wrote :

New similar errors...
I'll try to remove the spinner, run the program again and see if it works. Please look the following file for programming errors:
http://bazaar.launchpad.net/~bashkaraoke-dev/bashkaraoke/bashkaraoke-gtk/view/head:/src/bashkaraoke-gtk-new.py

ERRORS:
(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed

(bashkaraoke-gtk-new.py:407): Gtk-CRITICAL **: _gtk_css_value_ref: assertion `value != NULL' failed
Errore di segmentazione (core dump creato)

-------------------------------------------------------------------------------------------------------------------------------------

(bashkaraoke-gtk-new.py:15205): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Ubuntu Light 60', text=''

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_layout_is_wrapped: assertion `layout != NULL' failed

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_layout_is_ellipsized: assertion `layout != NULL' failed
/usr/lib/python2.7/dist-packages/gi/types.py:43: Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
  return info.invoke(*args, **kwargs)

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_layout_get_context: assertion `layout != NULL' failed

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_context_get_language: assertion `context != NULL' failed

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_context_get_metrics: assertion `PANGO_IS_CONTEXT (context)' failed

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_font_metrics_get_ascent: assertion `metrics != NULL' failed

(bashkaraoke-gtk-new.py:15205): Pango-CRITICAL **: pango_font_metrics_get_descent: assertion `metrics != NULL' failed

Revision history for this message
Davide Depau (depau) wrote :

Another one:

(bashkaraoke-gtk-new.py:4417): Gdk-WARNING **: The program 'bashkaraoke-gtk-new.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 3962 error_code 1 request_code 0 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.)

Revision history for this message
Boyuan Yang (hosiet) wrote :

Since the support of Ubuntu 12.04 LTS has completely ended, I am closing this bug and marking it as incomplete.

Changed in pycairo (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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