TypeError: constructor returned NULL
As soon as I open meld for file comparison (for instance meld ~/.bashrc ~/.bashrc
, but it could be any two files), I get these errors:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/meld/diffgrid.py", line 34, in do_realize
self._handle1.realize(self)
File "/usr/lib/python3/dist-packages/meld/diffgrid.py", line 270, in realize
attr.cursor = Gdk.Cursor.new_for_display(widget.get_display(),
TypeError: constructor returned NULL
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/meld/diffgrid.py", line 46, in do_map
self._handle1.set_visible(True)
File "/usr/lib/python3/dist-packages/meld/diffgrid.py", line 288, in set_visible
self._window.show()
AttributeError: 'NoneType' object has no attribute 'show'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/meld/diffgrid.py", line 201, in do_size_allocate
self._handle1.set_visible(mapped and wlink1 > 0)
File "/usr/lib/python3/dist-packages/meld/diffgrid.py", line 288, in set_visible
self._window.show()
AttributeError: 'NoneType' object has no attribute 'show'
...
I can use it for some time, but after some minutes working, Meld freezes.
If I try with sudo: sudo meld ~/.bashrc ~/.bashrc
, no error message is issued.
I'm using Ubuntu 20.04, on WSL 2 for Windows. As X server, I tried both Microsoft new native server and VcxSrv and both give the same error.
How can I help debugging this problem?