[VM800] Xorg freezes when a player plays a video

Bug #962773 reported by realmagnum
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-openchrome (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In Ubuntu 11.10, I could disable "dri", so openchrome would play videos (with a worse performance, but video would be playable).

In a fresh install of Ubuntu 12.04 beta 1 to a hard disk, after "sudo apt-get update" and "sudo apt-get dist-upgrade" (today, 2012/03/23), when I try to play video files like .wmv or .webm, my system immediately freezes. If I start video minimized, it's possible to hear sound, but when I call the player (with Alt + Tab) my system immediately freezes again.

I think Bug #760743 won't help, because here we have a freeze and with 12.04 the system doesn't enable hardware acceleration {OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x300)}.

So, until now, in 12.04 beta 1, I was forced to use software rasterizer. This would have to bring compatibility, but freezes persists and I have a slower system than 11.10.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xorg 1:7.6+12ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-20.32-generic-pae 3.2.12
Uname: Linux 3.2.0-20-generic-pae i686
.tmp.unity.support.test.1:

ApportVersion: 1.95-0ubuntu1
Architecture: i386
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
Date: Fri Mar 23 00:48:53 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, whatever it takes to get this fixed in Ubuntu
GpuHangFrequency: Continuously
GpuHangReproducibility: Yes, I can easily reproduce it
GpuHangStarted: Since before I upgraded
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120301)
MachineType: Positivo Positivo Mobile
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 LANGUAGE=pt_BR:
 TERM=xterm
 PATH=(custom, no user)
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-20-generic-pae root=UUID=c308d70a-d65c-471a-ac35-7529080ce9ea ro quiet splash vt.handoff=7
Renderer: Software
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/28/2006
dmi.bios.vendor: Phoenix
dmi.bios.version: 2004 Q1
dmi.board.name: VN800
dmi.board.vendor: TSINGHUA TONGFANG Co.,LTD
dmi.board.version: VT6297A
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenix:bvr2004Q1:bd11/28/2006:svnPositivo:pnPositivoMobile:pvrVT6297A:rvnTSINGHUATONGFANGCo.,LTD:rnVN800:rvrVT6297A:cvnNoEnclosure:ct1:cvrN/A:
dmi.product.name: Positivo Mobile
dmi.product.version: VT6297A
dmi.sys.vendor: Positivo
version.compiz: compiz 1:0.9.7.0+bzr3035-0ubuntu1
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
realmagnum (realmagnum) wrote :
Bryce Harrington (bryce)
affects: xorg (Ubuntu) → xserver-xorg-video-openchrome (Ubuntu)
Revision history for this message
realmagnum (realmagnum) wrote :

I installed valgrind and, in terminal, from this command:

"valgrind --leak-check=full --show-reachable=yes --error-limit=no --log-file=valgrind-totem.log Downloads/01.wmv"

I got the attached file.

There wasn't any freeze in the beginning because, with valgrind and 512MB RAM, totem showed only the first frame and freeze happens only when there is hardware acceleration. But when I stretched totem interface, I got my freeze. I don't know if the attached file has any information about the freeze.

Revision history for this message
realmagnum (realmagnum) wrote :

>>> To eliminate one hypothesis, I followed the instructions from https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-openchrome/+bug/760743/comments/11 . However, nothing happened. This is what i did:

$ sudo apt-get update

$ sudo apt-get purge xserver-xorg-video-openchrome

$ sudo apt-get install build-essential autoconf automake1.9 libtool git xutils xutils-dev subversion checkinstall

$ sudo apt-get build-dep xserver-xorg-video-openchrome

$ mkdir compilations

$ cd compilatons/

$ svn checkout http://svn.openchrome.org/svn/trunk openchrome

$ cd openchrome/

$ svn update -r920

$ ./autogen.sh --prefix=/usr --enable-debug --enable-xv-debug

$ make

$ sudo checkinstall -D

