Bug 7951 - [i915GM] xserver crashed while trying to play video on Xv
Summary: [i915GM] xserver crashed while trying to play video on Xv
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.1 (2006.05)
Hardware: Other Linux (All)
: high normal
Assignee: Alan Hourihane
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 19:26 UTC by Jan Spitalnik
Modified: 2006-09-30 07:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xserver log (68.11 KB, text/plain)
2006-08-21 19:30 UTC, Jan Spitalnik
no flags Details
xserver log (111.44 KB, text/plain)
2006-08-24 17:17 UTC, Jan Spitalnik
no flags Details
crash log (20060928) (74.85 KB, text/plain)
2006-09-28 05:29 UTC, Jan Spitalnik
no flags Details
second crash log (70.43 KB, text/plain)
2006-09-28 05:29 UTC, Jan Spitalnik
no flags Details
xorg log (git version) (207.20 KB, text/plain)
2006-09-28 16:10 UTC, Jan Spitalnik
no flags Details
Attempt to fix xv lockup (578 bytes, patch)
2006-09-29 01:01 UTC, Alan Hourihane
no flags Details | Splinter Review
Xorg log (git + patch) (1.07 MB, text/plain)
2006-09-29 02:31 UTC, Jan Spitalnik
no flags Details
Another attempt to fix xv lockup (2.92 KB, patch)
2006-09-29 03:08 UTC, Alan Hourihane
no flags Details | Splinter Review
Yet another (3.65 KB, patch)
2006-09-29 03:19 UTC, Alan Hourihane
no flags Details | Splinter Review
Xorg log (git + fix2) (297.52 KB, text/plain)
2006-09-29 03:27 UTC, Jan Spitalnik
no flags Details
Xorg log (git + fix3) (4.31 MB, text/plain)
2006-09-29 03:54 UTC, Jan Spitalnik
no flags Details
Another (3.74 KB, patch)
2006-09-29 06:21 UTC, Alan Hourihane
no flags Details | Splinter Review
Xorg log (git + fix4) (543.55 KB, text/plain)
2006-09-29 06:38 UTC, Jan Spitalnik
no flags Details
Another5 (3.99 KB, patch)
2006-09-29 06:56 UTC, Alan Hourihane
no flags Details | Splinter Review
Xorg log (git + fix5) (138.77 KB, text/plain)
2006-09-29 09:31 UTC, Jan Spitalnik
no flags Details
Another6 (4.71 KB, patch)
2006-09-29 10:45 UTC, Alan Hourihane
no flags Details | Splinter Review
Xorg log (git + fix6) (147.06 KB, text/plain)
2006-09-29 13:12 UTC, Jan Spitalnik
no flags Details
ugh (5.15 KB, patch)
2006-09-29 13:27 UTC, Alan Hourihane
no flags Details | Splinter Review
keep you busy :-) (6.48 KB, patch)
2006-09-29 13:39 UTC, Alan Hourihane
no flags Details | Splinter Review
fix8 (152.56 KB, text/plain)
2006-09-29 13:59 UTC, Jan Spitalnik
no flags Details
last one for today (6.09 KB, patch)
2006-09-29 15:05 UTC, Alan Hourihane
no flags Details | Splinter Review
Xorg log (git + fix9) (121.65 KB, text/plain)
2006-09-29 15:43 UTC, Jan Spitalnik
no flags Details

Description Jan Spitalnik 2006-08-21 19:26:41 UTC
Hi,

while trying to play video with mplayer (video-output: Xv), xserver crashed. It 
also kept starting&crashing in loop (kdm managed).
Comment 1 Jan Spitalnik 2006-08-21 19:30:02 UTC
Created attachment 6641 [details]
xserver log

Interesting points also might be the failed allocs of GART memory. Also not
really sure what does following mean:

(WW) I810(0): PRB0_HEAD (0x00000000) and PRB0_TAIL (0x00000110) indicate ring
buffer not flushed
Comment 2 Jan Spitalnik 2006-08-21 19:32:27 UTC
Oh, i should also note that i have xorg-server-1.1.1 and xf86-video-i810-1.6.5.
Comment 3 Alan Hourihane 2006-08-22 01:51:11 UTC
Was it an immediate crash when trying to play, or did you resize/move the window
or do something else when it crashed ??

Also, the log you've uploaded is useless as it's not the initial crash message.
You need to disable kdm and start X manually to get a good log.
Comment 4 Jan Spitalnik 2006-08-22 04:31:33 UTC
Oh, bummer, will try to make it crash w/o kdm.

Yeah, actually thinking of it, i resized the window, then everything froze and 
the server crashed.
Comment 5 Alan Hourihane 2006-08-24 14:34:51 UTC
any news ?
Comment 6 Jan Spitalnik 2006-08-24 17:17:45 UTC
Created attachment 6674 [details]
xserver log

Hi,
here's a a new crash log. I've started the X server with startx and was
switching to/from fullscreen to make it crash. It didn't want to crash,
then i tried mplayer's -vo sdl output (using Xv backend) and pressing 'n' key,
that cycles the size of the video window. After 3-4 switches the X server
locked-up, the screen stayed gray. I shutdown the notebook and copied the X
server log.

The output looks vaguely similar to the previous one to me tho'.
Comment 7 Alan Hourihane 2006-08-25 03:11:07 UTC
Can you download a test driver from http://www.fairlite.demon.co.uk/intel.html
and install that, and get another crash log.

It'll help debug the exact cause. 

Thanks.
Comment 8 Jan Spitalnik 2006-08-26 07:06:47 UTC
Is your driver the same version as mine? Because I cannot make it crash. I will 
try to make it crash tomorrow.
Comment 9 Alan Hourihane 2006-08-29 00:38:15 UTC
Yes, it's 1.6.5 which extra debug enabled.
Comment 10 Jan Spitalnik 2006-09-28 05:28:30 UTC
(In reply to comment #9)
> Yes, it's 1.6.5 which extra debug enabled.

Sorry for the delay - here are two crash logs, they don't differ that much. The 
testscase is still the same - switch fullscreen/aspec-ration in mplayer and 
bang!. Could it perhaps be caused by the failed allocs?
Comment 11 Jan Spitalnik 2006-09-28 05:29:08 UTC
Created attachment 7173 [details]
crash log (20060928)

first crash log
Comment 12 Jan Spitalnik 2006-09-28 05:29:47 UTC
Created attachment 7174 [details]
second crash log
Comment 13 Alan Hourihane 2006-09-28 06:47:23 UTC
I suggest you get the current git repository for the xf86-video-intel driver and
in i830_video.c at the very first line you'll see a #define statement. Change
that  value at the end of the line to a 1 and recompile the driver and install it.

Then get the system to crash again which will produce much more detailed logs.
Comment 14 Jan Spitalnik 2006-09-28 16:10:08 UTC
Created attachment 7178 [details]
xorg log (git version)

Here it is. While reading through the log, i've noticed that the gart allocs no
longer fail. Anyway, hope it helps.
Comment 15 Alan Hourihane 2006-09-29 01:01:37 UTC
Created attachment 7184 [details] [review]
Attempt to fix xv lockup

Can you try this patch against the source code you downloaded to see if it
helps.
Comment 16 Jan Spitalnik 2006-09-29 02:31:19 UTC
Created attachment 7186 [details]
Xorg log (git + patch)

Well, crashed again - this time with gray screen :) BTW, I had to tweak the
patch a little (.x2 to ->x2).
Comment 17 Alan Hourihane 2006-09-29 03:08:09 UTC
Created attachment 7188 [details] [review]
Another attempt to fix xv lockup

O.k. reverse that last patch and apply this, which will also output a little
more debug if the problem persists.
Comment 18 Alan Hourihane 2006-09-29 03:19:21 UTC
Created attachment 7189 [details] [review]
Yet another

if xv2.patch fails try this, but make sure you revert xv2.patch fully before
applying.
Comment 19 Jan Spitalnik 2006-09-29 03:27:28 UTC
Created attachment 7190 [details]
Xorg log (git + fix2)

Unfortunately another crash.
Comment 20 Jan Spitalnik 2006-09-29 03:54:55 UTC
Created attachment 7191 [details]
Xorg log (git + fix3)

Nice! No crash this time, except no video - just blue screen :)
Comment 21 Alan Hourihane 2006-09-29 06:21:03 UTC
Created attachment 7192 [details] [review]
Another

Whoops, made a bit of a typo with xv3. Try this.
Comment 22 Jan Spitalnik 2006-09-29 06:38:16 UTC
Created attachment 7193 [details]
Xorg log (git + fix4)

Video now works, but unfortunately I managed to crash it :(
Comment 23 Alan Hourihane 2006-09-29 06:56:48 UTC
Created attachment 7194 [details] [review]
Another5

Another to try, but.....

Can you tell me a little bit more about what you are doing.

From the logs it looks as though you are resizing to fullscreen then back to a
smaller windows, then back up to fullscreen and to a window again. You do this
multiple times until it crashes - is that right ?

Is there anything different you are doing when the crash happens ?
Comment 24 Jan Spitalnik 2006-09-29 09:31:12 UTC
Created attachment 7196 [details]
Xorg log (git + fix5)

Crashed again.

Well I have fairly simple testcase.

1) run mplayer in fullscreen
2) go back to window-mode
3) resize the window wildly or change the aspect (n-key) ratio (changes the
window size)
4) bang!

Apart from these steps I'm not doing anything else. I usually takes one or two
changes to crash.
Comment 25 Alan Hourihane 2006-09-29 10:45:19 UTC
Created attachment 7197 [details] [review]
Another6

Another....
Comment 26 Jan Spitalnik 2006-09-29 13:12:23 UTC
Created attachment 7200 [details]
Xorg log (git + fix6)

Again crash :( I was thinking, would access to my machine help you in any way?
I could provide you with ssh access if you'd want.
Comment 27 Alan Hourihane 2006-09-29 13:27:31 UTC
Created attachment 7201 [details] [review]
ugh

ssh access wouldn't really help as once the box is hosed, I'd need to reboot
etc.

Anyway, it's easier for me to keep pushing test patches. It's actually guess
work at the moment, as there's not an awful lot the logs are giving me, so I'm
hoping to trigger some other event with the current modifications.

Try this one though.
Comment 28 Alan Hourihane 2006-09-29 13:39:40 UTC
Created attachment 7202 [details] [review]
keep you busy :-)

Just to keep you busy, if that doesn't work - try this.
Comment 29 Jan Spitalnik 2006-09-29 13:59:38 UTC
Created attachment 7204 [details]
fix8

Both (fix7 and fix8) crashed. Btw i tried to ssh into the machine and
everything is working, except X :) So you could do some sort of post-mortem
analysis if such thing is possible :) Anyway, there's another thing I didn't
mention - when resizing there's this "black flash" on the screen. I'll make a
video with my camera - maybe it has some connection with it, maybe not :)
Comment 30 Alan Hourihane 2006-09-29 15:05:33 UTC
Created attachment 7205 [details] [review]
last one for today

try this.
Comment 31 Jan Spitalnik 2006-09-29 15:43:15 UTC
Created attachment 7206 [details]
Xorg log (git + fix9)

Bingo! I've been torturing it for a long while and it didn't crash - usually it
crahsed after 2nd switch! :) What did you change in this patch?
Comment 32 Alan Hourihane 2006-09-30 05:24:34 UTC
Excellent. Thanks for testing. 
Comment 33 Jan Spitalnik 2006-09-30 07:58:12 UTC
(In reply to comment #32)
> Excellent. Thanks for testing. 

I should thank you! If you ever go to Prague, drop a message - I owe you a beer 
or cookie :-)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.