Firefox crashes on trying to print

Bug #203019 reported by Jeremy Nickurak
32
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Invalid
Undecided
Unassigned
xulrunner-1.9 (Ubuntu)
Invalid
Undecided
Mozilla Bugs

Bug Description

Binary package hint: firefox

Firefox version 3.0~b4+nobinonly-0ubuntu1

When attempting to print, firefox crashes, outputting to the terminal:

612.000000 792.000000
48960 63360
firefox: /build/buildd/cairo-1.5.12/src/cairo-ps-surface.c:2993: _cairo_ps_surface_fill: Assertion `_cairo_ps_surface_operation_supported (surface, op, source)' failed.
Aborted

To reproduce, open any page, select File:Print, select either the print-to-file or print-to-pdf options, and hit print. A dialog pops up saying "Preparing", and firefox closes shortly afterward.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, your crash report is either missing or challenging to deal with as a ".crash" file. Please follow these instuctions to have apport report a new bug about your crash that can be dealt with by the automatic retracer.

If you are using Ubuntu with the Gnome desktop environment - launch nautilus and navigate to your /var/crash directory and double click on the crash report you wish to submit.

I'm closing this bug report since the process outlined above will automatically open a new bug report which can then dealt with more efficiently. Thanks in advance for your cooperation and understanding.

Changed in firefox:
status: New → Invalid
Revision history for this message
foxy123 (foxy) wrote :

I can confirm this report. I've got the same message on Xubuntu 8.04. PLease note that there is no crash report available in /var/crash though the firefox crashed a few times for me while I tried to print.

Revision history for this message
Thomas Novin (thomasn80) wrote :

Changing from Invalid to New because I also have this problem. I can see no crash reports in /var/crash.

Changed in firefox:
status: Invalid → New
Revision history for this message
Michael Blakeley (mike+ubuntu) wrote :
Download full text (3.4 KiB)

This crash is 100% reproducible for me in hardy Kubuntu and Ubuntu, by trying to print an "E-Receipt" at http://united.com/. It doesn't matter if I print to a printer, or to a pdf file (except that the pdf error is "cairo_pdf_surface_operation_supported" instead of "...ps_surface..."). Running Firefox with -safe-mode does not help. I don't get a crash report (neither apport nor the gecko crash assistant, nothing in /var/crash).

$ lsb_release -rd
Description: Ubuntu hardy (development branch)
Release: 8.04
$ apt-show-versions | grep firefox
firefox/hardy uptodate 3.0~b5~rc2+nobinonly-0ubuntu1~fta2
firefox-gnome-support/hardy uptodate 3.0~b5~rc2+nobinonly-0ubuntu1~fta2
firefox-dom-inspector/hardy uptodate 3.0~b5~rc2+nobinonly-0ubuntu1~fta2
firefox-2/hardy uptodate 2.0.0.13+1nobinonly-0ubuntu1
firefox-3.0-gnome-support/hardy uptodate 3.0~b5~rc2+nobinonly-0ubuntu1~fta2
firefox-3.0/hardy uptodate 3.0~b5~rc2+nobinonly-0ubuntu1~fta2
firefox-2-dom-inspector/hardy uptodate 2.0.0.13+1nobinonly-0ubuntu1
firefox-3.0-dom-inspector/hardy uptodate 3.0~b5~rc2+nobinonly-0ubuntu1~fta2
$ apt-show-versions | grep cairo
libcairo2-dbg/hardy uptodate 1.5.14-0ubuntu2
python-cairo/hardy uptodate 1.4.0-2ubuntu2
libcairo-perl/hardy uptodate 1.043-1
libcairo2/hardy uptodate 1.5.14-0ubuntu2
libcairomm-1.0-1/hardy uptodate 1.4.2-1
libmono-cairo1.0-cil/hardy uptodate 1.2.6+dfsg-6ubuntu3

I tried installing the libcairo2-dbg package, but gdb still shows a pretty sparse stack trace:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f99482b96f0 (LWP 27386)]
---Type <return> to continue, or q <return> to quit---
0x00007f99471d20e5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007f99471d20e5 in raise () from /lib/libc.so.6
#1 0x00007f99471d3b40 in abort () from /lib/libc.so.6
#2 0x00007f99471cb42f in __assert_fail () from /lib/libc.so.6
#3 0x00007f9943fe2ed7 in ?? () from /usr/lib/libcairo.so.2
#4 0x00007f9943fd0a5c in ?? () from /usr/lib/libcairo.so.2
#5 0x00007f9943fd9f3f in ?? () from /usr/lib/libcairo.so.2
#6 0x00007f9943fe4c16 in ?? () from /usr/lib/libcairo.so.2
#7 0x00007f9943fe6159 in ?? () from /usr/lib/libcairo.so.2
#8 0x00007f9943fd072a in cairo_surface_show_page ()
   from /usr/lib/libcairo.so.2
#9 0x00007f9943fdb8aa in ?? () from /usr/lib/libcairo.so.2
#10 0x00007f9943fd072a in cairo_surface_show_page ()
   from /usr/lib/libcairo.so.2
#11 0x00007f9945e2c811 in gfxPDFSurface::EndPage ()
   from /usr/lib/xulrunner-1.9b5/libxul.so
#12 0x00007f9945d57407 in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#13 0x00007f994581bc90 in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#14 0x00007f9945a5f42d in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#15 0x00007f9945a6236a in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#16 0x00007f9945df3a55 in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#17 0x00007f9945df3ef8 in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#18 0x00007f9945df1b92 in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#19 0x00007f9945dc6065 in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#20 0x00007f9945d49a4f in ?? () from /usr/lib/xulrunner-1.9b5/libxul.so
#21 0x00007f9945be6eff in ?? () from /usr/lib/xulrunner-1.9b5/l...

Read more...

Revision history for this message
John Vivirito (gnomefreak) wrote :

Its most likely not crashing but closing due to a cario error. Everyone please file seperate bug reports for your issues and attach strace of the problem. Is this on firefox-2 and 3 or 2 or 3?

Changed in firefox:
assignee: nobody → mozilla-bugs
status: New → Incomplete
Revision history for this message
Michael Blakeley (mike+ubuntu) wrote :
Revision history for this message
modred (bobanderson) wrote :

I'm having the same problem with Firefox beta 5 in Ubuntu Hardy with all updates. When printing to a PDF file, Firefox crashes in most (but not all) cases. If Firefox is run from a terminal, I get

noynac@dell:~$ firefox
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
<snip>
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
612.000000 792.000000
48960 63360
firefox: /build/buildd/cairo-1.5.14/src/cairo-ps-surface.c:2972: _cairo_ps_surface_fill: Assertion `_cairo_ps_surface_operation_supported (surface, op, source)' failed.
Aborted (core dumped)

There are no pertinent items in /var/crash

Revision history for this message
Thomas Novin (thomasn80) wrote :

John, for me it was Firefox 3 beta 4.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

I also get this in Epiphany.

Revision history for this message
Thomas Novin (thomasn80) wrote :

I cannot reproduce this any longer. Printing works fine on both my computers running Hardy. I can print both to PDF and to installed printers.

Revision history for this message
hsJc (hongshaojichi) wrote :

I can confirm this. But I think it depends on what website you print.

newegg.com and map.google.com have been failing me all the time.

Revision history for this message
clarezoe (clarezoe) wrote :

I confirm this. I'm can't print any page, even a page from my hard drive. I'm using FF 3.0 b5
It crashes without any information, even not restart.

Revision history for this message
clarezoe (clarezoe) wrote :

/usr/lib/firefox-3.0b5/firefox: symbol lookup error: /usr/lib/xulrunner-1.9b5/libxul.so: undefined symbol: cairo_ps_surface_restrict_to_level

Btw, this is what I got from the terminal

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

cairo_ps_surface_restrict_to_level is new for cairo 1.6. This would suggest that XULRunner is using its own version of cairo again, and its not one with that new API.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

This is an XR thing.

Changed in firefox:
status: New → Invalid
Revision history for this message
Jonathan-David Schroder (myselfhimself) wrote :

Hi,
I have kubuntu hardy heron 8.04 on an x86_32 with :
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5

* firefox doesn't crash when clicking the print button from the printing dialog _in the case firefox was run from the program named konsole_ ! and the printing then goes well. (pdf & normal printer) There's nothing interesting in the console, this appears when a print job is sent : 612.000000 792.000000
48960 63360. And that's all I can say about output (I'm speaking about the case when firefox doesn't crash here).

