-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on deallocation of results from AWS service client calls in Unreal Engine 5.1 #2513
Comments
Hello @gamerdoku, Thank you very much for your submission. Could you please provide a sample code so i can best understand and reproduce your use case? Thank you very much for your time and collaboration. Sincerely, Yasmine. |
I am unable to get aws cpp sdk to link in Unreal when building with CUSTOM_MEMORY_MANAGEMENT=ON similar to #2122 issue where I added a comment as well. Here is the code that is causing the crash. Its nothing special. All code is written for Unreal Engine 5.1.
The various commented code shows the various trials without success that I have attempted. |
Hi @gamerdoku , while CUSTOM_MEMORY_MANAGEMENT with a custom memory allocator using Unreal is definitely recommended, based on the information provided, I also suggest to verify that the msvcrt library (aka Microsoft Visual C++ Redistributable) version used by both the SDK build and your instance of Unreal engine is the same. If you have your toolchain (i.e. MSVS) updated, all applications sharing the MSVS redistributable runtime shall use the same library version in order to avoid ABI issues. Best regards, |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Your suggestion helped me a lot. Although I was using the right toolchain I was building using I checked UE5.1 and it builds using 17. Rebuilding aws sdk with CUSTOM_MEMORY_MANAGEMENT set and using a custom memory manager class I was able to resolve the issue. Closing issue as resolved. |
|
Is it possible you can share your solution in more detail? I am running into something similar when trying to use the AWS SDK with Unreal 5.2 |
Following are the cmake parameters I rely on.
|
Thanks for this, however CMAKE is not letting me build due to a conflict between RTC and O2 flags, did you come across this as well? |
I did not run into this or I do not remember. Make sure to add --recurse-submodules when you clone. Not sure if I can help more. |
Describe the bug
I am able to successfully build and link aws cpp sdk for Windows in Unreal Engine 5.1 .
Using CUSTOM_MEMORY_MANAGEMENT=OFF, as with that set ON, I am running into "Entry point not found issue".
I am using Cognito Identity to getId and getCredentialsForId call from cognito identity client.
Expected Behavior
Works without crashing the process.
Current Behavior
Reproduction Steps
Build Aws-cpp-sdk for windows using
Integrate into Unreal Engine 5.1 as a plugin.
Make a call to cognito identity service getId.
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.67
Compiler and Version used
Visual Studio 17 2022
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: