Re: [ROOT] Bug? Root 2.25 crash upon saving canvas

From: Valeri Fine (fine@bnl.gov)
Date: Sat Jul 01 2000 - 15:20:11 MEST


I could not reproduce your problem.

I did try to save the TCanvas with "Save As" menu and via
SaveAs method as well. No problem so far.
 The simple thing I may suspect is the DLL mess. I mean you did
not recompile ALL your sources against of the new version of ROOT
for example I have old version of the ROOT include files on your INCLUDE
path by some reason of your MS project still keep the old ROOT include
files in.
Please check this first. Make sure you have no old version of ROOT
around.

 Just another guess. The compilation parameters were changed (?)
 by ROOT  team those your not aware about. ROOT team switched from
 CMZ to CVS / makefile and this may cause many confusions now and
  in future.

               Valery

           Valery

 the current keyboard layout is 866
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   2.24/05       26 May 2000   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

CINT/ROOT C/C++ Interpreter version 5.14.38, May 5 2000
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] new TCanvas("cc")
(class TCanvas*)0x109ecac
root [1] ROOT file: D:\WIN98\Profiles\potreben\My Documents\mmm.root has
been cr
eated
gPad
(class TCanvas*)0x109ecac
root [2] gPad->SaveAs("root.root")
ROOT file: root.root has been created
root [3]


-----Original Message-----
From: Jonathan M. Gilligan <jonathan.gilligan@vanderbilt.edu>
To: Root Talk <roottalk@pcroot.cern.ch>
Cc: Jonathan M. Gilligan <jonathan.gilligan@vanderbilt.edu>
Date: 28 èþíÿ 2000 ã. 20:42
Subject: [ROOT] Bug? Root 2.25 crash upon saving canvas


>Using Root 2.25, built with Visual C++ 6.0 SP3 under WinNT 4.0:
>
>I try to save a canvas as a .root file using either the SaveAs() method or
>the interactive menu bar "Save As" command. I get the following root crash:
>
>>D:\Users\Jonathan\Root\DefectPool>root loader.C PlotDP.C
>>  the current keyboard layout is 437
>>Warning in <TWinNTSystem::SetProgname>: Wrong Program path
>>   *******************************************
>>   *                                         *
>>   *        W E L C O M E  to  R O O T       *
>>   *                                         *
>>   *   Version   2.25/00      20 June 2000   *
>>   *                                         *
>>   *  You are welcome to visit our Web site  *
>>   *          http://root.cern.ch            *
>>   *                                         *
>>   *******************************************
>>
>>CINT/ROOT C/C++ Interpreter version 5.14.40, May 21 2000
>>Type ? for help. Commands must be C++ statements.
>>Enclose multiple statements between { }.
>>root [0]
>>Processing loader.C...
>>(int)0
>>
>>Processing PlotDP.C...
>>root [2] jmgPage->m_pCanvas->SaveAs("foo.root")
>><CustomReAlloc2>: passed oldsize 1032, should be 33620099
>>Fatal in <CustomReAlloc2>: unreasonable size (33620099)
>>aborting
>>Warning in <TWinNTSystem::StackTrace>: this method must be overridden!
>>
>>abnormal program termination
>
>and then root terminates.
>
>
>Can anyone help me figure out what is causing this crash and whether it's
>my fault or the fault of some bug in root. My loader macro loads a fairly
>large DLL that worked just fine with root 2.23, and which rebuilt with no
>errors or warnings under root 2.25. PlotDP.C is a macro that sets several
>parameters and then calls functions in the DLL that do the real work.
>
>Nothing in any of my code involves CustomReAlloc2, so this seems to be an
>internal root problem, but I have no clue where to start looking.
>
>As an idiocy-check I tried running hsimple.C in the tutorials directory and
>was able to execute c1->SaveAs("foo.root") just fine.
>
>Everything I am doing here worked fine under root 2.23. Nothing in my code
>changed, but now root crashes when I try to save the canvas as a .root
>file. I can save it as a postscript file with no problem.
>
>Thanks for any assistance,
>Jonathan
>===========================================================================
>Jonathan M. Gilligan                     <jonathan.gilligan@vanderbilt.edu>
>Research Assistant Professor of Physics                      (615) 343-6252
>Dept. of Physics and Astronomy, Box 1807-B                    Fax: 343-7263
>6823 Stevenson Center
>Vanderbilt University, Nashville, TN 37235           Dep't Office: 322-2828
>
>



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET