[8.50b12] Refresh of a WinRAR Archive Got A Error Message
Moderators: Hacker, petermad, Stefan2, white
[8.50b12] Refresh of a WinRAR Archive Got A Error Message
Got a error message "Fehler in gepackter Datei ARCHIV.RAR" if an existing archive is updated i.e. replace or adding file with copy function "F5". Update of the archive is done fine. The error message is confusing/misleading only. The archive has a size of >1GiBytes.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
Immanuel Kant in "Perpetual Peace"
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sounds like unrar.dll fails to open the RAR file after you modified it.
Are you able to open it after closing and re-opening TC?
Are you able to open it after closing and re-opening TC?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I suppose a race condition. The error message appears immediately with pressing F5, WinRAR updates the archive. During WinRAR updates the archive there is no archiv access possible. After the end of update all is fine again. There is no problem with smaller archives here.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
Immanuel Kant in "Perpetual Peace"
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't think that it is a race condition with WinRAR - TC waits on the process handle returned when starting WinRAR until windows signals that the process was closed. Since all file handles are closed with the process, the file handle should be closed as well.
I guess that it's a problem with a virus scanner keeping the file locked after Winrar finished. Unfortunately there is no way to find out when it releases it - this can take several minutes when scanning huge archives! Therefore I don't currently see a way to avoid this error. Any suggestions?
I guess that it's a problem with a virus scanner keeping the file locked after Winrar finished. Unfortunately there is no way to find out when it releases it - this can take several minutes when scanning huge archives! Therefore I don't currently see a way to avoid this error. Any suggestions?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Beta 13 now retries after 1 second if opening of the RAR archive failed.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Nice to hear that! Please contact me immediately if you get this problem again.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Today it works fine again. Nothing was changed (a reboot was done).
And it fails on the 2nd trial again. Maybe a cache issue? First trial no cache is involved, 2nd trial archive is cached ... Dunno.

And it fails on the 2nd trial again. Maybe a cache issue? First trial no cache is involved, 2nd trial archive is cached ... Dunno.

"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
Immanuel Kant in "Perpetual Peace"
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Something must be locking your archives for a long time (more than a second). Maybe a slow virus scanner as a I guessed above? There is nothing I can do in that case. 

Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com