Well it's an engine bug but it happens because you're trying to load a ridiculously large PNG as icon. Change it to a normal 64x64 or maybe even 512x512 PNG and it should work fine.
Oh gotcha that makes a lot of since! Thank you for looking into that for me!