Errors with Draw() function

_ROOT Version:6.28.00
_Platform:MAC m1 chip 13.2
Compiler: Not Provided


Hello,
I installed root with conda. But whenever i use Draw() command from TH1 class or other class. It always give some lines of output. But this do not affect the final plots.
Can you tell me how to fix this. Here is the output lines. I also attached an example macros.

root [0] 
Processing axis.cxx...
1   HIToolbox                           0x000000019ea6c5c8 _ZN15MenuBarInstance22EnsureAutoShowObserverEv + 120
2   HIToolbox                           0x000000019ea6c188 _ZN15MenuBarInstance14EnableAutoShowEv + 60
3   HIToolbox                           0x000000019e9d98bc _ZN15MenuBarInstance21UpdateAggregateUIModeE21MenuBarAnimationStylehhh + 1184
4   HIToolbox                           0x000000019e9d930c _ZN15MenuBarInstance16ForEachMenuBarDoEU13block_pointerFvPS_E + 72
5   HIToolbox                           0x000000019e9d92b4 _ZL25UpdateAllAggregateUIModes21MenuBarAnimationStyleh + 120
6   HIToolbox                           0x000000019e9d9228 SetSystemUIMode + 140
7   AppKit                              0x0000000198b04750 +[NSMenu setMenuBarVisible:] + 20
8   libGCocoa.6.28.00.so                0x00000001217f44cc _ZN4ROOT6MacOSX7Details16PopulateMainMenuEv + 876
9   libGCocoa.6.28.00.so                0x000000012180210c _ZN7TGCocoa9MapWindowEm + 140
10  libGui.6.28.00.so                   0x00000001221ff718 _ZN11TGStatusBarC2EPK8TGWindowjjjm + 380
11  libGui.6.28.00.so                   0x000000012224d1d4 _ZN11TRootCanvas12CreateCanvasEPKc + 6364
12  libGui.6.28.00.so                   0x000000012224d5ec _ZN11TRootCanvasC2EP7TCanvasPKciijj + 120
13  libGui.6.28.00.so                   0x000000012225b078 _ZN15TRootGuiFactory15CreateCanvasImpEP7TCanvasPKciijj + 88
14  libGpad.6.28.00.so                  0x00000001213aa740 _ZN7TCanvas11ConstructorEPKcS1_iiii + 532
15  libGpad.6.28.00.so                  0x00000001213aa4c8 _ZN7TCanvasC2EPKcS1_iiii + 208
16  ???                                 0x000000010135c058 0x0 + 4315267160
17  ???                                 0x00000001010f8040 0x0 + 4312760384
18  libCling.6.28.00.so                 0x000000010904dc10 _ZNK5cling19IncrementalExecutor14executeWrapperEN4llvm9StringRefEPNS_5ValueE + 204
19  libCling.6.28.00.so                 0x000000010906411c _ZN5cling11Interpreter11RunFunctionEPKN5clang12FunctionDeclEPNS_5ValueE + 272
20  libCling.6.28.00.so                 0x000000010906268c _ZN5cling11Interpreter16EvaluateInternalERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_18CompilationOptionsEPNS_5ValueEPPNS_11TransactionEm + 236
21  libCling.6.28.00.so                 0x00000001090b1580 _ZN5cling8MetaSema13actOnxCommandEN4llvm9StringRefES2_PNS_5ValueE + 1020
22  libCling.6.28.00.so                 0x00000001090aa374 _ZN5cling10MetaParser10isXCommandERNS_8MetaSema12ActionResultEPNS_5ValueE + 1176
23  libCling.6.28.00.so                 0x00000001090a9b5c _ZN5cling10MetaParser9isCommandERNS_8MetaSema12ActionResultEPNS_5ValueE + 124
24  libCling.6.28.00.so                 0x00000001090ad11c _ZN5cling13MetaProcessor7processEN4llvm9StringRefERNS_11Interpreter17CompilationResultEPNS_5ValueEb + 212
25  libCling.6.28.00.so                 0x0000000108ed6464 _ZL26HandleInterpreterExceptionPN5cling13MetaProcessorEPKcRNS_11Interpreter17CompilationResultEPNS_5ValueE + 84
26  libCling.6.28.00.so                 0x0000000108ed5f78 _ZN6TCling11ProcessLineEPKcPN12TInterpreter10EErrorCodeE + 2628
27  libCling.6.28.00.so                 0x0000000108ed8190 _ZN6TCling16ProcessLineSynchEPKcPN12TInterpreter10EErrorCodeE + 188
28  libCore.6.28.00.so                  0x000000010137bfb4 _ZN12TApplication11ExecuteFileEPKcPib + 1988
29  libRint.6.28.00.so                  0x0000000100fcb4a4 _ZN5TRint13ProcessLineNrEPKcS1_Pi + 168
30  libRint.6.28.00.so                  0x0000000100fcb148 _ZN5TRint3RunEb + 960
31  root.exe                            0x0000000100f07d14 main + 112
32  dyld                                0x0000000194f0fe50 start + 2544
root [1] 1   HIToolbox                           0x000000019e9f790c _ZN15MenuBarInstance22RemoveAutoShowObserverEv + 44
2   HIToolbox                           0x000000019ea0f214 SetMenuBarObscured + 120
3   HIToolbox                           0x000000019ea16390 _ZN13HIApplication11FrontUILostEv + 44
4   HIToolbox                           0x000000019ea0f04c _ZN13HIApplication15HandleActivatedEP14OpaqueEventRefhP15OpaqueWindowPtrh + 528
5   HIToolbox                           0x000000019ea08f70 _ZN13HIApplication13EventObserverEjP14OpaqueEventRefPv + 204
6   HIToolbox                           0x000000019e9cfcd0 _NotifyEventLoopObservers + 176
7   HIToolbox                           0x000000019ea0896c AcquireEventFromQueue + 432
8   HIToolbox                           0x000000019e9f7e0c ReceiveNextEventCommon + 712
9   HIToolbox                           0x000000019e9f7b2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
10  AppKit                              0x000000019859d84c _DPSNextEvent + 632
11  AppKit                              0x000000019859c9dc -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
12  libCore.6.28.00.so                  0x00000001014b5c1c _ZN13TMacOSXSystem10WaitEventsEl + 248
13  libCore.6.28.00.so                  0x00000001014b5864 _ZN13TMacOSXSystem16DispatchOneEventEb + 620
14  libCore.6.28.00.so                  0x00000001013dc290 _ZN7TSystem9InnerLoopEv + 44
15  libCore.6.28.00.so                  0x00000001013dc060 _ZN7TSystem3RunEv + 136
16  libCore.6.28.00.so                  0x000000010137c1dc _ZN12TApplication3RunEb + 52
17  libRint.6.28.00.so                  0x0000000100fcb32c _ZN5TRint3RunEb + 1444
18  root.exe                            0x0000000100f07d14 main + 112
19  dyld                                0x0000000194f0fe50 start + 2544

root [1] 

[axis.cxx|attachment](upload://mIRJxFcFXIIJb6Sw1gy3pAFne9O.cxx) (267 Bytes)

Here is the attached example.
axis.cxx (267 Bytes)

That seems to be a bug in macOS, see macos - R warnings/errors in a fresh install - Stack Overflow for other reports and a workaround. Not much we can do about that on the ROOT side of things.

And HIToolbox warning in terminal | Apple Developer Forums :slight_smile: But ROOT isn’t alone with that crash

It is a bug of MacOS. Hope this will be fixed.
Following the suggestion in https://stackoverflow.com/questions/74609260/r-warnings-errors-in-a-fresh-install.
SystemSettings => Desktop & Dock => Menu Bar and set the Menu Bar “In Full Screen Only”.
This solves the problem.
Thank you. @Axel

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