Traceback closing tab with changes

Bug #1815060 reported by Adam Collard
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
meld (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/meld/meldwindow.py", line 537, in <lambda>
    icon, "", lambda b: page.on_delete_event())
  File "/usr/lib/python3/dist-packages/meld/filediff.py", line 842, in on_delete_event
    del self._cached_match
AttributeError: _cached_match

Hit after using the editable text area to adjust a changed line, and then save changes and close the 'tab'

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: meld 3.18.0-6
ProcVersionSignature: Ubuntu 4.15.0-45.48-generic 4.15.18
Uname: Linux 4.15.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 7 15:10:02 2019
InstallationDate: Installed on 2015-07-04 (1314 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
SourcePackage: meld
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Adam Collard (adam-collard) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in meld (Ubuntu):
status: New → Confirmed
Revision history for this message
Guilhem (logik13) wrote :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/meld/filediff.py", line 1559, in file_saved_cb
    self.on_delete_event()
  File "/usr/lib/python3/dist-packages/meld/filediff.py", line 842, in on_delete_event
    del self._cached_match
AttributeError: _cached_match

To reproduce :
- Compare folders
- Open one difference
- Make a change
- Try to close tab
Whatever you do after, you cannot close tab anymore (traceback appears). If I save the file *before* closing the tab, it works. It seems related to the save dialog.

Revision history for this message
Nathaniel Beaver (nathanielmbeaver) wrote :
Revision history for this message
Manuel Barallobre (bara666) wrote :

In meld (3.18.2-1) the bug is solved

Revision history for this message
Alexis Wilke (alexis-m2osw) wrote :

For those interested in 18.04, the file to replace is:

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

and you can replace it with the version:

https://gitlab.gnome.org/GNOME/meld/-/blob/3.18.2/meld/filediff.py

Then saving when closing the tab works as expected.

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.