"Lua error: unhandled exception" Exception type: std::out_of_range What: bitset::set

Willkommen in der Transport Fever Community

Welcome to the fan community of Transport Fever and Train Fever, the economic simulators of Urban Games. The community is free for you to share and inform yourself about the game. We cultivate a friendly and objective interaction with each other and our team will be happy to answer any questions you may have.

 

Registration and use is of course free for you.

 

We wish you a lot of fun and hope for active participation.

The Team of the Transport-Fever Community

  • English

    Anyone seen this error before?
    in stdout:

    Quote

    Lua error: unhandled exception
    Exception type: std::out_of_range
    What: bitset::set

    any hints how to debug. I have no clue where that happens...
    even web searching didn't find anything about above phrases..
    (duckduckgo weirdley brought only C++ results for search phrase "Lua error: unhandled exception" (with quotes)...)
    std::out_of_range and bitset::set sounds like errors in the C++ stack..
    after creation of the minidump I got:
    /home/urban/build/transport_fever/transport_fever_release/src/Lib/ecs/Engine.h:264: int ecs::Engine::GetComponentDataIndex(const ecs::Entity&, int) const: Assertion `it != components.end()' failed.


    hmm..


    Edit:
    I now worked/debug all ways through the lua/mod stuff... the error occurs past lua/mod processing, which seems to work fine...


    Dell Precision T7600, 2 x Intel(R) Xeon(R) CPU E5-2665 (8 cores per CPU, 2 threads per core, 20MB L3 cache, 2.4/3.1GHz) (⁼32 logische CPUs), 128 GiB DDR3 ECC registered 1600 MT/s, NVIDIA Corporation GF100GL [Quadro 6000] (6GB GDDR5, 384 bit), SAS Hardware RAID Level 1
    Linux version 4.12.14-lp151.28.36-default ([email protected]) (gcc version 7.4.1 20190905 [gcc-7-branch revision 275407] (SUSE Linux) ) #1 SMP Fri Dec 6 13:50:27 UTC 2019 (8f4a495)

    Edited once, last by tsilaicosneknurd ().

  • Es geht um den Bau eines komplexen Bahnhofs. Inzwischen bin ich dem auslösenden Faktor näher gekommen..
    Die Auslösende "Schwelle" ist die Anzahl an Lanes/NodeConnection - Wenn die 400(-430) übersteigt gibt es den Crash vor Errichtung.
    Alle notwendigen Scripts laufen allerdings fehlerfrei durch.

    Dell Precision T7600, 2 x Intel(R) Xeon(R) CPU E5-2665 (8 cores per CPU, 2 threads per core, 20MB L3 cache, 2.4/3.1GHz) (⁼32 logische CPUs), 128 GiB DDR3 ECC registered 1600 MT/s, NVIDIA Corporation GF100GL [Quadro 6000] (6GB GDDR5, 384 bit), SAS Hardware RAID Level 1
    Linux version 4.12.14-lp151.28.36-default ([email protected]) (gcc version 7.4.1 20190905 [gcc-7-branch revision 275407] (SUSE Linux) ) #1 SMP Fri Dec 6 13:50:27 UTC 2019 (8f4a495)

  • English


    My new assumption is, it's kind of too much data at all in lua part (what does exactly go from lua to c++ code??)
    my previous assumption was, game would crash if there are too many lanes to build by a complex building (limit somewhere between 400 and 430 lanes)
    now I made a script, to limit the lanes.
    In several iterations a limit of number of lanes per node is created, I create therefor copies (not references) of tables.
    Now the game crashes (with same error) with a lower count of lanes actually to built (but may wore data actually in lua variables/tables).


    Edit:
    unsetting the variables and garbagecollect() doesn't help. Would be nice to see the corresponding proprietary code.. where does std::out_of_range occur... I assume decompiling is prohibited by license :(

    Dell Precision T7600, 2 x Intel(R) Xeon(R) CPU E5-2665 (8 cores per CPU, 2 threads per core, 20MB L3 cache, 2.4/3.1GHz) (⁼32 logische CPUs), 128 GiB DDR3 ECC registered 1600 MT/s, NVIDIA Corporation GF100GL [Quadro 6000] (6GB GDDR5, 384 bit), SAS Hardware RAID Level 1
    Linux version 4.12.14-lp151.28.36-default ([email protected]) (gcc version 7.4.1 20190905 [gcc-7-branch revision 275407] (SUSE Linux) ) #1 SMP Fri Dec 6 13:50:27 UTC 2019 (8f4a495)

    Edited 3 times, last by tsilaicosneknurd ().

  • English

    some update.
    My last guess seems also to be wrong.
    I now get the crash with less data and less lanes.
    the question is, where or for what purpose does the C++ code use bitsets when creating the structure from lua instructions.


    Exception type: std::out_of_range
    What: bitset::set
    from reference for bitset::set
    Throws std::out_of_range if pos does not correspond to a valid position within the bitset.



    any ideas?




    finally, I think I found the cause. If a node exceeds 16 connections (bitset using 2 byte?) the error occurs.


    Schliesslich, denke ich die Ursache gefunden zu haben. Wenn eine Node 16 Verbindungen (Bitset von 2 Byte?) übersteigt, tritt der Fehler auf.

    Dell Precision T7600, 2 x Intel(R) Xeon(R) CPU E5-2665 (8 cores per CPU, 2 threads per core, 20MB L3 cache, 2.4/3.1GHz) (⁼32 logische CPUs), 128 GiB DDR3 ECC registered 1600 MT/s, NVIDIA Corporation GF100GL [Quadro 6000] (6GB GDDR5, 384 bit), SAS Hardware RAID Level 1
    Linux version 4.12.14-lp151.28.36-default ([email protected]) (gcc version 7.4.1 20190905 [gcc-7-branch revision 275407] (SUSE Linux) ) #1 SMP Fri Dec 6 13:50:27 UTC 2019 (8f4a495)

    Edited once, last by tsilaicosneknurd ().