Pattern Fill Freezes Page and Hogs CPU w/Select Images

Bug #1756496 reported by Brenda Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

I use the "Convert Object to Pattern" to fill shapes all the time and most of the time it is almost perfect. I have imported multiple jpg's to convert to patterns over 10 different times in one file without any lags and the patterns fills have been just perfect.

But... once in a while I'll import an image (jpg) and as soon as I convert the object to a pattern it freezes my screen and drives my CPU wild and my fan revs so high that I worry my laptop is going to melt down. If I manage to hide the layer with the fill pattern the cpu returns to normal and I can again select actions on the page.

As a work-around I have found that if I 1) open the problem image (jpg) into a new blank file and 2) export it as a new png, then I can 3) import the png back into my desired design file and I can 4) convert that png to a pattern fill without driving my CPU into the ground.

I have attached a file with a problem image/pattern fill that I can't open or work in without freezing my screen and increasing the CPU activity to about 25%. I also have screenshots of my CPU and Inkscape activity if you would like to look at them later.

Thanks! I LOVE this the "Object to Pattern" feature and have starting using it instead of clipping a design to fit a shape. It is so flexible with all the adjustments that can to be made to scale and position of the pattern using the node tool!

Regards,
Brenda

Sony VAIO
Intel i5-2430M CPU @ 2.4GHz
RAM 4 GB, 64 bit OS
Windows 7 Home Premium
Inkscape 0.92.2 (5c3e80d, 2017-08-06) 64 bit

Revision history for this message
Brenda Collins (gentlebath) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows 10, Inkscape 0.92.2 (5c3e80d, 2017-08-06)

- when I load this file the CPU usage rises to 33% and stays there.
- upon closing Inkscape I get this crash backtrace:

................
Starting program: c:\program files (x86)\inkscape\inkscape.exe
[New Thread 1304.0x4b4]
[New Thread 1304.0x8]
[New Thread 1304.0x60c]
...
[New Thread 1304.0x524]
warning: internal\sdk\inc\wil\ResultMacros.h(5601)\windows.storage.dll!749DFED3: (caller: 749E08D6) ReturnHr(1) tid(7f4) 80070490 Element not found.

[New Thread 1304.0x16fc]
[New Thread 1304.0x2578]
[New Thread 1304.0x2594]

Program received signal SIGSEGV, Segmentation fault.
0x7738fd1a in ?? ()
(gdb) bt
#0 0x7738fd1a in ?? ()
#1 0x7738fa0d in ?? ()
#2 0x77435b17 in ?? ()
#3 0x773e5be1 in ?? ()
#4 0x7738fa0d in ?? ()
#5 0x75527065 in msvcrt!free () from C:\WINDOWS\SysWOW64\msvcrt.dll
#6 0x06810000 in ?? ()
#7 0x7388c878 in ?? () from C:\WINDOWS\SysWOW64\winspool.drv
#8 0x73896bf2 in WINSPOOL!PrinterMessageBoxW () from C:\WINDOWS\SysWOW64\winspool.drv
#9 0x73896f76 in WINSPOOL!PrinterMessageBoxW () from C:\WINDOWS\SysWOW64\winspool.drv
#10 0x773be746 in ?? ()
#11 0x7738cbef in ?? ()
#12 0x7738792c in ?? ()
#13 0x773b79fc in ?? ()
#14 0x75423bd3 in KERNEL32!EnterSynchronizationBarrier () from C:\WINDOWS\SysWOW64\kernel32.dll
#15 0x00000000 in ?? ()
(gdb) c
Continuing.
[Inferior 1 (process 1304) exited normally]
(gdb) c
The program is not being run.
(gdb) q

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

unfortunately, it looks like there are two separate problems here. I was just able to duplicate the crash message on exit by loading a different svg file, so it is not related to the CPU hangup.

The CPU hangup to 33% occurs only on this file, not any other.

Revision history for this message
Brenda Collins (gentlebath) wrote : Re: [Bug 1756496] Re: Pattern Fill Freezes Page and Hogs CPU w/Select Images
Download full text (4.4 KiB)

I really don't know what that means but if you need anything else let me
know. It seems to be related to the jpg itself but I can't tell what is
different about it from all the others that work just fine.

I have attached the offending image. Maybe you can see something about it
that I can't. I have tried renaming and resaving it but it still hangs.
The only way I could use it was by exporting a png of it. Just opening the
image does not seem to affect my CPU at all either. It only happens when I
convert it to a pattern and remains as long as the pattern is in view. It
stops for me if I can somehow hide it. There have been other images that
have caused the same problem too but this is the most recent.

Thanks for looking into it. It does seem to be related to a few other
pattern bugs but not exactly.

Brenda

On Mar 17, 2018 7:20 AM, "Alvin Penner" <email address hidden> wrote:

