After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703572 - the result windows are grey when comparing two files
the result windows are grey when comparing two files
Status: RESOLVED OBSOLETE
Product: meld
Classification: Other
Component: filediff
1.7.x
Other Windows
: Normal major
: ---
Assigned To: meld-maint
meld-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-03 18:52 UTC by firefish
Modified: 2017-12-13 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The GUI of file comparison in my windows (19.10 KB, image/png)
2013-07-03 18:52 UTC, firefish
Details

Description firefish 2013-07-03 18:52:07 UTC
Created attachment 248344 [details]
The GUI of file comparison in my windows

When running meld (under 64-bit, windows 7, home premium environment), trying to compare two files, I cannot see the contents of the two files in the result window. The area for showing files are totally grey. (I have attached the snippet showing this).

Here is the error info I got in my command line:

...\meld-1.7.3\meld\meldwindow.py:628: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  self.notebook.remove_page(page_num)
bin\meld:167: GtkWarning: gdkdrawable-win32.c:2013 drawable is not a pixmap or window
  gtk.main()
...\meld-1.7.3\meld\task.py:114: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  ret = task()

By the way, to compare two directories is okay in my environment.
Comment 1 firefish 2013-07-03 18:55:50 UTC
One more comment, I have tried 1.5.4, 1.6.1 and 1.7.3.
For 1.6.1, I also tried the exe installer and the zip package.
Nothing works for me...
Comment 2 Kai Willadsen 2013-07-05 20:06:37 UTC
This is a bit weird. My best guess is that you have an old GTK installation that's being used instead of whatever the installer (which isn't actually official, btw) gives you. In particular, an old or broken GtkSourceView + PyGtkSourceView install would do this.

If you're comfortable doing so, in meld/util/sourceviewer.py, you can replace the _get_srcviewer() function with:

def _get_srcviewer():
    for srcv in (gtksourceview210, gtksourceview24):
        try:
            raise ImportError
        except ImportError:
            pass
    return nullsourceview()

and see whether that helps at all.
Comment 3 firefish 2013-08-06 20:36:32 UTC
Unfortunately, it doesn't solve my problem.
And the error information is that same.
I have removed all pyc file to make sure it is using the new file...
Any other tests that I can do? maybe add some debug code? how can I check my gtk version?
Comment 4 Kai Willadsen 2013-08-09 21:44:02 UTC
From a Python prompt, you can:
    import gtk
    print gtk.ver
    print gtk.pygtk_version

Though I'd be surprised if this was a version problem.

How have you installed Meld? You can try using the not-quite-official-but-might-be-soon Windows installer from: https://code.google.com/p/meld-installer/downloads/list

I'd suggest trying both 1.6.1 and 1.7.4.
Comment 5 firefish 2013-08-10 10:31:17 UTC
Hi,

gkt.ver gives (2,28,0)
gtk.pygtk_version gives (2,24,0)

I have installed both 1.6.1 and 1.7.4, portable and not portable version.
Behavior are still the same.

BRs,
Lijun Zhang
Comment 6 Kai Willadsen 2014-02-07 22:25:12 UTC
At least one issue like this one ended up being that we couldn't (for some reason) load the default fonts on Windows. Could you please try changing the font in Meld's preferences and see if that makes a difference?
Comment 7 firefish 2014-03-01 11:34:13 UTC
Hi,

It's good to know that you are still looking after the issue.
It sonds something that can work, but unfortunately...it doesn't.
I even have changed the file to utf8 encoding and type English alphabet only.
The format as patch... function shows the difference, but the GUI still cannot show anything...
Comment 8 Joy 2016-12-18 22:09:29 UTC
I'm new to Linux and to Meld, but I noticed that after I changed my Appearance settings, a lot of things showed as black, including Meld file compares.
I'm on Ubuntu Studio 16.04 and Meld 3.14.2.
Being frustrated with this, I tried selecting text in the file compare window, and I could see it. So I changed the syntax highlighting options in Meld and then it was no longer all black. Apparently it was black on black before.
Comment 9 Kai Willadsen 2016-12-20 22:18:56 UTC
I'm pretty sure that this last problem is unrelated, and I think it's been fixed in 3.16.something. If updating to latest stable Meld doesn't fix it, please file a new bug report.
Comment 10 GNOME Infrastructure Team 2017-12-13 19:05:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/64.