I am using root 5.34 on a linux machine I connect to with ssh -Y.
When I want to run one of my macros with “root macro.C” or after starting root with “.x macro.C” I get the error: Error: illegal pointer to class object gClient 0x0 1097 macro.C:850:
In this line I call
void macro() {
// Popup the GUI...
new MyMainFrame(gClient->GetRoot(),1024,724);
}.
Does it have something to do with the linux client I use (NoMachine connecting to SLP6)?
root was installed by our IT-team. There are two versions available that I have to load as modules.
If I do “module avail” I get root-5.30.01 and root-5.34. Both version work unless I don’t try to popup the GUI.
It is scientific linux SLP6 and I can open apps like emacs and firefox.
cheers,
delos
PS: just tried new TBrowser which usually open a window but nothing happens
I was told if I want to use root I would have to enter “module load root”. Then root is available in my path. I can basically choose the root version. The ones we have are 5.34.19, 5.34.26 and 5.34.34. I tried all of them.
And no, I cannot start a browser.
Our support are actually not very helpful with root. The accept us using it, but propagate stuff like matlab.
Maybe it’s the “DISPLAY” setting which is wrong.
From inside of the terminal window in which you start “root”, try to run “xterm” and see if you get it displayed.
Also, post here the output of:
root-config --features
So, everything seems to be fine …
Try to login to your machine using:
ssh -X -Y
If you get no error then I don’t understand why “new TBrowser();” fails.
Unless you have somewhere a “.rootrc” or “rootlogon.C” which switches ROOT into “batch mode” (or maybe you have an alias “root -b”).
Just tried but I get the same illegal pointer error.
I guess I have to bother my IT-colleagues a bit more because on my local machine everything works fine.
I’ll let you know as soon as they found the problem.