gundam-organization / gundam

GUNDAM, for Generalized and Unified Neutrino Data Analysis Methods, is a suite of applications which aims at performing various statistical analysis with different purposes and setups.
GNU Lesser General Public License v2.1
13 stars 11 forks source link

LTS/1.8.x : Confusing output in Cache::Manager when memory cannot be allocated #508

Closed ClarkMcGrew closed 4 months ago

ClarkMcGrew commented 4 months ago

There Cache::Manager is the last (large) memory user when starting a job, and so it's probably where we run out of memory when there isn't enough available. Memory allocation is being checked, but the error messaging is confusing.

ClarkMcGrew commented 4 months ago

This can be helped by always using LogThrow and LogThrowIf (instead of std::runtime_error), but will require some additional support in simple-cpp-logger. An issue has already been filed with the logger.