trunk: EMF/WMF import via command line crashes (rev >= 12662)

Bug #1244793 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Johan Engelen

Bug Description

Steps to reproduce:
Open a EMF or WMF file via command line (opening it via GUI from within Inkscape works ok):

$ inkscape picsize.wmf

Sample file used for attached backtrace:
<https://bugs.launchpad.net/inkscape/+bug/1241783/+attachment/3890417/+files/picsize.wmf>

Other files tested (with same crash):
<https://bugs.launchpad.net/inkscape/+bug/988601/+attachment/3540872/+files/test_libuemf_ref.wmf>
<https://bugs.launchpad.net/inkscape/+bug/988601/+attachment/3417867/+files/test_libuemf.emf>

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000058
0x00000001000ac269 in SPDocument::getHeight (this=0x0) at document.cpp:607
607 g_return_val_if_fail(this->priv != NULL, Inkscape::Util::Quantity(0.0, unit_table.getUnit("")));

Confirmed with r12726 on OS X 10.7.5.

Based on tests with archived builds:
- not reproduced with rev <= 12661,
- reproduced with rev >= 12662,
this regression was introduced with the fix for bug #1229120 in revision 12662:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12662>

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

Reproduced on Crunchbang Waldorf (Debian stable), Inkscape trunk revision 12727. Same backtrace.

Changed in inkscape:
status: New → Triaged
Revision history for this message
Johan Engelen (johanengelen) wrote :

check if my 3second fix works, the code was weird there.
r12728

Revision history for this message
Johan Engelen (johanengelen) wrote :

btw, backtrace was awesome as always ~suv

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

> check if my 3second fix works, the code was weird there.

Not really:
1) EMF import from the command line still crashes
2) WMF import:
- via command line: works as expected (no crash, drawing content correctly positioned inside the page area)
- via 'File > Open' or 'File > Open Recent' from within Inkscape: drawing content is vertically offset by an arbitrary value (possibly depending on the page height (?) of the document displayed in the current document window).

Revision history for this message
Johan Engelen (johanengelen) wrote :

crash should be gone in r12732

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

Johan wrote:
> crash should be gone in r12732

Crash fix confirmed for EMF/WMF with r12734 on OS X 10.7.5

Remaining issue (introduced with crash fix for both formats):
- drawing content is incorrectly positioned (vertically shifted relative to the page height) when file type is opened from within Inkscape.

Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
su_v (suv-lp) wrote :

> Remaining issue (introduced with crash fix for both formats):

Tracked in new report
- Bug #1250250 “WMF open on linux misplaces drawing”
  <https://bugs.launchpad.net/inkscape/+bug/1250250>

Changed in inkscape:
status: Triaged → Fix Released
assignee: nobody → Johan Engelen (johanengelen)
milestone: 0.49 → none
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.