No graphical output

That’s weird …
what do you get when you do:

TCanvas c;

?

root
root [0] TCanvas c;
Warning in TCanvas::ResizePad: c1 width changed from 0 to 10

Warning in TCanvas::ResizePad: c1 height changed from 0 to 10

…then nothing! No TCanvas appears.

I searched TCanvas::ResizePad on the forum… but I did not find anything matching your problem …

may be you have something in you rootlogon.C … can you try to start root with option -n:

root -n

?

Still nothing:

root -n
root [0] new TBrowser
(TBrowser *) 0x1ab7f10

…but no TBrowser appears.

It seems there is one similar post:

I don’t think this is the same problem, for example if I do:
root [0] TCanvas C
root [1] gPad->DrawFrame(0., 0., 1., 1.)

I still get nothing.

Try (make sure that all files belong to your ROOT version):
ls -al root-config --etcdir

does/did it work/ed with other ROOT versions ? 5.34 ? 6.07 ?

Not sure what I’m checking for here. But it was a fresh install, and this is the result:

-rw-r–r-- 1 hesketh hesketh 84M Jun 9 16:47 allDict.cxx.pch
-rw-rw-r-- 1 hesketh hesketh 906 Mar 3 09:36 class.rules
drwxrwxr-x 6 hesketh hesketh 4.0K Jun 9 16:31 cling/
drwxrwxr-x 2 hesketh hesketh 4.0K Jun 9 16:54 cmake/
drwxrwxr-x 2 hesketh hesketh 4.0K Jun 9 16:54 daemons/
drwxrwxr-x 22 hesketh hesketh 4.0K Jun 9 16:54 dictpch/
-rwxrwxr-x 1 hesketh hesketh 7.5K Mar 3 09:36 gdb-backtrace.sh*
-rw-r–r-- 1 hesketh hesketh 57 Mar 3 09:59 gitinfo.txt
-rw-rw-r-- 1 hesketh hesketh 7.6K Mar 3 09:36 helgrind-root.supp
-rw-rw-r-- 1 hesketh hesketh 6.4K Mar 3 09:36 HistFactorySchema.dtd
-rw-rw-r-- 1 hesketh hesketh 1.7K Mar 3 09:36 hostcert.conf
drwxrwxr-x 2 hesketh hesketh 4.0K Jun 9 16:54 html/
drwxrwxr-x 6 hesketh hesketh 4.0K Jun 9 16:54 http/
-rw-rw-r-- 1 hesketh hesketh 11K Mar 3 09:36 Makefile.arch
drwxrwxr-x 4 hesketh hesketh 4.0K Jun 9 16:31 notebook/
-rw-rw-r-- 1 hesketh hesketh 365K Mar 3 09:36 pdg_table.txt
drwxrwxr-x 59 hesketh hesketh 4.0K Jun 9 16:31 plugins/
drwxrwxr-x 4 hesketh hesketh 4.0K Jun 9 16:54 proof/
-rw-rw-r-- 1 hesketh hesketh 812K Mar 3 09:36 RadioNuclides.txt
-rw-rw-r-- 1 hesketh hesketh 303 Mar 3 09:36 root.desktop
-rw-r–r-- 1 hesketh hesketh 7.8K Jun 9 16:34 root.mimes
-rw-rw-r-- 1 hesketh hesketh 13K Mar 3 09:36 system.plugins-ios
-rw-rw-r-- 1 hesketh hesketh 13K Jun 9 16:33 system.rootauthrc
-rw-rw-r-- 1 hesketh hesketh 4.2K Jun 9 16:33 system.rootdaemonrc
-rw-r–r-- 1 hesketh hesketh 33K Jun 9 16:34 system.rootrc
-rw-rw-r-- 1 hesketh hesketh 297 Mar 3 09:36 valgrind-root-python.supp
-rw-rw-r-- 1 hesketh hesketh 12K Mar 3 09:36 valgrind-root.supp
drwxrwxr-x 2 hesketh hesketh 4.0K Jun 9 16:54 vmc/

Do you get anything, when you try:
dpkg --list “"|grep -i root-system
dpkg --list "
”|grep -i root-plugin
dpkg --list “*”|grep -i libroot

Nothing:
~> dpkg --list “"|grep -i root-system
~> dpkg --list "
”|grep -i root-plugin
~> dpkg --list “*”|grep -i libroot
~>

[quote=“Pepe Le Pew”]Do you get anything, when you try:
dpkg --list “"|grep -i root-system
dpkg --list "
”|grep -i root-plugin
dpkg --list “*”|grep -i libroot[/quote]

Both 5.34 and 6.04 fail to compile for me. With 6.04 I get this:

root-6.04.16/math/mathmore/src/GSLMultiFit.h:146:38: error: ‘struct gsl_multifit_fdfsolver’ has no member named ‘J’
gsl_multifit_gradient(fSolver->J, fSolver->f,fVec);

with 5.34, the main error seems to be:

#4 0x00007f046360b94a in DefaultErrorHandler (level=, abort_bool=, location=0x7f04636e7553 “TVirtualStreamerInfo::Factory”, msg=0x21236a0 “Cannot find the plugin handler for TVirtualStreamerInfo! However $ROOTSYS/etc/plugins/TVirtualStreamerInfo is accessible, Check the content of this directory!”) at /scratch/HEPsoftware/root-5.34.36/core/base/src/TError.cxx:192

not sure it is worth trying to debug these old versions! How can I get hold of 6.07?

Try: Trouble Installing

ok, I tried v6-07-06, and the v5.34 which is in the kubuntu repositories. No graphical output from either. I definitely configure with x11 support:

– Enabled support for: asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_pcre builtin_lzma builtin_llvm cxx11 cling exceptions explicitlink fortran genvector mathmore memstat opengl pch python shadowpw shared thread tmva vdt xft xml x11

and have not had this problem in the past on kubuntu, so either an updated package on my system or something else is causing this problem, but I don’t know how to debug further.

I’ve just tried a complete reinstall of the system, same result: no graphical output. Any more ideas for what to test?
thanks,
Gavin

Execute: [code]sync && sudo apt-get clean && sudo apt-get update && sudo apt-get check && sudo apt-get dist-upgrade && sudo apt-get upgrade && sync

sudo apt-get install tcsh gawk cmake
sudo apt-get build-dep root-system

sudo apt-get purge root-system* root-plugin* libroot*[/code] then check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely and finally follow the “in-place” instructions (make sure that you do not have “${HOME}/.rootrc”, “${HOME}/rootlogon.C”, “${HOME}/rootlogoff.C”, “${HOME}/rootalias.C” files): Trouble Installing

[quote=“Pepe Le Pew”]Execute: [code]sync && sudo apt-get clean && sudo apt-get update && sudo apt-get check && sudo apt-get dist-upgrade && sudo apt-get upgrade && sync

sudo apt-get install tcsh gawk cmake
sudo apt-get build-dep root-system

sudo apt-get purge root-system* root-plugin* libroot*[/code] then check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely and finally follow the “in-place” instructions (make sure that you do not have “${HOME}/.rootrc”, “${HOME}/rootlogon.C”, “${HOME}/rootlogoff.C”, “${HOME}/rootalias.C” files): https://root-forum.cern.ch/t/trouble-installing/18046/11[/quote]

ok, good - some progress! I ran all the commands (though my system was already up to date and free of root from the repos), unpacked the tarball of v6.06.04, then did an “in place” install:

./configure  --prefix=$INSTALLDIR
make 
make install

Now I do get a TBrowser, TCanvas etc, but get the problem I first had when trying to compile or do anything else, which I understand is to do with gcc v5.3:

root [1] 5*6
IncrementalExecutor::executeFunction: symbol '_ZN5cling10printValueEPKi' unresolved while linking [cling interface function]!
You are probably missing the definition of cling::printValue(int const*)
Maybe you need to load the corresponding shared library?
(int) Error in ValuePrinter: missing output string.

…which is why I was using cmake in the first place. The cmake command I was using:

cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 $ROOTDIR make -j 4 make install
means I don’t get the cling library error, but I also don’t get graphics.

Well, not sure what changed, but now it seems to work even with cmake. I moved to 6.6.4 and rearranged the options slightly and now everything is working. Not very satisfying as I didn’t really understand the solution, but I’m happy to accept a working root for now! Thanks for the help and suggestions.

Hi,
I have to revive this thread… I’ve just installed Linux Mint 18 (KDE version if that matters) on a desktop, and have the same issue again. Root v06.06.08 seems to compile with no problems, but I get no graphics

I do:

tar -zxvf root_v6.06.08.source.tar.gz
mkdir test_build ; cd test_build
INSTALLDIR=/scratch/HEPsoftware/local
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 /scratch/HEPsoftware/root-6.06.08

–at this point it seems fine,:
– Enabled support for: asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_pcre builtin_lzma builtin_llvm cxx11 cling exceptions explicitlink fortran genvector mathmore memstat opengl pch python shadowpw shared thread tmva vdt xft xml x11

make
make install
root
root [0] new TBrowser
(TBrowser *) 0x1c1b830

and that’s it. No error, and no TBrowser.

I didn’t really solve the problem last time, it just magically went away… so not sure how to proceed with debugging.

thanks,
Gavin