Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build error when adding an image.

ANSWERED

If I add an image to my resources folder, I get this error:-

  • Internal error during build. Guru meditation: RangeError: Offset is outside the bounds of the DataView

It doesn't matter if I actually use the image or not.

 

The image was initially full screen (348x250) when it first failed, so I tried making it half sized but it still gives the same error.

If I delete the image from the resources folder it's fine.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I had the same issue no matter how I saved it.

However... I saved it out as a JPG then opened it again and saved it as PNG and this time it worked.

All I can guess is it's a corrupt PNG somehow and resaving it does it.

https://www.dropbox.com/s/a68azy37f33a6zp/steel5.jpg?dl=0

View best answer in original post

Best Answer
0 Votes
10 REPLIES 10

What's the CSS values of X & Y?

If it goes outside the display currently it will give an error. This is fixed in the next firmware.

Best Answer
0 Votes
I don't have to reference the image, just having it in my resources causes the error.

When I first added it I put it in at (0,0). It is a full screen sized image (348x250).
Best Answer
0 Votes
I forgot to mention that I also tried making the image half sized and if it was added to the resources folder it gave that error (I deleted the old one first).
Best Answer
0 Votes

Try loading into Paint dotNet or Pinta and re-saving the png and add it again.

Best Answer
0 Votes

I saved it back out with Irfanview, with a different name, and it gives the same error.

 

Here's the image:-
https://drive.google.com/open?id=0B_STb3d-9OdPM3QwNWdjbUp5aEk

Best Answer
0 Votes

I had the same issue no matter how I saved it.

However... I saved it out as a JPG then opened it again and saved it as PNG and this time it worked.

All I can guess is it's a corrupt PNG somehow and resaving it does it.

https://www.dropbox.com/s/a68azy37f33a6zp/steel5.jpg?dl=0

Best Answer
0 Votes

That worked! It did cross my mind to try saving as a different format but stupidly I never actually did it.

 

Thanks!

Best Answer

Side note... I was using Photoshop and opened an image that was in grey mode and when I saved as png and ran app I just go a blank screen... I hadn't verified, but think images have to be RGB. 

Best Answer
0 Votes
I'm pretty sure I read that somewhere too.
My image was definitely in RGB mode, no idea why it was dodgy (saved from GIMP, the original source was a JPG so it had already changed format).
Best Answer
0 Votes

I think the issue is actually due to interlacing. I took some images from the example projects that I knew worked and compared them to images that were causing build errors using `pngcheck` and I noticed that all of the working images were non-interlaced. I used ImageMagick to convert the images I was having issues with to non-interlaced and no more build errors. Hope this helps.

 

convert -interlace none interlaced.png uninterlaced.png

 

Best Answer