Unable to draw objects or launch TCanvas with macOc Montery 12.4

ROOT Version: 6.26/02
Platform: macosx64
Compiler: Apple clang version 13.1.6 (clang-1316.0.21.2)


I have installed root 6.26/02 using brew. The installation did not appear to give any errors however when I open a root session and try to open a TCanvas by doing “new TCanvas” I receive the following error message.

root [0] new TCanvas()
Error in <TTF::SetTextFont>: font file FreeSansBold.otf not found in path
Error in <TGHScrollBar::TGHScrollBar>: arrow_*.xpm not found
Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found
*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGui.so] TGCanvas::Layout() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGui.so] TGCompositeFrame::MapSubwindows() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGui.so] TGCompositeFrame::MapSubwindows() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGui.so] TRootCanvas::CreateCanvas(char const*) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGui.so] TRootCanvas::TRootCanvas(TCanvas*, char const*, int, int, unsigned int, unsigned int) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGui.so] TRootGuiFactory::CreateCanvasImp(TCanvas*, char const*, int, int, unsigned int, unsigned int) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGpad.so] TCanvas::Constructor(char const*, char const*, int) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libGpad.so] TCanvas::TCanvas(bool) (no debug info)
[<unknown binary>] (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libRint.so] TRint::HandleTermInput() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCore.so] TSystem::InnerLoop() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCore.so] TSystem::Run() (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libCore.so] TApplication::Run(bool) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/lib/root/libRint.so] TRint::Run(bool) (no debug info)
[/usr/local/Cellar/root/6.26.02_1/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)

I have tried installing root on earlier version of Monterey and have tried using the binary instatllion as well as installing from source and using brew however every time I receive the same error message and I am unable to draw any object such as a TH1, TH2, TGraph or even just opening a TCanvas.

Welcome to the ROOT forum.

This missing font file should be in:

$ROOTSYS/fonts/FreeSansBold.otf 

So I have installed root again with macports and this time it was successful. I am not sure the other methods had failed.
When I did install from source the “missing” file $ROOTSYS/fonts/FreeSansBold.otf was present in the correct directory.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.