Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coredump when trying to rename or create a new folder in Icon View #1981

Closed
nick-s-b opened this issue Nov 9, 2018 · 3 comments
Closed

Coredump when trying to rename or create a new folder in Icon View #1981

nick-s-b opened this issue Nov 9, 2018 · 3 comments

Comments

@nick-s-b
Copy link

nick-s-b commented Nov 9, 2018

 * Nemo version (nemo --version)
nemo 4.0.0
 * Is issue with desktop or windowed nemo?
Windowed
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
Arch
 * Graphics hardware *and* driver used
Nvidia, 410.66
 * 32 or 64 bit
64-bit

Issue
When in Icon view, nemo crashes when trying to rename a folder. Crash also happens when I try to create a new folder and name it immediately.
This is not a new bug and has been present in previous versions too. I do not know what causes it but I think the crash happens when nemo is still generating previews for files in the folder.

Steps to reproduce

  1. Make sure you're in Icon View
  2. Enter a new folder that has lots of items in it and make sure the thumbnail cache is empty
  3. Quickly Create a new folder (Shift+Ctrl+n)
  4. Name it something and press Enter.

nemo will crash if nemo is still generating previews when you hit the enter key.
I am unable to provide a 100% reproducible crash because it doesn't happen every time. But given the above steps, it should crash often.

@mtwebster
Copy link
Member

I can't reproduce this (ever) - can you give me some more details - do you have any extensions enabled? Can you reproduce this with all disabled?

The only issue I know of that comes close to this is one I currently have with nemo-dropbox (but only while inside the dropbox folder tree)

Can you try to get a trace of this?

Unfortunately it would ideally require you have debugging symbols, and I see you're using Arch, which doesn't supply them even as optional packages as far as I know. I'd like to see a trace with at least nemo, gtk and glib's symbols, though just nemo's would be a decent start.

If you get that, run gdb nemo, then run, then make nemo crash. At that point do thread apply all bt and capture that output.

Thanks

@digitalcoyote
Copy link

digitalcoyote commented Jan 26, 2019

I believe I have a computer where this is occurring and I'd be happy to get you a trace if I can. It's occurring on PC that is a 2 hour drive from me so this may take a bit of time.

Thread 15 (Thread 0x7fffd37fe700 (LWP 19363)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff575029a in g_cond_wait_until ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff56dd4f1 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff5732aa4 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffd37fe700)
    at pthread_create.c:463
#6  0x00007ffff3cd088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fffdbfff700 (LWP 19357)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff575029a in g_cond_wait_until ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff56dd4f1 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff5732aa4 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffdbfff700)
    at pthread_create.c:463
#6  0x00007ffff3cd088f in clone ()
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fffd3fff700 (LWP 19356)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff575029a in g_cond_wait_until ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff56dd4f1 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff5732aa4 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffd3fff700)
    at pthread_create.c:463
#6  0x00007ffff3cd088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffd9125700 (LWP 19348)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff575029a in g_cond_wait_until ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff56dd4f1 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff5732aa4 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffd9125700)
    at pthread_create.c:463
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff3cd088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fffe880b700 (LWP 19345)):
#0  0x00007ffff3cc3bf9 in __GI___poll (fds=0x555555a5b400, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff570a539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff570a64c in g_main_context_iteration ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffe881336d in ?? ()
   from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffe880b700)
    at pthread_create.c:463
#6  0x00007ffff3cd088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fffe9219700 (LWP 19344)):
#0  0x00007ffff3cc3bf9 in __GI___poll (fds=0x7fffc800d6f0, nfds=4, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff570a539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff570a8d2 in g_main_loop_run ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#3  0x00007ffff5cf7026 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffe9219700)
    at pthread_create.c:463
#6  0x00007ffff3cd088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fffe9a1a700 (LWP 19343)):
#0  0x00007ffff3cc3bf9 in __GI___poll (fds=0x5555559cec90, nfds=2, timeout=649)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff570a539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff570a64c in g_main_context_iteration ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff570a691 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff5732105 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3fa76db in start_thread (arg=0x7fffe9a1a700)
    at pthread_create.c:463
#6  0x00007ffff3cd088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ffff7fb8480 (LWP 19339)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff3bef801 in __GI_abort () at abort.c:79
---Type <return> to continue, or q <return> to quit---
#2  0x00007ffff57312a5 in g_assertion_message ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff573130a in g_assertion_message_expr ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00005555555ac271 in icon_rename_ended_cb (container=<optimized out>, 
    file=0x555556156ee0, 
    new_name=0x5555563de5d0 "221262_1663388915478_114s7989_o.jpg", 
    icon_view=0x555556031aa0) at ../../src/nemo-icon-view.c:1962
#5  0x00007fffef8c9dae in ffi_call_unix64 ()
   from /usr/lib/x86_64-linux-gnu/libffi.so.6
#6  0x00007fffef8c971f in ffi_call ()
   from /usr/lib/x86_64-linux-gnu/libffi.so.6
#7  0x00007ffff59e4901 in g_cclosure_marshal_generic ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8  0x00007ffff59e410d in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9  0x00007ffff59f705e in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff59ff715 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff5a0012f in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00005555556505d8 in nemo_icon_container_end_renaming_mode (
---Type <return> to continue, or q <return> to quit---
    container=0x555556052150, commit=1)
    at ../../libnemo-private/nemo-icon-container.c:7003
#13 0x000055555565624d in key_press_event (widget=0x555556052150, 
    event=0x7fffd401e8b0) at ../../libnemo-private/nemo-icon-container.c:4144
#14 0x00007ffff72b8257 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#15 0x00007ffff59e4250 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff59ff3cd in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff5a0012f in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff73ffb04 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#19 0x00007ffff742048b in gtk_window_propagate_key_event ()
   from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x0000555555608c36 in nemo_window_key_press_event (widget=0x555555d777c0, 
    event=0x7fffd401e8b0) at ../../src/nemo-window.c:1156
#21 0x00007ffff72b8257 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#22 0x00007ffff59e4346 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff59ff3cd in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007ffff5a0012f in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#25 0x00007ffff73ffb04 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#26 0x00007ffff72b529f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#27 0x00007ffff72b72a8 in gtk_main_do_event ()
   from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#28 0x00007ffff6dc8765 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#29 0x00007ffff6df8f82 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#30 0x00007ffff570a387 in g_main_context_dispatch ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007ffff570a5c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007ffff570a64c in g_main_context_iteration ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007ffff5ccae3d in g_application_run ()
   from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#34 0x0000555555588bb2 in main (argc=1, argv=0x7fffffffe038)
    at ../../src/nemo-main.c:104

@SparkyBluefang
Copy link
Contributor

Nemo version 4.0.6
Windowed
Gentoo
NVIDIA Corporation GM107GLM [Quadro M2000M] (rev a2) 415.25

I encounter this SEGFAULT when I try to create/rename a folder when the current folder is "Loading" (progress indicator in the lower right of the window). If I wait for it to finish, I can successfully create a folder. I generally only run into this crash when I'm browsing a folder that has a large number of images or videos, and it has a lot of thumbnails to generate/render.

STR:

  1. Open a folder with a large number of media files.
  2. While nemo is "Loading":
    A. Create a new folder.
    B. Rename an existing a folder.

Expected results:
2A. A new folder is created with the desired name.
2B. The existing folder is renamed with the desired name.

Actual results:
2A. A new folder created with the name Untitled Folder # and nemo crashes.
2B. Nemo crashes with out changing the folder name.

(nemo:21380): GLib-GObject-WARNING **: 01:44:31.244: instance with invalid (NULL) class pointer

(nemo:21380): GLib-GObject-CRITICAL **: 01:44:31.244: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
**
ERROR:../nemo-4.0.6/src/nemo-icon-view.c:1962:icon_rename_ended_cb: assertion failed: (NEMO_IS_FILE (file))
Aborted

https://github.com/linuxmint/nemo/blob/4.0.6/src/nemo-icon-view.c#L1962

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants