Sponsored Content
Full Discussion: Xlib Errors
Top Forums UNIX for Dummies Questions & Answers Xlib Errors Post 302553568 by mspatil0037 on Thursday 8th of September 2011 02:03:04 AM
Old 09-08-2011
Xlib Errors

Hi,

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:
Code:
Xlib: connection to ":165.0" refused by server
Xlib: Client is not authorized to connect to Server
NEdit: Can't open display

Gets the below error after running ssh -X <hostname>
Code:
Xlib: connection to "localhost:173.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
NEdit: Can't open display

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:
Mod Comment 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
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

xlib error

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)
Discussion started by: karpoand
3 Replies

2. UNIX and Linux Applications

vncserver xlib error

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)
Discussion started by: karpoand
0 Replies

3. Programming

problems with drawing in x using xlib

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)
Discussion started by: hydronium
0 Replies

4. UNIX for Advanced & Expert Users

xlib and keyboard events

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)
Discussion started by: N7DR
5 Replies

5. Programming

Xlib help - Array of Structs

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)
Discussion started by: Spiritvs
1 Replies

6. Homework & Coursework Questions

Xlib help - Array of Structs

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)
Discussion started by: Spiritvs
1 Replies

7. UNIX for Advanced & Expert Users

Xlib: XKeysymToKeycode hangs

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)
Discussion started by: N7DR
2 Replies

8. Programming

Xlib registering

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)
Discussion started by: thedardanius
4 Replies

9. Programming

[xlib] Image has just 1/4 size

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)
Discussion started by: mirrowwinger
1 Replies

10. UNIX for Advanced & Expert Users

PangoX cannot find Xlib.h

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
XHPSetErrorHandler(3X)													    XHPSetErrorHandler(3X)

NAME
XHPSetErrorHandler - Register an X error handling routine. SYNOPSIS
#include <X11/XHPlib.h> typedef int (*PFI) (); PFI XHPSetErrorHandler (display, routine) Display *display; int (*routine) (); int routine (display, error) Display *display; XErrorEvent *error; DESCRIPTION
This request registers with Xlib the address of a routine to handle X errors. It is intended to be used by libraries and drivers that wish to establish an error handling routine without interfering with any error handling routine that may have been established by the client program. XHPSetErrorHandler records one error handling routine per connection to the server. Therefore, in order for a library or driver to set up its own error handling routine without affecting that of the client, the library or driver must first have established its own connection to the server via XOpenDisplay. When an XErrorEvent is received by the client, which error handling routine is invoked is determined by the display associated with the error. If the display matches that associated with a driver error handling routine, that error handling routine will be invoked. If it does not match any driver routine, the error handling routine established by the client, if any exists, will be invoked. Otherwise, the default Xlib error handler will be invoked. XHPSetErrorHandler returns the address of the previously established error handler. If that error handler was the default error handler, NULL is returned. A driver or library may remove its error handler by invoking XHPSetErrorHandler with a NULL error handling routine. FILES
/usr/include/X11/XHPlib.h ORIGIN
Hewlett-Packard Company SEE ALSO
XSetErrorHandler(3x) X Version 11 Release 5 XHPSetErrorHandler(3X)
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy