files icon indicating copy to clipboard operation
files copied to clipboard

App crashes when right clicking empty space

Open GammaGames opened this issue 2 months ago • 9 comments

What Happened?

The program crashed when I right clicked to try to make a folder. It happens in any folder for grid, list, and column view. I didn't see anything in syslog and running the files app in debug mode with io.elementary.files --debug doesn't print anything.

Image

Steps to Reproduce

  1. Open file browser to any folder
  2. Right click an empty space
  3. Program hangs, and then crashes

Expected Behavior

shouldn't crash

OS Version

8.x (Circe)

OS Architecture

amd64 (on most hardwares)

Session Type

Classic Session (X11, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

$ io.elementary.files --debug
Killed

Hardware Info

No response

GammaGames avatar Oct 21 '25 16:10 GammaGames

This might be a duplicate of #2613 ? That bug is due to be fixed in the next release in a few days time.

jeremypw avatar Oct 22 '25 09:10 jeremypw

Thanks, I'll keep an eye on https://releases.elementary.io/

GammaGames avatar Oct 22 '25 23:10 GammaGames

Still happening on 7.1.6. Only difference is sometimes it doesn't crash, it just takes ~15s for the right click menu to open.

GammaGames avatar Nov 14 '25 22:11 GammaGames

@GammaGames That's disappointing - v7.1.6 seems to fix the similar issue #2613 so maybe the cause is different in your case? Can you advise whether the "New/Template" part of the context menu contains lots of files/folders in your case? In general does any part of the context menu appear unusual when it does appear?

If you are able could you install gdb then run Files with gdb io.elementary.files from a terminal. When Files hangs, return to the terminal and press <Control>C (do not Force Quit Files). If you then type bt you should get a backtrace which you can post here.

jeremypw avatar Nov 15 '25 15:11 jeremypw

Running gdb io.elementary.files doesn't start the app, so I tried running sudo gdb -pid $(pidof io.elementary.files) with a running window and that crashes the app. Not sure if it'll be helpful but:

Attaching to process 20819
[New LWP 20833]
[New LWP 20828]
[New LWP 20825]
[New LWP 20824]
[New LWP 20823]
[New LWP 20822]

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgio-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk-3.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcanberra.so.0
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlidec.so.1
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlicommon.so.1
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007defe4f1b4fd in __GI___poll (fds=0x5eff0cd1cc20, nfds=3, timeout=1062) at ../sysdeps/unix/sysv/linux/poll.c:29

warning: 29	../sysdeps/unix/sysv/linux/poll.c: No such file or directory

Then bt printed:

#0  0x00007defe4f1b4fd in __GI___poll (fds=0x5eff0cd1cc20, nfds=3, timeout=1062) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007defe619368e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007defe6133a63 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007defe5f8b87d in g_application_run () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
Backtrace stopped: Cannot access memory at address 0x7ffec7a5b698

GammaGames avatar Nov 17 '25 15:11 GammaGames

Hmm, I've never seen that kind of message - although there are reports of e.g. Ubuntu users seeing them. Maybe try installing the package build-essential and all the build dependencies for Files with sudo apt build-dep io.elementary.files to ensure all the debugging information is available to gdb? Make sure no instances of Files are already running before running under gdb.

jeremypw avatar Nov 17 '25 17:11 jeremypw

It appears that I actually needed to run sudo apt build-dep pantheon-files? It had no difference either way, still says no debugging symbols found:

Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from io.elementary.files...
(No debugging symbols found in io.elementary.files)

GammaGames avatar Nov 17 '25 17:11 GammaGames

Ah yes, sorry. I keep forgetting the package has a different name to the project/executable

jeremypw avatar Nov 17 '25 18:11 jeremypw

You can try installing libpantheon-files-core-dev but to get all debugging symbols you probably need to build Files from source.

jeremypw avatar Nov 17 '25 18:11 jeremypw