* Firefox does crash for any page when trying to print (printing dialog to choose the print type etc... does show up though), when not run from konsole (I use alt+f2 and katapult)
After a crash, about:crashes gives an OK dialog with the text "The URL is not valid and cannot be loaded.", so I cannot see any info about crashes.

Revision history for this message
José Bolorino (bolorino) wrote :

Hi,
Ubuntu Hardy Heron 8.04 x86-32 here and same error.

I get this through dmesg:
[ 6209.382994] audit(1209835041.786:3): type=1503 operation="capable" name="dac_override" pid=11620 profile="/usr/lib/cups/backend/cups-pdf" namespace="default"
[ 6209.383001] audit(1209835041.786:4): type=1503 operation="capable" name="dac_read_search" pid=11620 profile="/usr/lib/cups/backend/cups-pdf" namespace="default"

There is no crash report on /var/crash

Printing to a PDF file seems to fail on SSL web pages.
I've tried printing a paypal SSL page and this one as well:
https://bugs.launchpad.net/ubuntu/+source/xulrunner-1.9/+bug/203019

bolorino@trantor:~$ firefox &
[1] 11861
bolorino@trantor:~$ ** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
GCJ PLUGIN: thread 0x805e130: NP_GetMIMEDescription
GCJ PLUGIN: thread 0x805e130: NP_GetMIMEDescription return
GCJ PLUGIN: thread 0x805e130: NP_GetValue
GCJ PLUGIN: thread 0x805e130: NP_GetValue: returning plugin name.
GCJ PLUGIN: thread 0x805e130: NP_GetValue return
GCJ PLUGIN: thread 0x805e130: NP_GetValue
GCJ PLUGIN: thread 0x805e130: NP_GetValue: returning plugin description.
GCJ PLUGIN: thread 0x805e130: NP_GetValue return
612,000000 792,000000
48960 63360
612,000000 792,000000
48960 63360
[1]+ Fallo de segmentación firefox ("Segmentation fault")

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 203019] Re: Firefox crashes on trying to print

On Sat, May 03, 2008 at 05:36:30PM -0000, Jose Bolorino wrote:
> Hi,
> Ubuntu Hardy Heron 8.04 x86-32 here and same error.
>
> I get this through dmesg:
> [ 6209.382994] audit(1209835041.786:3): type=1503 operation="capable" name="dac_override" pid=11620 profile="/usr/lib/cups/backend/cups-pdf" namespace="default"
> [ 6209.383001] audit(1209835041.786:4): type=1503 operation="capable" name="dac_read_search" pid=11620 profile="/usr/lib/cups/backend/cups-pdf" namespace="default"
>
> There is no crash report on /var/crash

 status incomplete

Please get a backtrace by installing xulrunner-1.9-dbgsym and
firefox-3.0-dbgsym package. the apt lines you need are on
https://wiki.ubuntu.com/DebuggingProgramCrash.

if dbgsym packages are installed, run:

 gdb /usr/lib/firefox-3.0/firefox 2>&1 | tee /tmp/gdb.log.txt
...
 (gdb) run

then reproduce and type

 (gdb) bt
 ...
 (gdb) bt full

_after reproducing the crash.

 - Alexander

Changed in firefox:
status: Invalid → Incomplete
Revision history for this message
José Bolorino (bolorino) wrote :

Thank you for the info.
I have xulrunner-1.9~b5+nobinonly-0ubuntu4~8.04.0mt1 installed but xulrunner-1.9-dbgsym is 1.9~a8-0ubuntu2 so I cannot install it.
Trying to find how to resolve the dependence to get a backtrace.

Revision history for this message
Alexander Sack (asac) wrote :

On Fri, May 09, 2008 at 03:14:56PM -0000, Jose Bolorino wrote:
> Thank you for the info.
> I have xulrunner-1.9~b5+nobinonly-0ubuntu4~8.04.0mt1 installed but xulrunner-1.9-dbgsym is 1.9~a8-0ubuntu2 so I cannot install it.
> Trying to find how to resolve the dependence to get a backtrace.
>

you might have to add hardy-updates to your apt lines for the dbgsym
packages.

 - Alexander

