Skip to content
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

Error cause aws custom memory management #27

Open
Budi-9 opened this issue Dec 11, 2019 · 2 comments
Open

Error cause aws custom memory management #27

Budi-9 opened this issue Dec 11, 2019 · 2 comments

Comments

@Budi-9
Copy link

Budi-9 commented Dec 11, 2019

aws-sdk-cpp version 1.7.240

aws-sdk-cpp/aws-cpp-sdk-core/CMakeLists.txt

if(CUSTOM_MEMORY_MANAGEMENT OR (BUILD_SHARED_LIBS AND NOT DEFINED CUSTOM_MEMORY_MANAGEMENT))
    set(USE_AWS_MEMORY_MANAGEMENT ON)
    message(STATUS "Custom memory management enabled; stl objects now using custom allocators")
else()
    set(USE_AWS_MEMORY_MANAGEMENT OFF)
    message(STATUS "Custom memory management disabled")
endif()

Can't build CUSTOM_MEMORY_MANAGEMENT ON.
AWSCore.cpp

.
.
Aws::InitSDK(options); // Error allocation memory

Can't compile when CUSTOM_MEMORY_MANAGEMENT OFF.

1>Building 2 actions with 12 processes...
1>  [1/2] UE4Editor-GameLiftClientSDK.dll
1>     Creating library D:\Projects\UnrealProjects\OnlineGame\Plugins\GameLiftClientSDK\Intermediate\Build\Win64\UE4Editor\Development\GameLiftClientSDK\UE4Editor-GameLiftClientSDK.suppressed.lib and object D:\Projects\UnrealProjects\OnlineGame\Plugins\GameLiftClientSDK\Intermediate\Build\Win64\UE4Editor\Development\GameLiftClientSDK\UE4Editor-GameLiftClientSDK.suppressed.exp
1>Module.GameLiftClientSDK.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Aws::GameLift::Model::DescribeGameSessionQueuesRequest::SetNames(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class Aws::Allocator<char> >,class Aws::Allocator<class std::basic_string<char,struct std::char_traits<char>,class Aws::Allocator<char> > > > const &)" (__imp_?SetNames@DescribeGameSessionQueuesRequest@Model@GameLift@Aws@@QEAAXAEBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$Allocator@D@Aws@@@std@@V?$Allocator@V?$basic_string@DU?$char_traits@D@std@@V?$Allocator@D@Aws@@@std@@@Aws@@@std@@@Z) referenced in function "public: enum EActivateStatus __cdecl UGameLiftDescribeGameSessionQueues::Activate(void)" (?Activate@UGameLiftDescribeGameSessionQueues@@QEAA?AW4EActivateStatus@@XZ)
1>D:\Projects\UnrealProjects\OnlineGame\Plugins\GameLiftClientSDK\Binaries\Win64\UE4Editor-GameLiftClientSDK.dll : fatal error LNK1120: 1 unresolved externals
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat" OnlineGameEditor Win64 Development -Project="D:\Projects\UnrealProjects\OnlineGame\OnlineGame.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "OnlineGame.vcxproj" -- FAILED.
@chris-gong
Copy link
Contributor

chris-gong commented Dec 12, 2019

I'm not sure if this has to do with custom memory management, but I have seen those errors before and I have resolved them before by adding specific flags in the LinuxToolChain.cs file in the engine source code.

I cover that in this video from 0:50-2:22

@Budi-9
Copy link
Author

Budi-9 commented Dec 15, 2019

I have never tried that. is it possible that this bug only occurs on windows platforms?

When i'm rewrite the code with aws-sdk-cpp dll and code from 1.7.242. That bug it's gone. But i still want to test it on linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants