Gl problems?

Hi,

I’m trying to run the glbox.C tutorial on an SL4 machine and have what seems to be an X11 problem. When I connect directly on the machine, I get the following error :

root [1] .x glbox.C

*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib/tls/libthread_db.so.1”.
Attaching to program: /proc/4681/exe, process 4681
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread -1208531264 (LWP 4681)]
(no debugging symbols found)…done.
(no debugging symbols found)…done.
0x006c67a2 in _dl_sysinfo_int80 ()
from /lib/ld-linux.so.2
#1 0x0076a7e3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2 0x00714649 in do_system () from /lib/tls/libc.so.6
#3 0x005c98bd in system () from /lib/tls/libpthread.so.0
#4 0x00a315df in TUnixSystem::Exec ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#5 0x00a36f21 in TUnixSystem::StackTrace ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#6 0x00a33c92 in TUnixSystem::DispatchSignals ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#7 0x00a33d20 in SigHandler ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#8 0x00a32f85 in sighandler ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#9
#10 0x00742625 in free () from /lib/tls/libc.so.6
#11 0x00588041 in operator delete () from /usr/lib/libstdc++.so.6
#12 0x019ef047 in TX11GLManager::AttachOffScreenDevice ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#13 0x006435a5 in TPad::GetGLDevice ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libGpad.so
#14 0x01988a5d in TGLHistPainter::Paint ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#15 0x04d78d1b in TH1::Paint ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libHist.so
#16 0x0063bb67 in TPad::PaintModified ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libGpad.so
#17 0x0063ba7e in TPad::PaintModified ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libGpad.so
#18 0x00621b82 in TCanvas::Update ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libGpad.so
#19 0x00a04780 in TCint::UpdateAllCanvases ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#20 0x00a04a41 in TCint::ProcessLine ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#21 0x00a04c86 in TCint::ProcessLineSynch ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#22 0x00a041e1 in TCint::EndOfLineAction ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#23 0x00fbd25f in TRint::HandleTermInput ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRint.so
#24 0x00fbb854 in TTermInputHandler::Notify ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRint.so
#25 0x00fbda6a in TTermInputHandler::ReadNotify ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRint.so
#26 0x00a2ff6a in TUnixSystem::CheckDescriptors ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#27 0x00a34170 in TUnixSystem::DispatchOneEvent ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#28 0x009c7cd8 in TSystem::InnerLoop ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#29 0x009c7a9e in TSystem::Run ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#30 0x00972c6e in TApplication::Run ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#31 0x00fbbfc6 in TRint::Run ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRint.so
#32 0x08048d5e in main ()
Root >

and the picture glc.gif hereafter

While when I connect remotely from my local machine (a mac with leopard) I get the picture

remotely from my machine, I get the gldrawing.jpeg result and I cannot really interact with it.

Any idea on what is going on ?

Thanks

Damir




Hi Damir,

Can you please provide output of ‘glxinfo’ command for both cases.

Are other GL applications working ok? Standard linux test is ‘glxgears’. I suspect a problem with installation of X-server or graphics-card drivers.

Best,
Matevz

Hi Matevz,

Here are the results. The glxgears test works in all conditions, but the various “gl” scripts fail, whatever the version of root (I tested v5r12 and v5r18) as soon as one uses the “gl” option.

I’m really puzzled…
test.txt (8.84 KB)

Hi Damir,

Do you use Xgl or AIGLX? If yes, can you please provide details.

Can you please check if the following two tutorials work:

  1. tutorials/gl/glViewerLOD.C
    2 .tutorials/eve/lineset_test.C

Thanks,
Matevz

Sorry to be so ignorant, I don’t know how to determine if I use Xgl or IAGLX, nor how to switch from one to the other.

They both seem to work, though I had an error in glViewerLOD.C:

root [1] Error in <TGLViewerBase::Render - pre exit check>: GL Error invalid operation

I re-tried the glsurfaces.C and glbox.C macros and got the errors :

When running glsurfaces.C

0x006c67a2 in _dl_sysinfo_int80 ()
from /lib/ld-linux.so.2
#1 0x00e1a7e3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2 0x00dc4649 in do_system () from /lib/tls/libc.so.6
#3 0x005f08bd in system () from /lib/tls/libpthread.so.0
#4 0x008a15df in TUnixSystem::Exec ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#5 0x008a6f21 in TUnixSystem::StackTrace ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#6 0x008a3c92 in TUnixSystem::DispatchSignals ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#7 0x008a3d20 in SigHandler ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#8 0x008a2f85 in sighandler ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#9
#10 0x00dfadac in memcpy () from /lib/tls/libc.so.6
#11 0x0706dbfe in TX11GLManager::ReadGLBuffer ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#12 0x06fead4f in TGLAdapter::ReadGLBuffer ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#13 0x0701e586 in TGLPlotPainter::Paint ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#14 0x0706d657 in TX11GLManager::PaintSingleObject ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#15 0x07009beb in TGLHistPainter::Paint ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#16 0x04e7bd1b in TH1::Paint ()

When running glbox.C

0x006c67a2 in _dl_sysinfo_int80 ()
from /lib/ld-linux.so.2
#1 0x00e297e3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2 0x00dd3649 in do_system () from /lib/tls/libc.so.6
#3 0x006188bd in system () from /lib/tls/libpthread.so.0
#4 0x009295df in TUnixSystem::Exec ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#5 0x0092ef21 in TUnixSystem::StackTrace ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#6 0x0092bc92 in TUnixSystem::DispatchSignals ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#7 0x0092bd20 in SigHandler ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#8 0x0092af85 in sighandler ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libCore.so
#9
#10 0x00e01625 in free () from /lib/tls/libc.so.6
#11 0x005b4041 in operator delete () from /usr/lib/libstdc++.so.6
#12 0x03605047 in TX11GLManager::AttachOffScreenDevice ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#13 0x042c25a5 in TPad::GetGLDevice ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libGpad.so
#14 0x0359ea5d in TGLHistPainter::Paint ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libRGL.so
#15 0x01564d1b in TH1::Paint ()
from /virgoApp/root/v5r18/Linux-i686-SL4/lib/libHist.so
#16 0x042bab67 in TPad::PaintModified ()

Cheers

Damir

Hi Damir,

Xgl and AIGLX are two extensions of X that allow compositing window managers to run. So, if you have wobbly gl effects on your desktop one of them is enabled.

From your glxinfo:

[quote]OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)[/quote]

This shows that there is one of the two enabled, using mesa with gl-1.5 at the back and offering only gl-1.2 to the applications.

ROOT uses gl-1.4 and hence you get the error “GL Error invalid operation” when you run root gl in windowed mode.

The crashes you experience come from the other mode (called GL in pad), where gl image is prepared in an offscreen buffer and copied into standard root pad or canvas. Apparently your X-server settings do not support this mode.

Can you please also send:
/var/log/Xorg.0.log
/etc/X11/xorg.conf

If you have gl-effects enabled on your desktop, please try disabling them, restart the X and try again. Another thing to try would be to put in your xorg.conf:

Best,
Matevz

Our administrator installed a nvidia gl driver and now everything seems to work. We just had to go to a 24 bits display, instead of 16. This is something to know…

Now, I still have the other problem on my mac, and I don’t know how to disable hardware acceleration there. I didn’t find the xorg.conf file. On the other hand, the problem is different than for the Linux case since the colors seem ok, but only part of the graph is drawn and it is impossible to interact with it.

If you have another thought, it is welcome.

Cheers

Damir

[/quote]