|
|
Linux Technical issues under Linux platform |
|
Thread Tools | Display Modes |
|
10-18-2009, 05:48 AM | #1 |
Baron
Join Date: Nov 2007
Location: Not where it looks like, to either of us.
Posts: 706
|
Solving startup segfault issues on recent Mesa (with a cluebit for NGD)
In the most recent version of Regnum Online, the issue causing this crash ahs been patched, so this workaround should be no longer necessary
Because people with newer cards can't use the chroot workaround, here's an alternative (hopefully to be obsoleted soon. Clue to NGD: Don't call glFlush until you have a working context!). Anyhow, a workaround. Download from clanigi.net. Instructions for use: Untar the file. This will create a glworkaround directory glwa64.so and glwa32.so are prebuilt libraries for 64-bit and 32-bit systems respectively. You should be able to use them directly, no guarantees for glwa32.so. I'd suggest copying one of these to your regnum directory (from herein assumed to be ~/regnum), although it's not necessary. Alternatively running make will compile glwa.so from the included source code, and you can copy that. Run rolauncher (or the game client directly, whichever you prefer) with the correct .so preloaded. Remember you must use an absolute pathname if the .so is not in a standard library directory. So for example if you'd copied the 64-bit library to your ~/regnum directory, you'd run Code:
LD_PRELOAD=~/regnum/glwa64.so ~/regnum/rolauncher Extra overhead is only one stack frame (using function pointers it skips past the check once it's found a context), so there shouldn't be a noticeable performance penalty. Only tested on Radeon r600 with kernel 2.6.32-rc5 + airlied's drm-next and mesa git from of Oct 17, which gives interesting results thanks to texture compression bugs (screenshot attached, but don't expect this kind of corruption unless you have a recent ATi card and very recent opensource drivers).
__________________
If you can't detect sarcasm yourself, please pay attention when it's pointed out to you.
Arathael :: Wyrd Sceote :: Gwn M'ger — Soul Taker, Imperial Guard of Ignis Last edited by Arafails; 11-04-2009 at 03:12 AM. Reason: Replace link to updated tarball |
10-18-2009, 07:05 AM | #2 |
Pledge
Join Date: Jun 2007
Posts: 1
|
Thank you! It solved the SIGSEGV problem for me! (:
__________________
http://img231.imageshack.us/img231/4719/syrtisup6.png |
10-18-2009, 09:53 AM | #3 |
Initiate
Join Date: Oct 2008
Posts: 111
|
Code:
dmd@dmd-desktop:~/Desktop/hh$ LD_PRELOAD=~/regnum/glwa32.so ~/regnum/rolauncher /home/dmd/regnum/rolauncher: symbol lookup error: /home/dmd/regnum/glwa32.so: undefined symbol: _glapi_Context Last edited by w_larsen; 10-18-2009 at 10:14 AM. |
10-18-2009, 12:07 PM | #4 | |
Baron
Join Date: Nov 2007
Location: Not where it looks like, to either of us.
Posts: 706
|
Quote:
Having said which, it looks like I may have uploaded an incorrect source version. Unfortunately I can't re-upload right now, so.... Even if it works there'll be a better version up tomorrow.
__________________
If you can't detect sarcasm yourself, please pay attention when it's pointed out to you.
Arathael :: Wyrd Sceote :: Gwn M'ger — Soul Taker, Imperial Guard of Ignis |
|
10-18-2009, 01:49 PM | #5 |
Initiate
Join Date: Oct 2008
Posts: 111
|
i used the included binary and compiled from source too. both gave same error.
|
10-18-2009, 08:37 PM | #6 |
Baron
Join Date: Nov 2007
Location: Not where it looks like, to either of us.
Posts: 706
|
Can you run `nm -D /usr/lib/libGL.so.1 | grep _glapi_' and post the results here? Also your libgl / mesa version (If you're not using mesa's libGL you won't have any _glapi_* symbols, and this is moot anyway).
__________________
If you can't detect sarcasm yourself, please pay attention when it's pointed out to you.
Arathael :: Wyrd Sceote :: Gwn M'ger — Soul Taker, Imperial Guard of Ignis |
10-21-2009, 01:36 PM | #7 |
Initiate
Join Date: Aug 2008
Location: San Luis - Argentina
Posts: 213
|
Can I translate your solution and post it in the spanish forum?
__________________
Inek Bárbaro en desarrollo. Sólo sangre azul. Sombras de Alsius (todavía me queda grande el cartelito) Hasta siempre Feo...G* |
10-22-2009, 02:03 AM | #8 |
Baron
Join Date: Nov 2007
Location: Not where it looks like, to either of us.
Posts: 706
|
I don't see any reason why not.
__________________
If you can't detect sarcasm yourself, please pay attention when it's pointed out to you.
Arathael :: Wyrd Sceote :: Gwn M'ger — Soul Taker, Imperial Guard of Ignis |
10-26-2009, 10:34 AM | #9 |
Pledge
Join Date: Oct 2009
Posts: 6
|
This solved my trouble, thanks very much Arafails!
|
10-29-2009, 08:32 PM | #10 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
Arafails -
with your permission I will include your lib as a alternate in the next debian package update (After current special event) until such time as NGD patches this bug.
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel |
Thread Tools | |
Display Modes | |
|
|