# Bus error while trying to plot

**URL:** <https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954>\
**Category:** Newbie\
**Tags:** graphics, hist, root\
**Created:** [October 17, 2024, 8:15pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954 "2024-10-17T20:15:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![boon\_toor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Post date:** [October 17, 2024, 8:15pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/1 "2024-10-17T20:15:43Z")

</div>

Unsure if this is an issue with ROOT or macOS Sequoia, but I thought this may help others facing the same issue.

ROOT (6.22.06, 6.26.06, 6.28.06) was working fine while I was still on macOS Sonoma on my M1 MacBook Pro, but since the update, I keep encountering a Bus Error while plotting.

My initial installation was using Homebrew, but I have since then tried reinstalling from the official ROOT website, both using the direct download and trying to build from source.

I have gone through several posts on here about issues after the update and have since then tried all the steps mentioned, including updating to 6.32.06 (both from Homebrew and building from source) and updating to macOS 15.0.1 and CLT 16.0.0.0.1 but the error persists. What seems to be weird is that I have no errors while compiling or building, and ROOT works fine until I try to Draw() or open TCanvas. Here is a snippet of the error message:

```auto
root [0] TCanvas c

 ***Break*** bus error
[/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 initWithContentsOfURL:] (no debug info)

```

Thoughts?

* * *

_ROOT Version:_ 6.32.06  
_Platform:_ MacOS 15.0.1  
_Compiler:_ XCode 16.0.0.0.1

* * *

---

<div class="post-metadata">

**Author:** ![mdessole](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mdessole/32/34021_2.png) [@mdessole](https://root-forum.cern.ch/u/mdessole)\
**Post date:** [October 18, 2024, 6:52am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/2 "2024-10-18T06:52:38Z")

</div>

Hello @boon_toor,  
welcome to the ROOT forum!

I am not sure about the causes of your issue. What if you disable web graphics by launching `root --web=off`? Do you still get this error?

Monica

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [October 18, 2024, 7:54am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/3 "2024-10-18T07:54:25Z")

</div>

Hi,

ROOT 6.32 does not use web graphics by default.  
But you can try it if normal graphics does not work for you -  
just run your macro with `root -web`.

Regards,  
Sergey

---

<div class="post-metadata">

**Author:** ![boon\_toor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Post date:** [October 21, 2024, 5:31am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/4 "2024-10-21T05:31:58Z")

</div>

Hey all, thanks for the suggestions! I tried that, but no change. Could it be something to do with the way some of the libraries are setup?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 21, 2024, 7:59am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/5 "2024-10-21T07:59:53Z")

</div>

Which command line tool (CLT) do you have ?  
You can check with:

```auto
/usr/sbin/pkgutil --pkg-info com.apple.pkg.CLTools_Executables

```

It should be:

```auto
package-id: com.apple.pkg.CLTools_Executables
version: 16.0.0.0.1.1724870825
volume: /
location: /
install-time: 1726750321

```

---

<div class="post-metadata">

**Author:** ![boon\_toor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Post date:** [October 22, 2024, 3:34am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/6 "2024-10-22T03:34:20Z")

</div>

Yup, that is what I have as well

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 22, 2024, 6:36am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/7 "2024-10-22T06:36:58Z")

</div>

There was a similar issue here:

> <https://github.com/root-project/root/issues/15129>
>
> \### Check duplicate issues.
> 
> \- \[X\] Checked for duplicates
> 
> \### Description
> …
> When trying to draw a TH1F from interactive interpreter, i get a bus error and the program crashes. 
> \`\`\`
> ------------------------------------------------------------------
> | Welcome to ROOT 6.30/06 https://root.cern |
> | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
> | Built for macosxarm64 on Apr 03 2024, 10:22:56 |
> | From tags/v6.30.06-0-g4f4e716372@v6.30.06-0-g4f4e716372 |
> | With Apple clang version 15.0.0 (clang-1500.3.9.4) |
> | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
> ------------------------------------------------------------------
> 
> root \[0\] TH1F\* h=new TH1F("histo","h",5,-10,10);
> root \[1\] h-\>Fill(5);
> root \[2\] h-\>Draw();
> 
> \*\*\* Break \*\*\* bus error
> \[/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 initWithContentsOfURL:\] (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGCocoa.so\] TGCocoa::SetApplicationIcon() (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGCocoa.so\] TGCocoa::MapWindow(unsigned long) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGui.so\] TGStatusBar::TGStatusBar(TGWindow const\*, unsigned int, unsigned int, unsigned int, unsigned long) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGui.so\] TRootCanvas::CreateCanvas(char const\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGui.so\] TRootCanvas::TRootCanvas(TCanvas\*, char const\*, int, int, unsigned int, unsigned int) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGui.so\] TRootGuiFactory::CreateCanvasImp(TCanvas\*, char const\*, int, int, unsigned int, unsigned int) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGpad.so\] TCanvas::Constructor(char const\*, char const\*, int) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGpad.so\] TCanvas::TCanvas(char const\*, char const\*, int) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libGpad.so\] TCanvas::MakeDefCanvas() (no debug info)
> \[\<unknown binary\>\] (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value\*) const (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] cling::Interpreter::RunFunction(clang::FunctionDecl const\*, cling::Value\*) (no debug info)
> \[/Applications/root\_v6.30.06/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)
> \[/Applications/root\_v6.30.06/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)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value\*, bool) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] HandleInterpreterException(cling::MetaProcessor\*, char const\*, cling::Interpreter::CompilationResult&, cling::Value\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] TCling::ProcessLine(char const\*, TInterpreter::EErrorCode\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TROOT::ProcessLine(char const\*, int\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TObject::AppendPad(char const\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libHist.so\] TH1::Draw(char const\*) (no debug info)
> \[\<unknown binary\>\] (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value\*) const (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] cling::Interpreter::RunFunction(clang::FunctionDecl const\*, cling::Value\*) (no debug info)
> \[/Applications/root\_v6.30.06/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)
> \[/Applications/root\_v6.30.06/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)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value\*, bool) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] HandleInterpreterException(cling::MetaProcessor\*, char const\*, cling::Interpreter::CompilationResult&, cling::Value\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCling.so\] TCling::ProcessLine(char const\*, TInterpreter::EErrorCode\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libRint.so\] TRint::ProcessLineNr(char const\*, char const\*, int\*) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libRint.so\] TRint::HandleTermInput() (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TUnixSystem::CheckDescriptors() (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TSystem::InnerLoop() (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TSystem::Run() (no debug info)
> \[/Applications/root\_v6.30.06/lib/libCore.so\] TApplication::Run(bool) (no debug info)
> \[/Applications/root\_v6.30.06/lib/libRint.so\] TRint::Run(bool) (no debug info)
> \[/Applications/root\_v6.30.06/bin/root.exe\] main (no debug info)
> \[/usr/lib/dyld\] start (no debug info)
> Root \> 
> \`\`\`
> 
> \### Reproducer
> 
> On macos 14.4 running on m1 arm 64 using xcode 15.3, open root in a terminal and run this code:
> \`\`\`
> root \[0\] TH1F\* h=new TH1F("histo","h",5,-10,10);
> root \[1\] h-\>Fill(5);
> root \[2\] h-\>Draw();
> \`\`\`
> 
> \### ROOT version
> \`\`\`
> ------------------------------------------------------------------
> | Welcome to ROOT 6.30/06 https://root.cern |
> | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
> | Built for macosxarm64 on Apr 03 2024, 10:22:56 |
> | From tags/v6.30.06-0-g4f4e716372@v6.30.06-0-g4f4e716372 |
> | With Apple clang version 15.0.0 (clang-1500.3.9.4) |
> | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
> ------------------------------------------------------------------
> \`\`\`
> 
> \### Installation method
> 
> macOS 14.4 arm64 Xcode 15 pre built binary with .pkg installer
> 
> \### Operating system
> 
> MacOS Sonoma 14.4
> 
> \### Additional context
> 
> I had previously installed root 6.28 from hombrew and it worked until i updated the system to sonoma 13. At this point I uninstalled it.
> I tried to install from source 6.26 and it worked (with c++14), until i decided to upgrade to a newer version (6.30) in macos 14.3. It built, but it still gave bus error so i manually removed installed files from system directories

What about reinstalling master from source:

```auto
git clone https://github.com/root-project/root.git root
mkdir root-build
cd root-build
cmake ../root
make -j8
source bin/thisroot.sh
root --web=off

```

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 22, 2024, 6:38am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/8 "2024-10-22T06:38:27Z")

</div>

Also here:

> <https://github.com/root-project/root/issues/16428>
>
> \### Check duplicate issues.
> 
> \- \[x\] Checked for duplicates
> 
> \### Description
> …
> On MacOS Sequoia 15, I compiled using branch v6.32.00-patches using the following cmake commands :
> 
> \`\`\`
> $ root -l 
> new TBroot \[0\] new TBrowser
> 
> \*\*\* Break \*\*\* bus error
> \[/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 initWithContentsOfURL:\] (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGCocoa.so\] TGCocoa::SetApplicationIcon() (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGCocoa.so\] TGCocoa::MapWindow(unsigned long) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGui.so\] TGStatusBar::TGStatusBar(TGWindow const\*, unsigned int, unsigned int, unsigned int, unsigned long) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGui.so\] TRootBrowser::CreateBrowser(char const\*) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGui.so\] TRootBrowser::TRootBrowser(TBrowser\*, char const\*, unsigned int, unsigned int, char const\*, bool) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGui.so\] TRootBrowser::NewBrowser(TBrowser\*, char const\*, unsigned int, unsigned int, char const\*) (no debug info)
> \[\<unknown binary\>\] (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/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)
> \[/Users/marcomeyer/Software/root/20240914/lib/libGui.so\] TRootGuiFactory::CreateBrowserImp(TBrowser\*, char const\*, unsigned int, unsigned int, char const\*) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCore.so\] TBrowser::TBrowser(char const\*, char const\*, TBrowserImp\*, char const\*) (no debug info)
> \[\<unknown binary\>\] (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCling.so\] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value\*) const (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCling.so\] cling::Interpreter::RunFunction(clang::FunctionDecl const\*, cling::Value\*) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/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)
> \[/Users/marcomeyer/Software/root/20240914/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)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCling.so\] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value\*, bool) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCling.so\] HandleInterpreterException(cling::MetaProcessor\*, char const\*, cling::Interpreter::CompilationResult&, cling::Value\*) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCling.so\] TCling::ProcessLine(char const\*, TInterpreter::EErrorCode\*) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libRint.so\] TRint::ProcessLineNr(char const\*, char const\*, int\*) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libRint.so\] TRint::HandleTermInput() (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCore.so\] TUnixSystem::CheckDescriptors() (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCore.so\] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCore.so\] TSystem::InnerLoop() (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCore.so\] TSystem::Run() (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libCore.so\] TApplication::Run(bool) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/lib/libRint.so\] TRint::Run(bool) (no debug info)
> \[/Users/marcomeyer/Software/root/20240914/bin/root.exe\] main (no debug info)
> \[/usr/lib/dyld\] start (no debug info)
> \`\`\`
> 
> I can't get any graphics due to issue with cocoa. So I also tried to disable cocoa, but then it loads x11 and compilation crash due to \`char\*\` assigned with \`unsigned char\*\`.
> \`\`\`
> \[54%\] Built target ClangAttrHasAttributeImpl
> /Users/marcomeyer/Software/root/20240710-src/graf3d/ftgl/src/FTVectoriser.cxx:143:15: error: cannot initialize a variable of type 'char \*' with an rvalue of type 'unsigned char \*'
> 143 | char\* tagList = &outline.tags\[startIndex\];
> | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> \`\`\`
> 
> Would you have any idea how to fix that ?
> 
> \### Reproducer
> 
> \`\`\`
> cmake ../20240914-src -Dmathmore=ON -Dbuiltin\_vdt=ON -Dbuiltin\_glew=ON -DCMAKE\_INSTALL\_PREFIX=/Users/marcomeyer/Software/root/20240914 -Dccache=ON -DCMAKE\_CXX\_COMPILER=clang++ -DCMAKE\_C\_COMPILER=clang && make -j8
> \`\`\`
> 
> or 
> 
> \`\`\`
> cmake ../20240914-src -DCMAKE\_INSTALL\_PREFIX=/Users/marcomeyer/Software/root/20240914 && make -j8
> \`\`\`
> 
> \### ROOT version
> 
> v6.32.00-patches
> 
> \### Installation method
> 
> build from source
> 
> \### Operating system
> 
> MacOSX Sequoia 15.0 Beta (24A5320a)
> 
> \### Additional context
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![boon\_toor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Post date:** [October 29, 2024, 7:49pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/9 "2024-10-29T19:49:27Z")

</div>

Update:

ROOT works using the web interface if I use `root --web`. However, I still cannot use the cocoa backend for graphics.

I completely removed and reinstalled both Homebrew and Command Line Tools. CMake seems to be looking in the right place:

```auto
-- Building ROOT version 6.32.06
-- Checking internet connectivity
-- Checking internet connectivity - found
-- The default C++ standard in use by the detected compiler (/Library/Developer/CommandLineTools/usr/bin/c++) is lower than C++17. Setting C++17 as the minimum standard.
-- Performing Test HAS_LIBCXX11
-- Performing Test HAS_LIBCXX11 - Success
-- Found a macOS system 15.0
-- Found an AArch64 system
-- ROOT default compression algorithm: zlib
-- Cannot enable cudnn without enabling cuda or tmva-gpu: cudnn is disabled.
-- Looking for ZLib
-- Building freetype version 2.12.1 included in ROOT itself
-- Looking for PCRE
-- Looking for LZMA
-- Looking for ZSTD
-- Looking for LZ4
-- Building AfterImage library included in ROOT itself
-- Looking for Python
-- Found Python3: /opt/homebrew/bin/python3.13 (found suitable version "3.13.0", minimum required is "3.8") found components: Interpreter Development NumPy Development.Module Development.Embed
-- Looking for OpenGL
-- Looking for LibXml2
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Looking for XROOTD
-- Looking for BLAS for optional parts of TMVA
-- PyROOT: development package found. Building for version 3.13.0
-- Building LLVM in 'Release' mode.
CMake Deprecation Warning at interpreter/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances. Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  interpreter/llvm-project/llvm/CMakeLists.txt:6 (include)

CMake Deprecation Warning at interpreter/llvm-project/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances. Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  interpreter/llvm-project/llvm/CMakeLists.txt:6 (include)

-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Found Python3: /opt/homebrew/bin/python3.13 (found suitable version "3.13.0", minimum required is "3.0") found components: Interpreter
-- The xar file format has been deprecated: LLVM_HAVE_LIBXAR might be removed in the future.
-- Native target architecture is AArch64
-- Threads disabled.
-- Doxygen disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: arm64-apple-darwin24.0.0
-- LLVM default target triple: arm64-apple-darwin24.0.0
-- Building with -fPIC
-- Targeting AArch64
-- Targeting NVPTX
CMake Deprecation Warning at interpreter/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances. Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  interpreter/llvm-project/clang/CMakeLists.txt:6 (include)

CMake Deprecation Warning at interpreter/llvm-project/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances. Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  interpreter/llvm-project/clang/CMakeLists.txt:6 (include)

-- Clang version: 16.0.6
-- Host linker version: 1115.7.3
-- Building Cling as part of ROOT
-- Cling version (from VERSION file): ROOT_1.1~dev
-- Cling will look for C++ headers in '/Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk/usr/include/c++/v1' at runtime.
-- And if not found, will invoke: '/Library/Developer/CommandLineTools/usr/bin/c++ -isysroot;/Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk' for them.
-- Found arc4random_buf in stdlib.h
CMake Warning at net/http/CMakeLists.txt:90 (MESSAGE):
  Not able to recognize SSL version 3.4.0, disable SSL

-- Distributed RDataFrame enabled
-- RapidYAML not found, only compiling RooFit with nlohmann-json parser
-- ROOT Configuration 

System: Darwin-24.0.0
ROOT Platform: macosx
ROOT Architecture: macosxarm64
Processor: 8 core Apple M1 (arm64)
Build type: Release
Install path: /usr/local
Compiler: AppleClang 16.0.0.16000026
C++ standard: 17
Compiler flags:
 - C: -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread
 - C (built type specific): -O3 -DNDEBUG
 - C++: -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++
 - C++ (built type specific): -O3 -DNDEBUG
Linker flags:
 - Executable: -mmacosx-version-min=15.0
 - Module:         
 - Shared:         

-- Enabled support for: asimage builtin_afterimage builtin_clang builtin_cling builtin_davix builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_nlohmannjson builtin_openui5 builtin_tbb builtin_vdt builtin_xxhash clad cocoa dataframe davix gdml http imt libcxx opengl pyroot roofit webgui root7 rpath runtime_cxxmodules shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum vdt xml xrootd
-- Configuring done (6.6s)
-- Generating done (6.4s)

```

That is, `/Library/Developer/CommandLineTools/` is the output of `xcode-select -p`.

I tried `otool -L root` to check which libraries were being referenced and I found the following:

```auto
root:
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 24.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1800.101.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2575.20.19)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 3107.0.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 3107.0.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

```

What is unusual is that none of the above files seem to exist on my system?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 30, 2024, 8:27am UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/10 "2024-10-30T08:27:35Z")

</div>

What Kind of CPU is your Mac ? Apple or Intel ?

---

<div class="post-metadata">

**Author:** ![boon\_toor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Post date:** [October 30, 2024, 3:22pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/11 "2024-10-30T15:22:16Z")

</div>

Apple, M1 MacBook Pro

---

<div class="post-metadata">

**Author:** ![boon\_toor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Post date:** [October 30, 2024, 9:39pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954/12 "2024-10-30T21:39:47Z")

</div>

Hey all,

The problem seemed to be with the way dynamic libraries are virtually linked. Opening the .zshrc file and changing

`export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/homebrew/lib/`

to

`export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/opt/homebrew/lib/`

fixed the issue.

Thank you for your time!
