"End of stream reached" when bundling very many images

I tried to bundle lots of images (> 1 500, app. 2.5 MB) into my app by doing


The app crashes at startup with the message “End of stream reached”. I now have 23 images, and it works fine.

What is the limit? Does it have to do with the number of images or size?

Hey, is this on Android or iOS? Could it be that there is a problem with one of the images, could you try different chunks and see when it breaks?