Hemiptera Bugtracker at bugs.linux-forks.de

advtrains

crash when trying to uncouple trains

Send replies to 178@bugs.linux-forks.de or using the Form below.
avatar From: OP
Fri, 02 Apr 2021 15:04:01 -0000

```

2021-04-02 14:46:25: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback luaentity_Punch(): ...ds/advtrains_modpack

/advtrains_interlocking/database.lua:520: get_ts_at_pos but node is NOK: (17.464466094067,9,118.46446609407)

2021-04-02 14:46:25: ERROR[Main]: stack traceback:

2021-04-02 14:46:25: ERROR[Main]: [C]: in function 'error'

2021-04-02 14:46:25: ERROR[Main]: ...ds/advtrains_modpack/advtrains_interlocking/database.lua:520: in function 'get_ts_at_pos'

2021-04-02 14:46:25: ERROR[Main]: ...trains_modpack/advtrains_interlocking/train_sections.lua:170: in function 'f'

2021-04-02 14:46:25: ERROR[Main]: ...rld/worldmods/advtrains_modpack/advtrains/trainlogic.lua:236: in function 'run_callbacks_create'

2021-04-02 14:46:25: ERROR[Main]: ...rld/worldmods/advtrains_modpack/advtrains/trainlogic.lua:882: in function 'create_new_train_at'

2021-04-02 14:46:25: ERROR[Main]: ...rld/worldmods/advtrains_modpack/advtrains/trainlogic.lua:1094: in function 'split_train_at_index'

2021-04-02 14:46:25: ERROR[Main]: ...rld/worldmods/advtrains_modpack/advtrains/trainlogic.lua:1105: in function 'split_train_at_wagon'

2021-04-02 14:46:25: ERROR[Main]: ...e_World/worldmods/advtrains_modpack/advtrains/wagons.lua:1335: in function 'safe_decouple_wagon'

2021-04-02 14:46:25: ERROR[Main]: ...e_World/worldmods/advtrains_modpack/advtrains/couple.lua:37: in function 'func'

2021-04-02 14:46:25: ERROR[Main]: /usr/share/minetest/builtin/profiler/instrumentation.lua:106: in function </usr/share/minetest/builtin/profiler/instrumentation.lua:100>

```

The user who triggered this crash reported that they were trying to uncouple "Japanese" trains. I don't recall which mod supplies thouse

--

"There are some things in life worth obsessing over.  Most

things aren't, and when you learn that, life improves."

Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com>

avatar From: OP
Fri, 02 Apr 2021 15:09:01 -0000

Of note: when I went to investigate, the train in question had no tracks under it, though was positioned such at there must have been tracks at some point. There was a lot of worledit usage on the server recently (goes with the territory when setting up a new server, right?), and it's possible the tracks got deleted, and/or that the train got moved during some move/copy/deleteblocks action.

--

"There are some things in life worth obsessing over.  Most

things aren't, and when you learn that, life improves."

Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com>

Reply