Ubuntu MATE application menu vanishes shortly after opening every time it is clicked on

Bug #2013138 reported by Aaron Rainbolt
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
caja (Ubuntu)
Invalid
Undecided
Unassigned
mate-desktop (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I *think* the application menu in Ubuntu MATE is handled by Caja, and I see a Caja crash report in /var/crash, thus why I'm reporting it against this.

Steps to reproduce:

1. Install Ubuntu MATE Lunar Beta into a GNOME Boxes virtual machine.
2. Log into the newly installed system.
3. Click the application menu in the upper-left corner of the screen.

Expected result: The application menu opens and stays open until it is clicked off of or an item is selected.

Actual result: The menu appears and then vanishes within about a second.

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: caja 1.26.1-1
ProcVersionSignature: Ubuntu 6.2.0-18.18-generic 6.2.6
Uname: Linux 6.2.0-18-generic x86_64
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Tue Mar 28 18:47:18 2023
InstallationDate: Installed on 2023-03-28 (0 days ago)
InstallationMedia: Ubuntu-MATE 23.04 "Lunar Lobster" - Alpha amd64 (20230328)
SourcePackage: caja
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Also I see multiple Apport windows informing me about Caja crashes after having opened the application menu a few times.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Backtrace: (not sure if I did this right or how much valuable info is in this)

(gdb) bt -full
#0 blow_expensive_caches (data=0x56140b6fc0b0)
    at /build/mate-desktop-kIYUV3/mate-desktop-1.26.0/libmate-desktop/mate-bg.c:2025
        ent = <optimized out>
        bg = 0x56140b6fc0b0
        list = 0xc4db9a49a7ccef7e
#1 0x00007fbf60f21a7f in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2 0x00007fbf60f7c518 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3 0x00007fbf60f1f4a0 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#4 0x00007fbf6114e0dd in g_application_run ()
   from /lib/x86_64-linux-gnu/libgio-2.0.so.0
No symbol table info available.
#5 0x000056140993d5c5 in main (argc=1, argv=0x7ffd54f64048)
    at ./src/caja-main.c:271
        retval = <optimized out>
        application = 0x56140af73600

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

I am not experiencing this any longer on the latest Ubuntu MATE Beta release candidate. I had experienced it in the past before reporting this, then it went away and then came back, so I'm not closing this quite yet, but this might be OK (hopefully).

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Hmm, nevermind. It's still happening, but it's much more intermittent (when I reported it, it was every single time I opened the menu that it crashed). Now the menu is usable, but every once in a while it vanishes out of nowhere, and I've seen a Caja crash at least once.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/2013138

tags: added: iso-testing
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

The plot thickens. On some bootups, everything mostly works except for the menu vanishes every so often. One other bootsup, though, Caja just goes into an endless crash loop. No desktop icons appear, the mouse pointer intermittently switches between normal and a spinning "busy" indicator. The application menu can't be opened for more than a short amount of time, and if you do manage to open a Caja file manager window, it vanishes too.

Going to be attaching full debug info soon.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Full debug info at https://bugs.launchpad.net/ubuntu/+source/caja/+bug/2013392 (yes this is a public bug, everything was done in a clean VM with no personal info)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

  if (bg->file_cache) {
    for (list = bg->file_cache; list != NULL; list = list->next) {
      FileCacheEntry *ent = list->data;

      if (ent->type == PIXBUF) {
        file_cache_entry_delete (ent);
        bg->file_cache = g_list_delete_link (bg->file_cache,
                     list);
      }
    }
  }

The code is crashing on the "list->data" dereference. Just like Openbox.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Marking as Confirmed since there's an upstream commit relating to the crashing code area.

Changed in caja (Ubuntu):
status: New → Invalid
Changed in mate-desktop (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

I have verified that this patch works on a VM that was exhibiting this bug quite badly - after installing an update libmate-desktop, the application menu now works normally (no more vanishing that I can tell) and desktop icons are present again.

Changed in mate-desktop (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Patch ready for review.

Revision history for this message
Brian Murray (brian-murray) wrote :

An errors bucket for this crash can be found at https://errors.ubuntu.com/problem/89a9691556cf1dca3af59c8da900ba58090e1982. There are hundreds of incidents of this.

Revision history for this message
Brian Murray (brian-murray) wrote :

I uploaded this today.

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

This bug was fixed in the package mate-desktop - 1.26.0-1ubuntu1

---------------
mate-desktop (1.26.0-1ubuntu1) lunar; urgency=medium

  [ Aaron Rainbolt ]
  * Patch a use-after-free in mate-bg.c. (LP: #2013138)

  [ Brian Murray ]
  * debian/control:
    + Switch dep from libgdk-pixbuf2.0-dev to libgdk-pixbuf-2.0-dev.

 -- Aaron Rainbolt <email address hidden> Thu, 30 Mar 2023 17:41:34 -0500

Changed in mate-desktop (Ubuntu):
status: Triaged → 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.