Page 1 of 1

Mod Manager breaks on mod swap

Posted: Sat Oct 30, 2021 2:34 am
by garr150354839
It seems like the mod manager in-game is busted, and I don't know what's up.

Re: So, this happened.

Posted: Sat Oct 30, 2021 6:16 am
by Impatient

Re: Mod Manager breaks on mod swap

Posted: Wed Nov 03, 2021 7:27 pm
by Rseding91
Thanks for the report however the log file you provided doesn't show any crash and you haven't provided any way to reproduce what you think is going wrong.

Re: Mod Manager breaks on mod swap

Posted: Thu Nov 04, 2021 11:03 pm
by garr150354839
Rseding91 wrote:
Wed Nov 03, 2021 7:27 pm
Thanks for the report however the log file you provided doesn't show any crash and you haven't provided any way to reproduce what you think is going wrong.
Here's where the crash happens, at closing. I swap mods out, restart and this happens. Cannot figure out why, and no particular mod bricks it either.

Code: Select all

5249.587 Error CrashHandler.cpp:492: Exception Code: c0000005, Address: 0x00007ff7b9e19037
ModuleBase: 0x00007ff7b9cd0000, ImageSize: 01d81000, RelativeAddress: 00149037
5249.587 Error CrashHandler.cpp:498: Access Violation: Read at address 0000000000000318
5249.587 Error CrashHandler.cpp:512: Exception Context:
rax=0000000000000000, rbx=00000240b3b16310, rcx=00000240b3b16310,
rdx=0000000000000001, rsi=000000e4975def18, rdi=000000e4975deb28,
rip=00007ff7b9e19037, rsp=000000e4975dea80, rbp=000000e4975dec70,
 r8=0000000000000360,  r9=00000240b3b1602b, r10=0000000000000440,
r11=ffbf7dfcffffff1f, r12=2aaaaaaaaaaaaaab, r13=0000000000000000,
r14=ffffffffffffffff, r15=000002404c772678
5249.587 Crashed in D:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff7b9cd0000 - 0x00007ff7bba51000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-m7y3x7\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-m7y3x7\src\util\logger.cpp (545): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-m7y3x7\src\util\logger.cpp (552): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-m7y3x7\src\util\crashhandler.cpp (184): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-m7y3x7\src\util\crashhandler.cpp (541): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA58EB22D1)
00007FFA58EB22D1 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B4A405B)
00007FFA5B4A405B (ntdll): (filename not available): TpDbgSetLogRoutine
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B4A4B72)
00007FFA5B4A4B72 (ntdll): (filename not available): TpDbgSetLogRoutine
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B42A89E)
00007FFA5B42A89E (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B413626)
00007FFA5B413626 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B422EAA)
00007FFA5B422EAA (ntdll): (filename not available): RtlUnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B4282FF)
00007FFA5B4282FF (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B3B5A0A)
00007FFA5B3B5A0A (ntdll): (filename not available): RtlRestoreContext
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B42730E)
00007FFA5B42730E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-m7y3x7\src\runtimeerror.cpp (22): RuntimeError::checkLogStackTrace
c:\cygwin64\tmp\factorio-build-m7y3x7\src\runtimeerror.cpp (9): RuntimeError::RuntimeError
c:\cygwin64\tmp\factorio-build-m7y3x7\src\data\moddependency.cpp (18): throwMalformedDependency
c:\cygwin64\tmp\factorio-build-m7y3x7\src\data\moddependency.cpp (47): ModDependency::ModDependency
c:\cygwin64\tmp\factorio-build-m7y3x7\src\modportal\modrelease.cpp (28): ModRelease::ModRelease
c:\cygwin64\tmp\factorio-build-m7y3x7\src\modportal\modinfo.cpp (95): ModInfo::init
c:\cygwin64\tmp\factorio-build-m7y3x7\src\modportal\modinfo.cpp (60): ModInfo::ModInfo
c:\cygwin64\tmp\factorio-build-m7y3x7\src\modportal\modportal.cpp (447): <lambda_8d049a0b286ee499954ae6d722153046>::operator()
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\functional (15732480): std::_Func_impl_no_alloc<<lambda_8d049a0b286ee499954ae6d722153046>,std::vector<std::unique_ptr<ModInfo,std::default_delete<ModInfo> >,std::allocator<std::unique_ptr<ModInfo,std::default_delete<ModInfo> > > >,PropertyTree>::_Do_call
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\functional (16707566): std::_Func_impl_no_alloc<std::_Fake_no_copy_callable_adapter<<lambda_7daeebdf3cac05a4e5947848c8b6c684> >,std::vector<std::unique_ptr<ModInfo,std::default_delete<ModInfo> >,std::allocator<std::unique_ptr<ModInfo,std::default_delete<ModInfo> > > > >::_Do_call
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\future (556): std::_Packaged_state<std::vector<std::unique_ptr<ModInfo,std::default_delete<ModInfo> >,std::allocator<std::unique_ptr<ModInfo,std::default_delete<ModInfo> > > > __cdecl(void)>::_Call_immediate
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\ppltasks.h (1465): Concurrency::details::_PPLTaskHandle<unsigned char,Concurrency::task<unsigned char>::_InitialTaskHandle<void,<lambda_ef0293a35f78a85f0ecbfe644fef805a>,Concurrency::details::_TypeSelectorNoAsync>,Concurrency::details::_TaskProcHandle>::invoke
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\pplwin.h (160): Concurrency::details::_TaskProcHandle::_RunChoreBridge
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\pplwin.h (51): Concurrency::details::_DefaultPPLTaskScheduler::_PPLTaskChore::_Callback
f:\dd\vctools\crt\crtw32\stdcpp\thr\taskscheduler.cpp (158): Concurrency::details::`anonymous namespace'::_Task_scheduler_callback
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B3E95BA)
00007FFA5B3E95BA (ntdll): (filename not available): TpCallbackIndependent
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B396EF6)
00007FFA5B396EF6 (ntdll): (filename not available): EtwNotificationRegister
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5A2354E0)
00007FFA5A2354E0 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5B38485B)
00007FFA5B38485B (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
5251.729 Info CrashHandler.cpp:309: Executable CRC: 3412895544
5251.729 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
I can give you how to reproduce it, and that's clicking the confirm button in the mod manager after swapping out mods. Which ones? I don't have any clue since it will randomly crash for that specific mod and it won't the next time.
One fix I have found out about is by going into %APPDATA%/Roaming/Factorio/mods/mod-list.json and manually changing the value of the mod I want to change.

Re: Mod Manager breaks on mod swap

Posted: Fri Nov 05, 2021 1:02 am
by Rseding91
Ok, this may be fixed for the next release (I think so, but I wasn't able to reproduce the crash).

Re: Mod Manager breaks on mod swap

Posted: Fri Nov 05, 2021 4:45 pm
by garr150354839
Rseding91 wrote:
Fri Nov 05, 2021 1:02 am
Ok, this may be fixed for the next release (I think so, but I wasn't able to reproduce the crash).
Thanks! I am unable to reliably reproduce the crash either, or at the very least pinpoint what mod/mod set I enable/disable causes the crash, so at least you're not alone.