'Scale elements': may hang on scaling linked flowed text

Bug #1655053 reported by su_v on 2017-01-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Some examples of linked flowed text (linked for example to a frame with 'holes') in legacy files may cause Inkscape to "hang" (with high CPU usage) when the option to 'Scale elements' to 96dpi is chosen on open in Inkscape >= 0.92.

Steps to reproduce:
1) launch inkscape with default prefs
2) open attached SVG file
3) choose 'Scale elements' when prompted

Expected result:
The frame and the properties of the text using SVG lengths are scaled according to the DPI change. The layout of the flowed text is unchanged.

Actual result:
Inkscape appears to hang at processing the linked flowed text, using 100% CPU (one core).

'Scale elements' of documents with problematic linked flowed text objects is affected by the preference setting:
'Behavior > Transforms > Store transformation'

The issue reproduces as reported with the default setting:
[x] Optimized

The reported issue does not reproduce after switching the setting to:
[x] Preserved

Try to figure out a minimal test case / details which intentionally trigger the reported issue. So far this was encountered as side-effect of efforts to produce a reduced test case for bug #1655005.

Reproduced with Inkscape 0.92.0 r15299 and lp:inkscape/0.92.x r15309 on OS X 10.7.5.

su_v (suv-lp) wrote :
su_v (suv-lp) wrote :

Backtrace after a (random) interrupt in the debugger while inkscape attempts to scale elements in the provided test case.
(tested with lp:inkscape/0.92.x r15309 on OS X 10.7.5)

su_v (suv-lp) wrote :

Not reproduced with Inkscape 0.92+devel r15407 (default prefs) on Ubuntu 14.04 with 'Scale test - all'.

<off-topic>The font-size of the linked flowed text is not scaled AFAICT.</off-topic>

jazzynico (jazzynico) wrote :

Also reproduced on Xubuntu 16.04, lp:inkscape/0.92.x rev. 15315.

Changed in inkscape:
importance: Undecided → High
milestone: none → 0.92.1
status: New → Triaged
jazzynico (jazzynico) on 2017-02-16
Changed in inkscape:
milestone: 0.92.1 → 0.93
Hachmann (marenhachmann) wrote :

Oh, I think this could be the same as https://bugs.launchpad.net/inkscape/+bug/1715442

su_v (suv-lp) wrote :

The file from mentioned bug #1715442 opens ok in 0.92.2 if inkscape is launched with the command line option '--no-convert-text-baseline-spacing' to prevent auto-fixing legacy (pre-0.92) files' text baseline spacing on opening ... i.e. not directly related to the issue tracked in this report (bug #1655053) which is triggered by one of the DPI change options the user has to explicitly select on opening.

I might have filed other reports at the time with issues related to the auto-fixing of baseline spaces, but I haven't checked atm.

Hachmann (marenhachmann) wrote :

Thank you, V!

su_v (suv-lp) wrote :

su_v wrote:
> I might have filed other reports at the time with issues related to
> the auto-fixing of baseline spaces, but I haven't checked atm.

@Hachmann - probably I had a vague recollection of bug #1655308, but that one is closed now, and the test case from your report (bug #1715442) still reproduces as described with 0.92.2 as well as with latest trunk (git master cdb439b8). Interestingly, in the description of bug #1655308 I had included a reference to this report (bug #1655053) as well.

su_v (suv-lp) wrote :

Copying my recent comment from bug #1715442:

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

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

Other bug subscribers