Hi Harmut,
Thanks for reporting this interesting case. I have now fixed the problem
in our development version.
The problem was not directly connected with the TMapFile.
When you run in batch mode, the fact to call TCanvas::Streamer resets the
internal members widht and height. If you then call TCanvas::Write,
the canvas size is not written correctly. This will crash X11 in the session
where you will try to draw the canvas.
Rene Brun
Hartmut Stadie lx10 wrote:
>
> Hi rooters,
> in our online-monitoring framework for CDF, we want to put TCanvas objects in
> a TMapFile and save them to a ROOT file at the end. Unfortunately the TCanvas
> objects in the ROOT file cannot be drawn in a ROOT session:
>
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 2.24/04 30 May 2000 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> FreeType Engine v1.1 used to render TrueType fonts.
>
> CINT/ROOT C/C++ Interpreter version 5.14.37, Apr 29 2000
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TFile f("test.root")
> root [1] CMUDCanvas.Draw()
> Error in <RootX11ErrorHandler>: BadAlloc (insufficient resources for operation)
> (XID: 96469120)
> Error in <RootX11ErrorHandler>: BadDrawable (invalid Pixmap or Window parameter) (XID: 96469120)
> Error in <RootX11ErrorHandler>: BadAlloc (insufficient resources for operation) (XID: 96469121)
> Error in <RootX11ErrorHandler>: BadDrawable (invalid Pixmap or Window parameter) (XID: 96469121)
>
> and so on...
>
> I have reduced our code to a little program, that I will attach to this email.
> I hope anyone knows, how to remove this problem.
>
> Thanks a lot,
> Hartmut.
>
> --
> Hartmut Stadie Email:stadie@ekp.physik.uni-karlsruhe.de
> Institut für Experimentelle Kernphysik | privat:
> Universität Karlsruhe |
> Engesserstr. 7 | Karlstr. 21a
> 76128 Karlsruhe | 76133 Karlsruhe
> Tel.:0721-608 3454 | Tel.:0721-29605
>
> --------------------------------------------------------------------------------
>
> Name: writecanvas.cc
> writecanvas.cc Type: Plain Text (text/plain)
> Encoding: 7bit
> Description: writecanvas.cc
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET