Page 1 of 1

[0.13.0] File system error on in-game mod update

Posted: Mon Jun 27, 2016 9:05 pm
by Dev-iL
Steps to reproduce:
1) Have some old version of mod ("old" = one which has an update; e.g. rso-mod 1.2.7) in your mods folder AS AN EXTRACTED DIRECTORY (and not a .zip file).
2) Open game and try to update the mod.
3) Mod zip seems to be downloaded but the folder cannot be deleted (I guess game is expecting a file and not a directory).
4) Crash.
5) When you try to open the game again, it says "duplicate mod".

Relevant screenshot:
Image

Code: Select all

464.212 Info ModPortal.cpp:159: Downloading /api/downloads/data/mods/34/rso-mod_2.0.0.zip?username=Dev-iL&token=<private> to E:/Games\Factorio\temp\rso-mod_2.0.0.zip
 464.218 Info HttpSharedState.cpp:42: Downloading https://mods.factorio.com/api/downloads/data/mods/34/rso-mod_2.0.0.zip?username=Dev-iL&token=<private>
 465.121 Info HttpSharedState.cpp:90: Status code: 200
 465.128 Info AppManager.cpp:561: Restarting Factorio
1082.943 Warning FileUtil.cpp:260: E:/Games\Factorio\mods\rso-mod_1.2.7 was read only, the read only flag had to be removed so it can be deleted.
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-f90ugh\libraries\stackwalker\stackwalker.cpp (906): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-f90ugh\src\util\logger.cpp (328): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-f90ugh\src\util\logger.cpp (382): Logger::logStacktrace
c:\cygwin64\tmp\factorio-f90ugh\src\util\crashhandler.cpp (84): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-f90ugh\src\util\crashhandler.cpp (136): CrashHandler::TerminateHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\terminate.cpp (49): terminate
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (756): FindHandler
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (449): __InternalCxxFrameHandler
f:\dd\vctools\crt\vcruntime\src\eh\amd64\trnsctrl.cpp (186): __CxxFrameHandler3
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF98209AFD)
00007FFF98209AFD (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF98194FE9)
00007FFF98194FE9 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF98208C0A)
00007FFF98208C0A (ntdll): (filename not available): KiUserExceptionDispatcher
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF949D1F28)
00007FFF949D1F28 (KERNELBASE): (filename not available): RaiseException
f:\dd\vctools\crt\vcruntime\src\eh\throw.cpp (136): _CxxThrowException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF77AB82BD2)
00007FF77AB82BD2 (Factorio): (filename not available): boost::detail::sp_counted_impl_p<boost::filesystem::filesystem_error::m_imp>::dispose
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF77AB84236)
00007FF77AB84236 (Factorio): (filename not available): boost::filesystem::detail::remove_all
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF77AB83E40)
00007FF77AB83E40 (Factorio): (filename not available): boost::filesystem::detail::remove
c:\cygwin64\tmp\factorio-f90ugh\src\util\fileutil.cpp (262): `FileUtil::remove'::`1'::catch$0
f:\dd\vctools\crt\vcruntime\src\eh\amd64\handlers.asm (50): _CallSettingFrame
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (1316): __CxxCallCatchBlock
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF982090E3)
00007FFF982090E3 (ntdll): (filename not available): RtlCaptureContext
c:\cygwin64\tmp\factorio-f90ugh\src\util\fileutil.cpp (256): FileUtil::remove
c:\cygwin64\tmp\factorio-f90ugh\src\util\fileutil.cpp (411): FileUtil::removeFilesScheduledForDeletionAtShutdown
c:\cygwin64\tmp\factorio-f90ugh\src\globalcontext.cpp (603): GlobalContext::~GlobalContext
c:\cygwin64\tmp\factorio-f90ugh\src\mainloop.cpp (730): MainLoop::run
c:\cygwin64\tmp\factorio-f90ugh\src\main.cpp (725): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (255): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF95E78102)
00007FFF95E78102 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF981BC5B4)
00007FFF981BC5B4 (ntdll): (filename not available): RtlUserThreadStart
1095.249 Error Util.cpp:77: 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.13.0] File system error on in-game mod update

Posted: Tue Jun 28, 2016 12:19 pm
by kovarex
Thanks for the report, it is fixed for 0.13.1