Nautilus freeze desktop and kill CPU when handle SVG files

Bug #151954 reported by Nemes Ioan Sorin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Incomplete
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

I work for some vectorial logo's with Inkscape.
After I do primary shapes and I imported a 24mb png inside the svg file, I have to embed image file on svg [ here can be a point of this problem ].

Now when I save this file to desktop, Desktop(Nautilus) freeze, CPU go 100%.
Re Login (instead restart) and ....the same problem. Because the file was saved to desktop,
Nautilus tried to "understand" this SVG file with embed bitmap and try to create a thumbnail.

Then I restart - the same problem. Each restart - Nautilus freeze desktop because the filw was there.

I need to go as ROOT, to install Thunar, to navigate with Thunar on HOME partition and to move SVG file (68 mb) in other folder.

Then I can enter with my USER credentials on computer and all was OK again.
Just for testing purposes I navigate with Nautilus in the folder that contain SVG file.
Nautilus freeze again, CPU 100%, so I need to restart.

I put my folder on a stick and I go to a friend with Gutsy to test on his desktop.

I obtain the same behavior. Nautilus freeze, CPU gone wild.

On XP I can have 200mb Corel Draw files with thumbnail and no problem.

I think Nautilus has problems with the bitmap binary code embed in SVG.
But this is only a guess...

I hope to see this fixed before Gutsy launch.
We need a true stable Nautilus.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. Please try to obtain a backtrace http://wiki.ubuntu.com/DebuggingProgramCrash and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Nemes Ioan Sorin (nemes-sorin) wrote :
Download full text (61.9 KiB)

Thanks for formal, polite invitation Pedro, but If U can see I don't have a crash. Nautilus does not crash. It is too busy performing calculations to understand about the nature of the SVG code.

It's about Nautilus internals not about a crash - I think if I let Nautilus alone for an hour he will succeed with his work and finally he will understand the file content.

It's about how Nautilus treat SVG files. on the past I was here with the same problem a SVG file force Nautilus to use 100% CPU only when U right click on the file and click Properties.

This is available today too. I test this file with an other fresh Gutsy installation (a friend of mine). Same problems. This is reproducible.

First SVG file (subject of this report) has ~ 70 Mb [it contain a big bitmap], Second SVG file (prior report) has few kilobytes but keep inside some complicated pattern fills -> nautilus force CPU to 100% when enter the folder with this second file -> PCman just close it's window when enter on this folder.

Because is reproductible on other systems - is not my problem, is our problem. Please give this report to the right guys - because this issue is a real one.

Now I installed Nautilus DBG, until dbg session here is a simple Valgrind log referring to PCMan file manager which die when enter the folder with SVG files (that contain some complicated pattern fills):

sorin@sorin:~$ valgrind pcmanfm
==11572== Memcheck, a memory error detector.
==11572== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==11572== Using LibVEX rev 1732, a library for dynamic binary translation.
==11572== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==11572== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework.
==11572== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==11572== For more details, rerun with: -v
==11572==
==11572== Invalid read of size 4
==11572== at 0x4014C09: (within /lib/ld-2.6.1.so)
==11572== by 0x4005BE9: (within /lib/ld-2.6.1.so)
==11572== by 0x4007A07: (within /lib/ld-2.6.1.so)
==11572== by 0x4010F83: (within /lib/ld-2.6.1.so)
==11572== by 0x400D015: (within /lib/ld-2.6.1.so)
==11572== by 0x401099D: (within /lib/ld-2.6.1.so)
==11572== by 0x49480B1: (within /lib/tls/i686/cmov/libc-2.6.1.so)
==11572== by 0x400D015: (within /lib/ld-2.6.1.so)
==11572== by 0x4948274: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so)
==11572== by 0x49227B6: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so)
==11572== by 0x49228CF: (within /lib/tls/i686/cmov/libc-2.6.1.so)
==11572== by 0x49246A5: __nss_passwd_lookup (in /lib/tls/i686/cmov/libc-2.6.1.so)
==11572== Address 0x4AD3064 is 36 bytes inside a block of size 38 alloc'd
==11572== at 0x4022765: malloc (vg_replace_malloc.c:149)
==11572== by 0x4007FA1: (within /lib/ld-2.6.1.so)
==11572== by 0x4010F83: (within /lib/ld-2.6.1.so)
==11572== by 0x400D015: (within /lib/ld-2.6.1.so)
==11572== by 0x401099D: (within /lib/ld-2.6.1.so)
==11572== by 0x49480B1: (within /lib/tls/i686/cmov/libc-2.6.1.so)
==11572== by 0x400D015: (within /lib/ld-2.6.1.so)
==11572== by 0x4948274: __libc_dlopen_mode (in /lib/t...

Revision history for this message
Sebastien Bacher (seb128) wrote :

that looks rather a librsvg or libcairo issue than a nautilus one

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you attach a svg example to the bug?

Revision history for this message
Nemes Ioan Sorin (nemes-sorin) wrote : Re: [Bug 151954] Re: Nautilus freeze desktop and kill CPU when handle SVG files

Yes, here is attachment

this is subject of : right click -> Properties freeze Nautilus. Also
entering in folder which contain these files PACman die instantly.

Thunar, on the other side ..no problems.

Sebastien Bacher wrote:
> Could you attach a svg example to the bug?
>

Revision history for this message
Nemes Ioan Sorin (nemes-sorin) wrote :

In addition to my previous mail (1 minute ago), I can open folder with
SVG files - Nautilus does not crash -> just push the CPU to 100%.

If I close this folder even I don't do any operation, Nautilus still
remain at 60 - 100% CPU.

I must kill him every time.

Curiously only some SVG files can do this - seems to be SVG files where
are embedded graphics OR complicated fills like pattern fills [svg
patterns with a lot of details - repeated many times in background of an
object].

Right now my CPU is 100% - I can't do almost anything ONLY because I
visited a folder ;).

