Bug 891983 - X11 plots always completely blank
Summary: X11 plots always completely blank
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: R
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 904257 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-04 17:46 UTC by Milan Bouchet-Valat
Modified: 2013-02-27 19:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-09 11:28:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch applied upstream (1.21 KB, patch)
2013-01-19 11:02 UTC, Milan Bouchet-Valat
no flags Details | Diff

Description Milan Bouchet-Valat 2013-01-04 17:46:56 UTC
Since I upgraded from F17 to F18, all plots in X11 devices are completely blank. For example, plot(1:10) does not show anything except an empty window.

Other devices (such as PNG) work as they should.

This is with an Intel Ironlake Mobile GPU:
VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA controller])

I don't really know where to start the debugging, so please advise.

Comment 1 Milan Bouchet-Valat 2013-01-06 17:06:25 UTC
Additional information: using X11.options(type="nbcairo") works around the problem (i.e. plots are drawn as expected); so does X11.options(type="Xlib"). The reported bug (plots not drawn) applies to both X11.options(type="cairo") (the default) and X11.options(type="dbcairo"). So the problem seems to be with buffering. Note that calling dev.flush() has no effect (it returns 0 anyway).

Comment 2 Milan Bouchet-Valat 2013-01-06 17:12:02 UTC
Arch Linux has a report which seems to be about the exact same problem:
https://bugs.archlinux.org/task/32597

They noted that in addition to the remarks I made in comment #1, simply resizing the plot window makes the plot appear. So it looks like the buffer is not flushed correctly. This may well be a bug in Cairo since different GPU vendors are affected, and even building R 2.14 from source is said not to fix the bug.

Comment 3 Milan Bouchet-Valat 2013-01-06 17:51:55 UTC
Installing cairo-1.10.2-7.fc17 fixes the bug. But it's still present with cairo-1.12.4-1.fc18.

I just filed a bug upstream at https://bugs.freedesktop.org/show_bug.cgi?id=59085

Comment 4 Tom "spot" Callaway 2013-01-07 14:49:29 UTC
Reassigning to cairo.

Comment 5 Milan Bouchet-Valat 2013-01-07 16:50:09 UTC
Sorry, but according to Cairo developers, this is more likely an R bug. Still investigating ATM...

Comment 6 Tom "spot" Callaway 2013-01-07 16:51:20 UTC
Okay. Back to R then. :)

Comment 7 Milan Bouchet-Valat 2013-01-12 16:52:46 UTC
Upstream R bug: https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15168

Comment 8 Marcus Moeller 2013-01-16 13:26:42 UTC
I have only experienced this behavior on intel graphic cards. Nouveau works fine.

Comment 9 Milan Bouchet-Valat 2013-01-16 14:39:09 UTC
Very interesting information! I'm not sure this means that the bug is in Cairo or in the drivers, ruling out the possibility of it being an R bug, but I'll ask Cairo developers about this.

Comment 10 Marcus Moeller 2013-01-16 15:05:38 UTC
According to:

https://bugs.archlinux.org/task/32597

it also occurs on ATI, so it's likely not a driver problem.

Comment 11 Milan Bouchet-Valat 2013-01-16 17:34:35 UTC
Indeed, I had somewhat skipped that detail. So maybe the proprietary NVidia driver forces drawing while others are not, so that's why they experience the problem...

Comment 12 Marcus Moeller 2013-01-16 18:44:40 UTC
We are not using the proprietary driver for NVidia as mentioned before.

Comment 13 Milan Bouchet-Valat 2013-01-16 19:16:17 UTC
Argh... Being wrong three times in a row. Not my day! But feel free to correct my mistakes directly upstream! ;-)

Comment 14 Milan Bouchet-Valat 2013-01-19 11:02:10 UTC
Created attachment 682993 [details]
Patch applied upstream

Upstream has committed a fix. It would probably make sense to apply it directly in Fedora instead of waiting for R 2.15.3, as this will appear as a major regressions (some users might not even discover that resizing the window is workaround).

I'm attaching the patch, it should apply cleanly to R 2.15.2 as the files at stake have not been touched since then.

Comment 15 Fedora Update System 2013-01-20 22:13:17 UTC
R-2.15.2-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/R-2.15.2-5.fc18

Comment 16 Fedora Update System 2013-01-23 01:48:22 UTC
Package R-2.15.2-5.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing R-2.15.2-5.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1258/R-2.15.2-5.fc18
then log in and leave karma (feedback).

Comment 17 Fedora Update System 2013-02-09 11:28:47 UTC
R-2.15.2-5.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Tom "spot" Callaway 2013-02-27 19:53:09 UTC
*** Bug 904257 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.