UE4.15 crashes during autosave [Linux]

Build on Linux, from Github

When autosave is prompted, near the end of it, a crash happens.

This isn’t the only circumstance, UE4 crashes for me, as it also does when creating a new project and during cooking.

Log from command line:

[2017.05.05-08.02.29:343][498]LogSavePackage: Save=54.63ms
[2017.05.05-08.02.29:343][498]LogSavePackage: Moving '../../../../Documents/Unreal Projects/Basic/Saved/Minimal_Default_Auto117E870251D050A050002013B9C6EDCAB.tmp' to '../../../../Documents/Unreal Projects/Basic/Saved/Autosaves/Game/StarterContent/Maps/Minimal_Default_Auto1.umap'
[2017.05.05-08.02.29:343][498]LogSavePackage:Display: Finished SavePackage ../../../../Documents/Unreal Projects/Basic/Saved/Autosaves/Game/StarterContent/Maps/Minimal_Default_Auto1.umap
[2017.05.05-08.02.29:344][498]LogFileHelpers: Editor autosave (incl. sublevels) for '/Game/StarterContent/Maps/Minimal_Default' took 0.070
[2017.05.05-08.02.29:344][498]LogFileHelpers: Editor autosave (incl. sublevels) for all levels took 0.070
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  323230
  Current serial number in output stream:  323230
Assertion failed: IsInRenderingThread() [File:/home/linkus/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 42] 
[Callstack]  00  0x00007ffb7ad1ffcf  FLinuxPlatformStackWalk::CaptureStackBackTrace(unsigned long long*, unsigned int, void*)
[Callstack]  01  0x00007ffb7ac01f86  FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*)
[Callstack]  02  0x00007ffb7ad24e54  FDebug::LogAssertFailedMessage(char const*, char const*, int, wchar_t const*, ...)
[Callstack]  03  0x00007ffb74f1453b  FRenderResource::ReleaseResource()
[Callstack]  04  0x00007ffb74f1ea5d  FDynamicVertexBufferPool::~FDynamicVertexBufferPool()
[Callstack]  05  0x00007ffb74f17697  FGlobalDynamicVertexBuffer::~FGlobalDynamicVertexBuffer()
[Callstack]  06  0x00007ffb701b46c0  /usr/lib/libc.so.6(+0x366c0) [0x7ffb701b46c0]
[Callstack]  07  0x00007ffb701b471a  /usr/lib/libc.so.6(+0x3671a) [0x7ffb701b471a]
[Callstack]  08  0x00007ffb6dc8d5b8  /usr/lib/libX11.so.6(+0x445b8) [0x7ffb6dc8d5b8]
[Callstack]  09  0x00007ffb6dc8d6ed  /usr/lib/libX11.so.6(_XError+0x11d) [0x7ffb6dc8d6ed]
[Callstack]  10  0x00007ffb6dc8a617  /usr/lib/libX11.so.6(+0x41617) [0x7ffb6dc8a617]
[Callstack]  11  0x00007ffb6dc8a6d5  /usr/lib/libX11.so.6(+0x416d5) [0x7ffb6dc8a6d5]
[Callstack]  12  0x00007ffb6dc8afd5  /usr/lib/libX11.so.6(_XEventsQueued+0x55) [0x7ffb6dc8afd5]
[Callstack]  13  0x00007ffb6dc6d37a  /usr/lib/libX11.so.6(XFlush+0x1a) [0x7ffb6dc6d37a]
[Callstack]  14  0x00007ffb7b07917c  /home/linkus/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x73217c) [0x7ffb7b07917c]
[Callstack]  15  0x00007ffb7acdab0b  FLinuxApplication::RemoveRevertFocusWindow(SDL_Window*)
[Callstack]  16  0x00007ffb7ad25061  FLinuxWindow::Destroy()
[Callstack]  17  0x00007ffb744248ad  FSlateApplication::PrivateDestroyWindow(TSharedRef<SWindow, (ESPMode)0> const&)
[Callstack]  18  0x00007ffb7441e3f8  FSlateApplication::DestroyWindowsImmediately()
[Callstack]  19  0x00007ffb7441df91  FSlateApplication::RequestDestroyWindow(TSharedRef<SWindow, (ESPMode)0>)
[Callstack]  20  0x00007ffb73df439a  SWindow::RequestDestroyWindow()
[Callstack]  21  0x00007ffb724418a1  FFeedbackContextEditor::FinalizeSlowTask()
[Callstack]  22  0x00007ffb7ade3cb5  FSlowTask::Destroy()
[Callstack]  23  0x00007ffb72684082  FPackageAutoSaver::AttemptAutoSave()
[Callstack]  24  0x00007ffb729c8544  UUnrealEdEngine::Tick(float, bool)
[Callstack]  25  0x0000000000420f01  FEngineLoop::Tick() [Runtime/Core/Public/Stats/Stats2.h, line 1686]
[Callstack]  26  0x000000000042546a  GuardedMain(wchar_t const*) [/home/linkus/UnrealEngine/Engine/Source/Runtime/Launch/Private/Launch.cpp, line 166]
[Callstack]  27  0x00007ffb70dd20b6  CommonLinuxMain(int, char**, int (*)(wchar_t const*))
[Callstack]  28  0x00007ffb7019e511  /usr/lib/libc.so.6(__libc_start_main+0xf1) [0x7ffb7019e511]
[Callstack]  29  0x00000000004153ba  /home/linkus/UnrealEngine/Engine/Binaries/Linux/UE4Editor(_start+0x2a) [0x4153ba]

