Page 1 of 2 12 LastLast
Results 1 to 10 of 50

Thread: Howto: [Edgy] Fix crashes with Xgl+fglrx on r200 cards (e.g., Mobility Radeon 9000)

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Houston, Texas
    Beans
    327
    Distro
    Ubuntu 7.04 Feisty Fawn

    Howto: [Edgy] Fix crashes with Xgl+fglrx on r200 cards (e.g., Mobility Radeon 9000)

    Open-GL Crashes

    To fix OpenGL crashes change
    Code:
    -accel glx:pbuffer
    to
    Code:
    -accel glx:fbo
    in the Xgl command line. The OpenGL crashes are due to a known bug in fglrx http://ati.cchtml.com/show_bug.cgi?id=232. Basically glXCreatePbuffer fails and takes Xgl with it. The solution thus is, as shown above, not to use pbuffer's for glx.

    Non-OpenGL Crashes (e.g., Xgl crashes when moving a window due to wobbly windows crashing Xgl)

    The non-openGL crashes are due to another known fglrx bug where the glDrawArrays function crashes the fglrx driver if a vertex array of greater than 4000 elements is passed to it (see http://www.gamedev.net/community/for...7&whichpage=1& this is quite an old bug).

    I have made a patch to workaround this bug (attached to this post) and have recompiled an Edgy deb with this patch, which can be found here:

    http://misha680.googlepages.com/xgl-edgy.zip

    Open it with Archive Manager from firefox and then install it.

    Misha

    p.s. yes this video card is supported by the open source r200 driver with AIGLX, but unfortunately that driver is nowhere as speedy as Xgl + fglrx.

    p.p.s. I made a (very) detailed bug report
    https://launchpad.net/distros/ubuntu...xgl/+bug/63830.
    Attached Files Attached Files
    Last edited by misha680; December 5th, 2006 at 03:46 PM.

  2. #2
    Join Date
    Jun 2006
    Location
    Houston, Texas
    Beans
    327
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Deleted
    Last edited by misha680; December 5th, 2006 at 03:48 PM.

  3. #3
    Join Date
    Jun 2006
    Location
    Houston, Texas
    Beans
    327
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Deleted
    Last edited by misha680; December 5th, 2006 at 03:48 PM.

  4. #4
    Join Date
    Oct 2006
    Location
    Netherlands
    Beans
    12
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Exclamation Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    I installed the deb... but still getting crashes, am I doing something wrong?'
    by the way: excellent job fixing the fglrx/xgl for my trusty laptop

    edit: i'm sorry, complaining too soon, after a reboot all works a lot better than before! it still crashes though
    Last edited by tecteun; October 21st, 2006 at 02:43 AM.

  5. #5
    Join Date
    Jun 2006
    Location
    Houston, Texas
    Beans
    327
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Hmm... so are these crashes like with wobbly windows and openoffice (non-OpenGL applications) or with OpenGL applications (glxgears or google earth, etc). If it's the first, then I need to look into it further (how much video RAM do you have? It might be that the number of OpenGL arrays that fglrx can draw is not really fixed as <4000 but depends on your specific machine, so for me <4000 works great, but maybe for you it has to be <3000 or something). If it is only with OpenGL apps, then it is a different bug that I don't think is related. Anyway, waiting for your reply.

    Also the next thing you could do is to start a regular X session, then
    type:
    Code:
    gdb Xgl 
    run :1 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
    Then open another terminal or a tab in a new terminal (XGl is running but so is your regular X session, so you can use Alt-TAB to switch back and forth between Xgl and the regular X server apps, only trick is that when you switch back to Xgl with Alt-TAB it still thinks you are holding down the Alt key so you need to hit it before you type anything else, otherwise it will act as if the Alt key is pressed). Run emerald & beryl like this:

    Code:
    export DISPLAY=:1
    emerald &
    beryl-xgl &
    Now run some other apps in the Xgl session, for example:

    Code:
    gnome-terminal &
    Do some stuff until it crashes. Then you can go back to the terminal/tab where gdb is running and type:

    Code:
    bt
    and that will give you a backtrace. Of course it would be more helpful with a version of Xgl compiled with debugging support, which unfortunately is about 10 times as big, but it might be helpful (specifically if the lines aren't __R200TCLDrawArrays than chances are you are having a different bug).
    Misha

  6. #6
    Join Date
    Oct 2006
    Location
    Netherlands
    Beans
    12
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Beryl/XGL crashes back to login when trying to run OpenGL based apps, non-OpenGL apps are fine...

    I saw the wobbly windows working, but i cant recreate the same settings, so i only saw it working like twice...
    Now moving windows is very slow. Things like rotating the cube and "expose" are really fast..

    lspci | grep ati gives
    VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [FireGL 9000] (rev 02)
    it has 64 Mb ram.
    Last edited by tecteun; October 21st, 2006 at 10:25 AM.

  7. #7
    Join Date
    May 2005
    Beans
    32

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Quote Originally Posted by misha680 View Post

    Anyhow, the deb is in a zip file at the following URL (too big to attach):

    http://www.geocities.com/misha680/xgl-edgy.zip

    your link is no more pointing to any archive ,could you post it somewhere else ?please?
    .............sorry It worked like you said with copy/pasting the link ,besides I tried glxinfo in the shell and surprise ........it didn't change a damned thing the x server still crashes!
    Last edited by blakken; November 15th, 2006 at 02:55 AM.

  8. #8
    Join Date
    Jun 2006
    Location
    Houston, Texas
    Beans
    327
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    I am sorry it did not work for you. Are you experiencing crashes with OpenGL apps (which this is not designed to fix) or otherwise?

    THanks
    Misha

    Quote Originally Posted by blakken View Post

    your link is no more pointing to any archive ,could you post it somewhere else ?please?
    .............sorry It worked like you said with copy/pasting the link ,besides I tried glxinfo in the shell and surprise ........it didn't change a damned thing the x server still crashes!

  9. #9
    Join Date
    Nov 2006
    Beans
    3

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Hi Misha!

    Do you have any idea how to fix the crash for OpenGL apps?

    Here to reproduce the crash I run 'mplayer -vo gl2 file.avi'

    and my Xgl crashes coming back to the login screen.

    My laptop is a Dell D600 with 32Mb video card below:
    01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [FireGL 9000] (rev 02)

    Thanks for any help!!!

    Felipe

  10. #10
    Join Date
    Jun 2006
    Location
    Houston, Texas
    Beans
    327
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: [Edgy] Fix random xgl crashes with Mobility Radeon 9000 + fglrx

    Hi, unfortunately I currently do not know how to fix this. However, if I have some time, I could look into it, as it would be fairly easy to debug now that I have lots of experience debugging the other crashes. Mplayer with xv actually works great with Xgl, except Edgy uses Xorg 7.1 and Xv does not work at all with the latest version of fglrx drivers for r200 chipsets on Xorg 7.1. As for other opengl apps, you can run them on display :0, i.e.,

    Code:
    DISPLAY=:0 google-earth
    for example, although then you lose the advantage of having a window manager for these apps.

    Anyhow, that's all for now. If I have time I will look into it later althoguh I suspect it is yet another fglrx bug that might be "wrapped-arounable" in Xgl but probably cannot really be "fixed."

    Misha

    Quote Originally Posted by fsalum View Post
    Hi Misha!

    Do you have any idea how to fix the crash for OpenGL apps?

    Here to reproduce the crash I run 'mplayer -vo gl2 file.avi'

    and my Xgl crashes coming back to the login screen.

    My laptop is a Dell D600 with 32Mb video card below:
    01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [FireGL 9000] (rev 02)

    Thanks for any help!!!

    Felipe

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •