cairo-ps export creates empty ps files on win32

Bug #177783 reported by theAdib
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Critical
ishmal

Bug Description

The issue arises for non administrativ accounts only.
In the function CairoRenderContext::setupsurface the call to cairo_ps_surface_create_for_stream resonds a _cairo_surface_nil object.
Calling cairo_surface_status return 1 "OUT OF MEMORY". All following calls to that surface will not do anything.
I am using WinXP german.

Changed in inkscape:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
theAdib (theadib) wrote :

forgot to mention current svn builds only (not the 0.45 release)

Changed in inkscape:
assignee: nobody → ishmalius
milestone: none → 0.46
assignee: ishmalius → nobody
Revision history for this message
theAdib (theadib) wrote :

I fond that this is actually a cairo issue. Cairo uses tmpfile to create temporary files for the PS backend. On MinGW the temporary file is on the root("\\") of the filesystem. This fails if the user does not has rights. There is also a discussion on the win list: http://www.nabble.com/temporary-files-in-wine-to8919379.html
I proposed to the cairo people a workaround for WIN32 systems: http://lists.cairographics.org/archives/cairo/2007-December/012529.html

Revision history for this message
Bryce Harrington (bryce) wrote :

theAdib, do you have a bugzilla bug# for cairo we could link to from here?

Revision history for this message
theAdib (theadib) wrote :

Adrian Johnson reviewed the proposed patch and commited to the cairo git trunk an Friday Dec 28.
http://gitweb.freedesktop.org/?p=cairo;a=commit;h=4fa46e3caaffb54f4419887418d8d0ea39816092
Cairo library >= 1.5.5 should contain this patch. There is no snapshot version available now.

Adib.
----

Revision history for this message
Bryce Harrington (bryce) wrote :

Since the fix relies on an unreleased version of cairo, this will need to be handled at the packaging level. I'll leave it to Ishmal to decide if/how to fix this in the Inkscape 0.46 windows packages.

Since it's a packaging issue, it will not be a release blocker.

Changed in inkscape:
assignee: nobody → ishmalius
Revision history for this message
theAdib (theadib) wrote :

Bobs latest win32 library package from 1st february contains cairo 1.5.8. This solves the issue.
Thx, Adib.

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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