Bug 14572 - video corrupted when resized to height less than 100 pixels
Summary: video corrupted when resized to height less than 100 pixels
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2008-02-19 14:04 UTC by martin
Modified: 2008-03-16 22:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
here the video surface is like 101 pixels or something, everything looks okay (405.77 KB, image/png)
2008-02-19 14:04 UTC, martin
no flags Details
here the video surface is like 99 pixels, and the buggy behavior is seen (405.22 KB, image/png)
2008-02-19 14:05 UTC, martin
no flags Details
here is what live cd repro looks like (286.58 KB, image/png)
2008-02-26 14:02 UTC, martin
no flags Details
here is what live cd looks like with just above 100 pixels height (307.02 KB, image/png)
2008-02-26 14:03 UTC, martin
no flags Details
xorg.conf used by gutsy live cd (2.59 KB, text/plain)
2008-02-26 14:06 UTC, martin
no flags Details
xorg.0.log for the live cd (43.96 KB, text/plain)
2008-02-26 14:06 UTC, martin
no flags Details

Description martin 2008-02-19 14:04:52 UTC
Created attachment 14428 [details]
here the video surface is like 101 pixels or something, everything looks okay

1. Play some movie in VLC or in mplayer (it's not possible to resize totem to be this small but if you could, you would probably see it in totem as well)
2. Resize window so that height of video output becomes less than 100 pixels

When the height of the video surface is less than 100 pixels it no longer shows the entire video instead it takes the top 1-2 lines of each video frame and stretches them to the full size of the video surface (i.e. what you see is typically a gray mess).

I see this behavior both with the 2.2.1 RC (2.2.0.90) and also my old stable driver (intel 2.1.1) which shipped with Gutsy.
Comment 1 martin 2008-02-19 14:05:46 UTC
Created attachment 14429 [details]
here the video surface is like 99 pixels, and the buggy behavior is seen
Comment 2 Wang Zhenyu 2008-02-22 01:20:15 UTC
what's your type of chipset?
Comment 3 martin 2008-02-24 15:18:31 UTC
I got a 965 with LVDS. Please let me know if you need other information.
Comment 4 Wang Zhenyu 2008-02-24 17:49:34 UTC
Gordon, could you help to reproduce this one?
Comment 5 Gordon Jin 2008-02-24 19:52:17 UTC
It's working fine on my 965gm, with git master code or 2.2.0.90.

Martin, you'll have to provide more info according to http://www.intellinuxgraphics.org/how_to_report_bug.html.
Comment 6 Wang Zhenyu 2008-02-24 23:12:46 UTC
I also use mplayer to test this on 915GM with texture and overlay port, both seems ok, but haven't tried VLC though.


Comment 7 Gordon Jin 2008-02-25 01:31:33 UTC
(In reply to comment #5)
> It's working fine on my 965gm, with git master code or 2.2.0.90.
with both vlc and mplayer.
Comment 8 Wang Zhenyu 2008-02-25 21:35:13 UTC
martin, is VLC in used when you see the corrupt? What's your VLC version?
Can you paste your ~/.vlc/vlcrc? so I can use it for test on mine.
Comment 9 martin 2008-02-26 13:34:33 UTC
Basically when I'm playing the movie in vlc 0.8.6c and resize it while movie is playing I get corrupt image when it's smaller than 100 pixels height but then image goes back to normal when I resize it to larger than 100 pixels height again.

I see the exact same behavior with mplayer 2:1.0~rc1-0ubuntu13.1
Comment 10 martin 2008-02-26 13:40:31 UTC
I tried reverting the intel driver back to 2.1.1 and I still see the problem. I also tried it with yet another video file (this time I used keithp's fosdem talk, at http://www.radeonhd.org/fosdem-2008/fosdem_2008_intel.ogg ) and I still see the buggy behavior with this file.
Comment 11 martin 2008-02-26 14:02:03 UTC
I have able to find a repro with much much less complexity now. To see the buggy behavior it's sufficient for me to do this:

1. boot from ubuntu gutsy (final version) live CD
2. download this ogg file: http://www.radeonhd.org/fosdem-2008/fosdem_2008_intel.ogg
3. edit /etc/apt/sources.list and uncomment "universe"
4. run "sudo apt-get update"
5. run "sudo apt-get install vlc"
6. start ogg playing in vlc and resize so that video surface is smaller than 100 pixels
7. instead of a small video playing the video output becomes all black
Comment 12 martin 2008-02-26 14:02:56 UTC
Created attachment 14595 [details]
here is what live cd repro looks like
Comment 13 martin 2008-02-26 14:03:51 UTC
Created attachment 14596 [details]
here is what live cd looks like with just above 100 pixels height
Comment 14 martin 2008-02-26 14:05:24 UTC
To determine my exact card or whatever, here is my lspci:

ubuntu@ubuntu:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
07:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
07:09.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
07:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
07:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
07:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)




And here is "lspci -n" from the same machine:

ubuntu@ubuntu:~$ lspci -n
00:00.0 0600: 8086:2a00 (rev 0c)
00:02.0 0300: 8086:2a02 (rev 0c)
00:02.1 0380: 8086:2a03 (rev 0c)
00:1a.0 0c03: 8086:2834 (rev 03)
00:1a.1 0c03: 8086:2835 (rev 03)
00:1a.7 0c03: 8086:283a (rev 03)
00:1b.0 0403: 8086:284b (rev 03)
00:1c.0 0604: 8086:283f (rev 03)
00:1c.1 0604: 8086:2841 (rev 03)
00:1c.5 0604: 8086:2849 (rev 03)
00:1d.0 0c03: 8086:2830 (rev 03)
00:1d.1 0c03: 8086:2831 (rev 03)
00:1d.2 0c03: 8086:2832 (rev 03)
00:1d.7 0c03: 8086:2836 (rev 03)
00:1e.0 0604: 8086:2448 (rev f3)
00:1f.0 0601: 8086:2815 (rev 03)
00:1f.1 0101: 8086:2850 (rev 03)
00:1f.2 0106: 8086:2829 (rev 03)
00:1f.3 0c05: 8086:283e (rev 03)
02:00.0 0280: 8086:4222 (rev 02)
06:00.0 0200: 10ec:8136 (rev 01)
07:09.0 0c00: 1180:0832 (rev 05)
07:09.1 0805: 1180:0822 (rev 22)
07:09.2 0880: 1180:0843 (rev 12)
07:09.3 0880: 1180:0592 (rev 12)
07:09.4 0880: 1180:0852 (rev 12)
Comment 15 martin 2008-02-26 14:06:10 UTC
Created attachment 14598 [details]
xorg.conf used by gutsy live cd
Comment 16 martin 2008-02-26 14:06:45 UTC
Created attachment 14599 [details]
xorg.0.log for the live cd
Comment 17 martin 2008-02-26 14:07:29 UTC
Wang, please let me know if there is anything else you need.
Comment 18 Wang Zhenyu 2008-02-26 19:43:27 UTC
Would you be able to pull current xf86-video-intel, build and load it in live case?
Let's see if upstream driver does better than ubuntu patched one (i guess).
Comment 19 Michael Fu 2008-03-11 23:46:06 UTC
zhenyu & Gordon, have you guys tried to use the liveCD that martin used to reproduce the issue? ( not just use what you have in your machine )

from the other side, martin, are you able to refresh your system to our git repository and test that?

I'll mark this bug as NEEDINFO from both side.
Comment 20 Wang Zhenyu 2008-03-16 22:51:08 UTC
Just tried with ubuntu 7.10 livecd, ubuntu driver(2.1.1) does see the problem when I zoom video smaller in totem. But pulling current xf86-video-intel driver, it fixed the issue.

So mark this as fixed, and close.


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.