I tried to open a terminal - terminal window appear and disappear
instantly.

Maybe is not a Nautilus fault but 99,3% peoples will perceive that
Nautilus is unstable.

Revision history for this message
Nemes Ioan Sorin (nemes-sorin) wrote :
Revision history for this message
Nemes Ioan Sorin (nemes-sorin) wrote :

well the symptoms are still here - I removed Xserver-xgl - so no Compiz, maybe is better to fill this bug to an other team (Cairo maybe) ?

Revision history for this message
Sebastien Bacher (seb128) wrote :

The crash is similar to bug #104309

Revision history for this message
Matthew Berta (matthew-berta) wrote :

I have a similar issue with .svg files I create with Inkscape in Ubuntu (7.10). The .svgs in question are not large in themselves (~50kB), but each one links to other files on my hdd (a 100kB svg logo, a 117kB png logo, and a 80kB-2MB tiff/jpg picture). Each time I try to browse a directory containing one of these svgs, Nautilus stops producing/displaying thumbnails when it reaches the svg. I can continue to use that Nautilus window (navigating to other folders, opening documents, viewing file properties, etc), though no further icon previews are generated. However, once I close that particular Nautilus window, I am unable to open a new one without first killing the hung Nautilus process. My processor usage stays low (below 10%), but I notice that the memory footprint goes from the usual 10-15MB to around 25MB. Once I end the process, a new Nautilus window opens and functions as usual.

Revision history for this message
Bruno Santos (bsantos) wrote :

Matthew, are you still having this issue?

I'm having this issue since today on 9.10 with an SVG file with various linked images.

nautilus and eog don't crash but just freeze, so maybe this isn't a duplicate of bug #104309...

I'll try to debug this tomorrow.

Revision history for this message
Matthew Berta (matthew-berta) wrote :

I just checked it and I'm still having this problem with 9.10 as well. I did a little additional testing and it seems that this problem only occurs when nautilus is creating a thumbnail for an svg that references a tif; jpg and png do not present this problem. Nor does nautilus have a problem generating a thumbnail of the tif itself - only Inkscape svgs that include a tif. Additionally, I do not experience 100% processor usage - nautlius hangs and the memory footprint goes up, but the processors remains flat.

Revision history for this message
Bruno Santos (bsantos) wrote : Re: [Bug 151954] Re: Nautilus freeze desktop and kill CPU when handle SVG files

On Wed, 2009-12-09 at 17:05 +0000, Matthew Berta wrote:
> Additionally, I do not experience 100% processor
> usage - nautlius hangs and the memory footprint goes up, but the
> processors remains flat.

Here it is the same.

Revision history for this message
Edgar Castelo (edgarinventor) wrote :

Just solved this one:

After seeing this,
"In particular, I would like to prevent thumbnail generation for images on CD/DVD.
Is there a way? TIA.

Open Nautilus. Goto Edit -> Preferences. In one of the tabs, there is an option to disable preview selectively. See if that helps."

I went and done that, only to find,

A) No .SVG thumbnail setting;
B) A nasty Evince command for Thumbnailing, get this, .EPS files...

Disabled that one, and not only Nautilus won't crash, but .SVG files thumbnail fine!

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.