Inkscape > 0.92.0 freezes on this file (probably while trying to fix text)

Bug #1715442 reported by Hachmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

I cannot open the attached file with Inkscape 0.92 or higher - Inkscape freezes already when trying to display a preview, and also freezes when trying to open the file from the command line.

I suspect this may have to do with some unusual text in it, and it's looping while trying to fix (processor load goes up, but can't know, of course). It could also be that it just takes longer than 5 minutes, which is when I stopped it.

=====
Possibly related symptoms:
Bug #1655053 “'Scale elements': may hang on scaling linked flowed text”
Bug #1655308 “Linked flowed text: inkscape hangs when setting outer line-height to zero” (closed)

Workaround with >= 0.92.1 to open the original test case(s):
$ inkscape --no-convert-text-baseline-spacing Text_1.svg

Tags: text
Revision history for this message
Hachmann (marenhachmann) wrote :
Revision history for this message
Hachmann (marenhachmann) wrote :

(Additional info: I just found that I had labelled the document as 'somehow broken', because in Version 0.91, normal non-flowed text would just 'vanish'. So perhaps not a real issue.

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

Hachmann wrote:
> because in Version 0.91, normal non-flowed text would just 'vanish'.

Cannot reproduce with Inkscape 0.91 (new, default prefs) - new regular text on the current layer 'Ebene 1' can be created just fine, and it does not vanish. It also works on the other layers (after unlocking and unhiding).

Possibly the attempts to add regular text were done inside the masked group, but outside the visible area produced by the mask?

Revision history for this message
Hachmann (marenhachmann) wrote :

That could explain it, V, yes. But I don't remember it, it's only that I had made a note in my workshop notes libreoffice file.

At least now I know that it's the masked Goethe who is causing the issue with the text conversion - it also freezes when I try to transfer him from 0.91 to 0.92.2.

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

Reduced test case (created with 0.91 r13725) attached.

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

Further detail: flowing text into such a path fails in 0.92.2 (works in 0.91). Please test with the attached "unflowed" version in 0.92.2 (select all, Text > Flow into frame): the flowed text is entirely truncated (not visible).

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

su_v wrote:
> Further detail: flowing text into such a path fails in 0.92.2 (works
> in 0.91). (...) the flowed text is entirely truncated (not visible).

Contd: 'Flow into frame' with that path still works with 0.92 r15299 (initial release); and with 0.92.1 r15371 it freezes inkscape (in case someone wants to bisect the 0.92.x branch to find related commits).

Hachmann (marenhachmann)
summary: - Inkscape > 0.91 freezes on this file (probably while trying to fix text)
+ Inkscape > 0.92.0 freezes on this file (probably while trying to fix
+ text)
Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

A very simple test file.

Inkscape goes into an infinite loop with this file.

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

Tavmjong Bah wrote:
> A very simple test file. (...)

@Tavmjong - does this file trigger the same issue?
- The original test case (Text_1.svg) and its reduced version (1715442-Text_2.svg) open ok with 0.91, 0.92; hang with 0.92.1 and 0.92.2 unless auto-fixing is disabled.
- Your test case opens ok with 0.91; hangs with 0.92, 0.92.1 and 0.92.2 - disabling the auto-fixing (>= 0.92.1) has no effect.

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

Based on tests with archived trunk builds and the three test files (Text_1.svg, 1715442-Text_2.svg, 1715442_Simplified.svg), inkscape hanging on load

- not reproduced with Inkscape 0.91 r13725,

- not reproduced with Inkscape 0.91+devel rev <= 14495,

- fully reproduced with Inkscape 0.91+devel 14502 <= rev < 14507:

https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/changes/14502

The observed symptom might have been exposed initially with the changes in rev 14499 and affects all files attached so far to this report (tested with rev 14502):

https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14499

- partially reproduced with Inkscape 0.91+devel rev >= 14507

https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/changes/14507

With rev >= 14507, Text_1.svg, 1715442-Text_2.svg open ok, but 1715442_Simplified.svg still hangs.

- partially reproduced with lp:inkscape/0.92.x 15299 <= rev < 15338

- fully reproduced with lp:inkscape/0.92.x rev >= 15338

With the introduction of the auto-fixing routine in 15338, all test cases hang on open (unless auto-fixing is turned off, see comment 10):

https://bazaar.launchpad.net/~inkscape.admin/inkscape/0.92.x-bzr/changes/15338

su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
tags: added: text
Revision history for this message
Hachmann (marenhachmann) wrote :

Thank you for all that testing work, su_v and Tav!

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

This turns out to be a bug under very special conditons:

A line does not fit due to it's height. Fitting the line with a larger height breaks the line into multiple chunks. Nothing fits into the first chunk which causes the line height to be reset to the initial too small height. Repeat.

Fixed in trunk.

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

Fix confirmed with Inkscape 0.92+devel (bfc701393, 2017-09-07) on Windows 10 - all three test files open ok.

Changed in inkscape:
status: Confirmed → Fix Committed
Revision history for this message
Hachmann (marenhachmann) wrote :

Does this also fix the bugs you linked in the description, su_v?

@Tav: thank you very much!

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

Hachmann wrote:
> Does this also fix the bugs you linked in the description, su_v?

AFAICT it might also fix bug #1655053:
test 1: latest trunk opens the test file "1655053-linked-flowed-text-hang-on-rescale-1.svg" ok, and scales the drawing for DPI change without hang.
test 2: with commit bfc701393 reverted, inkscape hangs when attempting to load the file, unless auto-fixing is disabled. If auto-fixing is disabled, the file opens ok, and then inkscape hangs when attempting to apply the scaling option for the DPI change.
I recommend further tests for bug #1655053.

The other report mentioned is already closed (as noted in the description).

su_v (suv-lp)
tags: added: backport-proposed
Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

Backported to 0.92.x.

Patrick Storz (ede123)
tags: removed: backport-proposed
Max Gaukler (mgmax)
Changed in inkscape:
status: Fix Committed → 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.