I am working on a project which is using HTTP chunk files to download and mount assets into the application at runtime. It is working fine most of the time, but sometimes it is causing errors, instantly crashing the whole application. I am getting read access violation and exception access violation, depending on what node is trying to access the object.
As you can see, I am checking if the game instance is valid and calling a function, which is returning the manifest and cloud URLs, and then calling the “Request Content” node. In 99% of the time, it either succeeds, if the chunk is available, and it fails, if it is not available. But sometimes, it continues on “On Succeeded”, and then crashes at the first node, which is trying to access the “Mobile Pending Content” object and reading one of its properties. I have added some log messages to the engine, and found out that the Request Content node returning the Mobile Pending Content is checking and verifying that the object is valid, and even the IsValid() node is telling that it is valid.
I have added a PrintProperties() function to the engine code, which is trying to log the URL addresses and also giving me clue where the app is crashing, and it is definitely when trying to read the URLs.
So my question is, is there any way to fix this behaviour, or at least somehow prevent the invalid object from passing through the IsValid() node? Is it possible that the object itself is valid actually, but somehow still causing such errors? In what cases can this happen?
The Request Content node is built into the engine and i haven’t modified anything in the source code in this class, or any other class before.
This issue is critical for our application, it is a very important feature.
Thank you for your help!