>>> At this point I received this message:

 *****************************************
 **** Debian package creation selected ***
 *****************************************

 *** Warning: The package version "0.2.904
 0.2.904
 0.2.904
 0.2.904" is not a
 *** Warning: debian policy compliant one. Please specify an alternate one

>>> So, I typed:

 0.2.904

>>> In the end, I received this message, saying that installation was ok:

 **********************************************************************

  Done. The new package has been installed and saved to

  /home/flaviano/compilations/openchrome/openchrome_0.2.904-1_i386.deb

  You can remove it from your system anytime using:

       dpkg -r openchrome

 **********************************************************************

>>> Next, I edited xorg.conf:

$ sudo nano /etc/X11/xorg.conf

 Section "Device"
  Identifier "Configured Video Device"
  Driver "openchrome"
 EndSection

>>> So, I restarted my notebook, but I got another freeze when I tryed to play a video. The least bad workaround was disable "dri" in xorg.conf, like this:

$ sudo nano /etc/X11/xorg.conf

 Section "Device"
  Identifier "Configured Video Device"
  Driver "openchrome"
 EndSection

 Section "Module"
  Disable "dri"
 EndSection

>>> But I got a very poor performance. Now, there is no freeze and I can watch videos, but many of them are showed without audio synchrony. I installed Ubuntu Lucid in dual-boot and I have the same problems. In Bug #760743, the bug affects Ubuntu 11.04 and after and playing videos doesn't freeze ubuntu, but only make it restart. I don't know why, but Update r920 from openchrome trunk didn't help my problem too.

>>> If disabling "dri" freezes stops, maybe my problem is mesa drivers and not openchrome drivers. Any suggestion?

summary: - Xorg freezes when a player plays a video
+ [VM800] Xorg freezes when a player plays a video
Revision history for this message
realmagnum (realmagnum) wrote :

Why include "[VM800]" in my summary?

My "lspci | grep VGA"
01:00.0 VGA compatible controller: VIA Technologies, Inc. CN700/P4M800 Pro/P4M800 CE/VN800 Graphics [S3 UniChrome Pro] (rev 01)

The correct should be "[VN800]", or I understood it wrong?

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

The VM800/P4M800Pro/VN800/CN700 it is the same class of hardware in Openchrome driver.

Revision history for this message
realmagnum (realmagnum) wrote :

I have tested Ubuntu 12.04 beta 2, 10.04.3, 9.04, but all of them freezes when a player plays a video.

So I tryed Ubuntu 8.04.4 LTS and it worked!

I really think problem is not with openchrome but with "libdrm2" or "libgl1-mesa-dri" or "libgl1-mesa-dri-experimental" or "libgl1-mesa-glx".

How could I test it?

Any other suggestion on how to solve this freezes in Ubuntu 12.04? Is there any chance in solving this for final version of Precise Pangolin? Is there anything that I could do to help?

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Hi. Could you please install "mplayer" with GUI (via Ubuntu Software Center), and check if the crash also appear on that player?

Revision history for this message
realmagnum (realmagnum) wrote :

I've done a fresh install from a live cd of Ubuntu 12.04 Desktop i386 connected to the internet.

After, I opened terminal and I typed "sudo apt-get update" "sudo apt-get dist-upgrade" without any changes to Software Sources. So, I restarted Ubuntu and I installed mplayer-gui via Ubuntu Software Center.

After, I downloaded this file: http://blip.tv/file/get/Llelectronics-LubuntuScreencastLXPanel2PanelConfiguration964.webm . So, I opened mplayer-gui and I played the file. Mplayer has freezed with vdpau and xv drivers. Video has played ok only with x11 driver.

I would like to remember that Ubuntu 8.04.4 LTS works great. Is there any way to use video drivers from 8.04.4 LTS in 12.04 LTS ? Is there any other solution that I could try, even a difficult solution ?

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Try build the latest openchrome revision according to instruction available on website:
https://help.ubuntu.com/community/OpenChrome#openChrome_2D_driver_compilation

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

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

Other bug subscribers

Remote bug watches

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