Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79253 - xine xv and opengl fails after emerging new xine-lib
Summary: xine xv and opengl fails after emerging new xine-lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-23 13:20 UTC by stephan roolvink
Modified: 2005-02-21 05:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stephan roolvink 2005-01-23 13:20:53 UTC
after updating to the latest xine-lib I have the problem that when trying to use opengl or xvideo as output it gives 

FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!

as output and the screen is blank and xine crashes

Reproducible: Always
Steps to Reproduce:
1.xine -V xv
2.xine -V opengl


Actual Results:  
in both cases xine crashes the only way I found to get it working was via xshm

Expected Results:  
run normaly as it does with xshm

FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
Comment 1 stephan roolvink 2005-01-24 08:22:29 UTC
forgot one line of the error

FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!

and this continues

glxinfo and glxgears works perfect, but the error also happens if I use fgl_glxgears.

i'm using kernel version 2.4.27
Comment 2 stephan roolvink 2005-02-12 07:09:31 UTC
I think that the problem is not in the xine-lib but somewhere in the ati-drivers it still workt in version 3.14.1 the upgrade was done almost at the same time. If have been testing xvinfo in xinerama mode gives me

X-Video Extension version 2.2
screen #0
  Adaptor #0: "ATI Radeon Video Overlay"
    number of ports: 1
    port base: 65
    operations supported: PutImage
    supported visuals:
      depth 8, visualID 0x2d
      depth 8, visualID 0x2e
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
    number of attributes: 12
      "XV_SET_DEFAULTS" (range 0 to 1)
              client settable attribute
      "XV_AUTOPAINT_COLORKEY" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_COLORKEY" (range 0 to -1)
              client settable attribute
              client gettable attribute (current value is 30)
      "XV_DOUBLE_BUFFER" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_BRIGHTNESS" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_COLOR" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_HUE" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_RED_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_GREEN_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_BLUE_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 2048 x 2048
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)

but when I turn xinerama of I get

X-Video Extension version 2.2
screen #0
 no adaptors present
screen #1
 no adaptors present

so it looks like xvideo isn't usable for mat ati and mga videocard, in xinerama mode xvideo is still un usable. I have tryed remerging xine-lib and that gives as output for xvideo

checking for linux/videodev.h... yes
checking for libXv.so... libXv.so not found in
checking for libXv.a... libXv.a not found in
checking whether to enable the xxmc plugin with vld extensions...
checking for XvMCPutSlice in -lXvMCW... no
*** Could not link with -lXvMCW for vld extensions.
checking for XvMCCreateContext in -lXvMCW... no
*** Could not link with -lXvMCW for standard XvMC.
*** Disabling xxmc plugin due to above errors.
checking whether to enable the xvmc plugin...

could this have anything to do with it?
Comment 3 stephan roolvink 2005-02-21 02:00:45 UTC
opengl problem has been fixed but xvideo support is still nowere to be found

error in opengl was

this is what it should be for ati drivers
tmpfs /dev/shm tmpfs  defaults 0 0

and this is what was in fstab by default
none /dev/shm tmpfs  gid=5,mode=0602  0 0
Comment 4 stephan roolvink 2005-02-21 05:08:39 UTC
problem solved xine-lib-1-rc8-r1 has some xvideo linkage problem is seems after emerging xine-lib-1 xv works fine