GNOME Bugzilla – Bug 85337
Nautilus crashes when clicking on "Home" desktop icon
Last modified: 2004-12-22 21:47:04 UTC
Package: nautilus Severity: critical Version: 1.1.19 Synopsis: Nautilus crashes when clicking on "Home" desktop icon Bugzilla-Product: nautilus Bugzilla-Component: Desktop BugBuddy-GnomeVersion: 2.0 (2.0.0) Description: Description of Problem: Nautilus crashes when clicking on "Home" desktop icon. Responds with some error about nautilus-music (or something akin). Steps to reproduce the problem: 1. Click my "Home" desktop icon. 2. 3. Actual Results: Spits out error. Expected Results: For Nautilus to start. How often does this happen? Every time so far. Additional Information: Running garnome 0.10.6 with metacity. Debugging Information: Backtrace was generated from '/home/jason/garnome/bin/nautilus-music-view' [New Thread 1024 (LWP 23097)] [New Thread 2049 (LWP 23098)] [New Thread 1026 (LWP 23099)] 0x420b4769 in wait4 () from /lib/i686/libc.so.6
+ Trace 23857
Thread 1 (Thread 1024 (LWP 23097))
v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}} error = (gchar *) 0xbfffeec4 " ------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-06-14 22:53 ------- Unknown version 1.1.x in product nautilus. Setting version to the default, "unspecified". The original reporter (jasondixon@myrealbox.com) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.
Are there a lot of music files in your $HOME? Could you give us an [edited if necessary] listing of the files in there?
Actually, there aren't ANY audio files in the first level of my $HOME: [jason@lappy jason]$ ls -l total 929948 -rw-rw-r-- 1 jason jason 2283 May 25 01:24 Application.pm drwxr-xr-x 7 jason jason 4096 May 23 19:35 crossover drwxr-xr-x 7 jason jason 4096 Jun 14 12:46 cxoffice drwxrwxr-x 2 jason jason 4096 Jun 10 15:35 Documents drwx------ 6 jason jason 4096 Jun 14 13:38 evolution drwxrwxr-x 13 jason jason 4096 May 21 18:59 garnome -rw-rw-r-- 1 jason jason 1453051 Jun 12 13:54 ICAClient-6.30-1.i386.rpm -rw-rw-r-- 1 jason jason 1485835 Jun 12 13:54 linuxx86.tar.gz drwx------ 2 jason jason 4096 May 26 16:11 mail -rw------- 1 jason jason 42446 Jun 14 23:56 maxtor-rebate.pdf drwxrwxr-x 5 jason jason 4096 Jun 14 23:41 metacity-setup-0.4.1 -rw------- 1 jason jason 80392 Jun 14 23:39 metacity-setup-0.4.1.tar.gz drwxrwxr-x 2 jason jason 4096 Jun 13 22:07 movies drwxrwxr-x 7 jason jason 4096 May 30 09:48 mp3 -rw------- 1 jason jason 7902470 May 22 02:14 PGPFW658Win32.zip -rw-rw-r-- 1 jason jason 939781930 Jun 15 06:31 pulp.mpeg drwx------ 2 jason jason 4096 Jun 7 12:04 stuff
The music view is crashing because there are no music files. This was never tested before, because the music view doesn't show up in the menu for directories that have no music files. However, if a component is specified in the directory metafile (if it was chosen from the menu before) it is not subjected to the same tests that usually filters the music view out of the menu, so it can be activated on directories that it normally can't view. The comments indicate that this is the desired behaviour. I sort of agree with it (it would be confusing to choose a view and have it forget that later), so the solution in this case is probably to just make sure the music view doesn't crash. The attached patch fixes the crash. It would be nice if nautilus could fall back to a different view if a view fails to activate.
Created attachment 9302 [details] [review] Don't crash with an empty music view.
What I find particularly odd is that this is a *first-use* behavior. This icon defaulted to the music-view... it wasn't something I chose, and then removed music files. I've been able to "fix" it by cp'g an mp3 to my home folder, opening nautilus, then changing the default to icon view. But this bothers me... why would it default to music-view, and where is that configured? I didn't see anything in the icon config file that would warrant this behavior. -J.
Doh. Dave, Damon: Pick and choose between this patch and the one on bug 85975, please :) [Clearly they are duplicates.] Also, please mark bug 84979 a duplicate of the 'winner' if that is appropriate.
My patch is obviously better! I bet your music view crashes if you click the Previous Track or Play buttons!
*** This bug has been marked as a duplicate of 85975 ***