Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Serializing Json causes crash

Serializing a Json to FString sometimes seams to crash my game. It can happen randomly on many occasions, I suspect it having something to do with framerate drops or when something is spawned:

 FString UArin_GameSave::GetTextToSave(
     TSharedPtr<FJsonObject> pJsonObject)
     FString ReturnedValue = "";
     //Validate JsonObject
     if (!pJsonObject.IsValid())
         UE_LOG(LogTemp, Log, TEXT("UArin_GameSave::GetTextToSave: LoadedDataslotData is invalid"));
         return "";
     //Prepare Serializing
     TSharedRef<TJsonWriter<>> Writer = TJsonWriterFactory<>::Create(&ReturnedValue);
         pJsonObject.ToSharedRef(),    //Data that gets serialized
         Writer);                    //The writer which outputs it to the ReturnedValue
     return ReturnedValue;    // <-- The crash report always reports this line

Does anyone have an idea what could be the cause?

Product Version: UE 4.21
more ▼

asked Mar 07 '19 at 08:43 AM in Bug Reports

avatar image

6 1 6

avatar image Raumgleiter Mar 07 '19 at 09:00 AM

The error message: Access violation - code c0000005 (first/second chance not available)

avatar image Raumgleiter Mar 07 '19 at 09:08 AM

An other theory of mine would be that the code somewhere somehow executes a SetField at the exact same time as the FJsonObject is serializing?

avatar image Jeff A ♦♦ STAFF Mar 14 '19 at 05:36 PM


We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.



(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question