pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/47777 (nedit from pksrc editors/nedit crashes when saving default settings and on more occasions)

Hello all,

>  No response from upstream:
>  But probably same issue as followings:

I checked those URLs, and the second one has an interesting workaround, until 
the issue is properly fixed (by whomever is really responsible, this seems to 
be a OpenMotif-problem more than a nedit-problem).


This seems to be a xlib problem with the composite extension. For now you have
two solutions:

1) Set XLIB_SKIP_ARGB_VISUALS environment variable

2) Set visual for nedit to Default
   nedit -xrm "*VisualID: Default"


I tried the first, setting the environment-variable, and it solved the issue 
for now.

Furthermore, it seems that this patch


--- nedit-5.5/util/misc.c.visfix        2004-08-10 00:20:00.000000000 +0200
+++ nedit-5.5/util/misc.c       2006-08-30 13:06:31.000000000 +0200
@@ -384,6 +384,9 @@
        return (*visual == DefaultVisual(display, screen));
+    /* Set "Default" visual to avoid crashes with the detected best ones */
+    reqID = DefaultVisual(display, screen)->visualid;
     /* Read the visualID and installColormap resources for the application.
        visualID can be specified either as a number (the visual id as
        shown by xdpyinfo), as a visual class name, or as Best or Default. */


is some kind of solution / workaround, too.

The author claims that:
"It still allows an user to redefine the default visual by the -xrm nedit 
option, but it disables best visual detection and sets the Default one 
regardless the list of visuals which is available."

- Volkmar


Attachment: pgpuN518Vw0HD.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index