YoavHaifa / WorkersRightsComputer

Half ready version
1 stars 0 forks source link

v.1.2.2b1 crashes sometimes when trying to load saved files it has saved #46

Open eyalroz opened 1 year ago

eyalroz commented 1 year ago

After starting WRC v1.2.2b1 for the second time on a certain system, and pressing the "Load Last" button - when a last.xml file does exist in the Save\ subdirectory of the program's directory - the program crashed with no error reported. It took the program a couple of serconds between the button press and the crash.

The program also crashes if I try to load a file which I saved using File | Save As... on the the menu.

However - the program is able to load the last.xml provided with the release 7zip-ball under Save\.

YoavHaifa commented 1 year ago

I tried to load several saved files and didn't see any problem. When such a problem occurs, please send me the files that cause the failure.

eyalroz commented 1 year ago

I tried to load several saved files and didn't see any problem. When such a problem occurs, please send me the files that cause the failure.

They were files I created with the new version - I just edited some of the basic fields, used "save as", then tried loading them.

If there was a way you could enable some sort of a stack trace to be printed on crash... on Linux this is easy, since you can set it so that the memory space of the app is saved to a file, and then a debugger can show you where the crash happened.

eyalroz commented 1 year ago

I'm attaching a zip file containing an XML created with the calculator, which triggers a crash when you attempt to load it.

Note that it's possible the problem is not in the file itself, i.e. it's possible that something in the loading code results in a crash on some machines.