Client: [Windows 7] Crashes leave qtsingleapplication-*-lockfile in the temp directory

Created on 16 May 2018  路  9Comments  路  Source: owncloud/client

It seems, OwnCloud does not cleanup after itself.
I only reboot my system once or twice a month, so I only have a handful of these files around, but on my coworkers' machines that rebooted multiple times a day, these files are multiply like rabbits.

bug sev4-low

All 9 comments

On normal shutdown the file will be removed. Crashes do indeed lead to left-over files in the temp directory.

We probably should upgrade qtsingle application to the last solution based on Qt 5, which use QLockFile instead of this custome lock file mechanism.
I don't know if it will fix this problem tough.

Crashes? Who said anything about crashes?
Please don't edit the report if you don't understand the issue.

@AnrDaemon owncloud does clean after itself. It only is a problem if the owncloud client is not terminated properly. For example, because of a crash, or if the computer was shut down without closing the client.

It does not.

$ dir "%TEMP%\qt*"
06.05.2018  02:36                 0 qtsingleapplication-6fba-1-lockfile
29.05.2018  17:53                 0 qtsingleapplication-d111-1-lockfile
$

Dates exactly correspond to the system shutdowns.
May 6, I rebooted during maintenance of my system environment, May 16, I cleaned up the %TEMP% directory and reported the issue. The only file I did not delete was one locked by a running OwnCloud instance.
Just now, I rebooted again, and a lockfile from May, 6 was not deleted.

Maybe rebooting does not close the client properly in your case.
But I cannot reproduce the problem on my VM.

I do not think this is something that we can fix.

The logoff/shutdown process is well documented, all window messages posted through it are known, if you ignore them (or your library ignore them) it is your problem to fix, and you can fix it.

@AnrDaemon which Windows version?

Windows 7.
I readily reproduced this on a fresh Windows 7/Pro 64-bit VM.

Was this page helpful?
0 / 5 - 0 ratings