Bug 9044 - Black window with Intel VGA in GNOME
Summary: Black window with Intel VGA in GNOME
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: release_blocker major
Target Milestone: Mageia 4
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 11:17 CET by Gergely Lónyai
Modified: 2014-01-23 22:05 CET (History)
7 users (show)

See Also:
Source RPM: x11-driver-video-intel-2.21.6-1.mga3.x86_64, kernel; ldetect-lst
CVE:
Status comment:


Attachments

Description Gergely Lónyai 2013-02-12 11:17:12 CET
Description of problem:
After 10-20 min, the new window and menus will black rectangle.

Version-Release number of selected component (if applicable):
x11-driver-video-intel-2.21.2-1.mga3.src.rpm


How reproducible:
Always.

Steps to Reproduce:
1. Boot the Mageia
2. Use the system 10-20 min.
3. Open a new windows or program, and see the black window.
Comment 1 Gergely Lónyai 2013-03-26 14:00:30 CET
I see this line in Xorg.0.log:

[  1114.882] (EE) intel(0): Failed to submit batch buffer, expect rendering corruption: Resource deadlock avoided.

And see this: https://bugs.freedesktop.org/show_bug.cgi?id=59771
Gergely Lónyai 2013-03-26 14:03:03 CET

Source RPM: (none) => x11-driver-video-intel-2.21.5-1.mga3.x86_64

Comment 2 René Lagoni Neukirch 2013-04-24 20:43:51 CEST
I too have installed M3RC _64 on two differnet HW platforms with Intel video controllers.
And both show the same error when rendering.
Starting with programme menus drop downs going black/invisible, the (bottom) panel going invisible and windows going totally black.
This occurs quite soon after login, so that the system is only operational 5 to 10 min. at most.
Then I have to leave my session escaping by using the desktop toolbox menu and login again.

Priority: Normal => release_blocker
CC: (none) => rene
Hardware: i586 => x86_64
Version: Cauldron => 3
Target Milestone: --- => Mageia 3

Comment 3 René Lagoni Neukirch 2013-04-25 12:43:02 CEST
Today it seems that if I start FF (installed from the install DVD)the problem arises with dop downs and the the (bottom) panel.
The blackening seems to hit new windows only ...
Comment 4 Gergely Lónyai 2013-04-25 13:38:22 CEST
Do you see this error in Xorg.0.log file after "black window syndrome", but don't see before?

[gergo@p762 ~]$ grep "(EE)" /var/log/Xorg.0.log
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 10573.638] (EE) intel(0): Failed to submit batch buffer, expect rendering corruption: Resource deadlock avoided.
Comment 5 René Lagoni Neukirch 2013-04-25 14:25:47 CEST
I shall look it up during the evening.

And - beware - I use KDE 4 (not Gnome) - should I start another tier on "my" bug ?
Comment 6 Gergely Lónyai 2013-04-25 14:29:10 CEST
This is an Intel bug, and not depend your display environment.
Comment 7 René Lagoni Neukirch 2013-04-26 13:46:14 CEST
Finally I got hold of the messeage requested (I had to remember to start a konsole before the error occurred :-) - here it is:

[ 10220.923] (EE) intel(0): Failed to submit batch buffer, expect rendering corruption: Resource deadlock avoided.

It seem to be almost the same as yours.
Hope it helps ..
Comment 8 Gergely Lónyai 2013-04-29 16:17:36 CEST
I do not know why, but when I add it to the Section "Device" is the symptom disappears:
     Option "AccelMethod" "sna"

My new section of "device":

Section "Device"
    Identifier "device1"
    VendorName "Intel Corporation"
    BoardName "Intel 810 and later"
    Driver "intel"
    Option "DPMS"
    Option "AccelMethod" "sna"
EndSection
Comment 9 René Lagoni Neukirch 2013-04-29 16:41:44 CEST
Sorry for my lack of knowledge.
But where do you add the "AccelMethod" "sna" option ?
I really would like to try if it helps too on my M3RC
THX so much in advance.
Comment 10 Gergely Lónyai 2013-04-29 16:46:09 CEST
Find this section in /etc/X11/xorg.conf file.
Comment 11 René Lagoni Neukirch 2013-04-29 17:22:18 CEST
THX A LOT !

I've tried the alteration and my system too has been working just fine for almost half an hour now.
This really seems to be a work-around - or the solution even !
And the fine thing about this, in fact, is, that it is "just" a configuration ...

So now remains only to understand why it helps and if this ticket can be closed.
Comment 12 Gergely Lónyai 2013-04-30 13:33:46 CEST
I'm not a Mageia contributor. I wait the fix of package on distrib. :-( But nobody have reaction from Mageia - and my mageia account doesn't login to forum.
claire robinson 2013-04-30 21:07:09 CEST

CC: (none) => tmb
Version: 3 => Cauldron

claire robinson 2013-04-30 21:08:43 CEST

CC: (none) => thierry.vignaud

Comment 13 Thierry Vignaud 2013-04-30 21:15:58 CEST
Thomas, Colin: What do you think?
It's bit late in the cycle to switch from UXA to SNA acceleration.
But I guess it's more tested than UXA by Intel.
Also I think this is what Unbuntu now uses.
So WDYT?

@René, Gergely: have you tried x11-driver-video-intel-2.21.6?

CC: (none) => mageia
Source RPM: x11-driver-video-intel-2.21.5-1.mga3.x86_64 => x11-driver-video-intel-2.21.5-1.mga3.x86_64, kernel; ldetect-lst

Comment 14 Sander Lepik 2013-04-30 22:04:34 CEST
I added 'Option "AccelMethod" "sna"' too. It was working fine before too. But it's working fine with sna as well.

Intel i5 CPU M 520 (first generation if I'm not wrong) (vendor:8086 device:0046 subv:1028 subd:043f).

CC: (none) => sander.lepik

Comment 15 René Lagoni Neukirch 2013-05-01 08:45:57 CEST
(In reply to Thierry Vignaud from comment #13)
> Thomas, Colin: What do you think?
> It's bit late in the cycle to switch from UXA to SNA acceleration.
> But I guess it's more tested than UXA by Intel.
> Also I think this is what Unbuntu now uses.
> So WDYT?
> 
> @René, Gergely: have you tried x11-driver-video-intel-2.21.6?

@Thierry - Hi,
I use the driver from the downloaded DVD: 2.21.6-1.mga3
Comment 16 Colin Guthrie 2013-05-01 10:42:17 CEST
I've also just switched to SNA by dropping a file in /etc/X11/xorg.conf.d/20-intel.conf:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "sna"
EndSection


I've not been keeping too up-to-date with things in Intel land, but it's working fine at the moment on my machine. Will test on my other (much older) machine later tonight. I'm not sure if will just fall back to UXA or if SNA works on older chips too (I would have thought that because S=Sandybridge in SNA that it would only work on newer architectures, but I've not looked into it).

And yes, according to the https://launchpadlibrarian.net/137808997/xserver-xorg-video-intel_2.21.6-0ubuntu4.diff.gz file, Ubuntu is defaulting to sna now by passing --with-default-accel=sna
Comment 17 Thomas Backlund 2013-05-01 10:54:08 CEST
I grabbed an old atom netbook from work yesterday, and will see how it behaves...
Comment 18 Gergely Lónyai 2013-05-02 09:37:10 CEST
Yes, I "try" it in my workplace day by day.
Comment 19 Colin Guthrie 2013-05-02 10:44:56 CEST
Still not tried on my older machine, but I just had an odd graphical issue on Gnome.

It feels more like a compositing hiccup but it could easily be graphic driver releated. When resuming from suspend at home last night (going from a dual monitor setup before suspend to just the built in display on resume) the bottom half of my screen showed the lock screen and the upper half contained all my desktop but squashed - seems like every 5 or 10 lines were just removed.

It was fixed by switching rotation and back again (switching VT was not enough - although the text console looked fine).

Will see if it happens again. Might not be related to SNA, but worth noting all the same.
Comment 20 René Lagoni Neukirch 2013-05-03 08:38:10 CEST
(In reply to René Lagoni Neukirch from comment #15)
> (In reply to Thierry Vignaud from comment #13)
> > Thomas, Colin: What do you think?
> > It's bit late in the cycle to switch from UXA to SNA acceleration.
> > But I guess it's more tested than UXA by Intel.
> > Also I think this is what Unbuntu now uses.
> > So WDYT?
> > 
> > @René, Gergely: have you tried x11-driver-video-intel-2.21.6?
> 
> @Thierry - Hi,
> I use the driver from the downloaded DVD: 2.21.6-1.mga3

Today the system updated the x11-driver-video-intel-2.21.6-1.mga3
with x11-driver-video-intel-2.21.6-2.mga3.

I then tried to comment out the ' Option "AccelMethod"  "sna" ' and ended up having the original rendering problems.
I re-entered the option and the systems works OK.
Comment 21 René Lagoni Neukirch 2013-05-03 11:01:51 CEST
Added observation: Now videos in FF have started flickering after installing the x11-driver-video-intel-2.21.6-2.mga3
Comment 22 Gergely Lónyai 2013-05-03 12:57:17 CEST
I don't understand what is your problems. The default rendering method is total bad. The SNA renderer method might experimental but work.
Comment 23 Thierry Vignaud 2013-05-03 13:03:04 CEST
"Default UXA not working but SNA working for 3 users" is not the same as "experimental SNA safe for everybody"
==> hence the testing
Comment 24 Colin Guthrie 2013-05-03 13:31:27 CEST
As mentioned earlier, I saw the same problem again when going from a "suspend in two monitor env" to a "restore in single monitor env". I'm pretty sure it's down to the accel method used, so it's still buggy IMO. FWIW, I didn't really have any problem with the old method so for me this is a net loss for SNA. Stuff that used to work fine for me no longer does. This is why we test... (I'll do some more tests with latest kernel and speak to some upstream intel guys).
René Lagoni Neukirch 2013-05-03 14:03:33 CEST

Source RPM: x11-driver-video-intel-2.21.5-1.mga3.x86_64, kernel; ldetect-lst => x11-driver-video-intel-2.21.6-1.mga3.x86_64, kernel; ldetect-lst

Comment 25 René Lagoni Neukirch 2013-05-03 14:39:09 CEST
(In reply to René Lagoni Neukirch from comment #21)
> Added observation: Now videos in FF have started flickering after installing
> the x11-driver-video-intel-2.21.6-2.mga3

I don't know if this is of some help ?
But the flickering can be seen here, just scroll some of the video area outside the FF window. I usually scroll it out of the top.
Then the flickering starts.
And it stops again if you scroll the full video area down again.

pls see: http://www.b.dk/tech/droppede-net-i-et-aar-som-eksperiment

The video should be understandable, but maybe not the newspaper text.

Also the new driver allows you to choose some EXA option.
once set, the radio button for this disappears.
Comment 26 Colin Guthrie 2013-05-03 14:43:39 CEST
Confirmed, I also see this flickering. I will double check again with the old default method.
Comment 27 Thierry Vignaud 2013-05-03 14:53:06 CEST
Might also be a mesa-9.1.2 regression
Comment 28 Thomas Backlund 2013-05-07 00:02:06 CEST
A fixed libdrm-2.4.43-4.mga3 (using the fdo fence count fix in comment 1) is submitted to cauldron, please test.


If there still are some problems with intel, can you test theese 2 kernels and see if any of them helps:


kernel-desktop-3.8.11-1.2.mga3:
http://tmb.mine.nu/Mageia/Cauldron/bugs/intel/test1/
http://tmb2.mine.nu/Mageia/Cauldron/bugs/intel/test1/

kernel-desktop-3.8.11-1.3.mga3:
http://tmb.mine.nu/Mageia/Cauldron/bugs/intel/test2/
http://tmb2.mine.nu/Mageia/Cauldron/bugs/intel/test2/
Comment 29 René Lagoni Neukirch 2013-05-07 08:24:45 CEST
(In reply to Thomas Backlund from comment #28)
> A fixed libdrm-2.4.43-4.mga3 (using the fdo fence count fix in comment 1) is
> submitted to cauldron, please test.
> 
> 
> If there still are some problems with intel, can you test theese 2 kernels
> and see if any of them helps:
> 
> 
> kernel-desktop-3.8.11-1.2.mga3:
> http://tmb.mine.nu/Mageia/Cauldron/bugs/intel/test1/
> http://tmb2.mine.nu/Mageia/Cauldron/bugs/intel/test1/
> 
> kernel-desktop-3.8.11-1.3.mga3:
> http://tmb.mine.nu/Mageia/Cauldron/bugs/intel/test2/
> http://tmb2.mine.nu/Mageia/Cauldron/bugs/intel/test2/

Very good.
So, you most likely want the test WITHOUT the setting of ' Option "AccelMethod" "sna" ' ?!
The repo just upgraded libdrm today. I shall be very observant of various versions ... my kernel as of now is 3.8.11-server-1.mga3, libdrm-intel1 is 2.4.43-4.mga3 (but 586) and libdrm-common is of same version (but x86_64). No changes to x11-driver-video-intel-2.21.6-2.mga3.
Comment 30 René Lagoni Neukirch 2013-05-07 14:38:26 CEST
It seems, that the problem is now solved.

I have been running since this morning (withOUT the Option "AccelMethod" "sna").
Rendering has been working just fine.
My setup (versioning) as of previous comment.
Comment 31 Gergely Lónyai 2013-05-08 16:31:53 CEST
I tested with all kernel and work fine.
Comment 32 René Lagoni Neukirch 2013-05-08 16:46:34 CEST
Just for the record:
Today I used the "sna" option - everything have been working just fine.
Comment 33 René Lagoni Neukirch 2013-05-08 16:47:40 CEST
Just for the record:
Today I used the "sna" option - everything has been working just fine.
Comment 34 Gergely Lónyai 2013-05-08 18:07:58 CEST
I test without "sna" option.
Comment 35 Gergely Lónyai 2013-05-09 10:39:14 CEST
I have one problem.

[gergo@p752 ~]$ uname -r
3.8.11-desktop-1.mga3
[gergo@p752 ~]$ grep "(EE)" /var/log/Xorg.0.log
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 66954.369] (EE) intel(0): Failed to submit batch buffer, expect rendering corruption: Resource deadlock avoided.
[gergo@p752 ~]$ uptime
 10:36:13 up 18:41, 13 users,  load average: 0.39, 0.70, 0.68
Comment 36 Colin Guthrie 2013-05-09 10:44:36 CEST
Perhaps worth trying with the 3.8.12 kernel now available. Also there were a few test kernels after 3.8.11 that Thomas posted about on the ML so maybe worth trying those too.

However this message appears to be the driver doing sensible stuff to avoid deadlocks. I'm fairly sure I've seen that message on occasion.
Comment 37 René Lagoni Neukirch 2013-05-09 13:12:30 CEST
(In reply to Colin Guthrie from comment #36)
> Perhaps worth trying with the 3.8.12 kernel now available. Also there were a
> few test kernels after 3.8.11 that Thomas posted about on the ML so maybe
> worth trying those too.
> 
> However this message appears to be the driver doing sensible stuff to avoid
> deadlocks. I'm fairly sure I've seen that message on occasion.

I've been running the kernel 3.8.12-server-1.mga3 without any problems.
I run it withOUT the "sna" option.

I've tried the: grep "(EE)" /var/log/Xorg.0.log
and se no errors on my two systems.
Comment 38 Gergely Lónyai 2013-05-09 13:48:24 CEST
I try the 3.8.11-desktop-1.2.mga3 kernel without sna option.
The Youtube flash is not show in fullscreen.
The video show with sna option in fullscreen.
Comment 39 AL13N 2013-05-13 12:59:29 CEST
@Gergely: did you try 3.8.12-desktop kernel yet?

this bug report is a bit of a mix, it seems to me like that this is fixed for most people, but not everyone. (or is it?)

if it isn't, it might be interesting to add this to errata

CC: (none) => alien

Comment 40 Gergely Lónyai 2013-05-13 14:30:32 CEST
It looks like all the work with 3.8.12-desktop-2.mga3 kernel
Comment 41 Gergely Lónyai 2013-05-13 15:00:12 CEST
The "black window" problem is on without sna option. :-(

[gergo@p752 ~]$ uptime
 14:57:18 up  1:51, 13 users,  load average: 0.75, 0.62, 0.42
[gergo@p752 ~]$ grep "(EE)" /var/log/Xorg.0.log
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  6702.613] (EE) intel(0): Failed to submit batch buffer, expect rendering corruption: Resource deadlock avoided.
Olav Vitters 2013-11-20 00:10:16 CET

CC: (none) => olav

Comment 42 Colin Guthrie 2013-11-20 17:52:08 CET
What's the status of this bug with the current stack?

We couldn't do anything for mga3, but we're now on track for mga4. We default to SNA now.

Target Milestone: Mageia 3 => Mageia 4

Comment 43 Colin Guthrie 2014-01-23 22:05:05 CET
Closing as old. Please reopen if you can reproduce.

Status: NEW => RESOLVED
Resolution: (none) => OLD


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