[kovarex] [0.17.69] Crash placing cargo wagon: RollingStock::getNeighborDirection (Can't find neighbor)

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
terdol
Burner Inserter
Burner Inserter
Posts: 14
Joined: Tue Sep 17, 2019 2:02 pm
Contact:

[kovarex] [0.17.69] Crash placing cargo wagon: RollingStock::getNeighborDirection (Can't find neighbor)

Post by terdol »

Hello,

this is about vanilla issue. Sadly I cannot seem to reproduce this crash. It caught me by surprise, so I'm not 100% sure what were my exact actions. System is ubuntu 18.04, save has less than 20 hours.

Crash log: https://pastebin.com/Rm1msQHc

So as mentioned, I cannot reproduce this, and cannot describe my actions exactly. Things that I do recall however is:
- I was placing cargo wagons on rails on already built station ( inserters touching rails)
- It was either first or second cargo wagon that caused crash
- when placing cargo wagons I usually hold down left mouse button and move my avatar around
- I have had only 2 cargo wagons in inventory at the time of crash (logistic request for 5 set)
- I do not think I had any gui windows open at the moment of crash
- I am not sure if crash happened on exact tick that I was placing wagon
- Station I was placing wagons on has ore underneath
- This is also one side unload station (4 stack loaders from one side per wagon)

My autosave was only few seconds before crash happened so I backed up this save in case there is need for it.

@Edit:
I forgot to mention that this might not be train wagon placing issue at all, only describing it in detail since this is what I was actually doing and stacktrace is pointing to NULL reference in base class for trains. I do however have also other blueprints around the map that are being placed.

Loewchen
Global Moderator
Global Moderator
Posts: 8321
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.17.69] Crash placing cargo wagon: RollingStock::getNeighborDirection (Can't find neighbor)

Post by Loewchen »

Code: Select all

   0.000 2019-09-20 14:07:42; Factorio 0.17.69 (build 47194, linux64, steam)
   0.054 Operating system: Linux (Ubuntu 18.04)
   0.054 Program arguments: "/home/tp/.steam/steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.054 Read data path: /home/tp/.steam/steam/steamapps/common/Factorio/data
   0.054 Write data path: /home/tp/.factorio [323220/419432MB]
   0.054 Binaries path: /home/tp/.steam/steam/steamapps/common/Factorio/bin
   0.065 System info: [CPU: AMD Ryzen 5 2600X Six-Core Processor, 12 cores, RAM: 32156 MB]
   0.065 Environment: DISPLAY=:1 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=ubuntu XDG_SESSION_DESKTOP=ubuntu XDG_CURRENT_DESKTOP=ubuntu:GNOME __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.065 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
   0.361 Available displays: 2
   0.361  [0]: SyncMaster 22" - {[0,30], 1680x1050, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.361  [1]: BenQ GW2255 22" - {[1680,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.361 Failed to get primary display index, defaulting to 0.
   0.517 Initialised OpenGL:[0] GeForce GTX 1060 6GB/PCIe/SSE2; driver: 3.3.0 NVIDIA 410.104
   0.517   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
   0.517   [Version] 3.3
   0.517 Graphics settings preset: very-high
   0.517   Dedicated video memory size 6144 MB
   0.535 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 25%] [DXT: high-quality] [Color: 32bit]
   0.535                   [Max threads (load/render): 32/12] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDC]
   0.822 Loading mod core 0.0.0 (data.lua)
   0.919 Loading mod base 0.17.69 (data.lua)
   1.109 Loading mod base 0.17.69 (data-updates.lua)
   1.208 Checksum for core: 2087614386
   1.209 Checksum of base: 1061071205
   1.368 Prototype list checksum: 3040646442
   1.395 Loading sounds...
   1.419 Info PlayerData.cpp:70: Local player-data.json unavailable
   1.419 Info PlayerData.cpp:73: Cloud player-data.json available, timestamp 1568975905
   1.531 Initial atlas bitmap size is 16384
   1.549 Created atlas bitmap 16384x16380 [none]
   1.551 Created atlas bitmap 16384x11616 [none]
   1.551 Created atlas bitmap 8192x3872 [decal]
   1.552 Created atlas bitmap 16384x4320 [low-object, linear-minification]
   1.552 Created atlas bitmap 8192x3744 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.553 Created atlas bitmap 16384x7168 [terrain, mipmap, linear-minification, linear-mip-level]
   1.553 Created atlas bitmap 4096x1600 [smoke, mipmap, linear-minification, linear-magnification]
   1.553 Created atlas bitmap 4096x1744 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.553 Created atlas bitmap 2048x192 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   1.553 Created atlas bitmap 8192x1632 [alpha-mask]
   1.555 Created atlas bitmap 16384x12772 [shadow, linear-magnification, alpha-mask]
   1.555 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask]
   1.564 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   1.891 Parallel Sprite Loader initialized (threads: 11)
   9.379 Sprites loaded
   9.387 Generated mipmaps (4) for atlas [3] of size 16384x4320   
   9.391 Generated mipmaps (3) for atlas [4] of size 8192x3744   
   9.400 Generated mipmaps (3) for atlas [5] of size 16384x7168   
   9.401 Generated mipmaps (3) for atlas [6] of size 4096x1600   
   9.409 Generated mipmaps (5) for atlas [7] of size 4096x1744   
   9.411 Generated mipmaps (3) for atlas [11] of size 8192x2352   
   9.415 Custom mipmaps uploaded.
   9.571 Factorio initialised
  19.091 Loading map /home/tp/.factorio/saves/lazy_bastard.zip: 7114958 bytes.
  19.106 Loading level.dat: 19100863 bytes.
  19.113 Info Scenario.cpp:187: Map version 0.17.69-1
  19.602 Loading script.dat: 328 bytes.
  19.604 Checksum for script /home/tp/.factorio/temp/currently-playing/control.lua: 4051211387
  19.607 Warning BlueprintShelf.cpp:843: Record 126 is a duplicate of 115: Removing
 272.911 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
 273.478 Info AppManagerStates.cpp:1793: Saving finished
 573.631 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
 574.164 Info AppManagerStates.cpp:1793: Saving finished
 874.214 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
 874.731 Info AppManagerStates.cpp:1793: Saving finished
1174.797 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
1175.314 Info AppManagerStates.cpp:1793: Saving finished
1475.398 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
1475.929 Info AppManagerStates.cpp:1793: Saving finished
1803.131 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
1803.631 Info AppManagerStates.cpp:1793: Saving finished
2103.650 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
2104.148 Info AppManagerStates.cpp:1793: Saving finished
2404.281 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
2404.815 Info AppManagerStates.cpp:1793: Saving finished
2704.849 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
2705.399 Info AppManagerStates.cpp:1793: Saving finished
3005.412 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
3005.917 Info AppManagerStates.cpp:1793: Saving finished
3306.139 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
3306.670 Info AppManagerStates.cpp:1793: Saving finished
3618.841 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
3619.392 Info AppManagerStates.cpp:1793: Saving finished
3919.560 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
3920.079 Info AppManagerStates.cpp:1793: Saving finished
4220.212 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
4220.729 Info AppManagerStates.cpp:1793: Saving finished
4520.997 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
4521.515 Info AppManagerStates.cpp:1793: Saving finished
4788.812 Unlocked achievement "run-forrest-run"
4821.518 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
4822.065 Info AppManagerStates.cpp:1793: Saving finished
5122.250 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
5122.783 Info AppManagerStates.cpp:1793: Saving finished
5422.834 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
5423.365 Info AppManagerStates.cpp:1793: Saving finished
5723.350 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
5723.946 Info AppManagerStates.cpp:1793: Saving finished
6024.113 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
6024.680 Info AppManagerStates.cpp:1793: Saving finished
6324.697 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
6325.232 Info AppManagerStates.cpp:1793: Saving finished
6625.296 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
6625.863 Info AppManagerStates.cpp:1793: Saving finished
6932.296 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
6932.881 Info AppManagerStates.cpp:1793: Saving finished
7232.947 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
7233.497 Info AppManagerStates.cpp:1793: Saving finished
7533.568 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
7534.116 Info AppManagerStates.cpp:1793: Saving finished
7853.955 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
7854.536 Info AppManagerStates.cpp:1793: Saving finished
8078.087 Unlocked achievement "delivery-service"
8154.545 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
8155.108 Info AppManagerStates.cpp:1793: Saving finished
8455.294 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
8455.856 Info AppManagerStates.cpp:1793: Saving finished
8515.829 Unlocked achievement "circuit-veteran-2"
8755.842 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
8756.405 Info AppManagerStates.cpp:1793: Saving finished
9056.392 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
9056.973 Info AppManagerStates.cpp:1793: Saving finished
9357.492 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
9358.075 Info AppManagerStates.cpp:1793: Saving finished
9658.163 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
9658.733 Info AppManagerStates.cpp:1793: Saving finished
9958.799 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
9959.365 Info AppManagerStates.cpp:1793: Saving finished
10259.384 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
10259.984 Info AppManagerStates.cpp:1793: Saving finished
10560.021 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
10560.553 Info AppManagerStates.cpp:1793: Saving finished
10860.604 Info AppManager.cpp:287: Saving to _autosave3 (blocking).
10861.170 Info AppManagerStates.cpp:1793: Saving finished
11161.194 Info AppManager.cpp:287: Saving to _autosave1 (blocking).
11161.756 Info AppManagerStates.cpp:1793: Saving finished
11461.755 Info AppManager.cpp:287: Saving to _autosave2 (blocking).
11462.322 Info AppManagerStates.cpp:1793: Saving finished
11469.463 Time travel logging:
  19.608 Popped blueprint record (player-index: 0, ID: 126) from book (player-index: 0, ID: 129)
Factorio crashed. Generating symbolized stacktrace, please wait ...
Raw stacktrace: 0xb4a658, 0xd15b8d, 0x9f14d9, 0xa0ac4f, 0xa43c1f, 0xa79ead, 0x63b085, 0xe84d49, 0xd01413, 0xd019e3, 0x14c452c, 0x148073a, 0x14c6a33, 0x148cf3b, 0x14c6a33, 0x14807c5, 0x14c6a33, 0x14c6cbc, 0x14c6a33, 0x1461982, 0x90a118, 0xfea0a0, 0xfea7ad, 0xfea9be, 0x532271, 0, 0x54427e
11473.580 Warning Logger.cpp:518: Symbols.size() == 33, usedSize == 26
#0  0x0000000000d15b8d in std::__uniq_ptr_impl<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::_M_ptr() const at /usr/include/c++/8/bits/unique_ptr.h:150
#1  0x00000000009f14d9 in std::unique_ptr<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::get() const at /usr/include/c++/8/bits/unique_ptr.h:343
#2  0x0000000000a0ac4f in std::unique_ptr<LoggerFileWriteStream, std::default_delete<LoggerFileWriteStream> >::operator->() const at /usr/include/c++/8/bits/unique_ptr.h:337
#3  0x0000000000a43c1f in Logger::flush() at /tmp/factorio-build-V9E2T9/src/Util/Logger.cpp:558
#4  0x0000000000a79ead in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-build-V9E2T9/src/Util/Logger.cpp:544
#5  0x000000000063b085 in Logging::flush() at /tmp/factorio-build-V9E2T9/src/Util/Logging.cpp:69
#6  0x0000000000e84d49 in Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, std::string const&) at /tmp/factorio-build-V9E2T9/src/Util/Logging.cpp:103
#7  0x0000000000d01413 in Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, char const*, ...) at /tmp/factorio-build-V9E2T9/src/Util/Logging.cpp:93
#8  0x0000000000d019e3 in RollingStock::getNeighborDirection(RollingStock const*) const [clone .part.65587] at /tmp/factorio-build-V9E2T9/src/Entity/RollingStock.cpp:884
#9  0x00000000014c452c in RollingStock::drawToChart(DrawQueue&, bool) const at /tmp/factorio-build-V9E2T9/src/Graphics/BitmapReference.hpp:28
#10 0x000000000148073a in ChartRenderer::drawVehicles(RenderParameters const&, Chart const*) const at /tmp/factorio-build-V9E2T9/src/Graphics/ChartRenderer.cpp:622
#11 0x00000000014c6a33 in ChartRenderer::prepare(RenderParameters const&) at /tmp/factorio-build-V9E2T9/src/Graphics/ChartRenderer.cpp:401
#12 0x000000000148cf3b in MinimapBase::paint(agui::PaintEvent const&, agui::Point const&, agui::Widget*, MapPosition const&) at /tmp/factorio-build-V9E2T9/src/Gui/MinimapGui.cpp:67
#13 0x00000000014c6a33 in non-virtual thunk to MinimapGui::paintComponent(agui::PaintEvent const&, agui::Point const&) at /tmp/factorio-build-V9E2T9/src/Gui/MinimapGui.cpp:435
#14 0x00000000014807c5 in agui::Widget::paint(agui::PaintEvent const&, agui::Point const&) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Widget.cpp:142
#15 0x00000000014c6a33 in agui::Frame::recursivePaintChildrenInternal(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Frame.cpp:101
#16 0x00000000014c6cbc in agui::Widget::recursivePaintChildren(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Widget.cpp:1268
#17 0x00000000014c6a33 in agui::Layout::recursivePaintChildrenInternal(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Layout.cpp:82
#18 0x0000000001461982 in agui::Widget::recursivePaintChildren(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Widget.cpp:1268
#19 0x000000000090a118 in agui::Frame::recursivePaintChildrenInternal(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Frame.cpp:106
#20 0x0000000000fea0a0 in agui::Widget::recursivePaintChildren(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Widget.cpp:1268
#21 0x0000000000fea7ad in agui::Widget::recursivePaintChildrenInternal(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Widget.cpp:1286
#22 0x0000000000fea9be in agui::Widget::recursivePaintChildren(bool, agui::Graphics*) at /tmp/factorio-build-V9E2T9/libraries/Agui/Widget/Widget.cpp:1268
#23 0x0000000000532271 in agui::Gui::render() at /tmp/factorio-build-V9E2T9/libraries/Agui/Gui.cpp:770
#24 (nil) in RenderParameters::setScaleRaw(double) at /tmp/factorio-build-V9E2T9/src/Graphics/RenderParameters.cpp:230
#25 0x000000000054427e in GuiRenderer::prepare() at /tmp/factorio-build-V9E2T9/src/Graphics/GuiRenderer.cpp:78
#26 (nil) in GlobalContext::prepareRenderGui() at /tmp/factorio-build-V9E2T9/src/GlobalContext.cpp:1369
#27 (nil) in MainLoop::prepare() at /tmp/factorio-build-V9E2T9/src/MainLoop.cpp:967
#28 (nil) in MainLoop::mainLoopStep(WorkerThread&, MainLoop::HeavyMode) at /tmp/factorio-build-V9E2T9/src/MainLoop.cpp:632
#29 (nil) in MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode) at /tmp/factorio-build-V9E2T9/src/MainLoop.cpp:377
#30 (nil) in main at /tmp/factorio-build-V9E2T9/src/Main.cpp:1362 (discriminator 3)
#31 (nil) in ?? at ??:0
#32 (nil) in _start at ??:?
Stack trace logging done
11477.631 Warning Logger.cpp:518: Symbols.size() == 28, usedSize == 25
11477.631 Error RollingStock.cpp:884: Internal error in RollingStock::getNeighborDirection, called with neighbor that can't be found
Logger::writeStacktrace skipped.
11477.631 Error CrashHandler.cpp:189: Map tick at moment of crash: 4194430
11477.631 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.
11482.356 Info SystemUtil.cpp:539: Started /usr/bin/xdg-open; trampoline PID: 24281
11482.356 Uploading log file
11482.374 Info SystemUtil.cpp:539: Started /home/tp/.steam/steam/steamapps/common/Factorio/bin/x64/factorio; trampoline PID: 24282

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [0.17.69] Crash placing cargo wagon: RollingStock::getNeighborDirection (Can't find neighbor)

Post by kovarex »

Since it is not reprudicible and in a place that I didn't see any other crash so far, I'm going to postpone it.

Post Reply

Return to “Pending”