Cargo Ships


Adds massive cargo ships to the game, that function similarly to trains. Also adds deep sea oil, oil platforms, tanker ships, train bridges and other water based content.

Content
22 days ago
0.16 - 2.0
219K
Transportation Logistics Trains Mining Fluids Power

b Segfault(!) on deleting ship

2 years ago

Context: multiplayer
Last action taken: manually mining / removing a ship from a waterway
Result: game freezes, windows error message appears reporting a segmentation fault

factorio-current.log:

4578.232 Error CrashHandler.cpp:635: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-qay9dg\src\util\logger.cpp (316): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-qay9dg\src\util\logger.cpp (323): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-qay9dg\src\util\crashhandler.cpp (186): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-qay9dg\src\util\crashhandler.cpp (644): CrashHandler::SignalHandler
minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (304): __scrt_common_main_seh'::1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6E20D31AC)
00007FF6E20D31AC (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA04DD209F)
00007FFA04DD209F (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA04D81454)
00007FFA04D81454 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA04DD0BCE)
00007FFA04DD0BCE (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-qay9dg\src\gui\minimapgui.cpp (189): drawTrainTriangle
c:\cygwin64\tmp\factorio-build-qay9dg\src\gui\minimapgui.cpp (224): LocomotiveMinimapWidget::prepare
c:\cygwin64\tmp\factorio-build-qay9dg\src\gui\minimapgui.cpp (69): MinimapBase::paint
c:\cygwin64\tmp\factorio-build-qay9dg\src\gui\minimapgui.hpp (57): MinimapWidget::paintBackgroundShadow
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\widget.cpp (1401): agui::Widget::recursivePaintShadows
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\widget.cpp (1409): agui::Widget::recursivePaintShadows
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\widget.cpp (1408): agui::Widget::recursivePaintShadows
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\frame.cpp (124): agui::Frame::recursivePaintChildrenInternal
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\widget.cpp (1424): agui::Widget::recursivePaintChildren
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\widget.cpp (1446): agui::Widget::recursivePaintChildrenInternal
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\widget\widget.cpp (1424): agui::Widget::recursivePaintChildren
c:\cygwin64\tmp\factorio-build-qay9dg\libraries\agui\gui.cpp (878): agui::Gui::render
c:\cygwin64\tmp\factorio-build-qay9dg\src\graphics\guirenderer.cpp (79): GuiRenderer::prepare
c:\cygwin64\tmp\factorio-build-qay9dg\src\mainloop.cpp (1041): MainLoop::prepare
c:\cygwin64\tmp\factorio-build-qay9dg\src\mainloop.cpp (678): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-build-qay9dg\src\mainloop.cpp (394): MainLoop::run
c:\cygwin64\tmp\factorio-build-qay9dg\src\main.cpp (1142): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA04807034)
00007FFA04807034 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA04D82651)
00007FFA04D82651 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
4580.839 Error CrashHandler.cpp:191: Map tick at moment of crash: 13391412
4580.885 Info CrashHandler.cpp:311: Executable CRC: 2138896114
4580.885 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.
4614.875 Uploading log file
4615.280 Error CrashHandler.cpp:262: Heap validation: success.
4615.281 Creating crash dump.
4615.640 CrashDump success

2 years ago
(updated 2 years ago)

Is this repeatable? Random seg faults are usually a hardware problem.

Please attach the complete factorio-current.log, it includes the headers with version and mod lists. Did the crash happen on the client, server, or both?

Also, seg faults should be reported to the Factorio forum. Mods are supposed to be sandboxed so that every error is handled gracefully, so this could be a big in the sandbox code.

2 years ago

It's only happened this once, which makes me think of a race condition or similar. The server machine hasn't shown any other signs of hardware issues but I agree it's a possibility.

The crash happened on the server, we were able to save the game on the client and continue from there with no issues.

I very cleverly forgot to save factorio-current.log before overwriting it by running the game a couple more times, but I'll paste the relevant parts of the latest one in the next comment (trimming it down because my modlist is long and some of them like to spam).

I'm considering posting it to the forum but my thought was that as it was a mod issue the mod author would be the best person to take a look and report it. If schnurrebutz doesn't respond I'll post a thread.

2 years ago

...and it's too long to paste and I'm not sure how to add attachments here

https://pastebin.com/UiQ65Ya0

2 years ago
(updated 2 years ago)

I currently took over most of the maintenance from schnurrebutz, so I can look into it if it is repeatable. But yeah, non-repeatable crashes to desktop can't be investigated by anyone, and repeatable ones need the dev's tools to debug them.

2 years ago

Ok - I think I'll leave this for now and see if it happens again, and if so I'll post a forum thread (and remember to keep the log).

Thanks for taking a look

New response