[sr-dev] git:master: core: In case of OOM, prevent crash