Ubuntu - glxdisplay(warning)

After installing Panda3D on Ubuntu 6.06 from panda3d_1.2.3-ubuntubreezy_i386.deb I try to run sample application GreetingCard and I am getting this:

chris@laptop:/usr/share/panda3d/samples/GreetingCard$ ppython GreetingCard.py
DirectStart: Starting the game.
Warning: DirectNotify: category ‘Interval’ already exists
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:display:glxdisplay(warning): X does not support locale LC_CTYPE=en_ZW.UTF-8;LC_NUMERIC=C;LC_TIME=en_ZW.UTF-8;LC_COLLATE=en_ZW.UTF-8;LC_MONETARY=en_ZW.UTF-8;LC_MESSAGES=en_ZW.UTF-8;LC_PAPER=en_ZW.UTF-8;LC_NAME=en_ZW.UTF-8;LC_ADDRESS=en_ZW.UTF-8;LC_TELEPHONE=en_ZW.UTF-8;LC_MEASUREMENT=en_ZW.UTF-8;LC_IDENTIFICATION=en_ZW.UTF-8
:display:glxdisplay(warning): Couldn’t open input method.
Segmentation fault

OpenGL seems to be fine on my machine as glxgears is working ok.

Any help will be very much appreciated.

Seems like you may be able to work around this problem by clearing the appropriate LOCALE variables in your environment. Check your environment variables, via something like:


env | grep LC

Do you have one big LOCALE variable set, or is there are slew of individual variables like LC_CTYPE, LC_NUMERIC, and so on? Try clearing all of them.

I’ll investigate putting in a longer-term fix into Panda.

David

Hi David,

Thanks for your sugestion, however “env | grep LC” is not returning enything, as my enviroment variables look like this:

SSH_AGENT_PID=5358
TERM=xterm
DESKTOP_STARTUP_ID=
SHELL=/bin/bash
GTK_RC_FILES=/etc/gtk/gtkrc:/home/chris/.gtkrc-1.2-gnome2
WINDOWID=39845998
USER=chris
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.zip=01;31:.z=01;31:.Z=01;31:.gz=01;31:.bz2=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.avi=01;35:.fli=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.flac=01;35:.mp3=01;35:.mpc=01;35:.ogg=01;35:.wav=01;35:
GNOME_KEYRING_SOCKET=/tmp/keyring-KRKUrH/socket
SSH_AUTH_SOCK=/tmp/ssh-eyzDFq5316/agent.5316
SESSION_MANAGER=local/laptop:/tmp/.ICE-unix/5316
USERNAME=chris
DESKTOP_SESSION=default
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
GDM_XSERVER_LOCATION=local
PWD=/usr/share/panda3d/samples/GreetingCard
LANG=en_ZW.UTF-8
GDMSESSION=default
HOME=/home/chris
SHLVL=1
LANGUAGE=en_ZW:en
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=chris
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-HhzoPIE6WI,guid=8d019d44fb78bb5baf52f4ba146b8700
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
COLORTERM=gnome-terminal
XAUTHORITY=/home/chris/.Xauthority
_=/usr/bin/env
OLDPWD=/home/chris/python

Any other ideas to resolve my problem?
I am running panda3d on compaq nx9005 laptopt.
Below is output of glxinfo:
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
GLX_SGIX_fbconfig
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
GLX_ATI_render_texture
GLX version: 1.2
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_multisample
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat

0x23 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x25 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x27 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x28 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x29 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x2a 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x2b 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x2c 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x2d 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x2e 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x2f 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x30 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x31 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x32 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow

Thanks for your help…

Hi David,

I am having the same problem with panda on the latest ubuntu.
I have tried running both panda 1.2.3 and 1.0.5. I have been using 1.0.5 on ubuntu without problems.

I get the same segfaults. Can you please advise what needs to be done.

Here is the error:


suman@mansu:~/exercise/paper/npl_sw/python/npl$ sudo ./main.py -g < test/hello.npl
DirectStart: Starting the game.
enumerate is already present in builtin
Warning: DirectNotify: category ‘Interval’ already exists
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:display:glxdisplay(warning): X does not support locale en_IN
:display:glxdisplay(warning): Couldn’t open input method.
Segmentation fault

main is my python script.

env | grep LC

returns nothing.

Any hints will be immensely helpful.

-Suman

Ah, I think I understand better what’s going on. Try clearing your LANG variable:

unset LANG

Or, alternatively, try setting LC_ALL to “C”:

export LC_ALL=C

David

Just a side note: Are you using the pre-compiled Panda Ubuntu Binaries?
In that case take note that Panda3D has them for Hoary and Breezy, neither for Dapper nor for Edgy…

Sooo as long as you didn’t compile the sources yourself you might run into trouble there as well…
But thats just a side note… I can be terribly wrong too… :smiley:

Regards, Bigfoot29

Hi David,

Unsetting the LANG variable works. However, I cannot see anything drawn on the screen. I am working on that right now.

Thanks once again.

Bigfoot,

I think the binaries work across versions. I did not compile it last time but it worked.So, i hope it works this time too.

-Suman

Hi david,

I have set the lang variable and all i can see is a grey screen. The same is the case with the GreetingCard example.

I listen the music of greetingcard, but i dont see anything rendered.I can play tux-racer so i dont think this is a driver issue. Any pointers?

I am using the latest ubuntu . Also, Does recompiling panda for my machine fix it?

-Suman

This has come up before, see https://discourse.panda3d.org/viewtopic.php?t=1083 this thread. I don’t think we ever figured it out; there appears to be just something very strange with the way that Ubuntu configures X.

It might be an issue with the way the graphics window is opened–Panda uses GLX calls, while Tux Racer might use something different. Someone in the other thread suggested trying glxgears, a sample program that also uses GLX calls; can you try that as well?

David