REST version : v2.2.14
REST commit : cfa2d241
I am trying to run a simple script for obtaining three different histograms given the same input file but setting different cuts for each plot. The program should display them, and save them automatically.
The command line I run is:
restManager --c restPlotIsotopeSAFEC_HistoEnergy.rml --f Co60_TrackAnalysis.root
When I run the script I can briefly see two of the three histograms, then I get a segmentation fault and the program crashes. It generates two of the three files, but after checking them I can see they are empty.
The complete output is:
RandomEngineRoot:
Generator type: TRandom3
Seed: 3959356795
Heed:
Database path: /programas/garfield/garfield6/Heed/heed++/database
[== Launching TRestManager... ==]
-- Debug : Loading Config for : TRestManager
-- Debug : TRestManager: Parameter : database not found!
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : TRestManager: Parameter : store not found!
-- Debug : Loading Config for : TRestAnalysisPlot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: TRestAnalysisPlot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: globals
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: globals
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: globals
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: globals
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: TRestAnalysisPlot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: TRestAnalysisPlot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: TRestAnalysisPlot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: TRestAnalysisPlot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : into child elements of: plot
-- Debug : Entering ... void TRestMetadata::ReadElement(TiXmlElement*, bool)
-- Debug : TRestAnalysisPlot: Parameter : store not found!
-- Debug : TRestAnalysisPlot: Reading canvas settings
-- Debug : TRestAnalysisPlot: Reading global cuts
-- Debug : TRestAnalysisPlot: Reading plot sections
-- Debug : TRestAnalysisPlot: Parameter : logY not found!
-- Debug : TRestAnalysisPlot: Parameter : logX not found!
-- Debug : TRestAnalysisPlot: Parameter : logZ not found!
-- Debug : TRestAnalysisPlot: Parameter : norm not found!
-- Debug : TRestAnalysisPlot: Parameter : legend not found!
-- Debug : TRestAnalysisPlot: Parameter : stats not found!
-- Debug : TRestAnalysisPlot: Parameter : annotation not found!
-- Debug : TRestAnalysisPlot: Parameter : xOffset not found!
-- Debug : TRestAnalysisPlot: Parameter : yOffset not found!
-- Debug : TRestAnalysisPlot: Parameter : timeDisplay not found!
-- Debug : TRestAnalysisPlot: Parameter : option not found!
Variable g4Ana_gasVolumeEDep
------------------------------------------
Plot range : ( 0 , 10 )
bins : 100
-- Debug : TRestAnalysisPlot: Parameter : lineColor not found!
-- Debug : TRestAnalysisPlot: Parameter : lineWidth not found!
-- Debug : TRestAnalysisPlot: Parameter : lineStyle not found!
-- Debug : TRestAnalysisPlot: Parameter : fillStyle not found!
-- Debug : TRestAnalysisPlot: Parameter : fillColor not found!
-- Debug : TRestAnalysisPlot: Parameter : logY not found!
-- Debug : TRestAnalysisPlot: Parameter : logX not found!
-- Debug : TRestAnalysisPlot: Parameter : logZ not found!
-- Debug : TRestAnalysisPlot: Parameter : norm not found!
-- Debug : TRestAnalysisPlot: Parameter : legend not found!
-- Debug : TRestAnalysisPlot: Parameter : stats not found!
-- Debug : TRestAnalysisPlot: Parameter : annotation not found!
-- Debug : TRestAnalysisPlot: Parameter : xOffset not found!
-- Debug : TRestAnalysisPlot: Parameter : yOffset not found!
-- Debug : TRestAnalysisPlot: Parameter : timeDisplay not found!
-- Debug : TRestAnalysisPlot: Parameter : option not found!
Variable g4Ana_gasVolumeEDep
------------------------------------------
Plot range : ( 0 , 10 )
bins : 100
-- Debug : TRestAnalysisPlot: Parameter : lineColor not found!
-- Debug : TRestAnalysisPlot: Parameter : lineWidth not found!
-- Debug : TRestAnalysisPlot: Parameter : lineStyle not found!
-- Debug : TRestAnalysisPlot: Parameter : fillStyle not found!
-- Debug : TRestAnalysisPlot: Parameter : fillColor not found!
-- Debug : TRestAnalysisPlot: Parameter : logY not found!
-- Debug : TRestAnalysisPlot: Parameter : logX not found!
-- Debug : TRestAnalysisPlot: Parameter : logZ not found!
-- Debug : TRestAnalysisPlot: Parameter : norm not found!
-- Debug : TRestAnalysisPlot: Parameter : legend not found!
-- Debug : TRestAnalysisPlot: Parameter : stats not found!
-- Debug : TRestAnalysisPlot: Parameter : annotation not found!
-- Debug : TRestAnalysisPlot: Parameter : xOffset not found!
-- Debug : TRestAnalysisPlot: Parameter : yOffset not found!
-- Debug : TRestAnalysisPlot: Parameter : timeDisplay not found!
-- Debug : TRestAnalysisPlot: Parameter : option not found!
Variable g4Ana_gasVolumeEDep
------------------------------------------
Plot range : ( 0 , 10 )
bins : 100
-- Debug : TRestAnalysisPlot: Parameter : lineColor not found!
-- Debug : TRestAnalysisPlot: Parameter : lineWidth not found!
-- Debug : TRestAnalysisPlot: Parameter : lineStyle not found!
-- Debug : TRestAnalysisPlot: Parameter : fillStyle not found!
-- Debug : TRestAnalysisPlot: Parameter : fillColor not found!
-- Debug : TRestAnalysisPlot: Reading panel sections
-- Debug : TRestAnalysisPlot has finished preparing config data
-- Debug : Loading Task... "restPlot->PlotCombinedCanvas()"
Adding file : Co60_TrackAnalysis.root
-- Debug : TRestAnalysisPlot::AddFile. Adding file.
-- Debug : File name: Co60_TrackAnalysis.root
--------------------------------------
Plot string : g4Ana_gasVolumeEDep
Plot name : Energyingas
Plot range : (100 , 0 , 10)
Cut :
Plot option : colz
++++++++++++++++++++++++++++++++++++++
Info in <TCanvas::SaveAs>: ROOT file BG_Spectrum_Co60_CapBottomCentre_CutsOFF.root has been created
--------------------------------------
Plot string : g4Ana_gasVolumeEDep
Plot name : Energyingas
Plot range : (100 , 0 , 10)
Cut :
Plot option : colz
++++++++++++++++++++++++++++++++++++++
Info in <TCanvas::SaveAs>: ROOT file BG_Spectrum_Co60_CapBottomCentre_TrackCutON.root has been created
--------------------------------------
Plot string : g4Ana_gasVolumeEDep
Plot name : Energyingas
Plot range : (100 , 0 , 10)
Cut :
Plot option : colz
++++++++++++++++++++++++++++++++++++++
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f67995e2ffa in __GI___waitpid (pid=39232, stat_loc=stat_loc
entry=0x7ffef3038e80, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
#1 0x00007f679956a0ab in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2 0x00007f67d442c477 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5616decd34c0) at /home/gloria/apps/root-6.16.00/source/core/unix/src/TUnixSystem.cxx:2119
#3 TUnixSystem::StackTrace (this=0x5616decd34c0) at /home/gloria/apps/root-6.16.00/source/core/unix/src/TUnixSystem.cxx:2413
#4 0x00007f67d442ebc4 in TUnixSystem::DispatchSignals (this=0x5616decd34c0, sig=kSigSegmentationViolation) at /home/gloria/apps/root-6.16.00/source/core/unix/src/TUnixSystem.cxx:3644
#5 <signal handler called>
#6 TCanvas::Constructor (this=this
entry=0x5616e25cd920, name=name
entry=0x0, title=title
entry=0x0, ww=<optimized out>, ww
entry=800, wh=<optimized out>, wh
entry=600) at /home/gloria/apps/root-6.16.00/source/graf2d/gpad/src/TCanvas.cxx:392
#7 0x00007f67d27cf9dc in TCanvas::TCanvas (this=0x5616e25cd920, name=0x0, title=0x0, ww=800, wh=600) at /home/gloria/apps/root-6.16.00/source/graf2d/gpad/src/TCanvas.cxx:358
#8 0x00007f679a6c2439 in TRestAnalysisPlot::SavePlotToPDF(TString, int) () from /programas/REST/v2.2.14/lib/libRestCore.so
#9 0x00007f679a6c16f9 in TRestAnalysisPlot::PlotCombinedCanvas() () from /programas/REST/v2.2.14/lib/libRestCore.so
#10 0x00007f67d547002a in ?? ()
#11 0x0000000000000000 in ?? ()
===========================================================
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 TCanvas::Constructor (this=this
entry=0x5616e25cd920, name=name
entry=0x0, title=title
entry=0x0, ww=<optimized out>, ww
entry=800, wh=<optimized out>, wh
entry=600) at /home/gloria/apps/root-6.16.00/source/graf2d/gpad/src/TCanvas.cxx:392
#7 0x00007f67d27cf9dc in TCanvas::TCanvas (this=0x5616e25cd920, name=0x0, title=0x0, ww=800, wh=600) at /home/gloria/apps/root-6.16.00/source/graf2d/gpad/src/TCanvas.cxx:358
#8 0x00007f679a6c2439 in TRestAnalysisPlot::SavePlotToPDF(TString, int) () from /programas/REST/v2.2.14/lib/libRestCore.so
#9 0x00007f679a6c16f9 in TRestAnalysisPlot::PlotCombinedCanvas() () from /programas/REST/v2.2.14/lib/libRestCore.so
#10 0x00007f67d547002a in ?? ()
#11 0x0000000000000000 in ?? ()
===========================================================
Segmentation fault
Do you have any ideas about where could the origin of the problem be?
I attach the following files:
- restPlotIsotopeSAFEC_HistoEnergy.rml ->Configuration file for the plots
- Co60_TrackAnalysis.root → Input file for the plots (Too big for uploading it to the forum): CERNBox
- BG_Spectrum_Co60_CapBottomCentre_CutsOFF.root → First output file generated by the script
- BG_Spectrum_Co60_CapBottomCentre_TrackCutON.root → Second output file generated by the script
restPlotIsotopeSAFEC_HistoEnergy.rml (2.9 KB)
BG_Spectrum_Co60_CapBottomCentre_TrackCutON.root (8.3 KB)
BG_Spectrum_Co60_CapBottomCentre_CutsOFF.root (8.3 KB)