Nautilus crashes when opening places from the dock context menu [SIGSEGV in delete_outdated_error_traps() from gdk_x11_display_error_trap_push()]

Bug #1934579 reported by tyknkd
260
This bug affects 51 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Fix Released
High
Marco Trevisan (Treviño)
Jammy
Fix Released
High
Marco Trevisan (Treviño)
Kinetic
Fix Released
High
Marco Trevisan (Treviño)

Bug Description

[ Impact ]

Nautilus crashes when a bookmarked place is opened from dock icon context menu

[ Test case ]

1. Open Nautilus (and ensure you've a location in the sidebar bookmarks)
2. Right-click ubuntu dock nautilus icon
3. Activate one of the bookmarks
4. Nautilus should open that location without crashing.

[ Regression potential ]

A window may not be raised when opened under wayland.

---

After updating to Ubuntu 21.04, Nautilus crashes every time I try to open a second folder by right-clicking on the Nautilus icon in the "Favorites" left sidebar (i.e., launch panel) and selecting a bookmarked "Places" folder. Normally, this would open a second Nautilus window for the selected folder, but instead, any open Nautilus windows disappear and no window opens for the selected folder. In other words, Nautilus crashes. This did not occur on Ubuntu 20.10.

This AskUbuntu post describes the same issue: https://askubuntu.com/questions/1344175/nautilus-crashes-when-trying-to-open-another-window-by-right-clicking-the-nautil

If, instead, I right-click the Nautilus icon, select "New Window" and then select the desired "Places" folder from the left sidebar of the newly opened window, Nautilus does not crash.

ProblemType: BugDistroRelease: Ubuntu 21.04
Package: nautilus 1:3.38.2-1ubuntu2
ProcVersionSignature: Ubuntu 5.11.0-22.23-generic 5.11.21
Uname: Linux 5.11.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Jul 4 13:36:13 2021
InstallationDate: Installed on 2020-02-05 (514 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)SourcePackage: nautilus
UpgradeStatus: Upgraded to hirsute on 2021-06-30 (4 days ago)
usr_lib_nautilus:
 evince 40.1-1
 file-roller 3.38.1-1
 nautilus-extension-gnome-terminal 3.38.1-1ubuntu1
 nautilus-share 0.7.3-2ubuntu3

Revision history for this message
tyknkd (tyknkd) wrote :
summary: - Nautilus crashes when opening multiple "Places" folders
+ Nautilus crashes when opening multiple "Places" folders from launch
+ panel
description: updated
description: updated
description: updated
tyknkd (tyknkd)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Nautilus crashes when opening multiple "Places" folders from launch panel

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

1. Look in /var/crash for crash files and if found run:
    ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.

2. If step 1 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

3. If step 2 also failed then apply the workaround from bug 994921, reboot, reproduce the crash, and retry step 1.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

Changed in nautilus (Ubuntu):
importance: Undecided → High
status: New → Incomplete
summary: - Nautilus crashes when opening multiple "Places" folders from launch
- panel
+ Nautilus crashes when opening places from the dock contextual action
summary: - Nautilus crashes when opening places from the dock contextual action
+ Nautilus crashes when opening places from the dock contextmenu
Revision history for this message
tyknkd (tyknkd) wrote (last edit ): Re: Nautilus crashes when opening places from the dock contextmenu

Thank you for your detailed instructions, Sebastien.

1. There is a /var/crash/_usr_bin_nautilus.1000.crash file. When I run ubuntu-bug _usr_bin_nautilus.1000.crash, a window opens which says: 'The application Files has closed unexpectedly. Send problem report to the developers? ExecutablePath /usr/bin/nautilus...' However, after I click 'Send', a bug report browser window does not open.

2. Here is the link for '2021-07-06 20:07 2021-07-06 11:07 UTC Crash nautilus':
https://errors.ubuntu.com/oops/1b360ac0-de4f-11eb-9cf8-fa163e6cac46

3. After commenting out line 23 ("'problem_types': ['Bug', 'Package'],") in '/etc/apport/crashdb.conf', the bug report browser window opened, so I was able to file the bug report, which is here:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1934779
It was automatically marked private because it apparently includes private user information, so I added you as a subscriber.

Revision history for this message
tyknkd (tyknkd) wrote :

Changed to confirmed since another user confirmed it affects them.

Changed in nautilus (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
tyknkd (tyknkd) wrote :

Please let me know if any additional information is required.

Revision history for this message
tyknkd (tyknkd) wrote :

Workaround: Use Xorg (not Wayland)

tags: added: desktop-lts-wishlist
Revision history for this message
Karthik Nair (knair) wrote :

This affects me too.. any updates ?

Revision history for this message
chiamin (chiaminchung) wrote :

Same problem

Revision history for this message
Robin Sheat (eythian) wrote :

This is reproducible in 22.04 also

Revision history for this message
Sebastian Ilea (s3b4) wrote :

Bug still present in 22.04 LTS.

Revision history for this message
pablo33 (pablo33) wrote :

Yep, the same issue here after upgrading to 22.04 LTS.

Revision history for this message
Marcin (iim1) wrote :

It still affects in Ubuntu 22.04 LTS.
It's shocking that the bug hasn't been fixed in LTS release although it was detected in the previous version.

Revision history for this message
tyknkd (tyknkd) wrote (last edit ):
Revision history for this message
galen (galen-technomage) wrote :

The bug is still there even include to Ubuntu 22.10 development branch. The crash arrive in the same conditions previously mentioned except that using X11 instead Wayland does not fix anything at all.
Crash arrive in both case ! it's time for this bug to disappear ...

Revision history for this message
Koffing (a-wild-koffing) wrote :

I am experiencing it on fresh install of 22.04 as well. Identical to the original bug description, if I select "New Window" instead of a bookmarked location there is no crash. Occurs with pre-configured bookmarks (Documents, Downloads) and user-added fs locations.

Revision history for this message
galen (galen-technomage) wrote :

Yes apparently, it work again. Let's try to testing for some weeks before to consider this bug resolved. :)

Revision history for this message
Ryan Antkowiak (ryanantkowiak) wrote :

Bug happens for me, on fully updated 22.04. Only crashes if I pick one of the bookmarked folders. If I select "New Window", it does not crash.

Linux dell-xps-8700 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Package: gnome-panel
Version: 1:3.44.0-1ubuntu1

Package: nautilus
Version: 1:42.2-0ubuntu1

Package: libwayland-client0
Version: 1.20.0-1

Package: libwayland-server0
Version: 1.20.0-1

Revision history for this message
Ali Devrim OĞUZ (devrim-oguz) wrote :

I am experiencing the same issue to this day. I have sent many crash reports about it.

Ubuntu 22.04.1 LTS
Linux Kernel 5.15.0-48-generic

I'm using Wayland.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Tracking in:
https://errors.ubuntu.com/problem/b08214abbd45a512fd85cd586ff646af50a1e2bc

Steps to reproduce also mentioned in:
bug 1961453 and bug 1991659.

The crash in my case seems to originate from unity-bookmarks-handler.c which is from nautilus patch debian/patches/12_unity_launcher_support.patch

#5 0x00007f5710b9be82 in gdk_x11_window_set_user_time (window=0x55dcabbf21c0, timestamp=timestamp@entry=1665045124) at x11/../../../../../gdk/x11/gdkwindow-x11.c:3633

#6 0x000055dca9345e2d in activate_bookmark_by_quicklist (menu=<optimized out>, timestamp=1665045124, bookmark=<optimized out>) at ../src/unity-bookmarks-handler.c:62

I'm running Wayland so don't think X11 Window logic should be used anymore. I wonder if we can drop 12_unity_launcher_support.patch ?

Changed in nautilus (Ubuntu):
status: Confirmed → Triaged
tags: added: jammy
removed: hirsute
summary: - Nautilus crashes when opening places from the dock contextmenu
+ Nautilus crashes when opening places from the dock context menu [SIGSEGV
+ in delete_outdated_error_traps() from gdk_x11_display_error_trap_push()]
Revision history for this message
Stefan Pappalardo (sjuk) wrote :

I can confirm that switching from wayland to xorg is a valid workaround on Ubuntu 22.04, which is still affected by this bug.

Changed in nautilus (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in nautilus (Ubuntu Jammy):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
importance: Undecided → High
status: New → In Progress
Changed in nautilus (Ubuntu Kinetic):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
importance: Undecided → High
status: New → In Progress
description: updated
Revision history for this message
Teo (teo7) wrote :

I also get the same bug on xorg (ubuntu 22.10).

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:43.1-1ubuntu2

---------------
nautilus (1:43.1-1ubuntu2) lunar; urgency=medium

  * d/p/ubuntu/unity_launcher_support.patch: Only set window time under x11
    (LP: #1934579)
  * debian/patches: Always open bookmarks opened from launcher in new window

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 12 Dec 2022 14:34:16 +0100

Changed in nautilus (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello koyakun, or anyone else affected,

Accepted nautilus into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nautilus/1:43.0-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in nautilus (Ubuntu Kinetic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-kinetic
Changed in nautilus (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello koyakun, or anyone else affected,

Accepted nautilus into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nautilus/1:42.2-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
tyknkd (tyknkd) wrote (last edit ):

Bug fixed after updating to jammy-proposed/nautilus/1:42.2-0ubuntu2

Thank you!

Testing procedure:
Booted with Wayland
Reproduced bug (as described in test case above)
Updated to jammy-proposed/nautilus/1:42.2-0ubuntu2
Rebooted with Wayland
Performed test case as above
Already open Nautilus windows remain and window for selected place opens as expected

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Earl Kinsley (earlkinsley) wrote :

Bug fixed after updating to kinetic-proposed/nautilus/1:43.0-1ubuntu2

Testing procedure:
Booted with Wayland
Reproduced bug (as described in test case above)
Updated to kinetic-proposed/nautilus/1:43.0-1ubuntu2
Rebooted with Wayland
Performed test case as above
Already open Nautilus windows remain and window for selected place opens as expected

tags: added: verification-done-kinetic
removed: verification-needed-kinetic
Revision history for this message
Marco Rolfini (marcorol) wrote :

Bug fixed after updating to jammy-proposed/nautilus/1:42.2-0ubuntu2

Testing procedure:
Booted with Wayland
Reproduced bug (as described in test case above)
Updated to jammy-proposed/nautilus/1:42.2-0ubuntu2
Rebooted with Wayland
Performed test case as above
Already open Nautilus windows remain and window for selected place opens as expected

When the updated package will be released?
(The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.)

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:42.2-0ubuntu2

---------------
nautilus (1:42.2-0ubuntu2) jammy; urgency=medium

  * d/p/ubuntu/unity_launcher_support.patch: Only set window time under x11
    (LP: #1934579)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 12 Dec 2022 15:08:24 +0100

Changed in nautilus (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for nautilus has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:43.0-1ubuntu2

---------------
nautilus (1:43.0-1ubuntu2) kinetic; urgency=medium

  * debian: Update references to ubuntu/kinetic branch
  * d/p/ubuntu/unity_launcher_support.patch: Only set window time under x11
    (LP: #1934579)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 12 Dec 2022 14:52:09 +0100

Changed in nautilus (Ubuntu Kinetic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.