PDA

View Full Version : xorg-radeon + Ubuntu 9.04


Z0idberg
2009-04-02, 18:08
Hi,

I have just istalled Jaunty on my pc and I get a strange error when I start xbmc:

The XBMC_HOME environment variable is not set.
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)
Serial number of failed request: 28
Current serial number in output stream: 29
CRITSEC[0x123baa8]: Trying to enter destroyed section.
CRITSEC[0x123baa8]: Trying to leave destroyed section.

I have tried the latest SVN-Version and the stable version.
I guess this is a problem with the opensource radeon drivers, but I can't use the fglrx drivers. The only fglrx drivers that are working under Jaunty, don't work with my gfx-card, because ati dropped the support for my X850.

I hope there is a solution, because I really love xbmc.

Thanks alot

Z0idberg

Z0idberg
2009-04-03, 15:01
No idea? I think this gonna be a huge problem, because all owners of an ati gfx-card up to X1950 have to use this driver in newer distributions.

motd2k
2009-04-03, 15:36
http://www.newegg.com/Product/Product.aspx?Item=N82E16814187064

Z0idberg
2009-04-03, 15:56
Thank you very much for your great help. This is the greatest forum I've ever seen. The most friendly devs, who really try help.

CJPB
2009-04-13, 14:08
Hi,
The problem seems to be related to the more recent radeon driver shipped with ubuntu 9.04. I'm using openSUSE11.1 and with the "default" 9.6 radeon driver xbmc work fine. If i update to driver 9.12 (and mesa 7.4) i get the same error as you do. Ubuntu 9.04 must be using a more recent driver too.
I found a topic on another forum about this:
http://aur.archlinux.org/packages.php?ID=24206
Seems it stopped working since radeon 6.11 and libgl 7.3.
I couldn't find a bug report at freedesktop about this so i'll try and file one.
regards,
Carlos

Aenima99x
2009-04-13, 16:21
http://www.newegg.com/Product/Product.aspx?Item=N82E16814187064

That might be a little big for my laptop :rolleyes:

XBMCFusion
2009-04-24, 17:04
Has anyone come up with a workaround for this yet? I only installed XBMC 3 days ago and had it setup working perfectly. Was really impressed and ditched MythTv that I was currently using.

Upgraded to Jaunty last night and hey presto I get the above fault. I have a 9800pro card which is also no longer supported in the FGLRX drivers, so upgrading to them is not an option.

It would be a shame if I have to go back to MythTv as I feel XBMC is a better fit for my needs. However based upon the bug report here:

http://trac.xbmc.org/ticket/6382

I may have to.

sinarquia
2009-04-24, 17:36
Take a look here (http://forums.scotsnewsletter.com/index.php?showtopic=24480) . Looks like it's not a XBMC problem, but an Ubuntu one. At worst, you can roll back to 8.10, and wait for the problem to be solved on 9.04.

XBMCFusion
2009-04-24, 21:01
Hi,

I dont believe it is a problem with Ubuntu. If you read the following:

http://trac.xbmc.org/ticket/6382
http://bugs.freedesktop.org/show_bug.cgi?id=21145
http://forum.boxee.tv/showthread.php?t=6794

It appears as though the new Xserver version and open source radeon driver version have caused this to occur. The bug list at freedesktop.org indicates that XBMC requires GLSL which is not yet supported by the radeon driver yet the XBMC client could detect this and fall back on another method.

(Although for me this is not clear why it used to work on an older version of x.org and the radeon driver... have they removed GLSL functionality? how did it ever work before?)

This means it will start affecting more and more people as other distributions upgrade to the latest x-server and radeon driver versions.

The link posted in the previous post which blames ubuntu for numerous things which I believe are outside its control. All ubuntu are doing is releasing the latest versions of the xorg server and drivers.

It is not ubuntu's fault that ATI had not released a driver supporting the latest xorg server and it is also not their fault that the FGLRX driver is no longer supporting older chipsets.

The post states that ubuntu should have used an older xorg server. However why should everyone else that doesnt have an ATI card be forced to run an older version of the x server just because 1 manufacturer hasnt released the required proprietary drivers.

In addition the article states that the open source radeon driver does not support 3d this (i believe) is infact inaccurate as it DOES support 3D for most of the older cards it is only the newer cards that it doesnt support 3d for.

I believe that this bug will negativly afect XBMC as I cant be the only person that wants to run XBMC yet now will have to look elsewhere. Which is a real shame as in the 3 days I was running it I thought it was a fantastic program.

XBMCFusion
2009-04-26, 01:56
Hi,

I have managed to download the latest code and patch it to get XBMC to work on Ubuntu 9.04 using the radeon open source driver.

I had to modify about 4 lines of code in the Surfaces.cpp file and now XBC works fine for me.

I have tried to add some comments on the bug tracker for this issue but I am new to linux development and am unsure on how to get an account on XBMC trac.

The change I have made is a bit of a bodge so I would like to discuss with some developers on why this patch works and what the root cause is.

Can anyone help me get in touch with a developer or at least how to register with the trac system.

Regards

XBMCFusion

althekiller
2009-04-26, 02:35
You forum credentials will work on trac. They're case sensitive so pay attention. Please be as detailed as possible, it would be nice to have a fix in for 9.04 final.

XBMCFusion
2009-04-26, 02:59
Cheers althekiller I have added some explanation on how I got this to work on the bug tracker: http://trac.xbmc.org/ticket/6382

Hopefully someone can help pin down why this change works...

I managed to get the patch down to a 1 character change to get it working...