Hello Rooters,
I have problems with any drawing commands. Simple use of Draw() to a TH1F leads to a segfault. Unfortunately, I can not decipher where the problem originates. Other X applications work fine (e.g. Inkscape) and the same version of root runs fine on another Mac box and another Linux box.
Here is my setup: MacOSX 10.6.4 with MacPorts. I tried current trunk (rev:35563) and roostats branch (rev:35307). I also tried recompiling after a “make clean” and “make distclean” (Is there a cleaner clean than this?). I cannot exactly retrace when the problem first occurred, but I might have updated my macports.
This is my problem:
root [0] t1 = new TH1F(“test”,“test”, 100,0,10)
(class TH1F*)0x102a02dc0
root [1] t1->Draw()
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
Thread 1 (process 80360):
#0 0x00007fff87439c90 in wait4 ()
#1 0x00007fff8744e23e in system ()
#2 0x0000000100113995 in TUnixSystem::StackTrace ()
#3 0x000000010011131a in TUnixSystem::DispatchSignals ()
#4
#5 0x0000000103a30005 in _XReply ()
#6 0x0000000103a0bda7 in XAllocColor ()
#7 0x0000000103cc5ce3 in find_useable_visual ()
#8 0x0000000103cc6392 in query_screen_visual_id ()
#9 0x0000000103cc7bab in create_asvisual_for_id ()
#10 0x0000000103c51812 in TASImage::InitVisual ()
#11 0x0000000103c5b023 in TASImage::ReadImage ()
#12 0x0000000102ce2e03 in TImage::Open ()
#13 0x00000001030f386b in TGPicturePool::GetPicture ()
#14 0x00000001031b23fd in TGHScrollBar::TGHScrollBar ()
#15 0x000000010312c072 in TGCanvas::TGCanvas ()
#16 0x0000000103209694 in TRootCanvas::CreateCanvas ()
#17 0x0000000103209dfa in TRootCanvas::TRootCanvas ()
#18 0x00000001032127d7 in TRootGuiFactory::CreateCanvasImp ()
#19 0x0000000102e8b8e5 in TCanvas::Constructor ()
#20 0x0000000102e8bd83 in TCanvas::TCanvas ()
#21 0x0000000102e8cdba in TCanvas::MakeDefCanvas ()
#22 0x0000000102eddcdc in G__G__GPad_147_0_122 ()
#23 0x000000010091f256 in Cint::G__ExceptionWrapper ()
#24 0x00000001009d8fac in G__execute_call ()
#25 0x00000001009df67b in G__call_cppfunc ()
#26 0x00000001009b886a in G__interpret_func ()
#27 0x00000001009a1751 in G__getfunction ()
#28 0x0000000100975a3a in G__getitem ()
#29 0x000000010097a167 in G__getexpr ()
#30 0x0000000100a0ca9e in G__exec_statement ()
#31 0x00000001009613f6 in G__exec_tempfile_core ()
#32 0x0000000100961706 in G__exec_tempfile_fp ()
#33 0x0000000100a165b4 in G__process_cmd ()
#34 0x000000010001eeee in TCint::ProcessLine ()
#35 0x000000010006f4cb in TApplication::ProcessLine ()
#36 0x000000010009d781 in TROOT::ProcessLine ()
#37 0x000000010008f164 in TObject::AppendPad ()
#38 0x00000001025175b3 in TH1::Draw ()
#39 0x000000010028fc78 in G__G__Base2_11_0_15 ()
#40 0x000000010091f256 in Cint::G__ExceptionWrapper ()
#41 0x00000001009d8fac in G__execute_call ()
#42 0x00000001009df67b in G__call_cppfunc ()
#43 0x00000001009b886a in G__interpret_func ()
#44 0x00000001009a1751 in G__getfunction ()
#45 0x0000000100a971e0 in G__getstructmem ()
#46 0x0000000100a8d7cf in G__getvariable ()
#47 0x0000000100975339 in G__getitem ()
#48 0x000000010097a167 in G__getexpr ()
#49 0x0000000100a0ca9e in G__exec_statement ()
#50 0x00000001009613f6 in G__exec_tempfile_core ()
#51 0x0000000100961706 in G__exec_tempfile_fp ()
#52 0x0000000100a165b4 in G__process_cmd ()
#53 0x000000010001eeee in TCint::ProcessLine ()
#54 0x000000010006f4cb in TApplication::ProcessLine ()
#55 0x00000001012f7ebf in TRint::HandleTermInput ()
#56 0x00000001012f6497 in TTermInputHandler::Notify ()
#57 0x00000001012f83bd in TTermInputHandler::ReadNotify ()
#58 0x0000000100110fe2 in TUnixSystem::CheckDescriptors ()
#59 0x00000001001114e5 in TUnixSystem::DispatchOneEvent ()
#60 0x00000001000ab85d in TSystem::InnerLoop ()
#61 0x00000001000ad863 in TSystem::Run ()
#62 0x000000010006db37 in TApplication::Run ()
#63 0x00000001012f70fb in TRint::Run ()
#64 0x00000001000019a0 in main ()
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#5 0x0000000103a30005 in _XReply ()
#6 0x0000000103a0bda7 in XAllocColor ()
#7 0x0000000103cc5ce3 in find_useable_visual ()
#8 0x0000000103cc6392 in query_screen_visual_id ()
#9 0x0000000103cc7bab in create_asvisual_for_id ()
#10 0x0000000103c51812 in TASImage::InitVisual ()
#11 0x0000000103c5b023 in TASImage::ReadImage ()
#12 0x0000000102ce2e03 in TImage::Open ()
#13 0x00000001030f386b in TGPicturePool::GetPicture ()
#14 0x00000001031b23fd in TGHScrollBar::TGHScrollBar ()
#15 0x000000010312c072 in TGCanvas::TGCanvas ()
#16 0x0000000103209694 in TRootCanvas::CreateCanvas ()
#17 0x0000000103209dfa in TRootCanvas::TRootCanvas ()
#18 0x00000001032127d7 in TRootGuiFactory::CreateCanvasImp ()
#19 0x0000000102e8b8e5 in TCanvas::Constructor ()
#20 0x0000000102e8bd83 in TCanvas::TCanvas ()
#21 0x0000000102e8cdba in TCanvas::MakeDefCanvas ()
Any help would be great on this one.
Cheers