Bugs item #2828348, was opened at 2009-07-28 07:06
Message generated for change (Comment added) made by thepurlieu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=409538&aid=2828348&group_id=33921

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User Interface
Group: None
Status: Closed
Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: András Sevcsik (sevcsik-a)
Assigned to: Nobody/Anonymous (nobody)
Summary: Gerbv exits on print

Initial Comment:
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.


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

>Comment By: Julian Lamb (thepurlieu)
Date: 2009-11-01 16:41

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

Cheers--
Julian

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

Comment By: Julian Lamb (thepurlieu)
Date: 2009-07-31 23:01

Message:
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--

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

Comment By: Julian Lamb (thepurlieu)
Date: 2009-07-31 22:20

Message:
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.

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

Comment By: Julian Lamb (thepurlieu)
Date: 2009-07-31 22:18

Message:
Andras,


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

Comment By: András Sevcsik (sevcsik-a)
Date: 2009-07-31 18:37

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

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

Comment By: Julian Lamb (thepurlieu)
Date: 2009-07-31 17:58

Message:
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
thepurl...@gmail.com.

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

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

Comment By: András Sevcsik (sevcsik-a)
Date: 2009-07-29 16:41

Message:
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.

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

Comment By: Julian Lamb (thepurlieu)
Date: 2009-07-29 10:26

Message:
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

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=409538&aid=2828348&group_id=33921

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to