Page 1 of 5 123 ... LastLast
Results 1 to 10 of 50

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

  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
    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

    Yeah, the opengl crashes aren't supposed to be fixed, just the other ones (I was having a lot of non-opengl crashes on my computer, and I can reproduce one consistently but this fixes it, as well as some other non-opengl crashes I was having).

    Misha

    p.s. so, e.g., if you were having any problems with wobbly windows crashes they should be gone.
    Last edited by misha680; October 22nd, 2006 at 06:39 PM.

  8. #8
    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

    Quote Originally Posted by misha680 View Post
    Yeah, the opengl crashes aren't supposed to be fixed, just the other ones (I was having a lot of non-opengl crashes on my computer, and I can reproduce one consistently but this fixes it, as well as some other non-opengl crashes I was having).

    Misha
    Okay, all is clear to me now...

  9. #9
    Join Date
    Jan 2005
    Location
    Baltimore, MD, USA
    Beans
    865
    Distro
    Ubuntu Development Release

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

    Hey I wrote a guide for xgl/fglrx with beryl, so I am interested in this fix. However I have no experience in patching source files. I am assuming I have to get xserver-xgl-dev and then compile it somehow?

    Also, I am unable to get 3d acceleration in any applications once xgl/beryl is working. For example, I can't run fgl_glxgears or "mplayer -vo gl2" (mplayer using opengl). Do you think this will help or do I have a different bug?

    Thanks.
    Knowledge is half the battle.
    The other half is violence!

  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

    Yeah, unfortunately this won't fix the GL bug. You could still run 3D apps on the main X server by prefacing the command with DISPLAY=:0 but there won't be any window borders or anything like that.

    Basically, to patch a package you'd have to do:

    Code:
    sudo apt-get build-dep xserver-xgl
    This would get dependencies needed to compile it. Then, to get the code:

    Code:
    apt-get source xserver-xgl
    Now it will create a directory with the sources. In that directory, put the patch you want in the debian/patches subdirectory and also edit the list file (I think its something like 00list) and add the filename to the end. Now, you need to increment the verison of the package:

    Code:
    dch -i
    Put in your comments and save the file. Now to compile:

    Code:
    dpkg-buildpackage -rfakeroot -us -uc
    And you will have your debs. Unfortunately, I'm not 100% sure of the package names where you can get some of the d* commands so you will need to play around looking for debian in synaptic (debhelper or something like that is one, also you need build-depend).

    Misha

    Quote Originally Posted by Paerez View Post
    Hey I wrote a guide for xgl/fglrx with beryl, so I am interested in this fix. However I have no experience in patching source files. I am assuming I have to get xserver-xgl-dev and then compile it somehow?

    Also, I am unable to get 3d acceleration in any applications once xgl/beryl is working. For example, I can't run fgl_glxgears or "mplayer -vo gl2" (mplayer using opengl). Do you think this will help or do I have a different bug?

    Thanks.

Page 1 of 5 123 ... 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
  •