[8.50b12] Refresh of a WinRAR Archive Got A Error Message

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

[8.50b12] Refresh of a WinRAR Archive Got A Error Message

Post by *norfie² »

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"
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6975
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Da sollte man noch wissen, welche externe WinRAR Version du eingebunden hast, und wie ?
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

WinRAR.exe x64 V5.01 is used.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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?
Author of Total Commander
https://www.ghisler.com
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

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"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Beta 13 now retries after 1 second if opening of the RAR archive failed.
Author of Total Commander
https://www.ghisler.com
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

Today there was no error message. Thanks. :)
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice to hear that! Please contact me immediately if you get this problem again.
Author of Total Commander
https://www.ghisler.com
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

Bad news. After a reboot the error appears with beta 13 too. :(
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

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. :?:
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
Post Reply