After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 122141 - Nautilus crash while creating many files in a script [nautilus_icon_container_move_icon]
Nautilus crash while creating many files in a script [nautilus_icon_container...
Status: VERIFIED INCOMPLETE
Product: nautilus
Classification: Core
Component: general
2.4.x
Other other
: High critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 119370 127213 127711 128143 128180 129192 129212 129338 129519 129871 130863 131632 131735 132023 132866 134436 135316 136515 136518 138594 139060 139769 140427 140838 140839 145669 146143 146224 149916 154763 154913 156362 157737 163658 165589 302407 312588 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-12 17:24 UTC by Luke Hutchison
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: 2.6.next
GNOME version: 2.3/2.4



Description Luke Hutchison 2003-09-12 17:24:07 UTC
Distribution: Red Hat Linux release 9 (Shrike)
Package: nautilus
Severity: normal
Version: GNOME2.3.90 2.4.0
Gnome-Distributor: GNOME.Org
Synopsis: Nautilus crash while creating many files in a script
Bugzilla-Product: nautilus
Bugzilla-Component: general
Bugzilla-Version: 2.4.0
BugBuddy-GnomeVersion: 2.0 (2.4.0.1)
Description:
I just wrote a script that creates 120 files in a directory that was
open in Nautilus, and it crashed Nautilus.  I have run it several times,
and it is the first time this has happened.  (See backtrace.)


Debugging Information:

Backtrace was generated from '/usr/bin/nautilus'

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 1086645152 (LWP 5630)]
[New Thread 1089911728 (LWP 5636)]
[New Thread 1089612720 (LWP 5635)]
[New Thread 1088682928 (LWP 5632)]
[New Thread 1088416688 (LWP 5631)]
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
0x4001544e in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

Thread 1 (Thread 1086645152 (LWP 5630))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 waitpid
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #5 raise
    from /lib/tls/libc.so.6
  • #6 abort
    from /lib/tls/libc.so.6
  • #7 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #8 g_log
    from /usr/lib/libglib-2.0.so.0
  • #9 nautilus_icon_container_move_icon
    from /usr/lib/libnautilus-private.so.2
  • #10 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #16 gtk_widget_realize
    from /usr/lib/libgtk-x11-2.0.so.0
  • #17 eel_canvas_item_construct
    from /usr/lib/libeel-2.so.2
  • #18 eel_canvas_item_construct
    from /usr/lib/libeel-2.so.2
  • #19 eel_canvas_item_show
    from /usr/lib/libeel-2.so.2
  • #20 nautilus_icon_container_update_icon
    from /usr/lib/libnautilus-private.so.2
  • #21 nautilus_icon_container_update_icon
    from /usr/lib/libnautilus-private.so.2
  • #22 nautilus_icon_container_update_scroll_region
    from /usr/lib/libnautilus-private.so.2
  • #23 nautilus_icon_container_update_scroll_region
    from /usr/lib/libnautilus-private.so.2
  • #24 g_timeout_add
    from /usr/lib/libglib-2.0.so.0
  • #25 unblock_source
    from /usr/lib/libglib-2.0.so.0
  • #26 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #27 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #28 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #29 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #30 main
  • #31 __libc_start_main
    from /lib/tls/libc.so.6
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2



------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-09-12 13:24 -------

Unknown version 2.4.0 in product nautilus. Setting version to the default, "unspecified".
Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.

Comment 1 Martin Wehner 2003-11-27 14:25:27 UTC
Marking as new, setting priority->high, severity->critical,
version->2.4.x. Adding GNOMEVER2.4, GNOMEVER2.5, STACKTRACE keywords.
Comment 2 Martin Wehner 2003-11-27 14:27:03 UTC
*** Bug 127213 has been marked as a duplicate of this bug. ***
Comment 3 Martin Wehner 2003-11-27 14:27:36 UTC
*** Bug 127711 has been marked as a duplicate of this bug. ***
Comment 4 Martin Wehner 2003-11-28 22:28:36 UTC
*** Bug 128143 has been marked as a duplicate of this bug. ***
Comment 5 Martin Wehner 2003-11-29 19:43:49 UTC
*** Bug 128180 has been marked as a duplicate of this bug. ***
Comment 6 Elijah Newren 2003-12-12 16:27:55 UTC
*** Bug 129192 has been marked as a duplicate of this bug. ***
Comment 7 Matthew Gatto 2003-12-13 00:32:53 UTC
*** Bug 129212 has been marked as a duplicate of this bug. ***
Comment 8 Elijah Newren 2003-12-15 03:28:18 UTC
*** Bug 129338 has been marked as a duplicate of this bug. ***
Comment 9 Elijah Newren 2003-12-17 17:56:26 UTC
*** Bug 129519 has been marked as a duplicate of this bug. ***
Comment 10 Martin Wehner 2003-12-23 17:32:12 UTC
*** Bug 129871 has been marked as a duplicate of this bug. ***
Comment 11 Alex Duggan 2004-01-08 15:09:37 UTC
*** Bug 130863 has been marked as a duplicate of this bug. ***
Comment 12 Matthew Gatto 2004-01-16 14:02:31 UTC
*** Bug 131632 has been marked as a duplicate of this bug. ***
Comment 13 Matthew Gatto 2004-01-22 20:06:38 UTC
*** Bug 132023 has been marked as a duplicate of this bug. ***
Comment 14 Martin Wehner 2004-01-25 06:32:13 UTC
*** Bug 131735 has been marked as a duplicate of this bug. ***
Comment 15 Martin Wehner 2004-01-29 17:26:16 UTC
*** Bug 132866 has been marked as a duplicate of this bug. ***
Comment 16 Matthew Gatto 2004-02-15 22:19:09 UTC
*** Bug 134436 has been marked as a duplicate of this bug. ***
Comment 17 Theodore Randall 2004-02-24 22:28:30 UTC
*** Bug 135316 has been marked as a duplicate of this bug. ***
Comment 18 Luis Villa 2004-03-03 05:08:26 UTC
As far as I can see, all dups of this are from GNOME 2.4- but given
the number of dups, Dave, Alex, could you take a look and verify that
it isn't also present in 2.6? Thanks.
Comment 19 Alexander Larsson 2004-03-03 13:37:18 UTC
Unfortunately none of the backtraces have debug information, so its
very hard to debug this. Also, all the crashes seem to be in an assert
of something like that, so there should be some output (maybe in
.Xsession-errors, or stdout) when this happens. Getting that might
also help.
Comment 20 Alexander Larsson 2004-03-03 13:45:02 UTC
I bet its hard to find dups of this that really have debug info in
them, since the crash really isn't in
nautilus_icon_container_move_icon. That is just the closest
non-private symbol before where the crash is, and unfortnately there
is about 1700 lines of code between nautilus_icon_container_move_icon
and the next public symbol.

The easiest way to get a good trace is if someone who can easily
reproduce this somehow installs debug info for eel and nautilus.
Comment 21 Alexander Larsson 2004-03-03 13:59:38 UTC
Ah, i know this one!

The real backtrace is something like:

  • #8 g_log
    from /usr/lib/libglib-2.0.so.0
  • #9 realize
    from nautilus-icon-container.c:3069
  • #10 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #16 gtk_widget_realize
    from /usr/lib/libgtk-x11-2.0.so.0
  • #17 eel_canvas_item_realize
    from /usr/lib/libeel-2.so.2
  • #18 eel_canvas_item_realize
    from /usr/lib/libeel-2.so.2
  • #19 eel_canvas_item_show
    from /usr/lib/libeel-2.so.2
And the crash is at:

g_assert (GTK_IS_WINDOW (gtk_widget_get_toplevel (widget)));

Comment 22 Alexander Larsson 2004-03-03 14:06:55 UTC
*** Bug 119370 has been marked as a duplicate of this bug. ***
Comment 23 Alexander Larsson 2004-03-03 14:09:43 UTC
Bug 119370 is the dup-head for the version with debug info. That
particular bug has a good backtrace. It also mentions that this bug
has similarities with bug 117931. They fail in different places, but
it looks like the core reason for it (there is no toplevel widget for
the view) is the same.
Comment 24 Alexander Larsson 2004-03-03 14:31:02 UTC
So, what seems to happen is:

externally to nautilus, a file is created. Nautilus picks up this, and
creates an icon for it. When showing the icon its not realized, so we
realize it, to realize it we also realize the parent widget (which was
unrealized), and realizing the nautilus-icon-view tries to set the
icon view as the focus widget of the window, but somehow the view
doesn't have a parent toplevel window.

Questions:
None of the bugs mention opening of new windows, just creation of new
files. Why isn't the icon view already realized? And why isn't it in a
 toplevel window?
Comment 25 Matthew Gatto 2004-03-08 08:31:32 UTC
*** Bug 136518 has been marked as a duplicate of this bug. ***
Comment 26 Matthew Gatto 2004-03-08 08:31:47 UTC
*** Bug 136515 has been marked as a duplicate of this bug. ***
Comment 27 Martin Wehner 2004-03-31 21:30:56 UTC
*** Bug 138594 has been marked as a duplicate of this bug. ***
Comment 28 Martin Wehner 2004-04-04 23:09:26 UTC
*** Bug 139060 has been marked as a duplicate of this bug. ***
Comment 29 Martin Wehner 2004-04-13 22:06:47 UTC
*** Bug 139769 has been marked as a duplicate of this bug. ***
Comment 30 Martin Wehner 2004-04-18 18:00:45 UTC
*** Bug 140427 has been marked as a duplicate of this bug. ***
Comment 31 Martin Wehner 2004-04-23 23:03:40 UTC
*** Bug 140838 has been marked as a duplicate of this bug. ***
Comment 32 Martin Wehner 2004-04-23 23:04:42 UTC
*** Bug 140839 has been marked as a duplicate of this bug. ***
Comment 33 Luis Villa 2004-06-07 03:00:21 UTC
Anyone object to closing this until we get a dup from 2.6? Alex, Dave, Martin?
Comment 34 Martin Wehner 2004-07-09 01:51:21 UTC
*** Bug 146224 has been marked as a duplicate of this bug. ***
Comment 35 Martin Wehner 2004-07-09 01:52:24 UTC
*** Bug 146143 has been marked as a duplicate of this bug. ***
Comment 36 Martin Wehner 2004-07-09 01:53:08 UTC
*** Bug 145669 has been marked as a duplicate of this bug. ***
Comment 37 Vincent Noel 2004-08-11 15:42:48 UTC
*** Bug 149916 has been marked as a duplicate of this bug. ***
Comment 38 Martin Wehner 2004-09-16 19:33:18 UTC
No dups with Nautilus > 2.4, marking NEEDINFO for now.
Comment 39 Matthew Gatto 2004-10-29 07:21:34 UTC
*** Bug 156362 has been marked as a duplicate of this bug. ***
Comment 40 Matthew Gatto 2004-11-04 09:33:52 UTC
*** Bug 154763 has been marked as a duplicate of this bug. ***
Comment 41 Matthew Gatto 2004-11-04 09:34:31 UTC
*** Bug 154913 has been marked as a duplicate of this bug. ***
Comment 42 Elijah Newren 2004-11-09 14:32:34 UTC
*** Bug 157737 has been marked as a duplicate of this bug. ***
Comment 43 Luke Hutchison 2004-11-10 03:03:45 UTC
I observed a crash with similar symptoms on GNOME-2.7 recently (i.e. Nautilus
crashed while a large number of files were added or deleted), but I have no
backtrace to show from it, and I can't confirm it is the same problem.
Comment 44 Elijah Newren 2005-01-11 16:58:35 UTC
*** Bug 163658 has been marked as a duplicate of this bug. ***
Comment 45 Stephane Wirtel 2005-01-28 01:54:03 UTC
I close this bug.

No crash with 4000 files.

mkdir ~/Desktop/test -p
with nautilus : open the directory
After, I launch a python script to make the same thing and hope to get the same
bug. But nothing with 4000 files.

My script :  
#!/usr/bin/env python

import os,string

for i in range (1, 4000):
    fichier = open ("test%04d"%i, 'w')
    fichier.write("toto")
    fichier.close

Nautilus Version : 
stef@ubuntu:~/Desktop/test $ nautilus --version
Gnome nautilus 2.8.1
stef@ubuntu:~/Desktop/test $ 

I checked my script on another ubuntu "hoary" and I don't get this error .

Nautilus version on my hoary ubuntu : 2.9.90


Comment 46 Olav Vitters 2005-01-29 10:19:23 UTC
*** Bug 165589 has been marked as a duplicate of this bug. ***
Comment 47 Olav Vitters 2005-04-29 21:24:24 UTC
*** Bug 302407 has been marked as a duplicate of this bug. ***
Comment 48 Brent Smith (smitten) 2005-08-04 21:49:10 UTC
*** Bug 312588 has been marked as a duplicate of this bug. ***