[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
*** This bug is a duplicate of bug 397192 *** https://bugs.launchpad.net/bugs/397192 This is a duplicate of Bug 397192 which has more info and a sample file to download. ** This bug has been marked a duplicate of bug 397192 nautilus becomes non-responsive during video-playback -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
*** This bug is a duplicate of bug 397192 *** https://bugs.launchpad.net/bugs/397192 It's still incomplete: we still have no concrete way of reproducing it and no leads as to why the file is even opened in the nautilus process in the first place though more details are certainly helpful. You can attach gdb to a currently running nautilus instance by running gdb --pid=`pidof nautilus` and then following all of the regular steps. Specifically, it'd be really nice to know where nautilus actually open()s the file. ** Changed in: nautilus (Ubuntu) Status: Confirmed => Incomplete -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
Confirming with latest karmic. This is a regression from jaunty. I have several Matroska Video (.mkv) containers with x264 video and AC-3 audio, size ca. 1.5 GB, and this happens with all of them. The bug is only triggered when Nautilus setting for "Preview > Other Previewable Files > Show thumbnails" is set to something else than "never". Even if it's set to "Local files only" and "Only for smaller files than": "5 MB", I get the bug. There are different manifestations of this bug. The most reproducible for me: 1. Open folder with big video file in nautilus 2. Double-click on it, so that totem will start 3. It takes an unusual amount of time until totem starts playing the video 4. Observe e.g. with "top" that nautilus starts using more memory, until all RAM is full, after which nautilus will have near 100% CPU as well. Other way I experience this bug, but not reproducibly. Could depend on the exact sequence of starting and closing nautilus and movie players... Here is how I hit it just before: 1. Open folder with big video file in nautilus 2. Open movie in mplayer from nautllus (right click -> open with) 3. Watch movie 4. Close mplayer, close nautilus folder window 5. Open nautilus, navigate to same folder again 6. Folder opens, but contents do not get displayed; high constant HDD activity, full RAM + CPU usage by nautilus, until it hangs. I hit the same problems as the reporter regarding obtaining a backtrace with gdb. Could this have something to do with the threads created (see end of attached gdb log by LoonyPhoenix). I am marking this as confirmed for now. Could you Pedro or anybody else provide guidance on how to obtain a correct backtrace here? ** Changed in: nautilus (Ubuntu) Status: Incomplete => Confirmed -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
I think I found a way to produce a backtrace. I found a crash report in /var/crash/ and I think it was this bug that caused the crash, because nautilus only ever crashed on this file, as far as I remember. I reported a separate bug, because I didn't know how to make apport attach that information to this bug. https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/412700 -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
I also tried an strace, but the resulting log was more than 100 MB, and I even stopped strace before nautilus reached 50% memory consumption... -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
I tried to follow the steps for backtracing, but the gdb became unresponsive when nautilus crashes. Here's what happens: I use pidof to find nautilus's pid, then I start gdb and follow the steps to attach to nautilus, that works, I enter continue, and I focus on the problematic file in nautilus. Then nautilus starts hogging memory, but it's still responsive for several minutes, although slow. Finally, Nautilus hits around 75 of system memory and that's when it also hogs cpu and becomes unresponsive. I try to hit ctrl-c in gdb, but nothing happens, and gdb is unresponsive, and I'm forced to kill first nautilus (in gdb nothing happens) and then gdb. The file I attached is what I see in gdb's terminal. ** Attachment added: "gdb-nautilus.txt" http://launchpadlibrarian.net/30245808/gdb-nautilus.txt -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
Thanks for your bug report. Please try to obtain a backtrace of the hang 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 (Ubuntu) Importance: Undecided => Medium ** Changed in: nautilus (Ubuntu) Status: New => Incomplete ** Changed in: nautilus (Ubuntu) Assignee: (unassigned) => Ubuntu Desktop Bugs (desktop-bugs) -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 412040] Re: nautilus hangs consuming lots of memory and cpu when opening large video files
** Attachment added: "Dependencies.txt" http://launchpadlibrarian.net/30181175/Dependencies.txt ** Attachment added: "usr_lib_nautilus.txt" http://launchpadlibrarian.net/30181176/usr_lib_nautilus.txt -- nautilus hangs consuming lots of memory and cpu when opening large video files https://bugs.launchpad.net/bugs/412040 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs