Segmentation Fault (crashes) when I try to move a large pattern

Bug #271723 reported by DannyKing
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Unassigned
Nominated for 0.47.x by hva

Bug Description

Hi,

If I import an image (I have tried images between sizes of 100kb and about 2mb), set it as a pattern, make a shape use that pattern and then attempt to move the pattern (i.e. modify size, rotation, position using node tool) Inkscape stable and .46 devel (sep 10th build) seg faults.

Frustratingly I can only seem to reproduce this bug when I'm not trying to, but it happened at least ten times to me. If you can't reproduce, perhaps try playing around with a large image and patterns.

The file that I imported was a jpg, if that helps.

Thanks

Tags: crash pattern
Revision history for this message
bbyak (buliabyak) wrote :

please try a new build after rev 20874

Revision history for this message
nightrow (jb-benoit) wrote :

Little bump, please keep us informed.

Changed in inkscape:
importance: Undecided → High
jazzynico (jazzynico)
tags: added: crash
Changed in inkscape:
status: New → Incomplete
Revision history for this message
Pablo Trabajos (pajarico) wrote :

Another similar bug (409901) has been solved meanwhile. Could the reporter try a newer release to see if it's solved?

Revision history for this message
Rena Kunisaki (i-am-inuyasha) wrote :

Happening to me in Xubuntu 9.04 32-bit with version 0.46. Any imported pattern I try to drag, scale, or rotate causes a segmentation fault (though I'm always using very large patterns, over 1600x1200 pixels). The built-in patterns do not.

What's very strange is I can apply a pattern, then try to move/scale it, and Inkscape will crash. Then I start it again and this time I can do it just fine, once. If I do it a second time, it will crash again. So with enough patience it's possible to use large patterns, just quite annoying...

Attached backtrace shows me importing an object, converting it to a pattern, deleting the image it leaves behind, applying it as a fill to a layer, and trying to scale it. Notice I do this successfully once, close normally (without saving), then do it again, and this time it breaks.

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

could you try a more recent version, available from :
http://sourceforge.net/projects/inkscape/files/

Revision history for this message
Rena Kunisaki (i-am-inuyasha) wrote :

Appears to work in 0.47. Though the cursor does tend to "drop" the handles; i.e. when I click and drag the scale handle, it only drags a few pixels, then I have to release and drag again to move it the rest of the way. Seems as though it's not polling the mouse under the heavy CPU load it has when it begins scaling, and then sees that the cursor has moved so far and assumes I've let go of the button. Only a minor annoyance.

Revision history for this message
Rena Kunisaki (i-am-inuyasha) wrote :

Correction: not fixed, just can't reproduce reliably anymore. Just happened again.

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

same problem here with a freshly built 0.47 from svn, it happens even with small patterns

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

happens with small images too, but only on paths, if i apply a pattern to e.g. a rectangle object, it works fine, and i can move, rotate etc. the pattern. Trying the same thing with paths freezes the system.

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

I can confirm it on ubuntu 8.04_64 (svn build) and on ubuntu 9.10_x86 (official ubuntu package)

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

the problem is triggered by any custom pattern on my system, both bitmap and vector based, whenever you try to adjust a pattern scale, position or orientation applied to a path using the node tool.
Built-in patterns are ok, and objects (rectangles, circles, etc.) with custom patterns applied are ok as well, if converted to paths the crash occurs again

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

If i try to run gdb, only thing I get is:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f15d74c07c0 (LWP 25018)]
0x0000000000756263 in SPObject::requestDisplayUpdate ()

then the whole Gnome freezes and I have to switch to a text terminal to kill gdb or inkscape instance

su_v (suv-lp)
tags: added: pattern
Revision history for this message
Denis Konchekov (dkonchekov) wrote :

Same crash in 0.47 release version. I tried last trunk version (rev. 9172) - problem solved.

Revision history for this message
jazzynico (jazzynico) wrote :

Could an affected user attach a file which crashes 0.47, so that we can confirm this bug and the fact that it's now fixed?
I've tried to reproduce this issue many times, but never managed to crash inkscape...
Thanks!

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

Inkscape crashes at first movement of node; or it crashes or freezes at several movements.

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

@Denis - your issue looks like bug #463602 “crash when node-editing pattern-filled object” which was recently fixed in bzr trunk. AFAIU this report is less about using stock patterns but about (big) custom (bitmap) patterns.

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

Oh, yes. I think this bug (#271723) is exactly same as bug #463602.

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

> I think this bug (#271723) is exactly same as bug #463602.

No, I don't think so - at least is has not been confirmed as such. Please read the original bug report here (bug #271723) and earlier comments which explicitly state «Any imported pattern I try to drag, scale, or rotate causes a segmentation fault (though I'm always using very large patterns, over 1600x1200 pixels). The built-in patterns do not.» and another «Built-in patterns are ok»

The example you attached however uses the built-in 'Stripes' pattern and looks like the issue reported in bug #463602 (which is marked as fixed in bzr trunk).

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

OK.
I performed test for clarity. System: Ubuntu 9.10, kernel 2.6.31-20-generic, GNOME 2.28.1
Inkscape 0.47 release version:
Built-in pattern - app crashes.
Small bitmap pattern (38KB, 640x519) - app crashes.
Medium bitmap pattern (433KB, 1920x1200) - app crashes. # see attachment (try several movements of nodes)
Big bitmap pattern (3.2MB, 3264x2448) - app freezes.

In last bzr version everything work as expected.

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

Sorry. Forgot to embed image in previous post.

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

Strange. While I sometimes manage to reproduce the crash in 0.47 with 'crashtest.svg' from comment #14 I failed so when trying with medium_pattern.svg (tested with Inkscape 0.47 r22583 and 0.47+devel r9172 on OS X 10.5.8 with both default and custom preferences).

I can't confirm that this bug exists in 0.47, is the same as bug #463602 and/or is fixed in 0.47+devel from bzr trunk.
@JazzyNico - any success on your side to reproduce the crash?

Revision history for this message
jazzynico (jazzynico) wrote :

I've just reproduced Denis' bug on Ubuntu 9.10, Inkscape 0.47 (not with the dev version) with medium_pattern.svg (default preferences).
But it freeze when moving the shape's nodes, not the pattern's ones. Thus I think Denis' bug is the same as bug #463602, but not the same as the original report.
Backtrace attached.

Revision history for this message
jazzynico (jazzynico) wrote :

But I'm not 100% certain. The backtraces look somewhat different.

@DannyKing, do you still have this bug? If so, could you please attach an example file so that we can test and compare with the one provided by Denis?
Thanks!

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

JazzyNico, you are right. It is my inattention with bug description. I moved nodes of path but not pattern itself. I apologize for misleading.

irina (irina-pnk)
Changed in inkscape:
assignee: nobody → irina (irina-pnk)
status: Incomplete → Fix Committed
Changed in inkscape:
assignee: irina (irina-pnk) → nobody
status: Fix Committed → Incomplete
Revision history for this message
Kris (kris-degussem) wrote :

Closing this bug report as the original bug could not be reliably repeated and no further information from affected users received.
If the problem reappears, feel free to revert the bug status.

Changed in inkscape:
status: Incomplete → Invalid
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.