It seems I’m unlucky. I added the _threaded and app crashes at the very beginning with different errors:
Short example:
Error in <RootX11ErrorHandler>: BadPixmap (invalid Pixmap parameter) (XID: 71303400, XREQ: 54)
Error in <RootX11ErrorHandler>: BadIDChoice (invalid resource ID chosen for this connection) (XID: 71303525, XREQ: 53)
^\Quit (core dumped)
long example:
Error in <RootX11IOErrorHandler>: Canvas width changed from 0 to 10
**** Save data and exit application ****
*** Break *** segmentation violation
TCanvas::ResizePad:0: RuntimeWarning: Canvas width changed from 0 to 10
TCanvas::ResizePad:0: RuntimeWarning: Canvas height changed from 0 to 10
Xlib: request 70 length 20 would exceed buffer size.
*** Break *** segmentation violation
Xlib: request 4 length 8 would exceed buffer size.
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
Thread 2 (Thread 0x7f1ff1ff1700 (LWP 4548)):
#0 0x000000395c8c456b in waitpid () from /lib64/libc.so.6
#1 0x000000395c842a2b in do_system () from /lib64/libc.so.6
#2 0x00007f1ffb4d9409 in TUnixSystem::StackTrace() () from /opt/root/lib/libCore.so
#3 0x00007f1ffb4db01c in TUnixSystem::DispatchSignals(ESignals) () from /opt/root/lib/libCore.so
#4 <signal handler called>
#5 0x00000039834eb5c1 in PyErr_Restore () from /lib64/libpython2.7.so.1.0
#6 0x00000039834eb6af in PyErr_SetString () from /lib64/libpython2.7.so.1.0
#7 0x00007f1ffe1d485e in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::CallSafe(void*, bool) () from /opt/root/lib/libPyROOT.so
#8 0x00007f1ffe1d4952 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::Execute(void*, bool) () from /opt/root/lib/libPyROOT.so
#9 0x00007f1ffe1d38ad in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::operator()(PyROOT::ObjectProxy*, _object*, _object*, long, bool) () from /opt/root/lib/libPyROOT.so
#10 0x00007f1ffe1c996d in PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) () from /opt/root/lib/libPyROOT.so
#11 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#12 0x00000039834e0585 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#13 0x00000039834e3400 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#14 0x000000398346f6bd in function_call () from /lib64/libpython2.7.so.1.0
#15 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#16 0x00000039834e0050 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#17 0x00000039834e1be6 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#18 0x00000039834e1be6 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#19 0x00000039834e3400 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#20 0x000000398346f5dc in function_call () from /lib64/libpython2.7.so.1.0
#21 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#22 0x0000003983459815 in instancemethod_call () from /lib64/libpython2.7.so.1.0
#23 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#24 0x00000039834dc4c7 in PyEval_CallObjectWithKeywords () from /lib64/libpython2.7.so.1.0
#25 0x0000003983512062 in t_bootstrap () from /lib64/libpython2.7.so.1.0
#26 0x000000395cc0752a in start_thread () from /lib64/libpthread.so.0
#27 0x000000395c90079d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f2005db7700 (LWP 4541)):
#0 0x000000395c8c456b in waitpid () from /lib64/libc.so.6
#1 0x000000395c842a2b in do_system () from /lib64/libc.so.6
#2 0x00007f1ffb4d9409 in TUnixSystem::StackTrace() () from /opt/root/lib/libCore.so
#3 0x00007f1ffb4db01c in TUnixSystem::DispatchSignals(ESignals) () from /opt/root/lib/libCore.so
#4 <signal handler called>
#5 0x00000038e0224287 in XFillRectangle () from /lib64/libX11.so.6
#6 0x00007f1ff34a1212 in TGX11::DrawBox(int, int, int, int, TVirtualX::EBoxMode) () from /opt/root/lib/libGX11.so
#7 0x00007f1ffc8c79b1 in TPad::PaintBox(double, double, double, double, char const*) () from /opt/root/lib/libGpad.so
#8 0x00007f1febab8e36 in THistPainter::PaintColorLevels(char const*) () from /opt/root/lib/libHistPainter.so
#9 0x00007f1feba9d1e6 in THistPainter::PaintTable(char const*) () from /opt/root/lib/libHistPainter.so
#10 0x00007f1feba9f8fc in THistPainter::Paint(char const*) () from /opt/root/lib/libHistPainter.so
#11 0x00007f1ffc8ceb49 in TPad::PaintModified() () from /opt/root/lib/libGpad.so
#12 0x00007f1ffc8b291c in TCanvas::Update() () from /opt/root/lib/libGpad.so
#13 0x00007f1ff30e2439 in TRootEmbeddedCanvas::HandleContainerConfigure(Event_t*) () from /opt/root/lib/libGui.so
#14 0x00007f1ff309a933 in TGFrame::HandleEvent(Event_t*) () from /opt/root/lib/libGui.so
#15 0x00007f1ff31005b8 in TGClient::HandleEvent(Event_t*) () from /opt/root/lib/libGui.so
#16 0x00007f1ff310086d in TGClient::ProcessOneEvent() () from /opt/root/lib/libGui.so
#17 0x00007f1ff31008cd in TGClient::HandleInput() () from /opt/root/lib/libGui.so
#18 0x00007f1ffb4db288 in TUnixSystem::DispatchOneEvent(bool) () from /opt/root/lib/libCore.so
#19 0x00007f1ffb513456 in TSystem::InnerLoop() () from /opt/root/lib/libCore.so
#20 0x00007f1ffb514000 in TSystem::Run() () from /opt/root/lib/libCore.so
#21 0x00007f1ffb533d1f in TApplication::Run(bool) () from /opt/root/lib/libCore.so
#22 0x00007f1ffb35e3d3 in G__G__Base1_305_0_23(G__value*, char const*, G__param*, int) () from /opt/root/lib/libCore.so
#23 0x00007f1ffa86c11b in Cint::G__CallFunc::Execute(void*) () from /opt/root/lib/libCint.so
#24 0x00007f1ffe1c019e in PyROOT::TVoidExecutor::Execute(Cint::G__CallFunc*, void*, bool) () from /opt/root/lib/libPyROOT.so
#25 0x00007f1ffe1d47e0 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::CallSafe(void*, bool) () from /opt/root/lib/libPyROOT.so
#26 0x00007f1ffe1d4952 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::Execute(void*, bool) () from /opt/root/lib/libPyROOT.so
#27 0x00007f1ffe1d38ad in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::operator()(PyROOT::ObjectProxy*, _object*, _object*, long, bool) () from /opt/root/lib/libPyROOT.so
#28 0x00007f1ffe1c996d in PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) () from /opt/root/lib/libPyROOT.so
#29 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#30 0x00000039834e0585 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#31 0x00000039834e3400 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#32 0x00000039834e34f9 in PyEval_EvalCode () from /lib64/libpython2.7.so.1.0
#33 0x00000039834fc90f in run_mod () from /lib64/libpython2.7.so.1.0
#34 0x00000039834fdb32 in PyRun_FileExFlags () from /lib64/libpython2.7.so.1.0
#35 0x00000039834fed47 in PyRun_SimpleFileExFlags () from /lib64/libpython2.7.so.1.0
#36 0x00000039835102ea in Py_Main () from /lib64/libpython2.7.so.1.0
#37 0x000000395c81ffe0 in __libc_start_main () from /lib64/libc.so.6
#38 0x000000000040071e in _start ()
===========================================================
or
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
Thread 2 (Thread 0x7f5fec069700 (LWP 4859)):
#0 0x000000395c8f51fd in poll () from /lib64/libc.so.6
#1 0x00000038e060a182 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2 0x00000038e060bcff in xcb_wait_for_event () from /lib64/libxcb.so.1
#3 0x00000038e0243068 in _XReadEvents () from /lib64/libX11.so.6
#4 0x00000038e0232148 in XNextEvent () from /lib64/libX11.so.6
#5 0x00007f5fed5232bf in TGX11::NextEvent(Event_t&) () from /opt/root/lib/libGX11.so
#6 0x00007f5fed17882c in TGClient::ProcessOneEvent() () from /opt/root/lib/libGui.so
#7 0x00007f5fed1788cd in TGClient::HandleInput() () from /opt/root/lib/libGui.so
#8 0x00007f5ff5553288 in TUnixSystem::DispatchOneEvent(bool) () from /opt/root/lib/libCore.so
#9 0x00007f5ff558b48e in TSystem::ProcessEvents() () from /opt/root/lib/libCore.so
#10 0x00007f5ff52b8ed5 in G__G__Base2_325_0_25(G__value*, char const*, G__param*, int) () from /opt/root/lib/libCore.so
#11 0x00007f5ff48e411b in Cint::G__CallFunc::Execute(void*) () from /opt/root/lib/libCint.so
#12 0x00007f5ff82388fe in PyROOT::TBoolExecutor::Execute(Cint::G__CallFunc*, void*, bool) () from /opt/root/lib/libPyROOT.so
#13 0x00007f5ff824c7e0 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::CallSafe(void*, bool) () from /opt/root/lib/libPyROOT.so
#14 0x00007f5ff824c952 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::Execute(void*, bool) () from /opt/root/lib/libPyROOT.so
#15 0x00007f5ff824b8ad in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::operator()(PyROOT::ObjectProxy*, _object*, _object*, long, bool) () from /opt/root/lib/libPyROOT.so
#16 0x00007f5ff824196d in PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) () from /opt/root/lib/libPyROOT.so
#17 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#18 0x00000039834e0585 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#19 0x00000039834e3400 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#20 0x000000398346f6bd in function_call () from /lib64/libpython2.7.so.1.0
#21 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#22 0x00000039834e0050 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#23 0x00000039834e1be6 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#24 0x00000039834e1be6 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#25 0x00000039834e3400 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#26 0x000000398346f5dc in function_call () from /lib64/libpython2.7.so.1.0
#27 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#28 0x0000003983459815 in instancemethod_call () from /lib64/libpython2.7.so.1.0
#29 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#30 0x00000039834dc4c7 in PyEval_CallObjectWithKeywords () from /lib64/libpython2.7.so.1.0
#31 0x0000003983512062 in t_bootstrap () from /lib64/libpython2.7.so.1.0
#32 0x000000395cc0752a in start_thread () from /lib64/libpthread.so.0
#33 0x000000395c90079d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f5fffe2f700 (LWP 4852)):
#0 0x000000395c8c456b in waitpid () from /lib64/libc.so.6
#1 0x000000395c842a2b in do_system () from /lib64/libc.so.6
#2 0x00007f5ff5551409 in TUnixSystem::StackTrace() () from /opt/root/lib/libCore.so
#3 0x00007f5ff555301c in TUnixSystem::DispatchSignals(ESignals) () from /opt/root/lib/libCore.so
#4 <signal handler called>
#5 0x00007f5ff54ff53c in TList::Remove(TObject*) () from /opt/root/lib/libCore.so
#6 0x00007f5ff550223e in THashList::Remove(TObject*) () from /opt/root/lib/libCore.so
#7 0x00007f5ff555c6b3 in TObjectSpy::~TObjectSpy() () from /opt/root/lib/libCore.so
#8 0x00007f5fed1128c8 in TGFrame::HandleEvent(Event_t*) () from /opt/root/lib/libGui.so
#9 0x00007f5fed1785b8 in TGClient::HandleEvent(Event_t*) () from /opt/root/lib/libGui.so
#10 0x00007f5fed17886d in TGClient::ProcessOneEvent() () from /opt/root/lib/libGui.so
#11 0x00007f5fed1788cd in TGClient::HandleInput() () from /opt/root/lib/libGui.so
#12 0x00007f5ff5553288 in TUnixSystem::DispatchOneEvent(bool) () from /opt/root/lib/libCore.so
#13 0x00007f5ff558b456 in TSystem::InnerLoop() () from /opt/root/lib/libCore.so
#14 0x00007f5ff558c000 in TSystem::Run() () from /opt/root/lib/libCore.so
#15 0x00007f5ff55abd1f in TApplication::Run(bool) () from /opt/root/lib/libCore.so
#16 0x00007f5ff53d63d3 in G__G__Base1_305_0_23(G__value*, char const*, G__param*, int) () from /opt/root/lib/libCore.so
#17 0x00007f5ff48e411b in Cint::G__CallFunc::Execute(void*) () from /opt/root/lib/libCint.so
#18 0x00007f5ff823819e in PyROOT::TVoidExecutor::Execute(Cint::G__CallFunc*, void*, bool) () from /opt/root/lib/libPyROOT.so
#19 0x00007f5ff824c7e0 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::CallSafe(void*, bool) () from /opt/root/lib/libPyROOT.so
#20 0x00007f5ff824c952 in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::Execute(void*, bool) () from /opt/root/lib/libPyROOT.so
#21 0x00007f5ff824b8ad in PyROOT::TMethodHolder<PyROOT::TScopeAdapter, PyROOT::TMemberAdapter>::operator()(PyROOT::ObjectProxy*, _object*, _object*, long, bool) () from /opt/root/lib/libPyROOT.so
#22 0x00007f5ff824196d in PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) () from /opt/root/lib/libPyROOT.so
#23 0x000000398344a903 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#24 0x00000039834e0585 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#25 0x00000039834e3400 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#26 0x00000039834e34f9 in PyEval_EvalCode () from /lib64/libpython2.7.so.1.0
#27 0x00000039834fc90f in run_mod () from /lib64/libpython2.7.so.1.0
#28 0x00000039834fdb32 in PyRun_FileExFlags () from /lib64/libpython2.7.so.1.0
#29 0x00000039834fed47 in PyRun_SimpleFileExFlags () from /lib64/libpython2.7.so.1.0
#30 0x00000039835102ea in Py_Main () from /lib64/libpython2.7.so.1.0
#31 0x000000395c81ffe0 in __libc_start_main () from /lib64/libc.so.6
#32 0x000000000040071e in _start ()
===========================================================
I’m on ROOT 5.34/15.
I guess now you would like me to provide an example code. This may take a while…