Crash when Deserializing TArray into Json
So I am currently creating functions that will allow me to take in an array of bytes through a Network Socket, deserialize it back into Json, and then Parse said Json. However, when I try to use the deserialize Function, the entire Engine Crashes, and I am given a link to send a crash report.Here's the .rar file to my crash report.
The Code Chunk that is most relevant is below:
My Implementation in my Blueprint currently Connects to the other IP Address, delays for a second, then calls the above function. I know that the Socket works fine, as I am getting a connection, along with the data.
The Json being sent is being sent like this, according to the developers of the Software I am trying to access:
I have no reason to assume there is anything wrong on their side, as they offer a plugin to do the same job. However, it costs $1500, so that's out of the question. I don't really see how I can be doing anything wrong in this situation, as the code compiles correctly without any errors.
asked Mar 22 '16 at 09:47 PM in Bug Reports
To fix the errors that I had, I changed my code to the following:
The main thing that was going wrong I believe was my setup of the JsonReader. Instead of converting to a string, and putting that through the reader, I set up an FMemoryReader object instead. That did stop the code from crashing.
However, my problem is still there, but its not my fault, aside from the fact that I was trying to access the Deserialised values, even when they didn't exist since the function had failed. That's to do with the software I was trying to interface with, nothing I can do now.
Follow this question
Once you sign in you will be able to subscribe for any updates here