Fit and TPolyLine3D problem

Hello,
I simplified my script up to 8 lines to clarify the source of the problem and found that the Fit causes the
pl3d->Draw(“same”)
to crash the ROOT with such message :

root.exe: graf2d/gpad/src/TViewer3DPad.cxx:93: virtual Int_t TViewer3DPad::AddObject(const TBuffer3D&, Bool_t*): Assertion `kFALSE’ failed

int main() {
TFile *fin = new TFile(“meandxdy2008_pos_vs_angle.root”);
TF2 *f2 = new TF2(“f2”,"[1]*x+[2]*y+[0]");
mean_of_x->Fit(“f2”);
TPolyLine3D *pl3d = new TPolyLine3D(2);
pl3d->SetPoint(0,-0.00278738,141.475,0.0132453);
pl3d->SetPoint(1,0.00304939,145.189,0.0157747);
mean_of_x->Draw(“lego1”);
pl3d->Draw(“same”);
}

If I comment the Fit or pl3d->Draw() then no problem.
What is wrong?
lxplus, V24.00

gortchak.home.cern.ch/gortchak/m … angle.root

Regards
Oleg

do:

int main() { TFile *fin = new TFile("meandxdy2008_pos_vs_angle.root"); TF2 *f2 = new TF2("f2","[1]*x+[2]*y+[0]"); mean_of_x->Fit("f2","0","lego1"); mean_of_x->Draw("lego1"); TPolyLine3D *pl3d = new TPolyLine3D(2); pl3d->SetPoint(0,-0.00278738,141.475,0.0132453); pl3d->SetPoint(1,0.00304939,145.189,0.0157747); pl3d->SetLineColor(kBlue); pl3d->SetLineWidth(12); pl3d->Draw(); }
Rene