I am handling user issues in my team. Users have their Unix session running on Citrix MFU.
Recently, I was suppose to address a user issue which is as below:
Gets the below error when tries to open nedit:
Gets the below error after running ssh -X <hostname> echo $DISPLAY gives :165.0 as output.
I tried with below things. Still negative results
- Reset the user's .Xauthority file and reconnected to the session.
- xhost +hostname
- nedit -display :165.0
As per user, if he logs out and starts a fresh session he is able to launch nedit and gvim without any errors.But the errors again repeat after few days.
Please advice or suggest any resolution for these errors or Please let me know actions to take when a user reports about Xlib errors.
Moderator's Comments:
Please use [code] and [/code] tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks.
Last edited by zaxxon; 09-08-2011 at 03:19 AM..
Reason: code tags, see PM
Hello!
Im running tight VNC on Red Hat Enterprise Linux 4.0.
How can I increase the number of X clients that I can run
in a VNC session?I need to run aproximately 500 programs in one VNC session,
but at this time I can only 236 -> i've tryed to launch 250 xclock's in background
and when it... (3 Replies)
Hello!
Im running tight VNC on Red Hat Enterprise Linux 4.0.
How can I increase the number of X clients that I can run
in a VNC session?I need to run aproximately 500 programs in one VNC session,
but at this time I can only 236 -> i've tryed to launch 250 xclock's in background
and when it... (0 Replies)
Hi all,
I'm currently learning xlib and I've encountered a bizarre mistake: function calls such as XDrawPoint, XDrawLine, etc., don't seem to work; a blank window with nothing in is appears. I believe this has something to do with the window manager I use, fluxbox.
After checking the code and... (0 Replies)
1. If there's some better place where xlib experts hang out, please tell me. Despite an assiduous search, I could not find an xlib reflector.
2. My actual question:
In an xterm, I want to grab and process all keyboard events in a program running inside the xterm. For example, with my program... (5 Replies)
Hey guys!
First of all english is not my main language so sorry for any english mistakes.
Second im a total beginner in programming, still i have a school work to do and i found a problem. Probably something easy to solve but it's driving me crazy.
So i created a struct, that holds 4 ints:
... (1 Reply)
Hey guys!
First of all english is not my main language so sorry for any english mistakes.
Im from Portugal!
1. The problem statement, all variables and given/known data:
Im having a problema creating and array of structs for a work i need to do. (xLib)
2. Relevant commands, code,... (1 Reply)
Two simple questions related to the following puzzling behaviour:
I have the following line of code:
const KeyCode kc = XKeysymToKeycode(_display_p, ks);
where _display_p is a valid Display* returned from XOpenDisplay() and ks has the value 103 (which was returned by XStringToKeysym(),... (2 Replies)
hey,
Im new to the linux world. Lately, I have tried to create a glx window with xlib, making it a popup window(fullscreen) so I set override_redirect to true. Im happy with the removed borders, but apparantly, the application doesnt show up in the left bar in ubuntu, neither when I press alt... (4 Replies)
Hello,
i'm trying to show the Image of an monochrome webcam in an xlib-Window.
initializing of the window:
if (NULL == ((*XWindow)->display = XOpenDisplay(NULL))) APPLICATION_Set_Error(V4LCamera->Application, XWINDOW, "failed to open display", 123, -1, APPLICATION_ERROR_MESSAGE);
... (1 Reply)
Hello. I used to have Pango compiled, however it did not have X support, only Freetype support. Since gtk requires pangoX to be compiled, I went to compile it with Xsupport.
I had to issue a ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/PangoX-1.8.2/... (1 Reply)
Discussion started by: colt
1 Replies
LEARN ABOUT ULTRIX
xdisplayname
XSetErrorHandler(3X11) MIT X11R4 XSetErrorHandler(3X11)Name
XSetErrorHandler, XGetErrorText, XDisplayName, XSetIOErrorHandler, XGetErrorDatabaseText - default error handlers
Syntax
int (*XSetErrorHandler(handler))()
int (*handler)(Display *, XErrorEvent *)
XGetErrorText(display, code, buffer_return, length)
Display *display;
int code;
char *buffer_return;
int length;
char *XDisplayName(string)
char *string;
int (*XSetIOErrorHandler(handler))()
int (*handler)(Display *);
XGetErrorDatabaseText(display, name, message, default_string, buffer_return, length)
Display *display;
char *name, *message;
char *default_string;
char *buffer_return;
int length;
Arguments
buffer_return
Returns the error description.
code Specifies the error code for which you want to obtain a description.
default_string
Specifies the default error message if none is found in the database.
display Specifies the connection to the X server.
handler Specifies the program's supplied error handler.
length Specifies the size of the buffer.
message Specifies the type of the error message.
name Specifies the name of the application.
string Specifies the character string.
Description
Xlib generally calls the program's supplied error handler whenever an error is received. It is not called on errors from or protocol
requests or on errors from a protocol request. These errors generally are reflected back to the program through the procedural interface.
Because this condition is not assumed to be fatal, it is acceptable for your error handler to return. However, the error handler should
not call any functions (directly or indirectly) on the display that will generate protocol requests or that will look for input events.
The previous error handler is returned.
The function copies a null-terminated string describing the specified error code into the specified buffer. It is recommended that you use
this function to obtain an error description because extensions to Xlib may define their own error codes and error strings.
The function returns the name of the display that would attempt to use. If a NULL string is specified, looks in the environment for the
display and returns the display name that would attempt to use. This makes it easier to report to the user precisely which display the
program attempted to open when the initial connection attempt failed.
The sets the fatal I/O error handler. Xlib calls the program's supplied error handler if any sort of system call error occurs (for exam-
ple, the connection to the server was lost). This is assumed to be a fatal condition, and the called routine should not return. If the
I/O error handler does return, the client process exits.
Note that the previous error handler is returned.
The function returns a message (or the default message) from the error message database. Xlib uses this function internally to look up its
error messages. On a UNIX-based system, the error message database is
The name argument should generally be the name of your application. The message argument should indicate which type of error message you
want. Xlib uses three predefined message types to report errors (uppercase and lowercase matter):
XProtoError
The protocol error number is used as a string for the message argument.
XlibMessage
These are the message strings that are used internally by the library.
XRequest For a core protocol request, the major request protocol number is used for the message argument. For an extension request, the
extension name (as given by followed by a period (.) and the minor request protocol number is used for the message argument. If
no string is found in the error database, the default_string is returned to the buffer argument.
See AlsoXOpenDisplay(3X11), XSynchronize(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSetErrorHandler(3X11)