Bug 11643 - Intel Xorgs Drivers 2.1.0 X11 error: BadAlloc with composite/beryl
Summary: Intel Xorgs Drivers 2.1.0 X11 error: BadAlloc with composite/beryl
Status: RESOLVED DUPLICATE of bug 10912
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 11635 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-18 00:56 UTC by feeling
Modified: 2007-08-17 19:42 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description feeling 2007-07-18 00:56:39 UTC
intel 2.1.0 cause an error while trying to play a video with the XV driver under XORG with beryl window manager:

error :

$ mplayer movie.avi -aspect 17:11 -vo xv
MPlayer 2:1.0~rc1-0ubuntu11 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz (Family: 6, Model: 15, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing La Doublure.avi.
AVI file format detected.
VIDEO:  [XVID]  576x240  12bpp  25.000 fps  1047.0 kbps (127.8 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 576 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.55:1 - prescaling to correct movie aspect.
VO: [xv] 576x240 => 576x372 Planar YV12
X11 error: BadAlloc (insufficient resources for operation)?,?% 0 0

MPlayer interrupted by signal 6 in module: vo_check_events
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

lspci -vvv

00:02.0 VGA compatible controller: Intel Corporation Unknown device 29c2 (rev 02) (prog-if 00 [VGA])
        Subsystem: Giga-byte Technology Unknown device d000
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at e3300000 (32-bit, non-prefetchable) [size=512K]
        Region 1: I/O ports at e200 [size=8]
        Region 2: Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Region 3: Memory at e3000000 (32-bit, non-prefetchable) [size=1M]
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
                Address: 00000000  Data: 0000
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-


Xorg.conf device/serverlayout/monitor :

Section "Device"
        Identifier      "Intel Corporation Integrated Graphics Controller"
        Driver          "intel"
        BusID           "PCI:0:2:0"
        Option          "XAANoOffscreenPixmaps" "true"
        Option          "DRI"           "true"
        Option          "NoDDC"
        Option          "VideoRam"      "65536"
        Option          "CacheLines"    "1980"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        HorizSync       28-100
        VertRefresh     43-72
        Modeline        "1360x768" 85.500 1360 1440 1552 1792 768 771 777 795 +hsync +vsync
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Intel Corporation Integrated Graphics Controller"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1360x768" "1024x768" #"800x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        Option          "AIGLX" "true"
EndSection

Section "ServerFlags"
        Option          "AIGLX"         "on"
EndSection

Section "Extensions"
        Option          "Composite"     "Enable"
        Option          "RENDER"        "Enable"
EndSection


ps : running ubuntu gusty with :
ii  xserver-xorg                     1:7.2-3ubuntu4                        the X.Org X server
ii  xserver-xorg-video-intel         2:2.1.0-1ubuntu1                      X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-core                2:1.3.0.0.dfsg-6ubuntu2               X.Org X server -- core server

regards,
laurent.
Comment 1 Eric Anholt 2007-08-08 10:44:00 UTC
There is no way to correctly support XV with XAA and Composite, and the result is that you get an error when you try to do so.  Use EXA instead.
Comment 2 Eric Anholt 2007-08-08 11:00:26 UTC
*** Bug 11635 has been marked as a duplicate of this bug. ***
Comment 3 Jack Malmostoso 2007-08-08 23:57:54 UTC
Hello there,

I have tried switching to EXA and indeed now XV video works. I had problems with compositing but I almost solved them by removing older options that probably were needed by XAA. This is my actual xorg.conf:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"ch"
	Option		"XkbVariant"	"de"
EndSection

#Section "InputDevice"
#	Identifier	"Configured Mouse"
#	Driver		"mouse"
#	Option		"CorePointer"
#	Option		"Device"		"/dev/input/mice"
#	Option		"Protocol"		"ImPS/2"
#	Option		"Emulate3Buttons"	"true"
#EndSection

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizScrollDelta"      "0"
        Option          "SHMConfig"             "on"
EndSection

Section "Device"
	Identifier	"Generic Video Card"
	Driver		"intel"
	BusID		"PCI:0:2:0"
	Option	"monitor-TV" 	"TVOutput"
#	Option	"CacheLines"	"32768"
	Option	"DRI"		"true"
#	Option	"PageFlip"	"true"
#	Option	"TripleBuffer"	"true"
	Option	"AccelMethod"	"EXA"
#        Option "MonitorLayout" "NONE,LFP+CRT"
#	Option	"MonitorLayout"	"LFP,DFP"
#	Option	"Clone"	"true"
#        Option "DevicePresence" "true"
#        Option "CheckLid" "false"
EndSection

Section "Monitor"
	Identifier	"Color LCD"
	Option		"DPMS"
	HorizSync	28-64
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Color LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x800"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
#	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection

Section "Monitor"
    Identifier "TVOutput"
    Option "Disable" "true"
EndSection

Section "Extensions"
	Option	"Composite"	"Enable"
EndSection

With this configuration I have two problems:

1) When compiz is active, windows look weird on the edges: see http://img175.imageshack.us/img175/3981/screenexapi0.png
2) Both XV and non-XV video output is *extremely* CPU intensive, and actually XV uses even more CPU than non-XV. Framerate is quite low, too.

It is maybe worth mentioning that I am using mesa 7.0 from Ubuntu Gutsy, while intel driver is 2.1.0 in Debian Sid. I run Debian.

Thanks for your help!
Comment 4 Eric Anholt 2007-08-17 19:42:55 UTC
Marking as a dupe of the older version of this bug

*** This bug has been marked as a duplicate of bug 10912 ***


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.