[0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

This subforum contains all the issues which we already resolved.
Post Reply
TheUnknown007
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun May 03, 2015 9:17 pm
Contact:

[0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by TheUnknown007 »

I was trying to see under which conditions this bug happens, and when I added a curved rail, it crashed.
screenshot
Possible causes:
__The Junction may already have been buggy (see other bug)
__Black magic (never underestimate black magic when working with computers, or in general, but especially when working with computers)

Additional info:
__testing shows that it also happens when not underneath a driving train.
__It does not matter in which direction you drag / place the rail.
__Error only occurs when placing that exact piece of rail, placing any other rail works fine.
__It only happens just before the train stops (see other bug), adding way before that or after that does not give an error.
____This may mean that this would be an easy way to see when the junction becomes buggy: if you can add the rail, it is not buggy yet.

Edit: original error was in 0.14.02, still happens in 0.14.03
Attachments
_bug_train_stopped_before.zip
game gives error when placing rail
(10.61 MiB) Downloaded 79 times
_autosave3 - Copy.zip
Too early, game does not give an error.
(10.59 MiB) Downloaded 85 times
factorio-current.log
log
(9.78 KiB) Downloaded 82 times

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

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by Loewchen »

Can you reproduce this reliably?

Code: Select all

   0.322 2016-09-03 23:17:05; Factorio 0.14.2 (build 24403, win64, alpha)
   0.323 Operating system: Windows 10 
   0.326 Program arguments: "C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\bin\x64\factorio.exe" 
   0.327 Read data path: C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/data
   0.327 Write data path: C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2
   0.327 Binaries path: C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/bin
   0.379 Display options: [FullScreen: false] [VSync: false] [UIScale: 125%] [MultiSampling: OFF] [Screen: 255]
   0.384 Available display adapters: 1
   0.385  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 4600 {0x05, [0,0], 1920x1080, 32bit, 60Hz}
   0.386 Create display on adapter 0. Size 1600x900 at position [150, 72].
   0.955 Initialised Direct3D:[0] NVIDIA Quadro K1100M    ; driver: nvd3dumx.dll 10.18.13.5362
   0.959     Video memory size (dedicated video/dedicated system/shared system/available): 1990/0/4036/4090 MB
   1.021 Device reset internal.
   1.023 Desktop composition is active.
   1.023 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: false]
   1.131 Loading mod core 0.0.0 (data.lua)
   1.137 Loading mod base 0.14.2 (data.lua)
   1.296 Checksum for core: 1620335853
   1.296 Checksum for mod base: 3867985917
   1.665 Info PlayerData.cpp:45: Local player-data.json available, timestamp 1472937087
   1.665 Info PlayerData.cpp:52: Cloud player-data.json unavailable
   1.822 Initial atlas bitmap size is 16384
   1.823 Created atlas bitmap 16384x5589
   2.159 Created atlas bitmap 4096x968
   2.170 Created atlas bitmap 4096x3652
  13.850 Sprites loaded
  13.850 Convert atlas 4096x968 to: trilinear-filtering 
  13.873 Convert atlas 4096x3652 to: mipmap 
  14.313 Loading sounds...
  16.150 Custom inputs active: 0
  16.150 Info Updater.cpp:749: Downloading https://updater.factorio.com/get-available-versions?username=TheUnknown&token=<private>&apiVersion=2
  17.001 Some core updates would be reachable if experimental updates were enabled.
  17.002 0 packages available to download (experimental updates disabled).
  17.054 Factorio initialised
  22.220 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_autosave2.zip
  23.618 Info Scenario.cpp:148: Map version 0.14.2-2
  25.654 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 265.093 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_autosave3 - Copy.zip
 265.826 Info Scenario.cpp:148: Map version 0.14.2-2
 267.449 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 367.733 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_bug_train_stopped_before.zip
 369.016 Info Scenario.cpp:148: Map version 0.14.2-2
 370.548 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 443.422 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_bug_train_stopped_before.zip
 444.687 Info Scenario.cpp:148: Map version 0.14.2-2
 446.147 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 473.978 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_bug_train_stopped_before.zip
 474.717 Info Scenario.cpp:148: Map version 0.14.2-2
 476.324 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 503.158 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_autosave3 - Copy.zip
 504.168 Info Scenario.cpp:148: Map version 0.14.2-2
 505.863 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 509.944 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_bug_train_stopped_before.zip
 511.687 Info Scenario.cpp:148: Map version 0.14.2-2
 513.081 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 539.474 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_bug_train_stopped_before.zip
 540.463 Info Scenario.cpp:148: Map version 0.14.2-2
 541.703 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 587.408 Loading map C:\Users\Ivo\disks\Seagate 5TB\main partition\private\programs\games\factorio\Factorio_x64_0.14.2\Factorio_0.14.2\saves\_bug_train_stopped_before.zip
 588.389 Info Scenario.cpp:148: Map version 0.14.2-2
 589.621 Checksum for script C:/Users/Ivo/disks/Seagate 5TB/main partition/private/programs/games/factorio/Factorio_x64_0.14.2/Factorio_0.14.2/temp/currently-playing/control.lua: 900459546
 604.598 Error CrashHandler.cpp:135: Exception Code: c0000005, Address: 00007FF68544BB52
ModuleBase: 00007FF6851A0000, ImageSize: 01163000, RelativeAddress: 002abb52
 604.598 Error CrashHandler.cpp:145: Exception Context:
rax=000002054d652d60, rbx=0000020563781620, rcx=0000000000000000,
rdx=0000005860eff4d8, rsi=00000205666ec378, rdi=0000000000000000,
rip=00007ff68544bb52, rsp=0000005860eff470, rbp=0000005860eff4f9,
 r8=0000000000000000,  r9=000002056157c100, r10=0000000000000000,
r11=0000005860eff500, r12=00000205666ec3a0, r13=0000000000000000,
r14=0000000000000000, r15=00000205666ec270
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-t0whcv\libraries\stackwalker\stackwalker.cpp (906): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-t0whcv\src\util\logger.cpp (332): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-t0whcv\src\util\logger.cpp (386): Logger::logStacktrace
c:\cygwin64\tmp\factorio-t0whcv\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-t0whcv\src\util\crashhandler.cpp (155): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4AC45E77)
00007FFF4AC45E77 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4DD3DA9B)
00007FFF4DD3DA9B (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4DD25946)
00007FFF4DD25946 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4DD3991D)
00007FFF4DD3991D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4DCD86D3)
00007FFF4DCD86D3 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4DD38A3A)
00007FFF4DD38A3A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-t0whcv\src\rail\train.cpp (1528): Train::tryReserveSignalsUpTo
c:\cygwin64\tmp\factorio-t0whcv\src\rail\train.cpp (849): Train::update
c:\cygwin64\tmp\factorio-t0whcv\src\rail\trainmanager.cpp (161): TrainManager::update
c:\cygwin64\tmp\factorio-t0whcv\src\map\map.cpp (1131): Map::update
c:\cygwin64\tmp\factorio-t0whcv\src\game.cpp (146): Game::update
c:\cygwin64\tmp\factorio-t0whcv\src\scenario\scenario.cpp (835): Scenario::update
c:\cygwin64\tmp\factorio-t0whcv\src\mainloop.cpp (711): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-t0whcv\src\mainloop.cpp (581): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-t0whcv\src\util\workerthread.cpp (33): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64>,std::default_delete<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4BB58364)
00007FFF4BB58364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4DCF5E91)
00007FFF4DCF5E91 (ntdll): (filename not available): RtlUserThreadStart
 607.562 Error CrashHandler.cpp:106: Map tick at moment of crash: 18572475
 607.641 Error Util.cpp:77: 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.

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by aober93 »

If you rate his extensive checklist, this is reliable.

I can confirm anyway. See 2 posts down. This bug now happened on my own map.
Last edited by aober93 on Sun Sep 04, 2016 9:40 pm, edited 1 time in total.

TheUnknown007
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun May 03, 2015 9:17 pm
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by TheUnknown007 »

This ALWAYS* works (provided you place it before the copper plate train reserves a path)


*On my computer, at least all the times that I tested it.

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by aober93 »

Oh wonder, I possibly got the same bug on my map, acording to this error message. I am placing tracks and the game crashes (after a few seconds). I figure its because of a light signal on a curve that is nearby. Ill try to post pics. Its reproducible

Something to note. So far i have seen 3 independent occurences. All 3 times it happened where signals were on a branching rail on a diagonal rail, and the signal on the branch was on the closest possible spot before the branch. And the next train arriving and triggering the signal is crashing the game, but only trains that are already on its way (possible the pathfinding hasnt catched up with the new rail piece?). If you force that train to stop in one way and restart, the game wont crash. Trains that arrive later wont crash the game either. Possibly because the pathfinding is then up to date.

This is the situation
a1.jpg
a1.jpg (272.32 KiB) Viewed 3004 times
i changed it like so. There is a train arriving which triggerd the row of signals along the railway. All are yellow , except the one on the branch, but thats then moment the game crashed.
a2.jpg
a2.jpg (253.5 KiB) Viewed 3004 times
See this image from another scene. The train arrives, and the breaking point is just before the signal. Right there the game crashed. This is from this thread viewtopic.php?f=7&t=32154
a3.jpg
a3.jpg (288.12 KiB) Viewed 3001 times
error log

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by aober93 »

This scene can be built from scratch.
Build a scene like this: A long rail, the train placed on one end, a signal and a trainstation on the other. The signal has to be on a diagonal, the placement may be important. Start the train, and only then branch of the rail at the signal. Do not remove the signal. Wait for the train to come. The crash will be when the signal is about to turn yellow by the breaking point of the train.

I tried this setup on a horizontal rail and it didnt crash. So it must be diagonal.

This is the starting setup:
a4.jpg
a4.jpg (156.69 KiB) Viewed 2998 times
Start the train, and then place the branch like so. Do not remove the signal. The train will arrive and crash when the breaking point meets the signal.
a5.jpg
a5.jpg (164.98 KiB) Viewed 2998 times
I placed the signal exactly like so.
a6.jpg
a6.jpg (179.5 KiB) Viewed 2998 times

aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by aober93 »

Looks like this was fixed in 14.4, anyone?

TheUnknown007
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun May 03, 2015 9:17 pm
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by TheUnknown007 »

Fixed for me, but the train still reserves a path without actually driving it (this bug)

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.14.2] Crash on adding curved rail: "(1528): Train::tryReserveSignalsUpTo"

Post by HanziQ »

Ok, I'm moving this one to fixed, since the remaining issue is in the other bug report.

Post Reply

Return to “Resolved Problems and Bugs”