LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2009, 02:45 PM   #1
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
Lightbulb 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!
 
Old 08-11-2009, 07:35 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
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.
 
Old 08-11-2009, 04:06 PM   #3
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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.
 
Old 08-12-2009, 11:02 PM   #4
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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
 
Old 08-13-2009, 08:11 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
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.
 
Old 08-14-2009, 08:07 PM   #6
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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!
 
Old 08-14-2009, 08:16 PM   #7
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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...
 
Old 08-14-2009, 11:00 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
Originally Posted by mf93 View Post
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.
 
Old 08-16-2009, 09:35 AM   #9
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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.
 
Old 08-17-2009, 12:01 AM   #10
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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...
 
Old 08-17-2009, 06:55 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
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
 
Old 08-17-2009, 08:29 AM   #12
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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?
 
Old 08-18-2009, 01:42 PM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
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
 
Old 08-18-2009, 09:59 PM   #14
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
ty I'll tell you how it goes once I get that done
 
Old 08-18-2009, 10:17 PM   #15
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
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:~$

Last edited by mf93; 08-19-2009 at 09:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there OpenGL for ATI Radeon 7000? davy2002a Linux - Hardware 3 03-07-2006 07:19 AM
OpenGL on Ati Radeon mikegorb Linux - Hardware 3 01-23-2005 05:16 PM
ATI Radeon 7500 and OpenGL? EchO Linux - Hardware 3 12-08-2004 01:52 PM
Will ATI Radeon 8500 XFree86 4.2 driver work with Xfree86 4.3? Stevetgn Linux - Hardware 1 06-24-2003 06:16 PM
OpenGL drivers for ATI Radeon 7500 The_SUSE_NEWBE Linux - Hardware 0 05-27-2003 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration