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

Bug #1244793 reported by su_v on 2013-10-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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:

Other files tested (with same crash):

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:

su_v (suv-lp) wrote :
su_v (suv-lp) on 2013-10-25
description: updated
jazzynico (jazzynico) wrote :

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

Changed in inkscape:
status: New → Triaged
Johan Engelen (johanengelen) wrote :

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

Johan Engelen (johanengelen) wrote :

btw, backtrace was awesome as always ~suv

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).

Johan Engelen (johanengelen) wrote :

crash should be gone in r12732

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
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”

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  Edit
Everyone can see this information.

Other bug subscribers