Hello ROOTers,
I tried to use TMapFiles and plot the content of them but ROOT crashes every time I try to draw a histogram. Here is a simple example using rootn.exe:
TMapFile *mf=TMapFile::Create("test.map","recreate")
(TMapFile *) 0x7fb052beb008
TH1 *h=new TH1F("test","test",100,-5,5)
(TH1 *) 0x556155030078
mf->ls()
Object Class Size
test (null) 0
h->Fill (0)
mf->Print()
Memory mapped file: test.map
Title:
Option: CREATE
Mapped Memory region: 0x7fb052be4000 - 0x7fb052c64000 (0.50 MB)
Current breakval: 0x7fb052bef000
h->Draw()
I also tried to generate the TMapFile in one thread and plot the histograms in another one but in this case I obtain the same error message. It seems that the TCanvas can not be created using rootn.exe
Finally I have build a standalone application to read the TMapFile content. This standalone application has been compile the following way:
g++ -o hInterpCons hInterpCons.C -Wl,–no-as-needed root-config --new --glibs --cflags --libs
I obtain again the same error message when trying to create a TCanvas.
Does anyone have a solution ?
Thank you for your help
Daniel
ROOT Version: 6.24/06
Platform: Ubuntu 20.04.1
Compiler: gcc 9.4.0