← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2105946] Re: Nautilus crash when press arrow keys in a empty directory

 

Verifying on noble:

First checked the bug is present in the version in -updates
(libgtk-4-common and libgtk-4-1 4.14.5+ds-0ubuntu0.4). Navigating to an
empty folder on nautilus and hitting an arrow key causes nautilus to
freeze then crash.

After updating:

$ apt policy libgtk-4-common
libgtk-4-common:
  Installed: 4.14.5+ds-0ubuntu0.5
  Candidate: 4.14.5+ds-0ubuntu0.5
  Version table:
 *** 4.14.5+ds-0ubuntu0.5 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     4.14.5+ds-0ubuntu0.4 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     4.14.2+ds-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages

$ apt policy libgtk-4-1
libgtk-4-1:
  Installed: 4.14.5+ds-0ubuntu0.5
  Candidate: 4.14.5+ds-0ubuntu0.5
  Version table:
 *** 4.14.5+ds-0ubuntu0.5 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     4.14.5+ds-0ubuntu0.4 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     4.14.2+ds-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages

Navigating to an empty folder in nautilus and hitting the arrow keys
does not cause a freeze or crash. To test against regressions, navigated
to a populated folder and used the arrow keys there, and items in the
folder were selected in the expected directions.

** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to gtk4 in Ubuntu.
https://bugs.launchpad.net/bugs/2105946

Title:
  Nautilus crash when press arrow keys in a empty directory

Status in gtk4 package in Ubuntu:
  Fix Released
Status in nautilus package in Ubuntu:
  Won't Fix
Status in gtk4 source package in Noble:
  Fix Committed
Status in nautilus source package in Noble:
  Won't Fix

Bug description:
  [ Impact ]

   * When pressing the arrow keys while viewing an empty directory in
  Nautilus, the file browser freezes then crashes.

  [ Test Plan ]

   * Navigate to an empty directory in nautilus either manually or by using `nautilus <dir>`.
   * Press the arrow keys, nothing should happen and nautilus should not crash.

   To check against regressions:
   * Navigate to a non-empty directory and press arrow keys again, the first press should select the first item in the directory, and subsequent presses should select items in the expected direction.

  [ Where problems could occur ]

   * This is a very small backport that only changes the logic when
  using the arrow keys when selecting items in directories, but regular
  functioning in non-empty directories should be checked anyway.

  [ Other Info ]

   * Upstream fix:
  https://gitlab.gnome.org/GNOME/gtk/-/commit/53bdfa6a13b4aa478bf14e77e164d97bd6d05111

  [ Original Description ]

  Nautilus crashes when using the arrow keys to navigate within an empty
  directory (a directory with no files). This issue is particularly
  disruptive for users who prefer keyboard navigation.

  Steps to Reproduce:
  1. Open the file manager (nautilus).
  2. Navigate to a directory that contains no files (an empty directory).
  3. Press the arrow keys (up, down, left, right) to try to navigate within the empty directory.
  4. Nautilus crashes.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: nautilus 1:48.0-1ubuntu1
  ProcVersionSignature: Ubuntu 6.14.0-11.11-generic 6.14.0-rc7
  Uname: Linux 6.14.0-11-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.32.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CasperVersion: 25.04.1
  CloudArchitecture: x86_64
  CloudID: nocloud
  CloudName: unknown
  CloudPlatform: nocloud
  CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Apr  1 20:28:44 2025
  GsettingsChanges:
   b'org.gnome.nautilus.icon-view' b'default-zoom-level' b"'small-plus'"
   b'org.gnome.nautilus.list-view' b'default-zoom-level' b"'small'"
   b'org.gnome.nautilus.preferences' b'fts-enabled' b'false'
   b'org.gnome.nautilus.preferences' b'migrated-gtk-settings' b'true'
   b'org.gnome.nautilus.window-state' b'initial-size' b'(929, 756)'
  LiveMediaBuild: Ubuntu 25.04 "Plucky Puffin" - Beta amd64 (20250326.6)
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: nautilus
  UpgradeStatus: No upgrade log present (probably fresh install)
  usr_lib_nautilus:
   file-roller                       44.5-1
   nautilus-extension-gnome-terminal 3.56.0-1ubuntu1
   papers                            48.0-1ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk4/+bug/2105946/+subscriptions