FC6, NVidia and Nedit

Eddy De Greef degreef at imec.be
Fri Nov 24 12:59:23 CET 2006


Dale Whitfield wrote:
> Hi Jim                                           >@2006.11.24_00:48:12_+0200
> 
>> Eddy De Greef wrote:
>>
>>> Try export XLIB_SKIP_ARGB_VISUALS=1
>> Thank you! Thank you! Thank you!
>>
>> My employer thanks you, too.  Vi makes me grumpy.
>>
>> I haven't tried to figure out what the environment variable does, but
>> the nedit.org 5.5 version works again!
>>
>> The FC6 version still segfaults, but apparently I never used it anyway.
>>  I'll file a bug report with them in hopes they'll clean up their act a bit.
>>
>> Jim
>>
>> -- 
>> NEdit Discuss mailing list - Discuss at nedit.org
>> http://www.nedit.org/mailman/listinfo/discuss
>>
> 
> Had the same problem.
> 
> Did two things and never bothered to figure which solved it.
> 
> Comment this line out of /etc/X11/xorg.conf
> 
> #    Option         "AddARGBGLXVisuals" "True"
> 
> Added this line to /etc/X11/Xresources/nedit
> 
> nedit*visualID:         default
> 
> Perhaps assembled X wisdom can elaborate on why it works...

Both alternatives have the same effect as setting XLIB_SKIP_ARGB_VISUALS.
Motif, the widget library that NEdit uses, has a problem with the new 
kind of visuals that are introduced in X.Org (ARGB visuals, with a 
transparency bit plane).

By setting XLIB_SKIP_ARGB_VISUALS you are telling the X library to hide 
this kind of visuals from the application, such that it cannot use them.
By disabling ARGB visuals completely in the X-server (via xorg.conf), 
you can obviously solve the problem too.
By telling NEdit to use the default visual instead of letting it choose 
the "best" visual (the one with the largest color depth), you can 
prevent it from selecting an ARGB visual too, since the default one is 
never ARGB.

Note our CVS version now automatically sets XLIB_SKIP_ARGB_VISUALS on 
startup, such that users don't have to bother about that, without 
affecting any other applications.

Eddy


More information about the Discuss mailing list