[2017.05.05-08.02.29:445][498]LogLinux:Error: appError called: Assertion failed: Assertion failed: IsInRenderingThread() [File:/home/linkus/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 42] 


Signal 11 caught.
Malloc Size=131076 LargeMemoryPoolOffset=131092 
CommonLinuxCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=196655 
[2017.05.05-08.02.29:475][498]LogCrashTracker: 


[2017.05.05-08.02.29:475][498]LogLinux: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to write memory at address 0x0000000000000003

[2017.05.05-08.02.29:476][498]LogLinux: Assertion failed: Assertion failed: IsInRenderingThread() [File:/home/linkus/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 42] 



[Callstack]  00  0x00007ffb7ad1ffcf  FLinuxPlatformStackWalk::CaptureStackBackTrace(unsigned long long*, unsigned int, void*)
[Callstack]  01  0x00007ffb7ac01f86  FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*)
[Callstack]  02  0x00007ffb7ace0be2  FLinuxCrashContext::CaptureStackTrace()
[Callstack]  03  0x00007ffb70dd11f0  CommonLinuxCrashHandler(FGenericCrashContext const&)
[Callstack]  04  0x00007ffb7ace53a5  PlatformCrashHandler(int, siginfo_t*, void*)
[Callstack]  05  0x00007ffb80a0ffe0  /usr/lib/libpthread.so.0(+0x11fe0) [0x7ffb80a0ffe0]
[Callstack]  06  0x00007ffb7abf5a7b  FGenericPlatformMisc::RaiseException(unsigned int)
[Callstack]  07  0x00007ffb7acef13f  FOutputDeviceLinuxError::Serialize(wchar_t const*, ELogVerbosity::Type, FName const&)
[Callstack]  08  0x00007ffb7adc8c24  FOutputDevice::Logf(wchar_t const*, ...)
[Callstack]  09  0x00007ffb7ad24c5a  FDebug::AssertFailed(char const*, char const*, int, wchar_t const*, ...)
[Callstack]  10  0x00007ffb74f14579  FRenderResource::ReleaseResource()
[Callstack]  11  0x00007ffb74f1ea5d  FDynamicVertexBufferPool::~FDynamicVertexBufferPool()
[Callstack]  12  0x00007ffb74f17697  FGlobalDynamicVertexBuffer::~FGlobalDynamicVertexBuffer()
[Callstack]  13  0x00007ffb701b46c0  /usr/lib/libc.so.6(+0x366c0) [0x7ffb701b46c0]
[Callstack]  14  0x00007ffb701b471a  /usr/lib/libc.so.6(+0x3671a) [0x7ffb701b471a]
[Callstack]  15  0x00007ffb6dc8d5b8  /usr/lib/libX11.so.6(+0x445b8) [0x7ffb6dc8d5b8]
[Callstack]  16  0x00007ffb6dc8d6ed  /usr/lib/libX11.so.6(_XError+0x11d) [0x7ffb6dc8d6ed]
[Callstack]  17  0x00007ffb6dc8a617  /usr/lib/libX11.so.6(+0x41617) [0x7ffb6dc8a617]
[Callstack]  18  0x00007ffb6dc8a6d5  /usr/lib/libX11.so.6(+0x416d5) [0x7ffb6dc8a6d5]
[Callstack]  19  0x00007ffb6dc8afd5  /usr/lib/libX11.so.6(_XEventsQueued+0x55) [0x7ffb6dc8afd5]
[Callstack]  20  0x00007ffb6dc6d37a  /usr/lib/libX11.so.6(XFlush+0x1a) [0x7ffb6dc6d37a]
[Callstack]  21  0x00007ffb7b07917c  /home/linkus/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x73217c) [0x7ffb7b07917c]
[Callstack]  22  0x00007ffb7acdab0b  FLinuxApplication::RemoveRevertFocusWindow(SDL_Window*)
[Callstack]  23  0x00007ffb7ad25061  FLinuxWindow::Destroy()
[Callstack]  24  0x00007ffb744248ad  FSlateApplication::PrivateDestroyWindow(TSharedRef<SWindow, (ESPMode)0> const&)
[Callstack]  25  0x00007ffb7441e3f8  FSlateApplication::DestroyWindowsImmediately()
[Callstack]  26  0x00007ffb7441df91  FSlateApplication::RequestDestroyWindow(TSharedRef<SWindow, (ESPMode)0>)
[Callstack]  27  0x00007ffb73df439a  SWindow::RequestDestroyWindow()
[Callstack]  28  0x00007ffb724418a1  FFeedbackContextEditor::FinalizeSlowTask()
[Callstack]  29  0x00007ffb7ade3cb5  FSlowTask::Destroy()
[Callstack]  30  0x00007ffb72684082  FPackageAutoSaver::AttemptAutoSave()
[Callstack]  31  0x00007ffb729c8544  UUnrealEdEngine::Tick(float, bool)
[Callstack]  32  0x0000000000420f01  FEngineLoop::Tick() [Runtime/Core/Public/Stats/Stats2.h, line 1686]
[Callstack]  33  0x000000000042546a  GuardedMain(wchar_t const*) [/home/linkus/UnrealEngine/Engine/Source/Runtime/Launch/Private/Launch.cpp, line 166]
[Callstack]  34  0x00007ffb70dd20b6  CommonLinuxMain(int, char**, int (*)(wchar_t const*))
[Callstack]  35  0x00007ffb7019e511  /usr/lib/libc.so.6(__libc_start_main+0xf1) [0x7ffb7019e511]
[Callstack]  36  0x00000000004153ba  /home/linkus/UnrealEngine/Engine/Binaries/Linux/UE4Editor(_start+0x2a) [0x4153ba]

