Access Violation Exception on String Delete/Deallocate when accessing AttributeValue #2302
-
I'm running into consistent Access Violation Exceptions on the Delete operator/deallocate when interacting with the properties returned from a Aws::DynamoDB::Model::QueryRequest query.
Commenting out the " Aws::String ResultStr = AttributeValue.GetS();" and returning a hardcoded string will make it and all other code work 100% of the time. And if I switch it instead to use a Json view like this:
It will crash the same way, but usually not the first time I execute the function. I can see that the data is all getting back just fine from when it does work, anyone have any ideas what I could be doing wrong? This code is being run inside Unreal Engine 5, which has its own memory management solution -- could they be conflicting? If so, how might I get around this? The data is all coming back from DynamoDB just fine, I don't mind cloning it into new objects or whatever workaround is needed, I just need the memory management stuff to stop blowing up. Edit: A (bad) workaround is:
Which will get past the error by causing a memory leak. If I do try to free the string I created, it goes back to the same crash during deallocation. I'm also running into the same issue when iterating over const Aws::VectorAws::String TriggerVector = AttributeValue.GetSS(); Attached an image of the stack when it blows up. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We don't currently support unreal engine. Can you reproduce this bug on its on with a minimal code sample? |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Please follow this feature request for the status of Unreal Engine support with this sdk: #2369