Live Update: collection proxy fails to load if missing resources are loaded in wrong order #7233
Labels
bug
Something is not working as expected
engine
Issues related to the Defold engine
live update
Issue related to the Live Update feature
Describe the bug (REQUIRED)
We use Live Update to load extra content in our HTML5 games. What we usually do, the steps:
collectionproxy.missing_resources
to get the missing resources array.resource.store_resource
to load the missing resources one by one from the zip file.What's wrong? Sometimes Defold fails to load the proxy. The errors are different each time: IO_ERROR or FORMAT_ERROR, i.e. there are no specific problem.
To Reproduce (REQUIRED)
Load the missing resources by calling
resource.store_resource
one by one in the random order to get the error sometimes. It should be done in the way of fuzz testing, I think.Expected behavior (REQUIRED)
If we should load the missing resources in the particular order then it should be stated in the docs and the
collectionproxy.missing_resources
function should return the list of the missing resources in that order.OR
Defold should be able to load (store) resources in any order.
Defold version (REQUIRED):
Platforms (REQUIRED):
Workaround (OPTIONAL):
Shuffle the missing resources array to store the resources in the different order! It sounds strange but it works.
Plus, this issue is the reason why I implemented this code that cleans the Live Update cache before the start of the game. Otherwise, we were getting random errors that were hard to understand and it was impossible to make a repro case.
The text was updated successfully, but these errors were encountered: