HttpImageSource runtime exception

<Image Url="[https://pacdn.500px.org/6064290/2ba1f7c11b27ca906ed6c8a2da526096e12399e8/3.jpg?2"/&gt](https://pacdn.500px.org/6064290/2ba1f7c11b27ca906ed6c8a2da526096e12399e8/3.jpg?2"/&gt);

gives runtime exception:

System.NullReferenceException: Object reference not set to an instance of an object
 at Fuse.Resources.HttpImageSourceImpl+BackgroundLoad.UIFailCallback () [0x00000] in <filename unknown>:0

Just reporting that this issue has not been fixed yet.

Possible bug is in BackgroundLoad's ctor where _fail doesn’t get assigned to the fail parameter.

There’s even an empty line for that:)

Every UIFailCallback() call then causes runtime exception because of calling _fail(e) where _fail is always null.

(I’m still curious however why TextureLoader fails in some cases.)

Could someone from the team reflect on this, please?

Hi !

Sorry for the late reply. We have this issue on file with high priority. Someone will look at it shortly.

Thanks Anders!

Hi again!

This has now been fixed. There was two bugs:

  1. The server doesn’t report this image as a content type image/jpeg as is normal, instead it reported the content type as "application/octet-stream`, which our texture loader didn’t handle. I’ve patched this up now.

  2. The HttpImageSource implementation didn’t report the error correctly, and chose to crash instead of just silently logging the error.

Thanks for reporting, and thanks for your patience. This fix should roll out in about a week from now.

Many thanks!

Please include the patch in the upcoming 0.10.x release. Just tried with the latest qa release and this super annoying bug is still there:(