# TLatex/ TMathText crashing on TCanvas::Pick (5.34.11)

Hi,

executing the att little macro tl.C correctly displays the formula using TMathText.
However moving the mouse pointer into the canvas root crashes.
The att trace with gdb shows that code is reached (TLatex::Analyse) which should
not be executed in this case. This one can see at the very end of the trace log
where I set a breakpoint at TLatex::Analyse. This is not reached when painting
the formula but when moving the mouse pointer into the canvas.

Cheers,
Otto
tlatex_trace.txt (8.24 KB)
tl.C (167 Bytes)

For me it crashes immediately.

Hi Otto,

If you do:

{
TCanvas * cc = new TCanvas();
TMathText la(0.2, 0.2,
"\\frac{1}{\\sqrt{2\\pi} \\sigma} e^{- \\frac{1}{2}  \\frac{(x - x_{0})^{2}}{\\sigma^{2}}}");
la.Draw();
}

It works. I am investigating.

Olivier

Now fixed in the trunk and in 5.34.
Thanks for the input.