Page 1 of 1

[0.12.29] Crash when playing over remote desktop

Posted: Fri Apr 08, 2016 10:46 am
by blackbaro
Factorio runs well over remote desktop , however when going to the menu and/or reconnecting to the remote desktop session the game crashes.

The log:

319.025 Error CrashHandler.cpp:105: Exception Code: c0000002, Address: 00007FFB94AA1F28
319.026 Error CrashHandler.cpp:115: Exception Context:
rax=0000000000000000, rbx=00007ffb77700780, rcx=0000000000000000,
rdx=0000000000000000, rsi=0000013e8f9de6a0, rdi=0000013ecf3c6ac0,
rip=00007ffb94aa1f28, rsp=0000000d866ff8a0, rbp=0000013ecf3c6b40,
r8=0000000000000000, r9=0000000000000000, r10=0000000000000000,
r11=0000000000000000, r12=00007ff64c1b0000, r13=0000000000000000,
r14=0000013ec6ef0ac8, r15=0000013e900efd28
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-vbn8ul\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-vbn8ul\src\util\logger.cpp (306): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-vbn8ul\src\util\logger.cpp (360): Logger::logStacktrace
c:\cygwin64\tmp\factorio-vbn8ul\src\util\crashhandler.cpp (84): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-vbn8ul\src\util\crashhandler.cpp (125): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB94AF7E1E)
00007FFB94AF7E1E (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB9825D998)
00007FFB9825D998 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB98245B26)
00007FFB98245B26 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB98259AED)
00007FFB98259AED (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB981E4FE9)
00007FFB981E4FE9 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB981E6C94)
00007FFB981E6C94 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB94AA1F28)
00007FFB94AA1F28 (KERNELBASE): (filename not available): RaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB7772CFD4)
00007FFB7772CFD4 (d3d9): (filename not available): DebugSetMute
c:\cygwin64\tmp\factorio-vbn8ul\libraries\allegro\src\win\d3d_bmp.cpp (694): _al_d3d_refresh_texture_memory
c:\cygwin64\tmp\factorio-vbn8ul\libraries\allegro\src\win\d3d_disp.cpp (1155): _al_d3d_reset_device
c:\cygwin64\tmp\factorio-vbn8ul\libraries\allegro\src\win\d3d_disp.cpp (1564): d3d_display_thread_proc
c:\cygwin64\tmp\factorio-vbn8ul\libraries\allegro\src\threads.c (95): detached_thread_func_trampoline
c:\cygwin64\tmp\factorio-vbn8ul\libraries\allegro\src\win\wxthread.c (38): thread_proc_trampoline
f:\dd\vctools\crt\crtw32\startup\threadex.c (376): _callthreadstartex
f:\dd\vctools\crt\crtw32\startup\threadex.c (354): _threadstartex
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB98028102)
00007FFB98028102 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB9820C5B4)
00007FFB9820C5B4 (ntdll): (filename not available): RtlUserThreadStart
320.306 Error Util.cpp:78: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

Re: [0.12.29] Crash when playing over remote desktop

Posted: Sat Apr 09, 2016 10:05 pm
by TruePikachu
C0000002 means "Application failed to initialize properly," but the game had already been running (and it reports the issue).
What version of Windows is acting as the Remote Desktop server? If it's XP, I might be able to try to replicate the issue (and attach a debugger on the Windows side of things to see what call causes that).

Re: [0.12.29] Crash when playing over remote desktop

Posted: Mon Apr 11, 2016 9:44 am
by blackbaro
Windows 10 was hosting the RDP session (connecting from a win 7 machine)

Re: [0.12.29] Crash when playing over remote desktop

Posted: Tue Apr 26, 2016 1:22 pm
by Klonan
Thanks for the report,

Im not sure how to reproduce this, but will move to confirmed for now

Re: [0.12.29] Crash when playing over remote desktop

Posted: Tue Apr 26, 2016 2:08 pm
by kovarex
I consider this to be a minor issue/magic.

Re: [0.12.29] Crash when playing over remote desktop

Posted: Tue Jun 28, 2016 12:56 pm
by Vatharian
This may be caused by the fact that remote desktop uses another desktop session, than local. When you log out of RDP it kills the desktop session. Factorio may not like this behaviour.