I've been toying around with various things while trying to figure out the path to a quick context restore. I have a button in my app that disposes a context manually so that I can test restore time.
The app displays items in a list with thumbnails sourced from the internet. Because these assets were loaded from the internet, I assume AM is trying to restore from the internet as well. I'm getting an error though, that I don't think I can catch or fix?
[AssetManager] IO error: Error #2032: Stream Error. URL: URL.to.jpg [AssetManager] Texture restoration failed: Error #1009: Cannot access a property or method of a null object reference. TypeError: Error #1009: Cannot access a property or method of a null object reference. at Function/<anonymous>()[/Users/redge/Dropbox/Development/starling/starling/src/starling/utils/AssetManager.as:809] at Function/http://adobe.com/AS3/2006/builtin::apply() at starling.utils::SystemUtil$/executeWhenApplicationIsActive()[/Users/redge/Dropbox/Development/starling/starling/src/starling/utils/SystemUtil.as:80] at Function/starling.utils:AssetManager/protected:loadRawAsset/starling.utils:complete()[/Users/redge/Dropbox/Development/starling/starling/src/starling/utils/AssetManager.as:1043] at Function/starling.utils:AssetManager/protected:loadRawAsset/starling.utils:onIoError()[/Users/redge/Dropbox/Development/starling/starling/src/starling/utils/AssetManager.as:949] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() Cannot display source code at this location. Debug session terminated.
The device I'm testing on does seem to drop wifi from time to time, so that could explain why it couldn't load, but what can I do on my end to rectify? I've been considering storing images locally after they first load, but still not sure that's the best path forward.