Graphics crash on MacOs Monterey (M1 pro)

Ciao,

I just received my new Macbook Pro (14") with M1-pro processor.

I compiled ROOT (6.26/06, but I also tried with 6.22/08 and 6.26/04). Everything went very smoothly and ROOT is working (the interpreter, to compile staff, to produce plot saved on pdfs, etc…).
But as long as I try to open any graphics (TBrowser or TCanvas from the interpreter or TApplication) I end up in a crash:

bozzo@MacBook-Pro:duranti> root --version
ROOT Version: 6.26/06
Built for macosxarm64 on Jul 28 2022, 18:08:51
From tags/v6-26-06@v6-26-06
bozzo@MacBook-Pro:duranti> root
root [0] TBrowser a

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] PNGReadPlugin::InitializePluginData(IIOImageReadSession*, IIODictionary*, IIODictionary*, CGImageMetadata*, CGColorSpace**, ReadPluginData&, PNGPluginData&, __CFDictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOReadPlugin::callInitialize() (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIO_Reader::initImageAtOffset(CGImagePlugin*, unsigned long, unsigned long, unsigned long) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::makeImagePlus(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::getPropertiesAtIndexInternal(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::copyPropertiesAtIndex(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] CGImageSourceCopyPropertiesAtIndex (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] ImageSourceOptionsForCGImageSource_index_ (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSBitmapImageRep _imagesWithData:hfsFileType:extension:zone:expandImageContentNow:includeAllReps:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSBitmapImageRep _imageRepsWithData:hfsFileType:extension:expandImageContentNow:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSImageRep _imageRepsWithContentsOfURL:expandImageContentNow:giveUpOnNetworkURLsWithoutGoodExtensions:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSImage initWithContentsOfFile:] (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGCocoa.so] TGCocoa::SetApplicationIcon() (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGCocoa.so] TGCocoa::MapWindow(unsigned long) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGStatusBar::TGStatusBar(TGWindow const*, unsigned int, unsigned int, unsigned int, unsigned long) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::CreateBrowser(char const*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TClingCallFunc::exec(void*, void*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TClingCallFunc::exec_with_valref_return(void*, cling::Value*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] long TClingCallFunc::ExecT<long>(void*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TMethodCall::Execute(void*, long&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] long TPluginHandler::ExecPluginImpl<TBrowser*, char const*, unsigned int, unsigned int, char const*>(TBrowser* const&, char const* const&, unsigned int const&, unsigned int const&, char const* const&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootGuiFactory::CreateBrowserImp(TBrowser*, char const*, unsigned int, unsigned int, char const*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::Interpreter::executeTransaction(cling::Transaction&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*>, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraits<cling::Transaction*> > >&, bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/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)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/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)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TSystem::Run() (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)
Root > 

Can you help me to understand where’s the problem?

Thanks,
Matteo


ROOT Version: 6.26/06
Platform: MacOs 12.5 (M1Pro) / macosxarm64
Compiler: Apple clang version 13.1.6 (clang-1316.0.21.2.5) / Target: arm64-apple-darwin21.6.0


@couet can you give a hand? thanks

I do not see this issue on my mac. I built root also from the sources. I that new? Seems to me ROOt graphics is OK on M1. I am now checking on an M1 machine

I don’t know if I have to “enable” some Privacy setting or stuff like this…

I also tried the brew version and the result is the same. So I don’t think is the way I built it, but more likely in my environment… But I’m not able to understand where’s the problem.

Just to be clear: the CPU is M1pro, I don’t know if matters…

Thanks,
Matteo

I rebuilt ROOT master on an M1 machine.
The following screen dump shows it is working:

12.5 , I can update … But M1-Pro I do not have any.

Ciao,

I would be very grateful if you can update. I’m afraid the problem could be related to the processor…

If I compile in “Debug” mode this could be helpful to backtrace the problem?

Thanks,
Matteo

Debug didn’t help:

bozzo@MacBook-Pro:root-6.26.06_install> root
root [0] TBrowser a

 *** Break *** segmentation violation
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TUnixSystem::DispatchSignals(ESignals) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/unix/src/TUnixSystem.cxx:0
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] SigHandler(ESignals) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/unix/src/TUnixSystem.cxx:395
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] sighandler(int) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/unix/src/TUnixSystem.cxx:3591
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] textinput::TerminalConfigUnix::HandleSignal(int) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/textinput/src/textinput/TerminalConfigUnix.cpp:101
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] (anonymous namespace)::TerminalConfigUnix__handleSignal(int) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/textinput/src/textinput/TerminalConfigUnix.cpp:37
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] PNGReadPlugin::InitializePluginData(IIOImageReadSession*, IIODictionary*, IIODictionary*, CGImageMetadata*, CGColorSpace**, ReadPluginData&, PNGPluginData&, __CFDictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOReadPlugin::callInitialize() (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIO_Reader::initImageAtOffset(CGImagePlugin*, unsigned long, unsigned long, unsigned long) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::makeImagePlus(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::getPropertiesAtIndexInternal(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::copyPropertiesAtIndex(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] CGImageSourceCopyPropertiesAtIndex (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] ImageSourceOptionsForCGImageSource_index_ (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSBitmapImageRep _imagesWithData:hfsFileType:extension:zone:expandImageContentNow:includeAllReps:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSBitmapImageRep _imageRepsWithData:hfsFileType:extension:expandImageContentNow:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSImageRep _imageRepsWithContentsOfURL:expandImageContentNow:giveUpOnNetworkURLsWithoutGoodExtensions:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSImage initWithContentsOfFile:] (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGCocoa.so] TGCocoa::SetApplicationIcon() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/graf2d/cocoa/src/TGCocoa.mm:4531
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGCocoa.so] TGCocoa::MapWindow(unsigned long) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/graf2d/cocoa/src/TGCocoa.mm:1150
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGWindow::MapWindow() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TGWindow.cxx:163
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGFrame::MapWindow() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/inc/TGFrame.h:204
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGStatusBarPart::TGStatusBarPart(TGWindow const*, int, int, unsigned long) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TGStatusBar.cxx:67
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGStatusBarPart::TGStatusBarPart(TGWindow const*, int, int, unsigned long) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TGStatusBar.cxx:63
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGStatusBar::TGStatusBar(TGWindow const*, unsigned int, unsigned int, unsigned int, unsigned long) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TGStatusBar.cxx:118
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TGStatusBar::TGStatusBar(TGWindow const*, unsigned int, unsigned int, unsigned int, unsigned long) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TGStatusBar.cxx:103
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::CreateBrowser(char const*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TRootBrowser.cxx:285
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TRootBrowser.cxx:125
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TRootBrowser.cxx:121
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TRootBrowser.cxx:1273
[<unknown binary>] (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TClingCallFunc::exec(void*, void*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TClingCallFunc.cxx:1845
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7::operator()(void*, cling::Value&) const /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TClingCallFunc.cxx:2017
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] decltype(static_cast<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7&>(fp)(static_cast<void*>(fp0), static_cast<cling::Value&>(fp0))) std::__1::__invoke<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7&, void*, cling::Value&>(TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7&, void*&&, cling::Value&) /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/type_traits:3918
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] void std::__1::__invoke_void_return_wrapper<void, true>::__call<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7&, void*, cling::Value&>(TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7&, void*&&, cling::Value&) /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__functional/invoke.h:62
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] std::__1::__function::__alloc_func<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7, std::__1::allocator<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7>, void (void*, cling::Value&)>::operator()(void*&&, cling::Value&) /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__functional/function.h:178
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] std::__1::__function::__func<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7, std::__1::allocator<TClingCallFunc::InitRetAndExecNoCtor(clang::QualType, cling::Value&)::$_7>, void (void*, cling::Value&)>::operator()(void*&&, cling::Value&) /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__functional/function.h:352
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] std::__1::__function::__value_func<void (void*, cling::Value&)>::operator()(void*&&, cling::Value&) const /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__functional/function.h:505
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] std::__1::function<void (void*, cling::Value&)>::operator()(void*, cling::Value&) const /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__functional/function.h:1182
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TClingCallFunc::exec_with_valref_return(void*, cling::Value*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TClingCallFunc.cxx:2067
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] long TClingCallFunc::ExecT<long>(void*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TClingCallFunc.cxx:2121
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TClingCallFunc::ExecInt(void*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TClingCallFunc.cxx:2134
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TCling::CallFunc_ExecInt(CallFunc_t*, void*) const /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TCling.cxx:7868
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TMethodCall::Execute(void*, long&) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/meta/src/TMethodCall.cxx:457
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TMethodCall::Execute(long&) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/meta/inc/TMethodCall.h:136
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] long TPluginHandler::ExecPluginImpl<TBrowser*, char const*, unsigned int, unsigned int, char const*>(TBrowser* const&, char const* const&, unsigned int const&, unsigned int const&, char const* const&) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/base/inc/TPluginManager.h:160
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] long TPluginHandler::ExecPlugin<TBrowser*, char const*, unsigned int, unsigned int, char const*>(int, TBrowser* const&, char const* const&, unsigned int const&, unsigned int const&, char const* const&) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/base/inc/TPluginManager.h:172
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libGui.so] TRootGuiFactory::CreateBrowserImp(TBrowser*, char const*, unsigned int, unsigned int, char const*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/gui/gui/src/TRootGuiFactory.cxx:92
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/gui/src/TBrowser.cxx:126
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/gui/src/TBrowser.cxx:117
[<unknown binary>] (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::Interpreter::executeTransaction(cling::Transaction&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*>, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraits<cling::Transaction*> > >&, bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/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)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/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)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TCling.cxx:2441
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/metacling/src/TCling.cxx:2601
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TApplication::ProcessLine(char const*, bool, int*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/base/src/TApplication.cxx:1457
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/rint/src/TRint.cxx:792
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TRint::HandleTermInput() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/rint/src/TRint.cxx:650
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TTermInputHandler::Notify() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/rint/src/TRint.cxx:133
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TTermInputHandler::ReadNotify() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/rint/src/TRint.cxx:125
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TUnixSystem::CheckDescriptors() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/unix/src/TUnixSystem.cxx:1310
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/macosx/src/TMacOSXSystem.mm:378
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TSystem::InnerLoop() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/base/src/TSystem.cxx:406
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TSystem::Run() /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/base/src/TSystem.cxx:356
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libCore.so] TApplication::Run(bool) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/base/src/TApplication.cxx:1609
[/Volumes/amssw/duranti/root-6.26.06_install/lib/libRint.so] TRint::Run(bool) /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/core/rint/src/TRint.cxx:501
[/Volumes/amssw/duranti/root-6.26.06_install/bin/root.exe] main /Volumes/CaseSensitive/amssw_cold/duranti/root-6.26.06/main/src/rmain.cxx:86
[/usr/lib/dyld] start (no debug info)
Root > 

I ask a stupid question, just to be sure:

  • how I guarantee that the support for X11 is compiled? Adding, to cmake, -Dx11=ON or -Dx11=OFF seems to have no effect on the cmake output…

  • is normal that XQuartz open or close doesn’t change at all the crash?

Ok,

I almost backtraced the problem:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/lib 

there should be some library that is loaded and is not compatible with the one used to compile… libpng?

Thanks for the help,
Matteo

Just to close the topic: the two environments were loading different libraries:

The working environment:

bozzo@MacBook-Pro:root-6.26.06_install> cat lib_sano.txt | grep homebrew

The broken one:

bozzo@MacBook-Pro:root-6.26.06_install> cat lib_rotto.txt | grep homebrew
dyld[33235]: <CF374DA6-AD4B-35C0-9DE1-EC2F21281DA1> /opt/homebrew/Cellar/xz/5.2.5_1/lib/liblzma.5.dylib
dyld[33235]: <004EFB04-D758-34C4-8623-910A561A3B8C> /opt/homebrew/Cellar/jpeg/9e/lib/libjpeg.9.dylib
dyld[33235]: <07D49D95-F635-348E-B049-DE52B1C55492> /opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.16.dylib
dyld[33235]: <FA381AE2-CE78-32CB-9B8F-2353672E8AD2> /opt/homebrew/Cellar/libtiff/4.4.0_1/lib/libtiff.5.dylib
dyld[33235]: <7BE55E9E-806B-3247-A2BD-66E675A88E51> /opt/homebrew/Cellar/giflib/5.2.1/lib/libgif.7.2.0.dylib
dyld[33235]: <BBB9CB90-AECC-3D3C-BCB6-99457290A9B6> /opt/homebrew/Cellar/jpeg-turbo/2.1.3/lib/libjpeg.8.2.2.dylib
dyld[33236]: <CF374DA6-AD4B-35C0-9DE1-EC2F21281DA1> /opt/homebrew/Cellar/xz/5.2.5_1/lib/liblzma.5.dylib
dyld[33236]: <004EFB04-D758-34C4-8623-910A561A3B8C> /opt/homebrew/Cellar/jpeg/9e/lib/libjpeg.9.dylib
dyld[33236]: <07D49D95-F635-348E-B049-DE52B1C55492> /opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.16.dylib
dyld[33236]: <FA381AE2-CE78-32CB-9B8F-2353672E8AD2> /opt/homebrew/Cellar/libtiff/4.4.0_1/lib/libtiff.5.dylib
dyld[33236]: <7BE55E9E-806B-3247-A2BD-66E675A88E51> /opt/homebrew/Cellar/giflib/5.2.1/lib/libgif.7.2.0.dylib
dyld[33236]: <BBB9CB90-AECC-3D3C-BCB6-99457290A9B6> /opt/homebrew/Cellar/jpeg-turbo/2.1.3/lib/libjpeg.8.2.2.dylib

(this two lists are produced running root with DYLD_PRINT_LIBRARIES=YES in front of it)

Thanks for the help,
Matteo

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