[Bionic] [wayland] many gnome applications exit or crash when a file is opened from within

Bug #1754169 reported by amano
94
This bug affects 18 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Fix Released
High
Unassigned
Bionic
Fix Released
High
Unassigned

Bug Description

Workaround
-----------
From the login screen, click your name, then click the gear button and select Ubuntu. Log in.

Steps to reproduce for Nautilus
-------------------------------
0) From the login screen, click your name, then click the gear button and select Ubuntu on Wayland. Log in.
1) Open nautilus (currently 3.26.2 in bionic)
2) Browse to a location with a textfile or an archive (eg. /home/user/.thunderbird )
3) Right click a textfile or an archive (eg. profiles.ini)
4) Choose gedit or File Roller from the list, click ok.
5) Nautilus crashes, gedit or File Roller don't come up

Another observation: This problem is not limited to Nautilus. Thus going back to Nautilus 3.26.0 will not help.

Steps to reproduce for other apps (via opening yelp files)
----------------------------------------------------------
1) Open nautilus
2) click on the nautilus entry in the top bar (right of "Activities").
3) Select "Help"
4) nautilus exits, yelp doesn't come up
5) open polari
6) click on the "Polari" entry in the top bar (right of "Acitivies").
7) Select "Help"
8) See polari crash
9) Open gnome-control-center
10) See that gnome-control-center will exit/crash, see that yelp doesn't come up

Affected applications
---------------------
Not all applications crash. Most applications don't offer the possibility to open yelp from the top bar. So those are not mentioned in the list below:

* Deja Dup, Gnome control center, Nautilus, Polari, Gnome-Disks, Gnome-Photos, gEdit and gnome-logs will crash

* Gnome Terminal, Rhythmbox, Gnome-Sudoku, Cheese, Gthumb, Gnome-Mahjongg, Gnome-Mines, Simple-Scan, Gnome-Calculator and Gnome-Clocks, File Roller, gnome-screenshot, baobab, gnome-system-monitor and Totem will not.

Other Info
----------
Opening a file from Nautilus with LibreOffice doesn't crash Nautilus.

Conclusion
----------
Is that a Mutter or Gnome-shell regression? Is it going to be fixed upstream? It seems that some (XDG?-) handover between some gnome apps doesn't work as expected and both apps have to exit.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gedit 3.27.92-1ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu-communitheme:ubuntu:GNOME
Date: Wed Mar 7 22:13:00 2018
InstallationDate: Installed on 2018-02-23 (12 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180214)
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
amano (jyaku) wrote :
summary: - Nautilus crashes when a file is being opened with gedit when right-
- clicking it
+ [Bionic] Nautilus 3.27.92 crashes when a file is being opened with gedit
+ when right-clicking it
summary: - [Bionic] Nautilus 3.27.92 crashes when a file is being opened with gedit
- when right-clicking it
+ [Bionic] Nautilus 3.27.92 crashes when a file is opened with gedit by
+ right-clicking it
description: updated
amano (jyaku)
description: updated
description: updated
Jeremy Bícha (jbicha)
summary: - [Bionic] Nautilus 3.27.92 crashes when a file is opened with gedit by
- right-clicking it
+ [Bionic] Nautilus crashes when a file is opened with gedit
amano (jyaku)
description: updated
Revision history for this message
Jeremy Bícha (jbicha) wrote : Re: [Bionic] [wayland] Nautilus crashes when a file is opened with gedit

I cannot duplicate this bug with the X session, only with Wayland.

summary: - [Bionic] Nautilus crashes when a file is opened with gedit
+ [Bionic] [wayland] Nautilus crashes when a file is opened with gedit
description: updated
tags: added: wayland
tags: added: rls-bb-incoming
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in gedit (Ubuntu):
importance: Undecided → High
status: New → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

whatever gedit is doing nautilus shouldn't hit a segfault, not a gedit bug

Revision history for this message
amano (jyaku) wrote :

It just happens in the Ubuntu-Wayland session. It doesn't happen in the default Ubuntu session. Added the wayland tag.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
amano (jyaku)
summary: - [Bionic] [wayland] Nautilus crashes when a file is opened with gedit
+ [Bionic] [wayland] Nautilus crashes when a file is opened
amano (jyaku)
description: updated
Revision history for this message
amano (jyaku) wrote : Re: [Bionic] [wayland] Nautilus crashes when a file is opened

Even opening archives with File Roller makes Nautilus 3.26.2 crash. So it cannot be a gedit problem.

I edited the title to reflect that.

So all gnome apps make Nautilus crash (in fact opening the file makes Nautilus and the other program crash) while LibreOffice obviously doensn't. What makes opening a file with LibreOffice different.

I wonder if reverting to 3.26.0 would be a good idea? It potentially resolves the problem and the stable branch doesn't add anything too interesting to Nautilus 3.26.

