TBrowser crashes root

I looked for this in the forum and didn’t see it anywhere but if I missed it, please just post a link.

Anyway, I just compiled and installed 5.28/00 on my macbook pro (OSX 10.6.6) and it appeared to run correctly until I tried to use a TBrowser. This is the crash from the terminal:

root [0] TBrowser b;

*** Break *** segmentation violation

===========================================================
There was a crash (kSigSegmentationViolation).
This is the entire stack trace of all threads:

Thread 1 (process 30330):
#0 0x00007fff88f27f6c in wait4 ()
#1 0x00007fff88f3c51a in system ()
#2 0x0000000100174cdf in TUnixSystem::Exec (this=0x101a043f0, shellcmd=0x1045c4eb8 “/opt/new/etc/root/gdb-backtrace.sh /opt/new/bin/root.exe 30330 1>&2”) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:2005
#3 0x0000000100178adb in TUnixSystem::StackTrace (this=0x101a043f0) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:2138
#4 0x00000001001770aa in TUnixSystem::DispatchSignals (this=0x101a043f0, sig=kSigSegmentationViolation) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:1131
#5 0x00000001001771d4 in SigHandler (sig=kSigSegmentationViolation) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:352
#6 0x000000010016f192 in sighandler (sig=11) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:3496
#7
#8 0x0000000104628245 in _XReply ()
#9 0x000000010460bc37 in XAllocColor ()
#10 0x0000000104928573 in find_useable_visual () at TNamed.h:40
#11 0x0000000104928c42 in query_screen_visual_id () at TNamed.h:40
#12 0x000000010492a45b in create_asvisual_for_id () at TNamed.h:40
#13 0x00000001048e88e3 in TASImage::InitVisual () at /Users/stein/root/root_v5.28.00/root/graf2d/asimage/src/TASImage.cxx:2132
#14 0x00000001048f5c7d in TASImage::ReadImage (this=0x1045c33c0, filename=0x1045c35b0 “/opt/new/share/root/icons/splitterv.xpm”) at /Users/stein/root/root_v5.28.00/root/graf2d/asimage/src/TASImage.cxx:469
#15 0x000000010360ab44 in TImage::Open (file=0x104592650 “/opt/new/share/root/icons/splitterv.xpm”, type=TImage::kUnknown) at /Users/stein/root/root_v5.28.00/root/graf2d/graf/src/TImage.cxx:120
#16 0x0000000103b90e37 in TGPicturePool::GetPicture (this=0x104535c00, name=0x10407622b “splitterv.xpm”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TGPicture.cxx:111
#17 0x0000000103bdf52e in TGClient::GetPicture (this=0x104534030, name=0x10407622b “splitterv.xpm”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TGClient.cxx:246
#18 0x0000000103cc90d3 in TGVSplitter::TGVSplitter (this=0x104592200, p=0x104591250, w=4, h=4, options=0, back=12632256) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TGSplitter.cxx:70
#19 0x0000000103d2529d in TRootBrowser::CreateBrowser (this=0x10457c150, name=0x100517527 “ROOT Object Browser”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootBrowser.cxx:253
#20 0x0000000103d25c0f in TRootBrowser::TRootBrowser (this=0x10457c150, b=0x101ee7a80, name=0x100517527 “ROOT Object Browser”, width=800, height=500, opt=0x10454ab48 “FCEI”, initshow=true) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootBrowser.cxx:137
#21 0x0000000103d25d35 in TRootBrowser::NewBrowser (b=0x101ee7a80, title=0x100517527 “ROOT Object Browser”, width=800, height=500, opt=0x10454ab48 “FCEI”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootBrowser.cxx:1194
#22 0x0000000103fee112 in G__G__Gui3_391_0_45 () at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootEmbeddedCanvas.cxx:46
#23 0x0000000100c5e795 in Cint::G__CallFunc::Execute (this=0x10218f000, pobject=0x0) at cint/cint/src/CallFunc.cxx:440
#24 0x000000010013a3b6 in Cint::G__CallFunc::ExecInt (this=0x10218f000, pobject=0x0) at CallFunc.h:98
#25 0x000000010012eb43 in TCint::CallFunc_ExecInt (this=0x101a0f750, func=0x10218f000, address=0x0) at /Users/stein/root/root_v5.28.00/root/core/meta/src/TCint.cxx:2415
#26 0x0000000100032d7e in TMethodCall::Execute (this=0x10457baa0, object=0x0, retLong=
0x7fff5fbeee80) at /Users/stein/root/root_v5.28.00/root/core/meta/src/TMethodCall.cxx:375
#27 0x00000001000178d8 in TMethodCall::Execute (this=0x10457baa0, retLong=
0x7fff5fbeee80) at TMethodCall.h:112
#28 0x0000000100016d22 in TPluginHandler::ExecPlugin (this=0x104550980, nargs=5) at /Users/stein/root/root_v5.28.00/root/core/base/src/TPluginManager.cxx:316
#29 0x0000000103d4dc12 in TRootGuiFactory::CreateBrowserImp (this=0x102be49c0, b=0x101ee7a80, title=0x100517527 “ROOT Object Browser”, width=800, height=500, opt=0x1005048c0 “”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootGuiFactory.cxx:90
#30 0x000000010008d3be in TBrowser::TBrowser (this=0x101ee7a80, name=0x100522223 “Browser”, title=0x100517527 “ROOT Object Browser”, extimp=0x0, opt=0x1005048c0 “”) at /Users/stein/root/root_v5.28.00/root/core/base/src/TBrowser.cxx:104
#31 0x000000010027d7a7 in G__G__Base1_77_0_3 () at ctype.h:287
#32 0x0000000100c5a9ac in Cint::G__ExceptionWrapper (funcp=0x10027c8f9 <G__G__Base1_77_0_3(G__value*, char const*, G__param*, int)>, result7=0x7fff5fbfae80, funcname=0x101ee2f20 “”, libp=0x7fff5fbf0470, hash=0) at cint/cint/src/Api.cxx:393
#33 0x0000000100d519c5 in G__execute_call (result7=0x7fff5fbfae80, libp=0x7fff5fbf0470, ifunc=0x101ee2f20, ifn=0) at cint/cint/src/newlink.cxx:2406
#34 0x0000000100d52454 in G__call_cppfunc (result7=0x7fff5fbfae80, libp=0x7fff5fbf0470, ifunc=0x101ee2f20, ifn=0) at cint/cint/src/newlink.cxx:2610
#35 0x0000000100d1056b in G__interpret_func (result7=0x7fff5fbfae80, funcname=0x10201dc00 “TBrowser”, libp=0x7fff5fbf0470, hash=824, p_ifunc=0x101ee2f20, funcmatch=1, memfunc_flag=4) at cint/cint/src/ifunc.cxx:5195
#36 0x0000000100cfd5c4 in G__getfunction (item=0x10204e400 “TBrowser()”, known3=0x7fff5fbfb7f0, memfunc_flag=4) at cint/cint/src/func.cxx:2339
#37 0x0000000100cb96d5 in G__define_var (tagnum=21, typenum=-1) at cint/cint/src/decl.cxx:2862
#38 0x0000000100d69dac in G__defined_type (type_name=
0x7fff5fbfbb70, len=8) at cint/cint/src/parse.cxx:4524
#39 0x0000000100d70b5b in G__exec_statement (mparen=0x7fff5fbfbd88) at cint/cint/src/parse.cxx:6529
#40 0x0000000100cae1b5 in G__exec_tempfile_core (file=0x0, fp=0x7fff7117e530) at cint/cint/src/debug.cxx:265
#41 0x0000000100cae639 in G__exec_tempfile_fp (fp=0x7fff7117e530) at cint/cint/src/debug.cxx:807
#42 0x0000000100d87b7b in G__process_cmd (line=0x101edcde8 “TBrowser b;”, prompt=0x101a0f788 “”, more=0x101a0f780, err=0x7fff5fbfd1b8, rslt=0x7fff5fbfd140) at cint/cint/src/pause.cxx:3324
#43 0x000000010002a5da in TCint::ProcessLine (this=0x101a0f750, line=0x101edcde8 “TBrowser b;”, error=0x0) at /Users/stein/root/root_v5.28.00/root/core/meta/src/TCint.cxx:521
#44 0x0000000100082c83 in TApplication::ProcessLine (this=0x101b02d60, line=0x101edcde8 “TBrowser b;”, sync=false, err=0x0) at /Users/stein/root/root_v5.28.00/root/core/base/src/TApplication.cxx:904
#45 0x0000000101982af9 in TRint::HandleTermInput (this=0x101b02d60) at /Users/stein/root/root_v5.28.00/root/core/rint/src/TRint.cxx:559
#46 0x0000000101982376 in TTermInputHandler::Notify (this=0x101ec0170) at /Users/stein/root/root_v5.28.00/root/core/rint/src/TRint.cxx:127
#47 0x0000000101985f12 in TTermInputHandler::ReadNotify (this=0x101ec0170) at /Users/stein/root/root_v5.28.00/root/core/rint/src/TRint.cxx:119
#48 0x0000000100176466 in TUnixSystem::CheckDescriptors (this=0x101a043f0) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:1233
#49 0x0000000100176b73 in TUnixSystem::DispatchOneEvent (this=0x101a043f0, pendingOnly=false) at /Users/stein/root/root_v5.28.00/root/core/unix/src/TUnixSystem.cxx:940
#50 0x00000001000de6f8 in TSystem::InnerLoop (this=0x101a043f0) at /Users/stein/root/root_v5.28.00/root/core/base/src/TSystem.cxx:406
#51 0x00000001000ecba5 in TSystem::Run (this=0x101a043f0) at /Users/stein/root/root_v5.28.00/root/core/base/src/TSystem.cxx:356
#52 0x000000010007e695 in TApplication::Run (this=0x101b02d60, retrn=false) at /Users/stein/root/root_v5.28.00/root/core/base/src/TApplication.cxx:1052
#53 0x0000000101983b57 in TRint::Run (this=0x101b02d60, retrn=false) at /Users/stein/root/root_v5.28.00/root/core/rint/src/TRint.cxx:431
#54 0x00000001000018f8 in main (argc=1, argv=0x7fff5fbff738) at /Users/stein/root/root_v5.28.00/root/main/src/rmain.cxx:29

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.

#8 0x0000000104628245 in _XReply ()
#9 0x000000010460bc37 in XAllocColor ()
#10 0x0000000104928573 in find_useable_visual () at TNamed.h:40
#11 0x0000000104928c42 in query_screen_visual_id () at TNamed.h:40
#12 0x000000010492a45b in create_asvisual_for_id () at TNamed.h:40
#13 0x00000001048e88e3 in TASImage::InitVisual () at /Users/stein/root/root_v5.28.00/root/graf2d/asimage/src/TASImage.cxx:2132
#14 0x00000001048f5c7d in TASImage::ReadImage (this=0x1045c33c0, filename=0x1045c35b0 “/opt/new/share/root/icons/splitterv.xpm”) at /Users/stein/root/root_v5.28.00/root/graf2d/asimage/src/TASImage.cxx:469
#15 0x000000010360ab44 in TImage::Open (file=0x104592650 “/opt/new/share/root/icons/splitterv.xpm”, type=TImage::kUnknown) at /Users/stein/root/root_v5.28.00/root/graf2d/graf/src/TImage.cxx:120
#16 0x0000000103b90e37 in TGPicturePool::GetPicture (this=0x104535c00, name=0x10407622b “splitterv.xpm”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TGPicture.cxx:111
#17 0x0000000103bdf52e in TGClient::GetPicture (this=0x104534030, name=0x10407622b “splitterv.xpm”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TGClient.cxx:246
#18 0x0000000103cc90d3 in TGVSplitter::TGVSplitter (this=0x104592200, p=0x104591250, w=4, h=4, options=0, back=12632256) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TGSplitter.cxx:70
#19 0x0000000103d2529d in TRootBrowser::CreateBrowser (this=0x10457c150, name=0x100517527 “ROOT Object Browser”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootBrowser.cxx:253
#20 0x0000000103d25c0f in TRootBrowser::TRootBrowser (this=0x10457c150, b=0x101ee7a80, name=0x100517527 “ROOT Object Browser”, width=800, height=500, opt=0x10454ab48 “FCEI”, initshow=true) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootBrowser.cxx:137
#21 0x0000000103d25d35 in TRootBrowser::NewBrowser (b=0x101ee7a80, title=0x100517527 “ROOT Object Browser”, width=800, height=500, opt=0x10454ab48 “FCEI”) at /Users/stein/root/root_v5.28.00/root/gui/gui/src/TRootBrowser.cxx:1194

any ideas? Thanks, Brian

Hi Brian,

Maybe [url=https://root-forum.cern.ch/t/draw-crash-on-macosx/11033/1 post[/url] can help…

Cheers, Bertrand.

Bertrand,

That did indeed solve it. Thanks for the link.

-Brian