Bug Found

Discussion in 'Technical Reports' started by maxim still tsw2, Feb 21, 2022.

?

I

  1. Answer#1

    1 vote(s)
    100.0%
  2. Answer#2

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. maxim still tsw2

    maxim still tsw2 Member

    Joined:
    Jun 29, 2021
    Messages:
    44
    Likes Received:
    14
    I got a error message saying INT DIVIDE BY 0 is there a way you guys could fix this?
    Reply if you know please.
     
  2. torfmeister

    torfmeister Guest

    I have the suspicion you're in the wrong forum. This is TS2022, not TSW2. It is a different game, like Samuel L. Jackson and Laurence Fishburne are different actors.;)

    And as a bug report, this is rather useless as you give no information. It's like calling 911 just saying "There's a fire" and hanging up.
     
    Last edited by a moderator: Feb 21, 2022
    • Like Like x 1
  3. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Possible causes in any game
    Because TS scenarios can be written using 32-bit and 64-bit code a very few of the 32-bit scenarios don’t play well when running in TS 64-bit mode.

    Technically It is basically an error due to differences in 32 bit and 64-bit RAM access addresses. The code may try to allocate RAM addresses for both 32 and 64-bit but the difference reported is zero, causing an Integer Divide by Zero Exception.

    In TS20XX it is usually caused by a corrupt scenario or from an outdated driver, sound, graphics, etc. Difficult to fix.

    It can be idiosyncratic i.e. tied to a particular computer. This error message could also be caused by a computer or software limitation or conflict with computer memory. Usually results in an OOM/Access Violation/SBHH error.
    Does it occur in both TS 32-bit and TS 64-bit modes?
    Does it occur if you start your computer in "SAFE" mode? (google)

    It is such a volatile error that the same scenario may well run again without the same error
    Can we see what "View Reliability History" reported?

    Some of the possible limited fixes to try:
    Remove an offending scenario
    Update all drivers
    Run dxdiag (and look in the log txt file)
    Run sfc/scannow/DISM; etc
    Make sure the computer date and time are correct.
     
    Last edited: Feb 22, 2022
  4. torfmeister

    torfmeister Guest

    Peter,

    Could you describe what you mean by "64-bit scenario"? There is no 64-bit scenarios technically, all numbers are encoded as boolean, int32 or float32. The format has not changed. A scenario.bin from Kuju's RailSimulator in 2007 does not look different than a recent one. And a scenario created on 32-bit will not have different data than a scenario created on 64-bit.

    A scenario can indeed use such an amount of memory, because of the number of assets/rolling stock placed, that requires it to be run in Railworks64.exe.

    So apart from the memory needed, there is only one scenario known to me that does not work in 64-bit. Introduction to the Turbine/Sherman Hill - the issue here is not really the scenario data but the fact it uses a rolling start, which is a saved game which leads to derailment in 64-bit. I suspect a rounding issue in the position/direction/speed vectors.
     
    Last edited by a moderator: Feb 22, 2022
  5. sphexi

    sphexi Active Member

    Joined:
    Aug 10, 2021
    Messages:
    134
    Likes Received:
    52
    So that is why it never worked...Introduction to the Turbine now complete.
     
    • Like Like x 1
  6. torfmeister

    torfmeister Guest

    There you go ;)
     
  7. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,257
    Likes Received:
    3,184
    Is there a reason we are asked to Vote on anything?
     
  8. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Torf
    There are many scenarios on the workshop that state that they will only run in 64-bit, - and since 2018/19 I [resumed that many scenarios would be created using the 64-bit editor. It was a generalised statement giving an example of why you COULD see an integer divide by zero error.
     
  9. torfmeister

    torfmeister Guest

    Yes, but there's is technically no difference. All scenarios are 32 bit.
     
  10. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Sorry, I don't know what you mean?
     
  11. torfmeister

    torfmeister Guest

    There's nothing more to say. Btw, have never seen divide by zero on TS. And we hijacked this thread and the threadstarter is over the hills.:o;)
     
  12. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,895
    Likes Received:
    1,334
    South Wales Coastal has one of these in the first scenario. I get an INT DIVIDE BY ZERO on the drive to Newport in that run. Everything else runs in 64-bit.
     
  13. torfmeister

    torfmeister Guest

    Interesting. Will look into that.

    Can you provide the scenario name and which incarnation of South Wales Coastal it's in?
     
    Last edited by a moderator: Feb 27, 2022
  14. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,895
    Likes Received:
    1,334
    The names are all service numbers. It's the one that goes from Cardiff to Holyhead, but naturally, you stop as far as Newport. I was on the original South Wales Coastal. I eventually loaded it in 32-bit instead and cleared just fine.

    BTW, this Cardiff to Holyhead is, in fact, part of why I thought Chester to Shrewsbury would be a good idea. A full run to Holyhead via merge is possible!
     
  15. maxim still tsw2

    maxim still tsw2 Member

    Joined:
    Jun 29, 2021
    Messages:
    44
    Likes Received:
    14
    If I did do this then whoops.
     
  16. maxim still tsw2

    maxim still tsw2 Member

    Joined:
    Jun 29, 2021
    Messages:
    44
    Likes Received:
    14
    You don't have to
     

Share This Page