Problem running Standalone app on Mac OSX

Hello,

When I built root, I turned cocoa off and X11 on, and that worked fine and my program ran. However, my feeling is that most people will not build root that way and just leave the default cocoa. So I rebuilt root turning X11=OFF and cocoa=ON. My program compiles just fine but then seg faults when I run it. Any help would be appreciated.

Below is the output when I run it:

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _shouldShowDocumentIcon] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _minXTitlebarDecorationMinWidth] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSTitledFrame _maxTitlebarTitleRect] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _maxTitlebarTitleRect] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _defaultTitlebarTitleRect] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _titlebarTitleRect] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _titleTextFieldFrame] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame _tileTitlebarAndRedisplay:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSTitledFrame _titleDidChange] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSTitledFrame setTitle:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSThemeFrame setTitle:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSWindow _dosetTitle:andDefeatWrap:] (no debug info)
[/Users/mgooden/Code/ROOT/root-6.14.06-m2c/lib/libGCocoa.so] TGCocoa::SetWindowName(unsigned long, char*) /Users/mgooden/Code/ROOT/root-6.14.06-src/graf2d/cocoa/src/TGCocoa.mm:0
[/Users/mgooden/Code/PeakAnalysis/dist/PeakAnalysis-library.so] SH_MainFrame::SH_MainFrame(TGWindow const*, unsigned int, unsigned int) (no debug info)
[/Users/mgooden/Code/PeakAnalysis/dist/PeakAnalysis-library.so] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)

Attached is my full code.PeakAnalysis.zip (1.1 MB)

I am not sure if it something I am doing or a Mac/root issue. It will mostly go to Mac users and I don’t want to force people to rebuild ROOT to get this to run.

Thanks for any help!


_ROOT Version:6.14.06
_Platform:Mac OSX 10.14.4
Compiler: Not Provided


Could you please try with a newer version of ROOT (e.g. 6.16) to see if the problem persists? Thanks.