In Geant4 11.1, I found that the function “G4AnalysisManager::Instance()->CreateH1(const G4String& name, const G4String& title, const std::vector& edges)” always shows the following warnings, even if the parameters are correct. And, the creation of the H1 failed.
Illegal value of (minValue >= maxMaxValue)