revision 12945 broke image import

Bug #1270334 reported by David Mathog
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Martin Owens

Bug Description

Revision 12945 broke image import.

Both indirectly (as read from an EMF file, which is where I first saw it) or directly from a png file.

Try to import any image and all that shows up as a "linked image not found" image. Look at the SVG and the target PNG is nowhere to be found. To test:

start inkscape
file->open
select a png image (embedded)

result: as just described.

Bad bad bad bad bad bad.

Please roll this back asap!!!

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

See also duplicate report bug #1270335 (AFAICT the regression was introduced in rev 12942).

tags: added: bitmap importing regression
Changed in inkscape:
milestone: none → 0.91
importance: Undecided → High
status: New → Triaged
David Mathog (mathog)
tags: added: urgent
removed: bitmap importing regression
su_v (suv-lp)
tags: added: bitmap importing regression
removed: urgent
Revision history for this message
su_v (suv-lp) wrote :

@Martin - could you please revisit the recent changes wrt to the <image> element which likely trigger this regression?

Revision history for this message
Martin Owens (doctormo) wrote :

Thanks for finding this clanger suv, totally missed that call name and assuming they were all the same call caused the issue. Please see r12954 for the fix to the embedded image issue.

Changed in inkscape:
status: Triaged → Fix Committed
assignee: nobody → Martin Owens (doctormo)
Revision history for this message
su_v (suv-lp) wrote :

Actually David discovered it first… ;) Thx for the quick fix!

@Martin - any idea about the change of format I mentioned in my duplicate report (bug #1270335)? The XML Editor no longer displays the name 'xlink:href' in the attributes list for a selected embedded image…

Changed in inkscape:
milestone: 0.91 → none
status: Fix Committed → Fix Released
Revision history for this message
Martin Owens (doctormo) wrote :

I saw the attribute name was further down in the list. I wonder if the text in that box is super big would it break the gtk list.

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

> I saw the attribute name was further down in the list.

Confirmed - the attribute name is centered (vertically) in the cell. Hard to find with larger embedded images… maybe the text (attribute name) could be aligned to the top of the cell?

> I wonder if the text in that box is super big would it break the gtk list.

No idea - what I do recall is a rather huge performance hit in trunk's dockable XML Editor with large embedded images which had been created with stable or earlier trunk revisions (all image data is on a single line; may also hit recent libxml2 limit, bug #1243011). The new format created with rev >= 12938 (image data split on multiple lines) seems to avoid or reduce that performance issue.

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

> any idea about the change of format I mentioned in my duplicate report

Nevermind - I didn't test carefully: the format appears to change once an image is reloaded from disk (from multi-line image data block to a single long line), and happens with older and latest revision. Sorry for the noise.

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

@Martin - the fix in revision 12954 introduces a new regression (crash on load if linked bitmap images are missing, bug #1273244). The issue currently can't be further investigated because of the later regression (bug #1272649).

Revision history for this message
Martin Owens (doctormo) wrote :

Understood. Please bare with me while I refactor the code, there's more changes in the pipe.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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