Revision history for this message
maxfact (maxfact12) wrote :

I apologize me for my English but I have the same problem
this is the output from terminal:

symbol lookup error: /usr/lib/xulrunner-1.9b5/libxul.so: undefined symbol: cairo_ps_surface_restrict_to_level

Revision history for this message
Alexander Sack (asac) wrote :

On Tue, May 13, 2008 at 05:36:41PM -0000, maxfact wrote:
> I apologize me for my English but I have the same problem
> this is the output from terminal:
>
> symbol lookup error: /usr/lib/xulrunner-1.9b5/libxul.so: undefined
> symbol: cairo_ps_surface_restrict_to_level
>

please provide the output of running

 nm -D /usr/lib/libcairo.so | grep restrict_to

Thanks!

 status incomplete

 - Alexander

Revision history for this message
Alexander Sack (asac) wrote :

On Tue, May 13, 2008 at 05:36:41PM -0000, maxfact wrote:
> I apologize me for my English but I have the same problem
> this is the output from terminal:
>
> symbol lookup error: /usr/lib/xulrunner-1.9b5/libxul.so: undefined
> symbol: cairo_ps_surface_restrict_to_level
>

please provide the output of running

$ nm -D /usr/lib/libcairo.so | grep restrict_to

 - Alexander

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

I have the same problem

Here is my printout

$ nm -D /usr/lib/libcairo.so | grep restrict_to
0002dd10 T cairo_ps_surface_restrict_to_level
0003d140 T cairo_svg_surface_restrict_to_version

Revision history for this message
maxfact (maxfact12) wrote :

I apologize me for the delay
this is output :
max@max-desktop:~$ nm -D /usr/lib/libcairo.so | grep restrict_to
0002dd10 T cairo_ps_surface_restrict_to_level
0003d140 T cairo_svg_surface_restrict_to_version

Revision history for this message
Alexander Sack (asac) wrote :

On Thu, May 15, 2008 at 10:49:08AM -0000, maxfact wrote:
> I apologize me for the delay
> this is output :
> max@max-desktop:~$ nm -D /usr/lib/libcairo.so | grep restrict_to
> 0002dd10 T cairo_ps_surface_restrict_to_level
> 0003d140 T cairo_svg_surface_restrict_to_version
>

But you still see this issue, right?

 - Alexander

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

> On Thu, May 15, 2008 at 10:49:08AM -0000, maxfact wrote:
>> I apologize me for the delay
>> this is output :
>> max@max-desktop:~$ nm -D /usr/lib/libcairo.so | grep restrict_to
>> 0002dd10 T cairo_ps_surface_restrict_to_level
>> 0003d140 T cairo_svg_surface_restrict_to_version
>>
>
> But you still see this issue, right?
>
> - Alexander
>
> --
> Firefox crashes on trying to print
> https://bugs.launchpad.net/bugs/203019
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Yes I do and it is really starting to annoy me... I can't print anything!

I hope it can be fixed soon

Revision history for this message
Alexander Sack (asac) wrote :

On Mon, May 26, 2008 at 05:04:19PM -0000, ppmt wrote:
> > On Thu, May 15, 2008 at 10:49:08AM -0000, maxfact wrote:
> >> I apologize me for the delay
> >> this is output :
> >> max@max-desktop:~$ nm -D /usr/lib/libcairo.so | grep restrict_to
> >> 0002dd10 T cairo_ps_surface_restrict_to_level
> >> 0003d140 T cairo_svg_surface_restrict_to_version
> >>
> >
> > But you still see this issue, right?
> >
> > - Alexander
> >
> >
> Yes I do and it is really starting to annoy me... I can't print anything!
>
> I hope it can be fixed soon
>

If you can reproduce this easily, please run firefox like:

 strace -f -eopen firefox &> /tmp/ffox.log.txt

reproduce the crash and attach the /tmp/ffox.log.txt file to this bug
report.

Thanks!

 status incomplete

 - Alexander

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

Hi,

I can reproduce this indeed very easily... Anything I try to print causes the crash..

I attach the fiel you requested above. Let me know if you need more

Revision history for this message
Alan (mrintegrity) wrote :

Happens here too using print to pdf when i try to print online checkin pass for ryanair.. very inconvenient! firefox 3.0B5

Revision history for this message
Alexander Sack (asac) wrote :

On Sun, Jun 01, 2008 at 12:21:43AM -0000, ppmt wrote:
> Hi,
>
> I can reproduce this indeed very easily... Anything I try to print
> causes the crash..
>
> I attach the fiel you requested above. Let me know if you need more
>
> ** Attachment added: "printout from strace -f -eopen firefox &"
> http://launchpadlibrarian.net/14872790/ffox.log.txt
>

You have an oldish cairo in /usr/local/:

open("/usr/lib/libpangocairo-1.0.so.0", O_RDONLY) = 4
open("/usr/local/lib/libcairo.so.2", O_RDONLY) = 4
open("/usr/lib/libpangoft2-1.0.so.0", O_RDONLY) = 4
open("/usr/lib/libpango-1.0.so.0", O_RDONLY) = 4

take care that nothing else from there pops up in the strace and then
see if you still have this.

Anyone else sees this crash _without_

 /usr/lib/firefox-3.0b5/firefox: symbol lookup error: /usr/lib/xulrunner-1.9b5/libxul.so: undefined symbol: cairo_ps_surface_restrict_to_level

on the console? If so, please open a new bug and drop the new bug id here.

 affects ubuntu/xulrunner-1.9
 status incomplete

 - Alexander

Revision history for this message
Thomas Novin (thomasn80) wrote :

firefox 3.0~rc1+nobinonly-0ubuntu0.8.04.1 is available, if you upgrade to all the latest updates so you have it installed, is this still an issue? I haven't seen it for a long time.

You might need to activate hardy-proposed to get this update if you don't wait for a couple of days.

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

Alexander Snack: THANK YOU VERY MUCH!!!!

Sorry for the shooting... This cairo librairy /usr/local/lib was created for another program I use (cairo-dock) in an attempt to activate glitz
It never work and I didn't remember to remove as I thought it wasn't used !!

I have now removed and can now report successful printing...

Thanks again.

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

sorry for misspelling you family name Alexander :( my apologies

Revision history for this message
Alexander Sack (asac) wrote :

On Mon, Jun 02, 2008 at 11:43:29PM -0000, ppmt wrote:
> sorry for misspelling you family name Alexander :( my apologies
>

no prob

 affects ubuntu/xulrunner-1.9
 status invalid

 affects ubuntu/firefox
 status invalid

 - Alexander

Changed in firefox:
status: Incomplete → Invalid
Changed in xulrunner-1.9:
status: Incomplete → Invalid
Revision history for this message
neymac (neymac) wrote :

I have the same problem here.
Firefox 3.0
Ubuntu (gnome)

With Opera I can print to PDF, but with Firefox 3.0 I got in terminal, after crash of firefox:

...la:~$ firefox
/usr/lib/firefox-3.0/firefox: symbol lookup error: /usr/lib/xulrunner-1.9/libxul.so: undefined symbol: cairo_ps_surface_restrict_to_level

Why is this bug still invalid?
There is something wrong, I can't print with Firefox 3.0, but I can with Opera.

Revision history for this message
neymac (neymac) wrote :

The result of
strace -f -eopen firefox &> /tmp/ffox.log.txt

Revision history for this message
neymac (neymac) wrote :

Alexander Sack ,

Thank you for your help.

My problem's cause is the same of ppmt's, I have an oldish version of cairo installed at /usr/local/lib and when I uninstalled that cairo version I can print with Firefox 3.
But as I need that old Cairo version to use cairo-dock with glitz, I decided give up Firefox 3 print job ( I'll use Opera to print internet staff).

Revision history for this message
FokkerCharlie (charlie-andrews) wrote :

Hi

I am having the same problem, after installing Cairo-Dock having problems printing from FF3 in HH. Could one of you guys post (or link to) a fix that worked for you? I am not sure about which cairo libraries are safe to remove using synaptic.

Cheers
Charlie

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

FokkerCharlie: How did you install Cairo-Dock? did you install Glitz as well?

if so that is your problem. Deinstall everything and next time you reinstall don't activate glitz!

Revision history for this message
FokkerCharlie (charlie-andrews) wrote :

Yes, thanks, ppmt. I had to re-install with glitz, then uninstall with glitz.

Fixed!
Charlie

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.