https://findtheansweres.blogspot.com/2018/01/when-is-stdbadalloc-exception-thrown.html