dodo0822 / LocoSwap

Train Simulator utility to swap rolling stock of scenarios
4 stars 8 forks source link

Crashes to desktop 100% of time when replacing (Windows 10) #6

Open opingebr opened 3 years ago

opingebr commented 3 years ago

100% of the time, when I click "replace" to replace a loco, Locoswap crashes to desktop, no error message, nothing, it simply just closes. OS: Windows 10. On a different computer, with Windows 8,1, there is no issue. Given how common Windows 10 is today, this is a pretty serious issue

dodo0822 commented 3 years ago

Hi, I'm sorry that you're having this issue. The program has also been tested on Windows 10, so I don't believe it is an operating system-related issue. Could you please share the content of debug.log, on which scenario are you working on and which locos you are trying to replace? The debug log file is located at the same place as LocoSwap.exe. Thanks!

opingebr commented 3 years ago

Ok weirdly enough, now swapping suddenly works fine, but everything that's inside an ap file is listed as "missing" (just as TSTools does)

Ole Petter Ingebrigtsen Lokallagssekretær, Verdal Venstre Tlf 45407043

lør. 20. mar. 2021 kl. 22:41 skrev Chih-Wei Fang @.***>:

Hi, I'm sorry that you're having this issue. The program has also been tested on Windows 10, so I don't believe it is an operating system-related issue. Could you please share the content of debug.log, on which scenario are you working on and which locos you are trying to replace? The debug log file is located at the same place as LocoSwap.exe. Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dodo0822/LocoSwap/issues/6#issuecomment-803467398, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATJ3DFBUILPHKMY6FRW4I5DTEUJAFANCNFSM4ZPK3DQQ .

opingebr commented 3 years ago

And now it happens again. 100% of the time, no matter the scenario, 100% crash to desktop the instant "replace" is clicked

opingebr commented 3 years ago

debug.log

dodo0822 commented 3 years ago

I could not reproduce this issue on my local test environment. However the log file suggests that the scenario file format missed some expected elements and this might be the issue that caused the crash. I have updated the replacement code to address such situations. Please try the version attached here and let me know if this solves your issue. LocoSwap-1.1.0.0_1.zip

opingebr commented 3 years ago

I was acually going to make a follow-up post myself with the same conclusion - it seems to happen with older scenarios which don't have a driven loco defined in the same way as the newer ones. Pre-TS2013 it might seem.

Ole Petter Ingebrigtsen Lokallagssekretær, Verdal Venstre Tlf 45407043

fre. 26. mar. 2021 kl. 02:46 skrev Chih-Wei Fang @.***>:

I could not reproduce this issue on my local test environment. However the log file suggests that the scenario file format missed some expected elements and this might be the issue that caused the crash. I have updated the replacement code to address such situations. Please try the version attached here and let me know if this solves your issue. LocoSwap-1.1.0.0_1.zip https://github.com/dodo0822/LocoSwap/files/6208804/LocoSwap-1.1.0.0_1.zip

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dodo0822/LocoSwap/issues/6#issuecomment-807869532, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATJ3DFEVL66IAZE5L23BCMLTFPROJANCNFSM4ZPK3DQQ .

opingebr commented 3 years ago

Still crash to desktop on replace. debug.log

dodo0822 commented 3 years ago

Thanks for the follow up. There might be more differences between pre-TS2013 scenario format and "modern" scenarios than I've expected. I'll get some early scenarios and see if I can reproduce your error.