** Description changed:

+ [ Impact ]
+ 
+  * This bug is a file manager crash which can make users lose their
+ place while navigating the filesystem and potentially lose data if a
+ long-lasting file operation is ongoing.
+ 
+  * The patch fixes the problem by avoiding the assertion and simply
+ returning NULL if the condition fails.
+ 
+ [ Test Plan ]
+ 
+ 1. Install Ubuntu in VirtualBox or on bare metal.
+ 2. Log into an Xorg session (not Wayland). The Xorg live session used during 
installation may be used too.
+ 3. Open the file browser (Nautilus) from the dock.
+ 4. Press Ctrl+N (or Shift+click on the same dock icon) to open a new window.
+ 5. Press Ctrl+T to open a new tab.
+ 6. Press Ctrl+PageUp to go to the previous tab or use the mouse.
+ 7. Close the window.
+ 
+ Expected behavior:
+ 
+ Just one window closed, the other Nautilus window should remain.
+ 
+ Buggy behavior:
+ 
+ Both Nautilus windows closed, indicating a crash. Apport may try to send
+ a bug report.
+ 
+ [ Where problems could occur ]
+ 
+ The fix could just move the error up the call stack or make it happen
+ some time later if the application gets into an inconsistent state.
+ 
+ However, tests have shown that after the patch Nautilus keeps running
+ and just prints the following message:
+ 
+ nautilus[19488]: gtk_stack_set_visible_child_name: assertion
+ 'GTK_IS_STACK (stack)' failed
+ 
+ Also the official version of gtk_widget_get_first_child in GTK4 does in
+ fact use g_return_val_if_fail.
+ 
+ 
+ [ Other Info ]
+ 
+ None.
+ 
+ ---
+ 
+ Original bug description:
+ 
+ ---
+ 
  https://errors.ubuntu.com/problem/d6e8be4f90a24d66fd0bf410ccb31d3c6fd0eb9b
  
  ---
  
  Title: nautilus crashed with SIGABRT in g_assertion_message_expr()
  
  Sometimes Nautilus crashes when closing a window instead of exiting
  cleanly. It wouldn't be so bad if it didn't bring other windows down
  too.
  
  It usually happens when the window has multiple tabs.
  
  I tried to attach the crash log but it looks like apport only attached
  generic system info. I may have used the wrong apport command so I
  attached the .crash file manually. I'm not sure if it has all the
  necessary symbols tho.
  
  Description:  Ubuntu 22.04.2 LTS
  Release:      22.04
  
  Nautilus 1:42.2-0ubuntu2.1
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu82.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2020-06-05 (1010 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  NonfreeKernelModules: nvidia_modeset nvidia
  Package: nautilus 1:42.2-0ubuntu2.1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 5.19.0-35.36~22.04.1-generic 5.19.17
  Tags:  jammy
  Uname: Linux 5.19.0-35-generic x86_64
  UpgradeStatus: Upgraded to jammy on 2022-10-06 (157 days ago)
  UserGroups: adm cdrom dip kvm lpadmin lxd plugdev sambashare sudo
  _MarkForUpload: True
  usr_lib_nautilus:
   evince                            42.3-0ubuntu3
   file-roller                       3.42.0-1
   nautilus-extension-gnome-terminal 3.44.0-1ubuntu1
   nautilus-share                    0.7.3-2ubuntu6
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu82.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2020-06-05 (1010 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  NonfreeKernelModules: nvidia_modeset nvidia
  Package: nautilus 1:42.2-0ubuntu2.1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 5.19.0-35.36~22.04.1-generic 5.19.17
  Tags:  jammy
  Uname: Linux 5.19.0-35-generic x86_64
  UpgradeStatus: Upgraded to jammy on 2022-10-06 (157 days ago)
  UserGroups: adm cdrom dip kvm lpadmin lxd plugdev sambashare sudo
  _MarkForUpload: True
  usr_lib_nautilus:
   evince                            42.3-0ubuntu3
   file-roller                       3.42.0-1
   nautilus-extension-gnome-terminal 3.44.0-1ubuntu1
   nautilus-share                    0.7.3-2ubuntu6

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/2011350

Title:
  ERROR:../src/nautilus-gtk4-helpers.c:116:gtk_widget_get_first_child:
  assertion failed: (GTK_IS_CONTAINER (widget))

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


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to