By using AWS re:Post, you agree to the Terms of Use

Questions tagged with Developer Tools

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Building the AWS C++ SDK with CUSTOM_MEMORY_MANAGEMENT on fails unit tests

I am trying to build the AWS C++ SDK to use with the Unreal game engine. I have been using it for a while, however after recently updating my Unreal plugin with the latest SDK components, I ran into issues (crashes) because Unreal has its own custom memory management which does not seem compatible with the AWS SDK's. To resolve this I have tried to override AWS's memory manager with one compatible with Unreal, by implementing `Aws::Utils::Memory::MemorySystemInterface` and calling `Aws::Utils::Memory::InitializeAWSMemorySystem(AWSMemoryManager);` This, however, doesn't work unless the SDK has been built with the `CUSTOM_MEMORY_MANAGEMENT` flag. So, I went back to the SDK and tried to build it with custom memory management on with the following commands: ``` cmake.exe "../aws-sdk-cpp" -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="core;firehose;cognito-identity" -DCUSTOM_MEMORY_MANAGEMENT=1 -DCPP_STANDARD=17 -DENABLE_UNITY_BUILD=1 MSBuild.exe ALL_BUILD.vcxproj -p:Configuration=Release ``` However, this seems to result in aws-core failing its unit tests. I get the following errors: ``` ...\AWS\sdk\aws-sdk-cpp\aws-cpp-sdk-core-tests\RunTests.cpp(40): error : Expected equality of these values: [...\AWS\sdk\membuild\aws-cpp-sdk-core-tests\aws-cpp-sdk-core-tests.vcxproj] memorySystem.GetCurrentOutstandingAllocations() Which is: 37 0ULL Which is: 0 ...\AWS\sdk\aws-sdk-cpp\aws-cpp-sdk-core-tests\RunTests.cpp(40): error : Expected equality of these values: [...\AWS\sdk\membuild\aws-cpp-sdk-core-tests\aws-cpp-sdk-core-tests.vcxproj] memorySystem.GetCurrentBytesAllocated() Which is: 3472 0ULL Which is: 0 ...\AWS\sdk\aws-sdk-cpp\aws-cpp-sdk-core-tests\RunTests.cpp(40): error : Value of: memorySystem.IsClean() [...\AWS\sdk\membuild\aws-cpp-sdk-core-tests\aws-cpp-sdk-core-tests.vcxproj] Actual: false Expected: true ``` Does anyone have any clue why these unit tests are failing and how I can go about resolving it?
0
answers
0
votes
25
views
asked a month ago

Lexbot not eliciting all slot values in conversation

I'm trying to automate the process of creating a lexbot that receives slot values and processes them in a lambda function. The creation of the bot and functions are completed and fine, when I check the amazon lex console, the bot has been created, the intents are correct and the slot elicitations are there. However, when I run the bot and type an utterance, the bot goes straight to fulfilment lambda function as opposed to asking for the other slot values. All the slots have the slot constraint 'required', I'm just not sure why they are not being elicited by the bot. I will attach the json response from list_slots below: ![json response of list slots](/media/postImages/original/IMzBaosX9_QYWsel9MzYy8tQ) Below I will attach images of the bot specifications from the console. ![slot values](/media/postImages/original/IM4GGdRJpRQgqML7zXFSxlCA) ![shows the lambda function is called on fulfillment](/media/postImages/original/IMdjLiIZ32TqyaBpVplSnN8Q) ![Example of test output](/media/postImages/original/IM6u9Bp-ruQ22K-CXsN43bzA) I will also attach the content of the boto3 request I used to create the the slot in the first place. ![Example of the boto3 request used to create the slot](/media/postImages/original/IMauJP2jvYRu6dPSBpUkKxEA) The following is an image of my intent, to show that the fulfilment code hook is enabled: ![Code that shows the creation of the intent](/media/postImages/original/IMkSN5QrZaSymUBAX29f0R7w) My question is, why is the bot not asking for the other slot values when all the configuration suggests it should do otherwise?
0
answers
0
votes
32
views
asked 2 months ago