Reviving an old problem Draw() crash on MacOSX, “I am having 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.”
Here is my setup:
MacOSX 10.6.8.
root_v5.34.05 (from binary)
I believe everything went wrong, after an update of XQuartz to latest 2.7.4. I tried reinstalling both XQuartz and ROOT from scratch, but same error once and again.
I tried also specifying the lib dirs as suggested in the linked post.
Does anyone has a solution to this? I just had a clean install of MacOSX Mountain Lion yesterday and the latest XCode and XQuartz (2.7.4), and installed root 5.34-07 today. I have the same problem
local(16:25)/~ % root -l
root [0] TH1F h(“h”,“h”,10,0,10)
root [1] h.Draw()
Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1
*** Break *** bus error
===========================================================
There was a crash.
This is the entire stack trace of all threads:
Thread 1 (process 277): #0 0x00007fff94f7b6ac in wait4 () #1 0x00007fff9594003a in system () #2 0x000000010dfd2d89 in TUnixSystem::StackTrace () #3 0x000000010dfd08e4 in TUnixSystem::DispatchSignals () #4 #5 0x0000000110061828 in ft_smooth_renderer_class () #6 0x0000000110d3b904 in FT_Render_Glyph_Internal () #7 0x0000000110d41933 in FT_Glyph_To_Bitmap () #8 0x0000000110d1b6bb in TGX11TTF::RenderString () #9 0x000000011011b4c5 in TPad::PaintText () #10 0x000000010fe63a3d in TLatex::Analyse () #11 0x000000010fe65050 in TLatex::PaintLatex () #12 0x000000010fe4fd7e in TGaxis::PaintAxis () #13 0x0000000110fc6dfd in THistPainter::PaintAxis () #14 0x0000000110fc5cbc in THistPainter::Paint () #15 0x00000001101188ba in TPad::PaintModified () #16 0x0000000110100baf in TCanvas::Update () #17 0x000000010df97304 in TCint::ProcessLine () #18 0x000000010df97809 in TCint::ProcessLineSynch () #19 0x000000010eeeaf82 in TRint::HandleTermInput () #20 0x000000010eee9597 in TTermInputHandler::Notify () #21 0x000000010eeeb8bd in TTermInputHandler::ReadNotify () #22 0x000000010dfcfd7e in TUnixSystem::CheckDescriptors () #23 0x000000010dfcf614 in TUnixSystem::DispatchOneEvent () #24 0x000000010df5590a in TSystem::InnerLoop () #25 0x000000010df55818 in TSystem::Run () #26 0x000000010def7064 in TApplication::Run () #27 0x000000010eeea889 in TRint::Run () #28 0x000000010deeadff 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 0x0000000110061828 in ft_smooth_renderer_class () #6 0x0000000110d3b904 in FT_Render_Glyph_Internal () #7 0x0000000110d41933 in FT_Glyph_To_Bitmap () #8 0x0000000110d1b6bb in TGX11TTF::RenderString () #9 0x000000011011b4c5 in TPad::PaintText () #10 0x000000010fe63a3d in TLatex::Analyse () #11 0x000000010fe65050 in TLatex::PaintLatex () #12 0x000000010fe4fd7e in TGaxis::PaintAxis () #13 0x0000000110fc6dfd in THistPainter::PaintAxis () #14 0x0000000110fc5cbc in THistPainter::Paint () #15 0x00000001101188ba in TPad::PaintModified () #16 0x0000000110100baf in TCanvas::Update ()