Public bug reported:

SYSTEM INFORMATION
==================

Ubuntu: 26.04 (Resolute Raccoon)
Meld version: 3.22.3
Package version: 3.22.3-2
Package source: Ubuntu resolute/universe
Display server: Wayland
Python version: 3.14
Cursor theme: whiteglass


DESCRIPTION
===========

After a recent Ubuntu 26.04 system update, Meld 3.22.3 started
experiencing severe performance degradation when running under Wayland.

The application generates repeated GTK and Python exceptions when
opening file comparisons. It becomes extremely slow and eventually
crashes.

The problem disappears when Meld is executed using the X11 backend
through XWayland.


STEPS TO REPRODUCE
==================

1. Start an Ubuntu 26.04 Wayland session.
2. Open a terminal.
3. Execute the command: meld
4. Open a file comparison.
5. Observe the application's responsiveness and terminal output.


ACTUAL RESULT
=============

Meld becomes extremely slow and generates repeated exceptions.

The initial error occurs in:

/usr/lib/python3/dist-packages/meld/diffgrid.py

At line 281, the following operation fails:

    attr.cursor = Gdk.Cursor.new_from_name(
        widget.get_display(),
        "col-resize",
    )

The resulting exception is:

    TypeError: constructor returned NULL

This triggers additional exceptions:

    AttributeError: 'NoneType' object has no attribute 'show'

    AttributeError: 'NoneType' object has no attribute 'get_allocation'

    AttributeError: 'NoneType' object has no attribute 'hide'

Eventually, GTK reports:

    Gtk:ERROR:../../../gtk/gtkwidget.c:5590:
    gtk_widget_unrealize:
    assertion failed: (!widget->priv->mapped)

The application terminates abnormally.


EXPECTED RESULT
===============

Meld should initialize correctly, remain responsive and perform file
comparisons without GTK exceptions or crashes under Wayland.


TROUBLESHOOTING PERFORMED
=========================

TEST 1: Normal execution

Command:

    meld

Result:

Severe slowdown, repeated exceptions and application crash.


TEST 2: Alternative cursor theme

Command:

    XCURSOR_THEME=Adwaita meld

Result:

The same cursor initialization error and subsequent exceptions occur.

Changing the cursor theme does not resolve the problem.


TEST 3: Force X11 backend

Command:

    GDK_BACKEND=x11 meld

Result:

Meld works normally, without the previously observed performance
problems.


TEST 4: Permanent desktop launcher configuration

The desktop launcher was modified to execute Meld using:

    Exec=env GDK_BACKEND=x11 meld %F

Result:

Meld works correctly when launched from the Ubuntu application menu.


POSSIBLE CAUSE
==============

The problem appears to involve an incompatibility or regression
affecting Meld 3.22.3, GTK cursor initialization and the Wayland backend
in Ubuntu 26.04.

The failure occurs when Gdk.Cursor.new_from_name() attempts to create
the "col-resize" cursor.

The fact that the application works correctly when forced to use X11
suggests that the issue is specific to the Wayland execution path or its
interaction with GTK.

However, the available evidence does not establish whether the
underlying defect originates in Meld, GTK or another component of the
graphical environment.


ADDITIONAL OBSERVATIONS
=======================

The Ubuntu Apport crash reporting mechanism also generates repeated
exceptions while attempting to process the application errors.

The following error appears:

    problem_report.MalformedProblemReport

This appears to be a separate issue involving an existing malformed
crash report.

The repeated GTK exceptions may contribute to the observed performance
degradation, although this has not been independently profiled.


WORKAROUND
==========

Launching Meld with the X11 backend resolves the observed problem:

    GDK_BACKEND=x11 meld

For desktop integration, the launcher can be configured with:

    Exec=env GDK_BACKEND=x11 meld %F

This workaround allows Meld to operate normally without changing the
system's default Wayland session.


REGRESSION INFORMATION
======================

The problem appeared after a recent Ubuntu 26.04 system update.

The exact update or package version that introduced the regression has
not yet been identified.


ATTACHMENTS
===========

A ZIP archive containing two terminal logs has been attached to this bug
report.

The archive contains:

1. Original Meld execution under Wayland, showing cursor initialization
failures, repeated exceptions and GTK assertion errors.

2. Execution with the Adwaita cursor theme, demonstrating that changing
the cursor theme does not resolve the problem.


REQUESTED ACTION
================

Please investigate the compatibility of Meld 3.22.3 with the GTK Wayland
backend in Ubuntu 26.04, particularly the failure of
Gdk.Cursor.new_from_name() when creating the "col-resize" cursor.

A correction allowing Meld to run normally under Wayland without
requiring the X11 backend would be appreciated.

** Affects: meld (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Meld_Wayland_error_logs.zip"
   
https://bugs.launchpad.net/bugs/2173912/+attachment/6016800/+files/Meld_Wayland_error_logs.zip

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

Title:
  Meld 3.22.3 fails under Wayland on Ubuntu 26.04: GTK cursor
  initialization errors, severe slowdown and crashes

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to