Crash when writing canvas to TFile

I finally got a reproducible crash. The attached script crashes every time.

draw.cpp (3.7 KB)

I believe it has to do with a too large histogram size. I wonder why it fails silently without any warning.