LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   xfree86 openGL bug after update to 4.7 ati radeon hd 3200 (https://www.linuxquestions.org/questions/linux-software-2/xfree86-opengl-bug-after-update-to-4-7-ati-radeon-hd-3200-a-746268/)

mf93 08-09-2009 02:45 PM

xfree86 openGL bug after update to 4.7 ati radeon hd 3200
 
I am running debian lenny kernel 2.6.26 AMD64
While trying to run the dolphin emulator I would often get GLX error messages followed by segmentation faults when trying to load an iso. Looking, I found my xfree86 and GLX to be outdated, so I updated xfree86 to version 4.7. However, now when I try to run ANY openGL application, I get this error message->
Code:

myComp$./[openGL application]
[openGLApp]: ../../src/xcb_io.c:461: _XRead: Assertion `dpy->xcb->reply_data != 0' failed.

I am wondering what this means and how I can fix it...
Any help would be appreciated and thank you in advance!

Shadow_7 08-11-2009 07:35 AM

Any reason you're not running xorg?

Recent ati drivers dropped support for older cards. Use the 9.3? version of the ati drivers and kernels 2.6.28.10 or lower if yours is one of those cards. Or just use the radeon / vesa drivers. The current ati driver is somewhere near version 9.7. It looks like yours in still in the supported list. Also bear in mind that ati's installer overwrites the Mesa drivers. When doing upgrades you might reinstall the mesa drivers. At which point you have to reinstall the ati drivers to re-overwrite the mesa drivers. If you're using ati's drivers to begin with.

mf93 08-11-2009 04:06 PM

wow thank you for the reply...I was using xorg before and switched in order to get the newest GL drivers...I think most of the problems I'm having are because i switched. I'm still pretty new at linux and I'm kinda grinding through it. It took me 3months to get kde installed over debian and the internet working lol...so thanks again.

mf93 08-12-2009 11:02 PM

ok i reinstalled debian onto my computer(same specs as before) but when I try to run dolphin it runs fine until i try to open .gcm, in which case i get this...
Code:

57:27:571 N[Video]: glX-Version 1.2
Couldn't Create GLX context.Quit
57:27:572 N[BOOT]: Saving Settings to ./User/Config/Dolphin.ini
Segmentation fault

this is the original problem i tried to fix by installing xfree86
ps I am running 64bit OS if that makes a difference
I think there might be a problem with the pointer/reference addresses because if this program was compiled for a 32-bit OS the pointers would only be half teh necessary size

Shadow_7 08-13-2009 08:11 PM

You might try installing a few extra packages. java seems to require libstc++ 5, even though 6 is current and installed. 64 bit still requires a few of the 32 bit libs to function iirc. And other things like SDL, there are a few packages that don't always grab ALL dependencies. Like java and libstdc++5 or slune and sdl or ffplay and libsdl-dev or ... . . . . . . . You might also try using the open source radeon driver, and if it works under that, then it's an ATI driver issue. Or just a bug / feature specific to your card. You might also try an strace till failure to figure out what it's trying to do / access when it bombs. Or run it through gdb / insight / valgrind / ???

At a minimum try the usual suspects. glxinfo / glxgears, if those don't run and return favorable information, you might try fixing that issue first. Also note that the ati driver overwrites the mesa3d drivers. Which has it's own sets of issues.

mf93 08-14-2009 08:07 PM

alright I ran glxinfo and glxgears and i got no command found
Code:

myComp# glxinfo
bash: glxinfo: command not found
myComp# glxgears
bash: glxgears: command not found

also SDL is correctly installed
I looked into the dolphin(the program that causes error)'s source code and I found this...
Code:

glXQueryVersion(GLWin.dpy, &glxMajorVersion, &glxMinorVersion);
        NOTICE_LOG(VIDEO, "glX-Version %d.%d", glxMajorVersion, glxMinorVersion);
        // Create a GLX context.
        GLWin.ctx = glXCreateContext(GLWin.dpy, vi, 0, GL_TRUE);
        if(!GLWin.ctx)
        {
                PanicAlert("Couldn't Create GLX context.Quit");
                exit(0); // TODO: Don't bring down entire Emu
        }

which probably doesnt help you but it was the only thing regarding this particular problem i could find on the web
I'm pretty new at linux so I'm not sure how to install glxinfo / glxgears
thank you again for helping me!

mf93 08-14-2009 08:16 PM

nevermind i got glxinfo and gears working properly and their output(as far as I could tell) was normal- gears displayed gears and info displayed a lot of text regarding rendering and extensions however direct rendering was set to no...is that a problem and how do i fix it?
also at the end of the glx info i get a 'segmentation fault' error like I do after I try to run Dolphin...

Shadow_7 08-14-2009 11:00 PM

Quote:

Originally Posted by mf93 (Post 3643833)
nevermind i got glxinfo and gears working properly and their output(as far as I could tell) was normal- gears displayed gears and info displayed a lot of text regarding rendering and extensions however direct rendering was set to no...is that a problem and how do i fix it?
also at the end of the glx info i get a 'segmentation fault' error like I do after I try to run Dolphin...

direct rendering SHOULD BE yes. The difference between NO and YES is astonishing. Depending on your card. Even my cheap laptops DRI is 2x's faster with it, than without it. At least in terms of reported fps's in windowed glxgears.

It sounds like you're missing part of the mesa3d stuff at a minimum. ATI drivers replaces libGL.so, but not the other parts (whatever those may be). Mesa3d provides software versions of 3D abilities for when your hardware lacks the ability. And all cards pretty much lack some ability some where. If not on the hardware, then on the provided drivers. i.e. ATI's drivers seem to only work at 24 bit colors on my current (circa 2006) laptop. Vesa or radeon, lets me choose 16 bit color and other options, although without 3D acceleration for the most part.

dpkg -l '*mesa*'
dpkg -l '*ati*'
dpkg -l '*lib*gl*'

I always seem to need to fiddle with things related to these packages in terms of what is installed before I get DRI working right on a new install. Mainly since it's hard to remember the specifics when you only do a new install once every couple of years. You might also need something like freeglut in addition to xorg, mesa3d, ati, yada yada yada... Like I said, not all packages grab ALL necessary dependencies. Most minimal dependencies are grabbed by most packages. You might try installing a few 3D games and see if they grab the dependencies needed. torcs bzflag armagetron ....... And you'll need to restart X for any NEW packages to take effect. At least the packages related to drivers and 3D accelearation. You might also check /var/log/Xorg.0.log for HINTS as to WHY it's not the way you want it to be. (WW) and (EE) are warnings and errors.

If it's segfaulting, you've got some sort of missing or mismatched packaging. Like using ATIs drivers with Mesas libGL components.

dpkg-divert

If you installed distro specific packages, it'll show your conflicting libs and other things in dpkg-divert. Most times I have to manually cp the fglrx version of libGL over the mesa version. There might be some xorg.conf way to do the same thing, but I'm an old dog, and whatever works is good enough a lot of the time.

mf93 08-16-2009 09:35 AM

alright thank you I'm downloading the source for mesa3D and freeglut- when i did the dpkg -l '*mesa*' not packages with reference to 3D support came up...I'm going to install mesa3D and if that doesn't solve the problem I'll install freeglut...anyway thank you sooo much for your help and I'm extraordinarily grateful.

mf93 08-17-2009 12:01 AM

ok I downloaded and installed mesa3D and now instead of
getting glx version 1.2 then the context.quit error then a segfault i just get glx version 1.2 and then the segfault...

Shadow_7 08-17-2009 06:55 AM

Once you install the mesa drivers, you'll likely need to re-install the ATI drivers. There should have been some distro specific packages for it. Just a few that are installed on my debian system.

libgl1-mesa-dev
libgl1-mesa-dri
libgl1-mesa-glx
libglu1-mesa
libglu1-mesa-dev
mesa-common-dev
mesa-utils
xlibmesa-gl
xlibmesa-glu

freeglut3
freeglut3-dev
libglut3
libglut3-dev

atitvout
fglrx-atieventsd
xserver-xorg-video-ati

libglu1-xorg-dev
xorg-dev
xserver-xorg
xserver-xorg-core
xserver-xorg-dev
xserver-xorg-input-all
xserver-xorg-video-all
xserver-xorg-video-ati
xserver-xorg-video-radeon
xserver-xorg-video-radeonhd
xserver-xorg-video-v4l
xserver-xorg-video-vesa

mf93 08-17-2009 08:29 AM

how do I reinstall them on my debian system without compromising my desktop? apt-get install says ther already installed, and apt-get remove won't let me do it because of 'unsatisfied dependencies'(all the dependencies are installed, I think it just can't remove things that are currently powering the desktop) and as far as I can tell there is no reinstall option for apt-get...would running from a console and killing kde work? and would it change any of my preferences?

Shadow_7 08-18-2009 01:42 PM

Obviously you can't install your gui evironment while running the gui. At a minimum you'll need to restart the gui to have the changes take effect. As far as package management.

$ apt-get --purge remove <package>

I prefer to use dpkg directly. apt-get remove tends to grab all dependencies and I'm generally not wanting to do anything with those dependencies, I just want to re-install the package, so....

$ dpkg --purge --force-all <package>
$ apt-get install <package>

When you typically remove a package, it keeps the configuration files / paths / and other information. Purge clears it all out so it truly is re-installed.

$ dpkg -i <package>

To reinstall if you already have the .deb for it. Usually in /var/cache/apt/archive/ if you don't delete them afterwards.

HTH

mf93 08-18-2009 09:59 PM

ty I'll tell you how it goes once I get that done

mf93 08-18-2009 10:17 PM

Alright, I uninstalled using dpkg --purge --force-all and then apt-get install on the same packages, excepting atitvout because it was not found in my repositories nor was it installed. however, when I try to run Dolphin I still get this message:
Code:

16:45:185 N[Video]: glX-Version 1.2
Segmentation fault
compPC:~$



All times are GMT -5. The time now is 02:56 PM.