New From Template dialog doesn't show the preview image on Windows

Bug #1271938 reported by jazzynico
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned
Inkscape Devlibs
New
Undecided
Unassigned

Bug Description

Reproduced on Windows XP, Inkscape trunk revision 12904 (before Bug #1270607) and revision 12974.

1. Open File>New>Templates...
2. Select a template in the list..
-> The preview zone is empty (see screenshot).
-> The console shows the following message:

---
(inkscape.exe:2912): glibmm-CRITICAL **:unhandled exception (type Glib::Error) in signal handler:
domain: gdk-pixbuf-error-quark
code : 3
what : Couldn't recognize the image file format for file 'D:\Dev\inkscape-12974\inkscape\share\templates\DVD_cover_regular_300dpi.svg'
---

Additionally, if one selects a procedural template (e.g. Empty page) and then selects a SVG template (A4 Page), the Page size and Page orientation options still show on the preview zone (I suspect it's a consequence of the present bug, and thus don't create a new report for now).

Revision history for this message
jazzynico (jazzynico) wrote :
Changed in inkscape:
milestone: none → 0.91
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.92
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.91 (64bit MSI installer) on Windows 7.

(64bit MSI package does include the SVG loader for gdk-pixbuf (also listed in loaders.cache), but misses the librsvg DLL, as well as libcroco DLL - both present in the devlibs64)

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

reproduced on Windows 7, 32 bit, Inkscape 0.91 r13725 (Jan 30 2015)
installed from the file Inkscape-0.91-1.exe

also reproduced on Windows 7, 32 bit, Inkscape 0.91 r13725 (Jan 30 2015)
installed from the file Inkscape-0.91-1-win32.7z

Revision history for this message
su_v (suv-lp) wrote :

Console message with 0.91 r13725 (64bit, MSI installer) when preview of template file fails
** Message: Gdk::PixbufError in SVGPreview::showImage

Revision history for this message
su_v (suv-lp) wrote :

Packaging issues with librsvg (missing gdk-pixbuf loader) originally tracked in
- Bug #168244 “Image tag does not support SVG documents”
Linux devs decided that the report now tracks the same issue as
- Bug #171795 “Don't rasterize linked SVG with <image>”

--
<opinion>I disagree with Martin Owens assessment (bug #168244 a valid packaging issue, and needs to be tracked separately from the underlying general issue in bug #171795), but won't further triage that report.</opinion>

Revision history for this message
Alvin Penner (apenner) wrote :

sorry, I should have been more explicit, my console message was identical to that originally reported by jazzy.
also, the problem is not solved by copying the two files librsvg-2-2.dll and libcroco-0.6-3.dll from the devlibs directory to the Inkscape directory. The console messages still remain.

Revision history for this message
su_v (suv-lp) wrote :

32bit: no gdk-pixbuf loader for SVG (adding librsvg DLL (+deps) by itself doesn't help)
64bit: has gdk-pixbuf loader for SVG, but misses librsvg DLL (+ deps)

--
http://article.gmane.org/gmane.comp.graphics.inkscape.devel/45403

su_v (suv-lp)
tags: added: packaging win64
Revision history for this message
su_v (suv-lp) wrote :

Update for 64bit package:

After copying these two DLLs into the Inkscape program folder:
- http://bazaar.launchpad.net/~inkscape.dev/inkscape-devlibs64/trunk/view/head:/bin/libcroco-0.6-3.dll
- http://bazaar.launchpad.net/~inkscape.dev/inkscape-devlibs64/trunk/view/head:/bin/librsvg-2-2.dll
template preview works, as does linking SVG images via <image> tag.

So as far as I can tell, the SVG gdk-pixbuf loader with 64bit devlibs works as expected, and build-x64.xml needs to be updated to include the missing dependencies of
- http://bazaar.launchpad.net/~inkscape.dev/inkscape-devlibs64/trunk/view/head:/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll

Revision history for this message
su_v (suv-lp) wrote :

Fix for 64bit builds (using inkscape-devlibs64) committed to trunk in r13907:
https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13907

no longer affects: inkscape-devlibs64
tags: added: backport-proposed
Revision history for this message
Martin Owens (doctormo) wrote :

Merged into 0.92.x

tags: removed: backport-proposed
Revision history for this message
Patrick Storz (ede123) wrote :

This still needs fixing for CMake.
However a quick check in a 64-bit build of Inkscape 0.92pre3 r15225 shows that simply copying the two DLLs doe *not* fix the issue so further investigation is necessary...

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.