[2017.05.05-08.02.29:486][498]LogExit: Executing StaticShutdownAfterError
Malloc Size=60365 LargeMemoryPoolOffset=257037 
Using binned.
sh: xdg-user-dir: command not found
LogPlatformFile: Not using cached  wrapper
LogInit:Display: RandInit(1335318080) SRandInit(1335318080).
LogTaskGraph: Started task graph with 4 named threads and 7 total threads with 1 sets of task threads.
LogInit: Build: ++UE4+Release-4.15-CL-0
LogInit: Engine Version: 4.15.2-0+++UE4+Release-4.15
LogInit: Compatible Engine Version: 4.15.0-0+++UE4+Release-4.15
LogInit: Net CL: 0
LogInit: Compiled (64-bit): May  3 2017 21:11:26
LogInit: Compiled with Clang: 3.5.2 (tags/RELEASE_352/final)
LogInit: Build Configuration: Shipping
LogInit: Branch Name: ++UE4+Release-4.15
LogInit: Command line:  -Abslog=/home/linkus/Documents/Unreal Projects/Basic/Saved/Logs/Basic-CRC.log /home/linkus/Documents/Unreal Projects/Basic/Saved/Crashes/crashinfo-Basic-pid-8988-17EA0D161D050A05000201E69C717F17/
LogInit: Base directory: /home/linkus/UnrealEngine/Engine/Binaries/Linux/
LogInit: Installed Engine Build: 1
LogInit: Presizing for max 100000 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
LogInit: Object subsystem initialized
[2017.05.05-08.02.29:601][  0]LogInit: Linux hardware info:
[2017.05.05-08.02.29:601][  0]LogInit:  - we are the first instance of this executable
[2017.05.05-08.02.29:601][  0]LogInit:  - this process' id (pid) is 9591, parent process' id (ppid) is 8988
[2017.05.05-08.02.29:601][  0]LogInit:  - we are not running under debugger
[2017.05.05-08.02.29:601][  0]LogInit:  - machine network name is 'LINKUSSES'
[2017.05.05-08.02.29:601][  0]LogInit:  - user name is 'linkus' (linkus)
[2017.05.05-08.02.29:601][  0]LogInit:  - we're logged in locally
[2017.05.05-08.02.29:601][  0]LogInit:  - we're running with rendering
[2017.05.05-08.02.29:601][  0]LogInit:  - CPU: GenuineIntel 'Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz' (signature: 0x506E3)
[2017.05.05-08.02.29:601][  0]LogInit:  - Number of physical cores available for the process: 4
[2017.05.05-08.02.29:601][  0]LogInit:  - Number of logical cores available for the process: 4
[2017.05.05-08.02.29:601][  0]LogInit:  - Cache line size: 64
[2017.05.05-08.02.29:601][  0]LogInit:  - Memory allocator used: binned
[2017.05.05-08.02.29:601][  0]LogLinux: Skipped benchmarking clocks because the engine is running in a standalone program mode - CLOCK_REALTIME will be used.
[2017.05.05-08.02.29:601][  0]LogInit: Linux-specific commandline switches:
[2017.05.05-08.02.29:601][  0]LogInit:  -nodwarf (currently OFF): suppress parsing of DWARF debug info (callstacks will be generated faster, but won't have line numbers)
[2017.05.05-08.02.29:601][  0]LogInit:  -ansimalloc - use malloc()/free() from libc (useful for tools like valgrind and electric fence)
[2017.05.05-08.02.29:601][  0]LogInit:  -jemalloc - use jemalloc for all memory allocation
[2017.05.05-08.02.29:601][  0]LogInit:  -binnedmalloc - use binned malloc  for all memory allocation
[2017.05.05-08.02.29:601][  0]LogInit:  -httpproxy=ADDRESS:PORT - redirects HTTP requests to a proxy (only supported if compiled with libcurl)
[2017.05.05-08.02.29:601][  0]LogInit:  -reuseconn - allow libcurl to reuse HTTP connections (only matters if compiled with libcurl)
[2017.05.05-08.02.29:601][  0]LogInit:  -virtmemkb=NUMBER - sets process virtual memory (address space) limit (overrides VirtualMemoryLimitInKB value from .ini)
[2017.05.05-08.02.29:601][  0]LogInit:  - Physical RAM available (not considering process quota): 16 GB (16077 MB, 16463136 KB, 16858251264 bytes)
[2017.05.05-08.02.29:601][  0]LogUObjectArray: 146 objects as part of root set at end of initial load.
[2017.05.05-08.02.29:601][  0]LogUObjectAllocator: 24096 out of 0 bytes used by permanent object pool.
[2017.05.05-08.02.29:601][  0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
[2017.05.05-08.02.29:601][  0]LogTextLocalizationManager: No translations for ('') exist, falling back to 'en' for localization and internationalization data.
[2017.05.05-08.02.29:602][  0]CrashReportClientLog: CrashReportClientVersion=1.0
[2017.05.05-08.02.29:602][  0]CrashReportClientLog: CrashReportReceiver disabled
[2017.05.05-08.02.29:602][  0]CrashReportClientLog: DataRouterUrl: https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data
[2017.05.05-08.02.29:602][  0]LogExit: Preparing to exit.
[2017.05.05-08.02.29:603][  0]LogObj: Freed 0b from 0 cluster array pools.
[2017.05.05-08.02.29:603][  0]LogExit: Object subsystem successfully closed.
[2017.05.05-08.02.29:603][  0]LogModuleManager: Shutting down and abandoning module CoreUObject (2)
[2017.05.05-08.02.29:603][  0]LogExit: Exiting.
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.

In particular, some assertion is failed

[2017.05.05-08.02.29:445][498]LogLinux:Error: appError called: Assertion failed: Assertion failed: IsInRenderingThread() [File:/home/linkus/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 42]

GPU: Geforce GTX 1050ti

CPU: intel i5-6600k x86_64

Kernel: 4.10.13-1 Linux-ARCH

16GB RAM

Hey Linkus000-

If you create a new project, does it crash during the first auto save? Is the reproduction in this case “1) Open Project 2) Prompt Save 3) Crash”? If you’re doing anything else within the project prior to the crash, please let me know as well.

Hey Linkus000-

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Cheers