On 11/02/2012 08:18, ~suv wrote:
On 03/02/2012 14:28, ~suv wrote:
Other issues related to OS X packaging only:
- GTK+ 2.24.9 (current version in MacPorts)
Due to a recent regression in GTK+ 2.24.9: Bug 543520 – Cups custom options are not sent properly: https://bugzilla.gnome.org/show_bug.cgi?id=543520#c39 Inkscape 0.48.2, 0.48.x and trunk crash with GTK+ 2.24.9 when trying to print (print preview and printing to file seem ok).
Before building and bundling the application package, I would recommend to revert to gtk2 @2.24.8 in MacPorts or rebuild and test the port using a local patch from the gtk-2.24 branch: http://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=66c99016d3d063aee0e00793da8f087c80172012
GTK+ 2.24.10 has been released in the meantime and is available in MacPorts. It includes the fix to avoid the crash when printing, but now instead of crashing, Inkscape (stable and trunk) fails to print at all for me (printing works in gtk-demo, and when printing a PDF file saved in Inkscape with Evince, all using the same GTK+ stack). Based on my (limited) tests [1] I would still recommend to use 2.24.8 for the application package - if printing directly from Inkscape is considered as important.
[1] GTK+/X11 2.24.10 on Lion, GTK+/Quartz 2.24.10 on Leopard Brother HL-2035 B&W Laser Printer (A4)
More details about the printing failure:
The error reported e.g. by CUPS 1.5.0 (OS X 10.7.2 Lion) when trying to print directly from Inkscape (stable and trunk) with GTK+ 2.24.10:
stopped "cgpdftoraster: cupsRasterInterpretPPD had an error: Page header uses unsupported values."
whereas Inkscape stable and trunk with GTK+ 2.24.8 printed just fine on the same system (no system updates since), without errors.
The print job was sent with these arguments:
argv[3]="Print test-A4-1.svg"
<snip>
argv[5]="InputSlot=Tray1 BRSleepTime=Default BRHalfTonePattern=Brother PageSize=Custom.Custom.595.28x841.89 number-up=1 TonerSaveMode=Off BRMediaType=Plain Resolution=300dpi job-uuid=urn:uuid:d674f959-7fa4-3a2c-6eb5-2274f8d444b1 job-originating-host-name=localhost time-at-creation=1329032636 time-at-processing=1329032636"
The repeated 'Custom' in "PageSize=Custom.Custom.595.28x841.89" seems odd to me, but I'm not familiar with CUPS nor PPDs to really know whether this page size argument is correct or not.
Has anyone else been able to test printing from Inkscape with GTK+ 2.24.10 yet?
~suv