> confirmed on Windows 10, Inkscape 0.92.2 (5c3e80d, 2017-08-06)
>
> - when I load this file the CPU usage rises to 33% and stays there.
> - upon closing Inkscape I get this crash backtrace:
>
> ................
> Starting program: c:\program files (x86)\inkscape\inkscape.exe
> [New Thread 1304.0x4b4]
> [New Thread 1304.0x8]
> [New Thread 1304.0x60c]
> ...
> [New Thread 1304.0x524]
> warning: internal\sdk\inc\wil\ResultMacros.h(5601)\windows.storage.dll!749DFED3:
> (caller: 749E08D6) ReturnHr(1) tid(7f4) 80070490 Element not found.
>
> [New Thread 1304.0x16fc]
> [New Thread 1304.0x2578]
> [New Thread 1304.0x2594]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x7738fd1a in ?? ()
> (gdb) bt
> #0 0x7738fd1a in ?? ()
> #1 0x7738fa0d in ?? ()
> #2 0x77435b17 in ?? ()
> #3 0x773e5be1 in ?? ()
> #4 0x7738fa0d in ?? ()
> #5 0x75527065 in msvcrt!free () from C:\WINDOWS\SysWOW64\msvcrt.dll
> #6 0x06810000 in ?? ()
> #7 0x7388c878 in ?? () from C:\WINDOWS\SysWOW64\winspool.drv
> #8 0x73896bf2 in WINSPOOL!PrinterMessageBoxW () from
> C:\WINDOWS\SysWOW64\winspool.drv
> #9 0x73896f76 in WINSPOOL!PrinterMessageBoxW () from
> C:\WINDOWS\SysWOW64\winspool.drv
> #10 0x773be746 in ?? ()
> #11 0x7738cbef in ?? ()
> #12 0x7738792c in ?? ()
> #13 0x773b79fc in ?? ()
> #14 0x75423bd3 in KERNEL32!EnterSynchronizationBarrier () from
> C:\WINDOWS\SysWOW64\kernel32.dll
> #15 0x00000000 in ?? ()
> (gdb) c
> Continuing.
> [Inferior 1 (process 1304) exited normally]
> (gdb) c
> The program is not being run.
> (gdb) q
>
> ** Changed in: inkscape
> Status: New => Confirmed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1756496
>
> Title:
> Pattern Fill Freezes Page and Hogs CPU w/Select Images
>
> Status in Inkscape:
> Confirmed
>
> Bug description:
> I use the "Convert Object to Pattern" to fill shapes all the time and
> most of the time it is almost perfect. I have imported multiple jpg's
> to convert to patterns over 10 different times in one file without any
> lags and the patterns fills have been just perfect.
>
> But... once in a while I'll import an image (jpg) and as soon as I
> convert the object to a pattern it freezes my screen and drives my CPU
> wild and my ...

Read more...

Revision history for this message
TylerDurden (8thrule) wrote :

I downloaded the problem svg and the jpg. The SVG does indeed hang Inkscape, making it unresponsive.

The mystery I find, is that the jpg pattern seems to work ok in a new document.

I import the jpg into a new document and clip it with a rectangle, then convert that object into a pattern... No problemo.

Attached is the new document test, with imported jpeg.

TD

Revision history for this message
Brenda Collins (gentlebath) wrote :

Could it be my cpu/ram are not robust enough for something? The weird
thing is though it is only a few images not all of them! I have had similar
problem with patterns I've created with the pattern maker extension. So
much so that I stopped using it.

I suppose I should just go in and remove my preference file. I had a
problem with aligning clipped objects and your team had no problem and
suggested I reset my preferences. If that doesn't work I'll try
reinstalling Inkscape. I have done that a few times already so not sometime
I look forward too.

Regards,
Brenda

On Mar 19, 2018 4:21 PM, "TylerDurden" <email address hidden> wrote:

> I downloaded the problem svg and the jpg. The SVG does indeed hang
> Inkscape, making it unresponsive.
>
> The mystery I find, is that the jpg pattern seems to work ok in a new
> document.
>
> I import the jpg into a new document and clip it with a rectangle, then
> convert that object into a pattern... No problemo.
>
> Attached is the new document test, with imported jpeg.
>
> TD
>
> ** Attachment added: "2lips.svg"
> https://bugs.launchpad.net/inkscape/+bug/1756496/+
> attachment/5084450/+files/2lips.svg
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1756496
>
> Title:
> Pattern Fill Freezes Page and Hogs CPU w/Select Images
>
> Status in Inkscape:
> Confirmed
>
> Bug description:
> I use the "Convert Object to Pattern" to fill shapes all the time and
> most of the time it is almost perfect. I have imported multiple jpg's
> to convert to patterns over 10 different times in one file without any
> lags and the patterns fills have been just perfect.
>
> But... once in a while I'll import an image (jpg) and as soon as I
> convert the object to a pattern it freezes my screen and drives my CPU
> wild and my fan revs so high that I worry my laptop is going to melt
> down. If I manage to hide the layer with the fill pattern the cpu
> returns to normal and I can again select actions on the page.
>
> As a work-around I have found that if I 1) open the problem image
> (jpg) into a new blank file and 2) export it as a new png, then I can
> 3) import the png back into my desired design file and I can 4)
> convert that png to a pattern fill without driving my CPU into the
> ground.
>
> I have attached a file with a problem image/pattern fill that I can't
> open or work in without freezing my screen and increasing the CPU
> activity to about 25%. I also have screenshots of my CPU and Inkscape
> activity if you would like to look at them later.
>
> Thanks! I LOVE this the "Object to Pattern" feature and have starting
> using it instead of clipping a design to fit a shape. It is so
> flexible with all the adjustments that can to be made to scale and
> position of the pattern using the node tool!
>
> Regards,
> Brenda
>
> Sony VAIO
> Intel i5-2430M CPU @ 2.4GHz
> RAM 4 GB, 64 bit OS
> Windows 7 Home Premium
> Inkscape 0.92.2 (5c3e80d, 2017-08-06) 64 bit
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/inkscape/+bug/1756496/+subscriptions
>

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.