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 396642 - nautilus-cd-burner hangs on startup
nautilus-cd-burner hangs on startup
Status: RESOLVED DUPLICATE of bug 389760
Product: nautilus-cd-burner
Classification: Deprecated
Component: cd-burner
2.16.x
Other All
: Normal critical
: ---
Assigned To: Nautilus CD Burner Maintainers
Nautilus CD Burner Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-14 20:33 UTC by Dimi Paun
Modified: 2008-01-21 02:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Dimi Paun 2007-01-14 20:33:24 UTC
Please describe the problem:
After pasting the directoies I need to burn into the CD/DVD Creator Nautilus window, I press the "Write to Disc" button. The natutilu-cs-buriner starts up
with all control grayed out, saying "Calculating size..." and it remains like
that indefinitely.

In fact, it hangs hard without being able to refresh the screen (invalidating the window will result in a gray window), without any sign of CPU usage.

Steps to reproduce:
1. Paste files in the "CD/DVD Creator Nautilus" window
2. Click the "Write to Disc" button
3. Watch nautilus-cd-burner just sit there


Actual results:
Nothing much, the app will no longer respond to input or be able to redraw its screen.

Expected results:
To actually burn the DVD :)

Does this happen every time?
Yes.

Other information:
Here is a backtrace of the nautilus-cd-burner process:

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 ___newselect_nocancel
    from /lib/libc.so.6
  • #2 mapping_protocol_message_unref
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #3 mapping_protocol_channel_send_with_reply
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #4 vfs_module_shutdown
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #5 vfs_module_shutdown
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #6 gnome_vfs_daemon_set_current_connection
    from /usr/lib/libgnomevfs-2.so.0
  • #7 gnome_vfs_directory_open_from_uri
    from /usr/lib/libgnomevfs-2.so.0
  • #8 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #9 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #10 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #11 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #12 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #13 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #14 gnome_vfs_directory_visit
    from /usr/lib/libgnomevfs-2.so.0
  • #15 g_cclosure_marshal_VOID__BOOLEAN
  • #16 g_source_is_destroyed
    from /lib/libglib-2.0.so.0
  • #17 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #18 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #19 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #20 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 g_cclosure_marshal_VOID__BOOLEAN
  • #22 __libc_start_main
    from /lib/libc.so.6
  • #23 g_cclosure_marshal_VOID__BOOLEAN

Comment 1 Dimi Paun 2007-01-14 20:39:58 UTC
More information: after clicking on the "X" top-right window button, I get the "Force Quit" dialog. I kill the app, but then Nautilus can no longer display the files in the "CD/DVD Creator" window, complaining that:

  Nautilus cannot display "burn:///".
  Please select another viewer and try again.

From now on I always get this error whenever I try to access the "CD/DVD Creator". I have to kill(1) nautilus to recover from this state.
Comment 2 Dimi Paun 2007-01-14 20:45:35 UTC
There's more to the story: if I paste just two small directories (<4MB worth of data), nautilus-cd-burner apps starts up as expected.

However, if I add the 3rd directory that is a lot bigger (3.3 GB), it misbehaves as described above, with all the controls grayed out, displaying:

    Data Size: Calculating...

I know I used nautilus-cd-burner to burn DVDs that were almost full, I don't
understand why it stoped working all of a sudden.

Here is another backtrace of this latest misbevaving process:

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 ___newselect_nocancel
    from /lib/libc.so.6
  • #2 mapping_protocol_message_unref
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #3 mapping_protocol_channel_send_with_reply
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #4 vfs_module_shutdown
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #5 vfs_module_shutdown
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #6 gnome_vfs_daemon_set_current_connection
    from /usr/lib/libgnomevfs-2.so.0
  • #7 gnome_vfs_directory_open_from_uri
    from /usr/lib/libgnomevfs-2.so.0
  • #8 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #9 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #10 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #11 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #12 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #13 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #14 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #15 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #16 gnome_vfs_directory_close
    from /usr/lib/libgnomevfs-2.so.0
  • #17 gnome_vfs_directory_visit
    from /usr/lib/libgnomevfs-2.so.0
  • #18 g_cclosure_marshal_VOID__BOOLEAN
  • #19 g_source_is_destroyed
    from /lib/libglib-2.0.so.0
  • #20 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #21 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #22 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #23 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #24 g_cclosure_marshal_VOID__BOOLEAN
  • #25 __libc_start_main
    from /lib/libc.so.6
  • #26 g_cclosure_marshal_VOID__BOOLEAN

Comment 3 Dimi Paun 2007-01-15 23:01:12 UTC
It turns out that the problematic directory contains a lot of file: 178163.
I was able to burn DVD that contain the same amount of data (>3GB) but with
few large files without a problem.

So it seems this has to do with the file count, not file size.

Comment 4 William Jon McCann 2007-01-17 19:34:41 UTC
I'm having a hard time reproducing this because I can't even get nautilus to display a directory with 178163 files.

It is possible that it may just take an extremely long time.  But if it is interrupted then it is possible that nautilus/gnome-vfs is put in an inconsistent state.  Killing nautilus will cause it to disconnect from the mapping daemon and the daemon should reset.

What kind of directory has this many files in it?

One thing you can do help debug is compile n-c-b from source and set "#define DEBUG_ENABLE 1" in mapping-daemon.c mapping-protocol.c and mapping-method.c.  You can then do something like:

strace -ttt -f -p `/sbin/pidof mapping-daemon` 2>&1 |grep MARK
strace -ttt -f -p `/sbin/pidof nautilus` 2>&1 |grep MARK
Comment 5 Dimi Paun 2007-01-17 19:46:04 UTC
It is not a single directory with 178163 files, it's my devel/ tree
with all sorts of subdirs and files. Essentially the 178163 is what
is reported by:
  $ find devel/ -type f | wc -l

You may get a similar amount of files from /usr:
  $ find /usr -type f | wc -l
169072
Comment 6 Thomas Wood 2007-01-21 22:22:18 UTC
I have the same problem, but with less files. I have just less than 2000 files, but almost exactly 4.7GB. Here is my backtrace:

  • #0 ___newselect_nocancel
    from /lib/tls/libc.so.6
  • #1 mapping_protocol_channel_do_read_iteration_unlocked
    at mapping-protocol.c line 839
  • #2 mapping_protocol_channel_send_with_reply
    at mapping-protocol.c line 1056
  • #3 request_op
    at mapping-method.c line 247
  • #4 do_open_directory
    at mapping-method.c line 522
  • #5 open_from_uri
    at gnome-vfs-directory.c line 95
  • #6 directory_visit_internal
    at gnome-vfs-directory.c line 361
  • #7 gnome_vfs_directory_visit
    at gnome-vfs-directory.c line 535
  • #8 update_source
    at ncb-selection.c line 242
  • #9 g_idle_dispatch
    at gmain.c line 3928
  • #10 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #11 g_main_context_iterate
    at gmain.c line 2677
  • #12 IA__g_main_loop_run
    at gmain.c line 2881
  • #13 IA__gtk_main
    at gtkmain.c line 1148
  • #14 main
    at nautilus-cd-burner.c line 380
  • #0 ___newselect_nocancel
    from /lib/tls/libc.so.6
  • #1 mapping_protocol_channel_do_read_iteration_unlocked
    at mapping-protocol.c line 839
  • #2 mapping_protocol_channel_send_with_reply
    at mapping-protocol.c line 1056
  • #3 request_op
    at mapping-method.c line 247
  • #4 do_open_directory
    at mapping-method.c line 522
  • #5 open_from_uri
    at gnome-vfs-directory.c line 95
  • #6 directory_visit_internal
    at gnome-vfs-directory.c line 361
  • #7 gnome_vfs_directory_visit
    at gnome-vfs-directory.c line 535
  • #8 update_source
    at ncb-selection.c line 242
  • #9 g_idle_dispatch
    at gmain.c line 3928
  • #10 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #11 g_main_context_iterate
    at gmain.c line 2677
  • #12 IA__g_main_loop_run
    at gmain.c line 2881
  • #13 IA__gtk_main
    at gtkmain.c line 1148
  • #14 main
    at nautilus-cd-burner.c line 380

Comment 7 William Jon McCann 2007-01-22 16:22:51 UTC
If anyone can reproduce this and perform the steps in comment #4 that would be a big help.  Thanks.
Comment 8 Thomas Wood 2007-01-22 22:50:25 UTC
I tried the steps in comment #4, but I'm currently running into a problem when adding the files (~1700, 4.6GB). Nautilus appears to lock up, with the following backtrace:

  • #0 __lll_mutex_lock_wait
    from /lib/tls/libpthread.so.0
  • #1 _L_mutex_lock_29
    from /lib/tls/libpthread.so.0
  • #2 ??
  • #3 g_private_get_posix_impl
    at gthread-posix.c line 290
  • #4 handle_write
    at mapping-protocol.c line 1325
  • #5 g_io_unix_dispatch
    at giounix.c line 162
  • #6 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #7 g_main_context_iterate
    at gmain.c line 2677
  • #8 IA__g_main_loop_run
    at gmain.c line 2881
  • #9 IA__gtk_main
    at gtkmain.c line 1148
  • #10 main
    at nautilus-main.c line 548


strace output (using command options above) on nautilus gives the following repeating block:

[pid 29945] 1169506111.836404 access("MARK: nautilus mapping_protocol_channel_fill_read_buffer_unlocked:  No data read into buffer", F_OK) = -1 ENOENT (No such file or directory)
[pid 29945] 1169506111.836505 access("MARK: nautilus mapping_protocol_channel_queue_messages_unlocked:  Queuing messages...", F_OK) = -1 ENOENT (No such file or directory)
[pid 29945] 1169506111.836578 access("MARK: nautilus mapping_protocol_channel_queue_messages_unlocked:  Processing message of type: R", F_OK) = -1 ENOENT (No such file or directory)
[pid 29945] 1169506111.837858 access("MARK: nautilus lookup_reply_for_serial:  Looking for reply for 6273", F_OK) = -1 ENOENT (No such file or directory)
[pid 29945] 1169506111.838422 access("MARK: nautilus mapping_protocol_channel_fill_read_buffer_unlocked:  Reading... ", F_OK) = -1 ENOENT (No such file or directory)

Comment 9 William Hamblen 2008-01-17 13:39:13 UTC
I think I can confirm this in RHEL5 x86_64.  That's version 2.16.0-7.el5.

We dragged a directory with 143751 files in it and the cd burner window became unresponsive.  We eventually killed it but after restarting the folder still cannot be deleted from the burn:/// window.  We tried dragging it to the trash but after 90 minutes the app was still frozen.

Can anyone tell me which keys/files/links to delete to reset things for this user account?  For now the application is useless for this user.

 - Bill
Comment 10 William Jon McCann 2008-01-21 02:01:07 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 389760 ***