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"

Exception in ExtMemoryPool::initTLS(void). No references to user code in call stack.

Our game crashes in reproducible scenarios. But the call stack has no references to our own code. It's just UE4 core ".dll" files all the way down. Crash is present in packaged game, as well as while running in editor.

Clearly our code is doing something, somewhere, that milliseconds later in execution, upsets UE4 engine code. Unfortunately, since the crash doesn't happen while executing our code, breakpoints, call stacks, etc, don't provide any clues as to what part of out code is causing problems.

I've posted the full call stack below. Does anyone have any ideas as to the type of actions that might be upsetting the ExtMemoryPool::initTLS(void) function?

 Exception thrown at 0x00007FF92DC6370A (UE4Editor-Core.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
 UE4Editor-Core.dll!rml::internal::ExtMemoryPool::initTLS(void)    Unknown
 UE4Editor-Core.dll!scalable_realloc()    Unknown
 UE4Editor-Core.dll!FMallocTBB::Realloc(void * Ptr, unsigned __int64 NewSize, unsigned int Alignment) Line 105    C++
 UE4Editor-Core.dll!FMemory::Realloc(void * Original, unsigned __int64 Count, unsigned int Alignment) Line 48    C++
 UE4Editor-Core.dll!TArray<wchar_t,FDefaultAllocator>::ResizeGrow(int OldNum) Line 2244    C++
 UE4Editor-Core.dll!FStatsUtils::ToEscapedFString(const wchar_t * Source) Line 2092    C++
 UE4Editor-Core.dll!FStatNameAndInfo::ToLongName(FName InStatName, const char * InGroup, const char * InCategory, const wchar_t * InDescription) Line 734    C++
 UE4Editor-Core.dll!FStartupMessages::AddMetadata(FName InStatName, const wchar_t * InStatDesc, const char * InGroupName, const char * InGroupCategory, const wchar_t * InGroupDesc, bool bShouldClearEveryFrame, EStatDataType::Type InStatType, bool bCycleStat, FWindowsPlatformMemory::EMemoryCounterRegion InMemoryRegion) Line 327    C++
 UE4Editor-Core.dll!FDynamicStats::CreateStatId<FStatGroup_STATGROUP_UObjects>(const FName StatNameOrDescription) Line 489    C++
 UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason(const FName InModuleName, EModuleLoadResult & OutFailureReason, const bool bWasReloaded) Line 369    C++
 UE4Editor-Core.dll!FModuleManager::LoadModule(const FName InModuleName, const bool bWasReloaded) Line 338    C++
 UE4Editor-Core.dll!FModuleManager::LoadModuleChecked(const FName InModuleName, const bool bWasReloaded) Line 349    C++
 UE4Editor-UnrealEd.dll!UEditorEngine::Tick(float DeltaSeconds, bool bIdleMode) Line 1780    C++
 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick(float DeltaSeconds, bool bIdleMode) Line 396    C++
 UE4Editor.exe!FEngineLoop::Tick() Line 3296    C++
 UE4Editor.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow) Line 166    C++
 UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 199    C++
Product Version: UE 4.18
more ▼

asked Feb 23 '18 at 01:47 AM in C++ Programming

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

its weird... two thing weird about this crash.. one is engine try to allocate memory. two engine try to load a module or try to create an object... im not sure why engine try to load his module in runtime (because i assume modules should be loaded during startup)...

Maybe you using a module (like editor module?) which is not allowed to be used in packaged game?

more ▼

answered Feb 28 '18 at 08:39 AM

avatar image

1.5k 15 9 34

avatar image JD-SL Mar 01 '18 at 12:04 AM

There's a third weird thing about this crash. The module that the engine is trying to load is different every time we reproduce the crash.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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