Share

gerbv -- a Gerber (RS-274X) viewer

Tracker: Bugs

5 Gerbv exits on print - ID: 2828348
Last Update: Comment added ( thepurlieu )

If I try to print from gerbv 2.0.1, it exits, with an error on the
terminal:

gerbv: /build/buildd/cairo-1.8.6/src/cairo-surface.c:817:
_cairo_surface_set_device_scale: Condition `status == CAIRO_STATUS_SUCCESS'
failed.
Interrupted

(raw translation of Hungarian error message)

If I print to file (via the print dialog), it works file, but if I choose a
real printer, it exits.

I'm using the Ubuntu 9.04 (64bit) package of gerbv 2.0.1, but the error
occours also if I build 2.3.0 from source. My cairo version is
1.8.6-1ubuntu2.

Thanks for the help.


András Sevcsik ( sevcsik-a ) - 2009-07-28 12:06

5

Closed

Wont Fix

Nobody/Anonymous

User Interface

None

Public


Comments ( 8 )

Date: 2009-11-01 21:41
Sender: thepurlieu

Update:
Ubuntu 9.10 has applied a fix for this problem, and printing should
work now with this test file.

Cheers--
Julian


Date: 2009-08-01 04:01
Sender: thepurlieu

It looks like a cairo problem actually. The file has a "clear polarity"
command in it, which we render with the cairo_set_operator
(CAIRO_OPERATOR_CLEAR); command. It renders correctly on the screen, but
when you try to print it, the command seems to cause a crash. I will
report the bug to the cairo list and see if they can fix. Thanks for
finding this bug! Hopefully you can work around the problem by exporting
to a different format and printing in another program.

Cheers--


Date: 2009-08-01 03:20
Sender: thepurlieu

Andras, I can replicate your bug with the file you attached, so maybe it
is a gerbv problem. I will look into this and see why gerbv doesn't want
to print this file, since it priints fine with all other files I've tried.


Date: 2009-08-01 03:18
Sender: thepurlieu

Andras,



Date: 2009-07-31 23:37
Sender: sevcsik-a

I can print from gedit too. I attached the gerber file, i hope it'll be
useful.


Date: 2009-07-31 22:58
Sender: thepurlieu

Actually, Inkscape doesn't use cairo yet (it's planned though). Does
printing work in gedit for you? If that does work, would you mind posting
a sample gerber file to this bug report and let me doublecheck it works on
my system? If it's confidential, you can also email it to me directly at
thepurlieu@gmail.com.

I'm pretty sure we can close this bug out as "not a gerbv problem", but I
just wanted to doublecheck. Cheers--


Date: 2009-07-29 21:41
Sender: sevcsik-a

I tested printing with Inkscape (iirc it also uses cairo), and it works
fine.
I could only test gerbv with gerber files exported from Diptrace, under
wine, the error occurred with all files.
I also tried printing with two printers (altough both use the hp driver)

It's not a problem tough, since that I managed to print directly from
Diptrace. I just thought it worth mentioning.
It seems logical that it's not related to gerbv, since I tried two
versions with no success. Thanks for your help.


Date: 2009-07-29 15:26
Sender: thepurlieu

Andras,
Thanks for the bug report. Does this bug happen on just one gerber
file, or does it always happen on any files? Are you able to print from
any other GNOME applications?
If you don't get the problem when you print to file, then it's most
likely a bug in cairo or GTK or your print driver, since all we do in gerbv
is call the gtk_print API and it does all the rest of the work (even if you
print to file). Let me know your thoughts.

Cheers,
Julian


Attached File ( 1 )

Filename Description Download
display.grb the gerber file I can't print Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2009-08-01 04:01 thepurlieu
resolution_id None 2009-08-01 04:01 thepurlieu
allow_comments 1 2009-08-01 04:01 thepurlieu
close_date - 2009-08-01 04:01 thepurlieu
File Added 337533: display.grb 2009-07-31 23:36 sevcsik-a