Page 1 of 1

Exception saving to network with Backup plugin 3.0.4774

PostPosted: Sun Feb 24, 2013 4:15 pm
by xtremecool
I just managed to cause an exception to be raised when the Backup plugin tried to backup to my NAS.

backup_exception.png
backup_exception.png (29.62 KiB) Viewed 4799 times

I shutdown SportTracks and virtually straight away I hit the sleep button on my PC. I think I may have caused the PC to sleep part way through the backup plugin saving to the network.

When my PC wakes there is sometimes a short delay before the network, and therefore the NAS, become available.

I think this short delay in network availability and the plugin having not completed its action caused this file IO exception, when I next woke my PC up.

Maybe there is a need for a exception handler to wrap all file IO operations, so that stupid actions, like sleeping before the backup plugin has finished :oops:, don't cause this exception. That is if one isn't already there. :)

Re: Exception saving to network with Backup plugin 3.0.4774

PostPosted: Mon Feb 25, 2013 1:41 am
by old_man_biking
Hhm, following your suggestion sounds like a headache :)
Besides there are other considerations: what if the backup device is a removable disk and the user has unplugged it, before waking up the PC/notebook.

I always prefer not to fiddle with problematic situations but prevent to let them arise.
In "your" case the root cause is that the PC went to sleep when it should not do so.
I see if I can set up a solution where Backup Plugin prevents the PC from going to sleep while a backup is being carried out.

Re: Exception saving to network with Backup plugin 3.0.4774

PostPosted: Mon Feb 25, 2013 2:13 am
by xtremecool
OK no problem.

I now know not to sleep my PC until ST & the backup plugin have closed. That stops the problem from happening. :)

Re: Exception saving to network with Backup plugin 3.0.4774

PostPosted: Mon Feb 25, 2013 2:35 am
by old_man_biking
And the next plugin version won't even LET you sleep your PC until then :lol: