matplotlib window turns black when zooming in GTKAgg

Bug #306337 reported by ycopin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When using pylab/matplotlib under Ubuntu 8.10 (updated from 8.04) with the GTKAgg backend, either in scripts or interactively within ipython, the axes turn partially or fully black when zooming in. E.g., the following session from "ipython -pylab" produced the attached image:

In [1]: plot(randn(50))
Out[1]: [<matplotlib.lines.Line2D object at 0x93dfe4c>]

# zooming in manually using the GUI

In [2]: matplotlib.__version__
Out[2]: '0.98.3'

In [3]: get_backend()
Out[3]: 'GTKAgg'

Revision history for this message
ycopin (yannick-copin) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

With matplotlib 0.98.5.2-1ubuntu2 I cannot reproduce this bug. So I assume, that the bug is fixed in Ubuntu 9.04. Please reopen the bug report if it is not the case.

Changed in matplotlib:
status: New → Fix Released
Revision history for this message
lennart (drcrippen) wrote :

I can reproduce this behavior in matplotlib0.98.5.2-1ubuntu3. With both GTKAgg and GTKCairo Backend

Changed in matplotlib (Ubuntu):
status: Fix Released → New
Revision history for this message
Benjamin Drung (bdrung) wrote :

lennart, can you provide a small sample script file for reproducing this bug?

Revision history for this message
lennart (drcrippen) wrote :

Nothing easier than that:

from pylab import *
plot(arange(10),rand(10))
show()

in matplotlibrc:
backend: GTKAgg

The part of the plot that becomes black varies from nothing to the whole data area

Revision history for this message
Benjamin Drung (bdrung) wrote :

I still cannot reproduce it with GTKAgg backend. I am using Ubuntu 9.04 with an ATI graphics card. Which release do you use? Maybe it is not a bug in matplotlib, but in GTK+ or the graphic card driver.

Revision history for this message
lennart (drcrippen) wrote :

I'm using 9.04 as well but with intel graphics.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Even with my notebook with intel graphics I cannot reproduce it. I use a newer kernel and newer intel driver than the stock ones.

Revision history for this message
lennart (drcrippen) wrote :

I played around. And found out, that the bug only occurs when I've compiz (or desktop effects) running and use a GTK backend. So it is in fact something driver or GTK related

Revision history for this message
Benjamin Drung (bdrung) wrote :

It is not GTK related (then we would have it without compiz, too). It could be compiz or driver related. With intel driver 2.7.1 I do not have this problem, so I assume it is driver related. I am changing the affected package from matplotlib to xserver-xorg-video-intel.

affects: matplotlib (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Revision history for this message
lennart (drcrippen) wrote :

I cannot reproduce the bug with intel-drivers 2.7.1-0ubuntu1~xup~1 and UXA rendering.

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi yannick-copin,

Thanks for including an image to demonstrate the issue. Could you also please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log or Xorg.0.log.old file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

A new major version of the -intel driver is now available in Karmic.

This version includes a major reworking of the acceleration
architecture, which resolves a huge number of issues. We do not know
whether it resolves the issue you reported.

Would you mind testing Karmic Alpha-2 and seeing if it is still a
problem? CD ISO images are available here:

  http://cdimages.ubuntu.com/releases/karmic/

If the issue can still be reproduced on karmic, please report here with
your findings, and attach a fresh Xorg.0.log from your test, and we will
be able to forward the bug upstream.

Otherwise, if the bug no longer exists in Karmic, let us know that as
well.

In the off chance you encounter different bugs while attempting to test
Karmic, please report those as new bug reports.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.