[0.12.10] [kovarex] Error related to train carriage connections

This subforum contains all the issues which we already resolved.
Post Reply
Kevin94
Inserter
Inserter
Posts: 46
Joined: Mon Dec 08, 2014 10:39 pm
Contact:

[0.12.10] [kovarex] Error related to train carriage connections

Post by Kevin94 »

First of all, I'm sorry to report a bug for an outdated version, but I didn't want/haven't the time to update the mods for 12.11. But therefore you have a replay to reconstruct, how it happened (after fast forwarding 16h)

So basically the problem is, that the connection between an Locomotive and an Wagon got corrupted:
corruptedTrain.png
corruptedTrain.png (191.05 KiB) Viewed 14521 times
I don't recall the actions completely but before this corruption occurred I disconnected/connected parts of it by pressing V/G. I've done this not only while being outside but also while sitting in the train. I also remember that during this other joints than the expected ones where disconnected (not the ones of the selected wagon). After reading some old bug reports, I think I simply misunderstood which carriage gets disconnected when you sit in a train, as it simply disconnected the next carriage from the carriage I was sitting in. So this is not a bug, but maybe it has something to do with the cause of corruption

Now, how this corruption shows:
  • when I try to move the train (no matter if forward/backwards or automatically), I get the error "Carriage::moveFrontJointForward frontRail rollingStockCount!=1"
    rollingStockCount!=1.png
    rollingStockCount!=1.png (1.58 MiB) Viewed 14521 times
  • when I mine the second locomotive, it gets minded, but there are still three rollingStockCount-dots left and I get the error message "Unkown connection direction".
  • when I try to destroy the second locomotive with a lua command, the game freezes and after a couple of seconds crashes
    factorio_lua_destroy.log
    (7.73 KiB) Downloaded 406 times
I uploaded the savegame at https://dl.dropboxusercontent.com/u/590 ... ains12.zip, as it has 9 MB. It is a quite big world as it is kind of a creative mode I play there. It also only runs at 30 ups at the moment.

Some resolved problems that may be related:
https://forums.factorio.com/forum/vie ... 11&t=10295
https://forums.factorio.com/forum/vie ... =11&t=2552

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by Rseding91 »

This could be any number of bugs that have since been fixed between 0.12.10 and the current 0.12.16. Without a new save game on 0.12.16 and a method to reproduce it there's not much that can be done.
If you want to get ahold of me I'm almost always on Discord.

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

Re: [0.12.10] Error related to train carriage connections

Post by kovarex »

Can you find any way to reproduce it?
If so, can you reproduce it in 0.12.16?

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by posila »

Can't it be reproduced with the replay?

Kevin94
Inserter
Inserter
Posts: 46
Joined: Mon Dec 08, 2014 10:39 pm
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by Kevin94 »

Sure this is possible, if you have the time to fast forward 16h of replay (as there is no way to jump to a certain time).

I started it at max speed and let it run in the background. After 4 hours it has been somewhere around 50% and the ups dropped to about 70. Then I tried to change the zoom level and open the map and that crashed the game. Since then I hadn't the time/motivation to do it again. Especially since the second part will take longer to replay as it didn't reach the 60 UPS during playing either.

If you want to view it yourself, I can send you a zip with the used mods.

Independent from how this can be reproduced, from my point of view you should be able to mine/destroy the corrupted locomotive. As it has been with similar corrupted tracks in earlier versions.

Edit: I know nothing about the structure of the replay file, but maybe it's possible for you to extract the user actions of the last five to ten minutes? It must have happened in this time.

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

Re: [0.12.10] Error related to train carriage connections

Post by kovarex »

I tried to reproduce it for a long time and once I was able to get the error, but not anymore, I even wrote a test that connected/disconnected the train thousands of times while driving on a track without success.

This one is really hard to reproduce.

Whoever finds a reliable way to reproduce this problem will get a free factorio copy (for a friend) or upgrade to the highest tier :)

User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by Smarty »

I was able to reproduce it twice now
http://prntscr.com/945wvi
but so far no luck on how to reproduce it

ill keep trying


EDIT: I did it again dont know who but it feels like a random error <<<<< Never mind i found out how to reproduce ill give the details soon

User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by Smarty »

smarty for the rescue!

I made it reproducible as in so easy to do it you just have to hop in the middle train and reverse and after a few seconds it will give this error

how it looks before the error
http://prntscr.com/9464ce

after the error
http://prntscr.com/9466oo

here is the save
http://www.mediafire.com/download/w9m2b ... ry0.12.zip

EDIT: after deconstructing the trains it seems that 3 of the colored dots didnt go away it appears that these dots cause the error http://prntscr.com/946903
EDIT: I think i found the way to reproduce it too but ill need to investigate it a bit more

joon
Fast Inserter
Fast Inserter
Posts: 131
Joined: Mon Jan 19, 2015 7:11 pm
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by joon »

Nice you beat me to it.

User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: [0.12.10] Error related to train carriage connections

Post by Smarty »

I found out how to reproduce it too these are the steps


to reproduce it you need to sit in the middle of the train

this setup
http://prntscr.com/948le7
I suppose it would work with 1 loc and 2 carriages aswel but i tested it only with 3 loc's
http://prntscr.com/948mvf
Go back a bit. Get some speed and before you crash into the end of the rail disconnect both trains and just let them crash into eachother
http://prntscr.com/948oup
After you made them crash press V/G 2 or 3 times and you should make this bug happen again

then move the train forward a bit and you should see the bugged dots

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

Re: [0.12.10] Error related to train carriage connections

Post by kovarex »

Smarty wrote:I found out how to reproduce it too these are the steps


to reproduce it you need to sit in the middle of the train

this setup
http://prntscr.com/948le7
I suppose it would work with 1 loc and 2 carriages aswel but i tested it only with 3 loc's
http://prntscr.com/948mvf
Go back a bit. Get some speed and before you crash into the end of the rail disconnect both trains and just let them crash into eachother
http://prntscr.com/948oup
After you made them crash press V/G 2 or 3 times and you should make this bug happen again

then move the train forward a bit and you should see the bugged dots
Great, you are a winner :) Do you want the free code or upgrade of the account? (You can pm me if you want).
I was able to reproduce the scenario, write an automated test of it and finally fix it, so it is fixed for 0.12.18

Post Reply

Return to “Resolved Problems and Bugs”