x

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"

Crash while reallocating memory

Hi,

I need help with crash. Please help in anyway you can. I've posted what I think is relevant, but please let me know if you need something more to help me.

RJsonObject.h

 UCLASS(Blueprintable, BlueprintType)
 class ROBOTBUILDER_API URJsonObject : public UObject
 {
     GENERATED_BODY()
 
 public:
     FJsonObject JsonObject;
 
     UFUNCTION(BlueprintPure, meta = (DisplayName = "ToString (JsonObject)", CompactNodeTitle = "->", BlueprintAutocast), Category = "Utilities|String")
     static FString ToString(URJsonObject* InJsonObject);
     UFUNCTION(BlueprintPure, meta = (DisplayName = "ToText (JsonObject)", CompactNodeTitle = "->", BlueprintAutocast), Category = "Utilities|String")
     static FText ToText(URJsonObject* InJsonObject);
 };

RJsonObject.cpp

 void URJsonObject::SetObjectArrayField(const FString& FieldName, const TArray<URJsonObject*>& Value)
 {
     TArray<TSharedPtr<FJsonValue>> Array;
     for (URJsonObject* val : Value)
         Array.Add(TSharedPtr<FJsonValue>(new FJsonValueObject(TSharedPtr<FJsonObject>(&val->JsonObject))));
     JsonObject.SetArrayField(FieldName, Array);
 }
 
 FString URJsonObject::ToString(URJsonObject* InJsonObject)
 {
     FString str;
     TSharedRef<FJsonObject> SharedPtr = MakeShareable(&InJsonObject->JsonObject);
     TSharedRef<TJsonWriter<>> Writer = TJsonWriterFactory<>::Create(&str);
     FJsonSerializer::Serialize(SharedPtr, Writer);
     return str;
 }

Blueprint nodes

 Begin Object Class=K2Node_MacroInstance Name="K2Node_MacroInstance_0"
    MacroGraphReference=(MacroGraph=EdGraph'/Engine/EditorBlueprintResources/StandardMacros.StandardMacros:ForEachLoop',GraphBlueprint=Blueprint'/Engine/EditorBlueprintResources/StandardMacros.StandardMacros',GraphGuid=99DBFD5540A796041F72A5A9DA655026)
    ResolvedWildcardType=(PinCategory="object",PinSubCategoryObject=Class'/Script/RobotBuilder.RJsonObject',bIsArray=True)
    NodePosX=704
    NodeGuid=8ECB441B403B7C743D3B03BE74412C3E
    CustomProperties Pin (PinId=0DFD528E4E0D67C0671DD39C1C538D91,PinName="Exec",PinType.PinCategory="exec",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_918 2343E11B43540F4F95AF158BCB056F9C,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=C57B0E1E4D6A619040E3F2BA2648CA10,PinName="Array",PinType.PinCategory="object",PinType.PinSubCategoryObject=Class'/Script/RobotBuilder.RJsonObject',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=True,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_918 78016C2B4EE9315051FDB4952FCA33FF,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=AF1D675249A5BECE7215ACBDD7AC7AAB,PinName="LoopBody",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_250 23568AA74BE16124A65CA8A82E27AECE,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=720C61A74E1AC180D8E055AED5F84B27,PinName="Array Element",Direction="EGPD_Output",PinType.PinCategory="object",PinType.PinSubCategoryObject=Class'/Script/RobotBuilder.RJsonObject',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_795 AC507BBA4E9FDE910C2536BD9678B0BB,K2Node_Knot_0 5C4756944CB6954E0ECD89A15C2AD6F6,K2Node_CallFunction_128 0734504743EFCB295307F69FDC187E99,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=7E8AA3ED41B36A282C7098AB03BC9312,PinName="Array Index",Direction="EGPD_Output",PinType.PinCategory="int",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="0",AutogeneratedDefaultValue="0",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=5C05232C4C61DE20D4761DA85F3EAF27,PinName="Completed",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
 End Object
 Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_128"
    bIsPureFunc=True
    FunctionReference=(MemberParent=Class'/Script/RobotBuilder.RJsonObject',MemberName="ToString")
    NodePosX=1376
    NodePosY=96
    NodeGuid=18E827654EE1B8D51FFAC2AA2A74ECE5
    CustomProperties Pin (PinId=18F62003447D165890C569A85B7253D3,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nRJson Object Reference",PinType.PinCategory="object",PinType.PinSubCategoryObject=Class'/Script/RobotBuilder.RJsonObject',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultObject="/Script/RobotBuilder.Default__RJsonObject",PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=0734504743EFCB295307F69FDC187E99,PinName="InJsonObject",PinToolTip="In Json Object\nRJson Object Reference",PinType.PinCategory="object",PinType.PinSubCategoryObject=Class'/Script/RobotBuilder.RJsonObject',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_MacroInstance_0 720C61A74E1AC180D8E055AED5F84B27,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=306916F94B960ADCEE08B2A52CDA35FC,PinName="ReturnValue",PinToolTip="Return Value\nString",Direction="EGPD_Output",PinType.PinCategory="string",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_250 2F113D1F4B8D4C7F67B8B5A87DE82965,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
 End Object
 Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_250"
    FunctionReference=(MemberParent=Class'/Script/Engine.KismetSystemLibrary',MemberName="PrintString")
    NodePosX=1504
    NodeGuid=7A008E874D41C7272F18EBBE3061EC0E
    AdvancedPinDisplay=Hidden
    EnabledState=DevelopmentOnly
    CustomProperties Pin (PinId=23568AA74BE16124A65CA8A82E27AECE,PinName="execute",PinToolTip="\nExec",PinType.PinCategory="exec",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_796 4376B5F544F5570C6B3F0EA1A12F4CAF,K2Node_MacroInstance_0 AF1D675249A5BECE7215ACBDD7AC7AAB,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=EACC69694609B2AD10FAD682D68B76C1,PinName="then",PinToolTip="\nExec",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=0C689CBA43A95BD17DBB348A164E5906,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nKismet System Library Reference",PinType.PinCategory="object",PinType.PinSubCategoryObject=Class'/Script/Engine.KismetSystemLibrary',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultObject="/Script/Engine.Default__KismetSystemLibrary",PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=E88859F2471284BF87F945BDA1386291,PinName="WorldContextObject",PinToolTip="World Context Object\nObject Reference",PinType.PinCategory="object",PinType.PinSubCategoryObject=Class'/Script/CoreUObject.Object',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=2F113D1F4B8D4C7F67B8B5A87DE82965,PinName="InString",PinToolTip="In String\nString\n\nThe string to log out",PinType.PinCategory="string",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="Hello",AutogeneratedDefaultValue="Hello",LinkedTo=(K2Node_CallFunction_128 306916F94B960ADCEE08B2A52CDA35FC,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,)
    CustomProperties Pin (PinId=0723DEF74A99BC57E554AC9C0A95F0C1,PinName="bPrintToScreen",PinToolTip="Print to Screen\nBoolean\n\nWhether or not to print the output to the screen",PinType.PinCategory="bool",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="true",AutogeneratedDefaultValue="true",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=True,)
    CustomProperties Pin (PinId=9310C0F14932BB8018559FAD46E86956,PinName="bPrintToLog",PinToolTip="Print to Log\nBoolean\n\nWhether or not to print the output to the log",PinType.PinCategory="bool",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="true",AutogeneratedDefaultValue="true",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=True,)
    CustomProperties Pin (PinId=D60DB6B84DBD808BC32C9A9F391DFF6E,PinName="TextColor",PinToolTip="Text Color\nLinear Color Structure\n\nWhether or not to print the output to the console",PinType.PinCategory="struct",PinType.PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.LinearColor',PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="(R=0.000000,G=0.660000,B=1.000000,A=1.000000)",AutogeneratedDefaultValue="(R=0.000000,G=0.660000,B=1.000000,A=1.000000)",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=True,)
    CustomProperties Pin (PinId=6465D7EB4DFA55E204154593DD946034,PinName="Duration",PinToolTip="Duration\nFloat\n\nThe display duration (if Print to Screen is True). Using negative number will result in loading the duration time from the config.",PinType.PinCategory="float",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="2.000000",AutogeneratedDefaultValue="2.000000",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=True,)
 End Object
 

Call Stack

 UE4Editor-Core.dll!rml::internal::ExtMemoryPool::initTLS(void)
 UE4Editor-Core.dll!scalable_realloc()
 UE4Editor-Core.dll!FMallocTBB::Realloc(void * Ptr, unsigned __int64 NewSize, unsigned int Alignment)
 UE4Editor-Messaging.dll!TArray<TSparseArrayElementOrFreeListLink<TAlignedBytes<40,8> >,FDefaultAllocator>::ResizeGrow(int OldNum)
 UE4Editor-Messaging.dll!TSet<TPair<FMessageAddress,TSharedPtr<FMessageTracerAddressInfo,0> >,TDefaultMapKeyFuncs<FMessageAddress,TSharedPtr<FMessageTracerAddressInfo,0>,0>,FDefaultSetAllocator>::Emplace<TPairInitializer<FMessageAddress const & __ptr64,TSharedPtr<FMessageTracerAddressInfo,0> && __ptr64> >(TPairInitializer<FMessageAddress const &,TSharedPtr<FMessageTracerAddressInfo,0> &&> && Args, bool * bIsAlreadyInSetPtr)
 UE4Editor-Messaging.dll!FMessageTracer::TraceAddedRecipient::__l2::<lambda>()
 UE4Editor-Messaging.dll!FMessageTracer::Tick(float DeltaTime)
 UE4Editor-Core.dll!FTicker::Tick(float DeltaTime)
 UE4Editor.exe!FEngineLoop::Tick()
 UE4Editor.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow)
 UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow)
 [External Code]
Product Version: UE 4.13
Tags:
more ▼

asked Oct 19 '16 at 04:28 AM in C++ Programming

avatar image

xxAtrain223
16 1 2 6

(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