If the problem persists another package update probably causes the problem. So we know at least...

Revision history for this message
Francoise (ross-minet) wrote :

As a normal user (tested under two accounts), nautilus on bionic wayland (ubuntu and gnome) crashes when clicking on any file.
Strangely, as root added with xhost, there's no problem.

Hope it may help.

Revision history for this message
amano (jyaku) wrote :

Another observation: This problem is not limited to Nautilus. Thus going back to Nautilus 3.26.0 will not help.

==Steps to reproduce for other apps==

1) Open nautilus
2) click on the nautilus entry in the top bar (left of "activities".
3) Select "Help"
4) nautilus exits, yelp doesn't come up
5) open polari
6) click on the "Polari" entry in the top bar (left of acitivies.
7) Select "Help"
8) See polari crash
9) Open gnome-control-center
10) See that gnome-control-center will exit/crash, see that yelp doesn't come up

Not all applications crash. Most applications don't offer the possibility to open yelp from the top bar. So those are not mentioned in the list below:
1) Deja Dup, Gnome control center, Nautilus, Polari, Gnome-Disks, Gnome-Photos, gEdit and gnome-logs will crash
2) Gnome Terminal, Rhythmbox, Gnome-Sudoku, Cheese, Gthumb, Gnome-Mahjongg, Gnome-Mines, Simple-Scan, Gnome-Calculator and Gnome-Clocks, File Roller, gnome-screenshot, baobab, gnome-system-monitor and Totem will not.

description: updated
Revision history for this message
amano (jyaku) wrote : Re: [Bionic] [wayland] many gnome applications exit or crash when a file is opened

Is that a Mutter or Gnome-shell regression? Is it going to be fixed upstream? It seems that some (XDG?-) handover between some gnome apps doesn't work as expected and both apps have to exit.

description: updated
summary: - [Bionic] [wayland] Nautilus crashes when a file is opened
+ [Bionic] [wayland] many gnome applications exit or crash when a file is
+ opened
description: updated
summary: [Bionic] [wayland] many gnome applications exit or crash when a file is
- opened
+ opened from within
amano (jyaku)
description: updated
amano (jyaku)
description: updated
description: updated
Jeremy Bícha (jbicha)
description: updated
Will Cooke (willcooke)
tags: removed: rls-bb-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in deja-dup (Ubuntu):
status: New → Confirmed
Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Changed in gnome-disk-utility (Ubuntu):
status: New → Confirmed
Changed in gnome-logs (Ubuntu):
status: New → Confirmed
Changed in gnome-photos (Ubuntu):
status: New → Confirmed
Changed in polari (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeremy Bícha (jbicha) wrote :

A proposed fix for this issue has been identified:
https://gitlab.gnome.org/GNOME/mutter/merge_requests/42

I'm closing all the other bug tasks since we don't need them for every affected app.

no longer affects: deja-dup (Ubuntu)
no longer affects: deja-dup (Ubuntu Bionic)
no longer affects: gedit (Ubuntu)
no longer affects: gedit (Ubuntu Bionic)
no longer affects: gnome-control-center (Ubuntu)
no longer affects: gnome-control-center (Ubuntu Bionic)
no longer affects: gnome-disk-utility (Ubuntu)
no longer affects: gnome-disk-utility (Ubuntu Bionic)
no longer affects: gnome-logs (Ubuntu)
no longer affects: gnome-logs (Ubuntu Bionic)
no longer affects: gnome-photos (Ubuntu)
no longer affects: gnome-photos (Ubuntu Bionic)
no longer affects: polari (Ubuntu)
no longer affects: polari (Ubuntu Bionic)
affects: nautilus (Ubuntu Bionic) → mutter (Ubuntu Bionic)
Changed in mutter (Ubuntu Bionic):
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Bruce Pieterse (octoquad) wrote :

A workaround for the Wayland sessions is to right-click on the file and select "Open with X" where X is the default app or "Open with Other Application".

I hope this helps a bit.

Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Bionic):
status: In Progress → Fix Committed
Revision history for this message
amano (jyaku) wrote :

Mutter 3.28 didn't migrate to the release pocket yet, but I stole it from the proposed pocket and can confirm it fixing the issue.

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

This bug was fixed in the package mutter - 3.28.0-1

---------------
mutter (3.28.0-1) unstable; urgency=high

  * New upstream release
    - Fix crashes when launching apps from apps in GNOME on Wayland
      (LP: #1754169)
  * Bump urgency for this targeted fix

 -- Jeremy Bicha <email address hidden> Mon, 12 Mar 2018 18:04:54 -0400

Changed in mutter (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
cubells (cubells) wrote :

I can confirm this bug is solved with mutter patch too.

$ apt-cache policy mutter
mutter:
  Instal·lat: 3.28.0-1
  Candidat: 3.28.0-1
  Taula de versió:
 *** 3.28.0-1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

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.