TGraph problem (X crash)

Hi,
I’m using root 5.12 and I have a problem with TGraph.
If I draw a TGraph with more than X entries my software crash.
X means:

  • in a system with an NVIDIA QUADRO FX, the X window system crash if I make a TGraph with more than 200000 entries
  • in a systema with an ATI mobility radeon 9700 without original ATI driver the software (and not the X window) crash if I make a TGraph with more then 550000 events.
    The crash occour during the Update() execution.

My software is compiled with gcc. I work in a SUSE 9.2.

The same with the root 5.13

Thank you very much
Best regards
Andrea Bulgarelli

On my linux box with the latest ROOT version I do not have such problems using the following macro:

{
   c1 = new TCanvas("c1","Big Graph Example",200,10,700,500);
   Double_t x, y;
   Int_t n = 1000000;
   gr = new TGraph(n);
   for (Int_t i=0;i<n;i++) {
      x = i*0.1;
      y = 10*sin(x+0.2);
      gr->SetPoint(i, x, y);
   }
   gr->Draw("AP");
   c1->Print("gr1.eps");
   c1->Print("gr1.gif");
}

Can you try this macro ?