Internal error when printing using Cairo snapshot 1.9.x

Bug #594144 reported by Balucio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Unassigned
inkscape (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Inkscape crash after printing confirm. Exit with message "internal error"
I'm on ubuntu Lucid on mac bookpro:
Linux bsaul-macbookpro 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux
The printer is a PS color laser printer.

Tags: crash printing
Revision history for this message
Balucio (bsaul) wrote :
Revision history for this message
su_v (suv-lp) wrote :

> inkscape: /build/buildd/cairo-1.9.6/src/cairo-surface.c:365: _cairo_surface_begin_modification: Asserzione "! surface->finished" non riuscita.

The crash appears to happen in the (unstable) cairo snapshot 1.9.6 library - can you reproduce it when building Inkscape with the current stable version of Cairo 1.8.10 too?

(Note: IIRC that was the reason I revert the Cairo version (from testing 1.9.6 back to 1.8.8 at the time) used for my local builds on OS X 10.5.8)

Does every file produce this crash or can you attach one that does so we can try to reproduce it on other systems?

tags: added: crash printing
Revision history for this message
su_v (suv-lp) wrote :

> Assertion failed: (! surface->finished), function _cairo_surface_begin_modification, file cairo-surface.c, line 332.

was the error for the same crash in the print dialog (after calling 'Print Preview' IIRC) with Inkscape 0.47+devel r9033 built with and linked to cairo-devel (1.9.4) on OS X 10.5.8 (pulled from my archived log files).

Bug in cairo-devel or Inkscape?

Changed in inkscape:
status: New → Confirmed
su_v (suv-lp)
summary: - Internal error when printing on ubuntu 64bit
+ Internal error when printing on ubuntu 64bit (using Cairo snapshot
+ 1.9.6)
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → High
Revision history for this message
Balucio (bsaul) wrote : Re: [Bug 594144] Re: Internal error when printing on ubuntu 64bit

Tomorrow I try to use cairo 1.8.8 and make some tests.
The problem arise with all file and no one in particular.

Saul

Il 14/06/2010 16:21, ~suv ha scritto:
>> inkscape: /build/buildd/cairo-1.9.6/src/cairo-surface.c:365:
> _cairo_surface_begin_modification: Asserzione "! surface->finished" non
> riuscita.
>
> The crash appears to happen in the (unstable) cairo snapshot 1.9.6
> library - can you reproduce it when building Inkscape with the current
> stable version of Cairo 1.8.10 too?
>
> (Note: IIRC that was the reason I revert the Cairo version (from testing
> 1.9.6 back to 1.8.8 at the time) used for my local builds on OS X
> 10.5.8)
>
> Does every file produce this crash or can you attach one that does so we
> can try to reproduce it on other systems?
>
> ** Tags added: crash printing
>

Revision history for this message
su_v (suv-lp) wrote : Re: Internal error when printing on ubuntu 64bit (using Cairo snapshot 1.9.6)

Since you still have cairo 1.9.6 installed (which includes the tracing tool 'cairo-trace'), could you try to create a debug log using it as described in <http://www.cairographics.org/FAQ/#profiling>, and mentioned in Adrian Johnson's comments here in Inkscape's bug tracker: <https://bugs.launchpad.net/inkscape/+bug/427226/comments/7> or <https://bugs.launchpad.net/inkscape/+bug/168610/comments/37>, to help determining whether the error is in Inkscape or cairo?

Revision history for this message
Balucio (bsaul) wrote : Re: [Bug 594144] Re: Internal error when printing on ubuntu 64bit (using Cairo snapshot 1.9.6)

mmm... sorry I installed cairo from repo and not include this tools.
Saul

Il 14/06/2010 17:39, ~suv ha scritto:
> Since you still have cairo 1.9.6 installed (which includes the tracing
> tool 'cairo-trace'), could you try to create a debug log using it as
> described in<http://www.cairographics.org/FAQ/#profiling>, and
> mentioned in Adrian Johnson's comments here in Inkscape's bug tracker:
> <https://bugs.launchpad.net/inkscape/+bug/427226/comments/7> or
> <https://bugs.launchpad.net/inkscape/+bug/168610/comments/37>, to help
> determining whether the error is in Inkscape or cairo?
>
>

Revision history for this message
su_v (suv-lp) wrote : Re: Internal error when printing on ubuntu 64bit (using Cairo snapshot 1.9.6)

function _cairo_surface_begin_modification() was added in cairo snapshot 1.9.2
<http://lists.cairographics.org/archives/cairo-announce/2009-June/000127.html>

Add a generic cow-snapshotting framework [1]
committer Chris Wilson <email address hidden> 2009-06-02 14:13:47 (GMT)
commit cffb398f5a484000be458d04ef8f8bce3f6c7e3d (patch)
<http://cgit.freedesktop.org/cairo/commit/?id=cffb398f5a484000be458d04ef8f8bce3f6c7e3d>

[1] copy-on-write snapshot

Revision history for this message
Balucio (bsaul) wrote :

The printing function in Inkscape with cairo 1.8.10 from Lucid repo work very well.
Tanks

Revision history for this message
Neculai Dan Ciprian (enkumber) wrote :

how can I install cairo 1.8.10 . if i try to remove libcairo2 it tells me to uninstall almost all the programs ...

Revision history for this message
Balucio (bsaul) wrote :

Use force version in synaptic.
Saul

su_v (suv-lp)
summary: - Internal error when printing on ubuntu 64bit (using Cairo snapshot
- 1.9.6)
+ Internal error when printing using Cairo snapshot 1.9.x
Changed in inkscape (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue seems similar to bug #600622, the crash is fixed by a cairo change but upstream thinks there might still be an issue on the caller side so not closing this one as duplicate for now and letting the inkscape team make sure if there is a gtkprint or inkscape change still required or not

Revision history for this message
su_v (suv-lp) wrote :

from the release notes of Snapshot 1.9.12 (2010-07-12):
<quote>
Bugs fixes
----------

  https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622

    Inkscape was caught in the act of attempting to modify a finished surface.
    Unfortunately, we had the ordering of our guards and assertions wrong and
    so an ordinary application error was triggering an assert in Cairo. This
    lead Benjamin to add a test case to ensure that the entire public API
    could handle erroneous input and then proceeded to fix a whole slew of
    uncovered bugs.
</quote>
<http://lists.cairographics.org/archives/cairo-announce/2010-July/000160.html>

Revision history for this message
ScislaC (scislac) wrote :

Confirmed fixed w/ cairo 1.9.12

Revision history for this message
su_v (suv-lp) wrote :

Sebastien Bacher wrote on 2010-07-05:
> (…) letting the inkscape team make sure if there is
> a gtkprint or inkscape change still required or not

As confirmed by ScislaC the crash no longer happens in Inkscape with cairo 1.9.12.

Linking as duplicate to bug #600622 in cairo (Ubuntu): “inkscape assert failure: inkscape: /build/buildd/cairo-1.9.10/src/cairo-surface.c:337: _cairo_surface_begin_modification: Assertion `! surface->finished' failed.”
<https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622>

Please add a comment here and revert the duplicate status if you don't agree or if the crash reoccurs with newer cairo snapshots and needs to be addressed in Inkscape's sources as well.

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

Other bug subscribers

Bug attachments

Remote bug watches

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