TEveManager::Create() in pyROOT not working?


Dear experts,

I am trying to re-use some code which was in C++ but in pyROOT and i nailed down the issues i have to be related in event displaying with pyROOT.

In a simple ROOT session, i can do :

c++
root [3] auto eveManager = TEveManager::Create()
root [4]

With python :

In [6]: r.TEveManager.Create()
 *** Break *** segmentation violation
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy_backend.so] (anonymous namespace)::TExceptionHandlerImp::HandleException(int) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libCore.so] TUnixSystem::DispatchSignals(ESignals) (no debug info)
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libASImage.so] TASImage::GetPixmap() (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libGui.so] TGPicturePool::GetPicture(char const*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libEve.so] TEveUtil::SetupGUI() (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libEve.so] TEveManager::Create(bool, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy_backend.so] WrapperCall(long, unsigned long, void*, void*, void*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy_backend.so] Cppyy::CallR(long, void*, unsigned long, void*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy.so] CPyCppyy::(anonymous namespace)::InstancePtrExecutor::Execute(long, void*, CPyCppyy::CallContext*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy.so] CPyCppyy::CPPMethod::ExecuteFast(void*, long, CPyCppyy::CallContext*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy.so] CPyCppyy::CPPMethod::ExecuteProtected(void*, long, CPyCppyy::CallContext*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy.so] CPyCppyy::CPPMethod::Execute(void*, long, CPyCppyy::CallContext*) (no debug info)
[/Users/renato/AppSrcs/root_6r36_build/lib/libcppyy.so] CPyCppyy::(anonymous namespace)::mp_vectorcall(CPyCppyy::CPPOverload*, _object* const*, unsigned long, _object*) (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] PyObject_Vectorcall (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyEval_EvalFrameDefault (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] PyEval_EvalCode (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] builtin_exec (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyEval_EvalFrameDefault (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] gen_send_ex2 (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] gen_send_ex (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyEval_EvalFrameDefault (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] method_vectorcall (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyVectorcall_Call (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyEval_EvalFrameDefault (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] PyEval_EvalCode (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] run_eval_code_obj (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] run_mod (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] pyrun_file (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyRun_SimpleFileObject (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] _PyRun_AnyFileObject (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] pymain_run_file_obj (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] pymain_run_file (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] Py_RunMain (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] pymain_main (no debug info)
[/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/Python] Py_BytesMain (no debug info)
[/usr/lib/dyld] start (no debug info)
---------------------------------------------------------------------------
SegmentationViolation                     Traceback (most recent call last)
Cell In[6], line 1
----> 1 r.TEveManager.Create()

SegmentationViolation: segfault in C++; program state was reset

i have the same issue having those calls nested in C++ classes i am compiling and then loading a library for. I was wondering if there is anything i should try to fix this.

Thanks for the help

$|=>root --versionROOT Version: 6.36.000Built for macosxarm64 on Jun 23 2025, 04:51:15From tags/v6-36-00@v6-36-00

$|=>root-config --features
cxx20 asimage asimage_tiff builtin_clang builtin_cling builtin_fftw3 builtin_freetype builtin_llvm builtin_openui5 clad cocoa dataframe davix fftw3 gdml geom http imt libcxx mathmore opengl pyroot roofit root7 rpath runtime_cxxmodules shared spectrum sqlite ssl tmva tmva-cpu tmva-cudnn tmva-pymva tpython use_gsl_cblas vdt webgui xml xrootd

Hi @rquaglia,

on first sight, I would like to exclude that it’s related to an issue that was fixed in 6.36.04, see e.g. Release Notes and ROOT#19412. Any chance you can update to that version?

1 Like

Hi @StephanH , thanks for the feedback,
I try to recompile ROOT locally and see if it fix the issue and report asap.

it works after recompiling , thanks a lot , this is launched from an ipython session which before was crashing.

1 Like