ARM505 Posted November 20, 2012 Posted November 20, 2012 During an update by the autoupdater, my UPS decided to die, and the PC powered down. Now, whenever I try to start DCS World, I get the message Error: Another updater instance is running. There isn't any other DCS or related process I can find that is running. The repair option just gives the same error. Multiplayer loads ok. Anything else gives the error. Is this just not a very robust program or am I missing some obvious solution? I've tried deleting autoupdater logs etc, no joy, same error every time.
ARM505 Posted November 20, 2012 Author Posted November 20, 2012 This is the autoupdate.log 00000.000 INFO : === MiniLog opened UTC 2012-11-20 18:46:19 00001.009 ERROR : Caught an exception: Another updater instance is running. 00002.094 INFO : === MiniLog closed. ie basically useless.
aap_flanker Posted November 20, 2012 Posted November 20, 2012 I had same issue today when my connection hangs... I resolved by open task manager, and have to finish the autoupdater process. Then I start autoupdater and the update was acomplished without any problem Intel i5 11700F + H80 | 4x4GB 3200mhz RAM | AORUS ELITE B560M | Samsung 850 PRO SSD 256gb| KINGSTON SA400 480GB SSD | WD 500GB | Gigabyte GTX 1070 8GB | Antec 1200 PSU | Thrustmaster Warthog HOTAS and homemade panels and rudder pedals | 24" Samsung T24C550 @60Hz 2ms | Opentrack 3 led clip
ED Team c0ff Posted November 20, 2012 ED Team Posted November 20, 2012 During an update by the autoupdater, my UPS decided to die, and the PC powered down. Now, whenever I try to start DCS World, I get the message Error: Another updater instance is running. There isn't any other DCS or related process I can find that is running. It's a problem of Windows, it should delete the lockfile when the process exits. But in such case it seems not to. Please, delete the file C:\Users\<YOU>\Saved Games\DCS\autoupdate.lock I'll think about a better solution for this. Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
ALDEGA Posted November 20, 2012 Posted November 20, 2012 I'll think about a better solution for this.CreateMutex?
ARM505 Posted November 20, 2012 Author Posted November 20, 2012 It's a problem of Windows, it should delete the lockfile when the process exits. But in such case it seems not to. Please, delete the file C:\Users\<YOU>\Saved Games\DCS\autoupdate.lock I'll think about a better solution for this. +1000 internet points to you, that it's. Funnily enough, I deleted the 'autoupdate.cache' file thats in the same folder, but didn't try that one. Anyway, that was fast and sorted the problem out, thanks a lot.
ED Team c0ff Posted November 20, 2012 ED Team Posted November 20, 2012 (edited) CreateMutex? Mutexes (or it's "mutices"?) have their own share of problems: http://vermiculture.blogspot.ru/2010/05/closehandle-vs-releasemutex.html And from CreateMutex MSDN page: "Alternatively, you can use a file for this purpose. To limit your application to one instance per user, create a locked file in the user's profile directory." Edited November 20, 2012 by c0ff Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
ALDEGA Posted November 20, 2012 Posted November 20, 2012 From that page, btw: "Alternatively, you can use a file for this purpose. To limit your application to one instance per user, create a locked file in the user's profile directory."Yep, I saw that too. Locked files aren't deleted in all cases though (system crash, loss of power [as in ARM505's case] ...). What about enumerating processes and looking for other instances of DCS_updater.exe / DCS_update_apply.exe?
ALDEGA Posted November 20, 2012 Posted November 20, 2012 Mutexes (or it's "mutices"?) have their own share of problems: http://vermiculture.blogspot.ru/2010/05/closehandle-vs-releasemutex.htmlA GUID can be used as mutex name. GUID's are quite ... unique :D
ED Team c0ff Posted November 20, 2012 ED Team Posted November 20, 2012 A GUID can be used as mutex name. GUID's are quite ... unique :D Have you read the link? Win32 mutexes are "abandoned" when the owning thread exits without releasing them. That is, if the process owning the mutex does not call ReleaseMutex, then nobody will ever own this mutex again - a recipe for a deadlock. Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
ED Team c0ff Posted November 20, 2012 ED Team Posted November 20, 2012 Anyway, that was fast and sorted the problem out, thanks a lot. I just found an easy solution for this. Thanks for your bugreport. Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
Scooternutz Posted January 4, 2013 Posted January 4, 2013 It's a problem of Windows, it should delete the lockfile when the process exits. But in such case it seems not to. Please, delete the file C:\Users\<YOU>\Saved Games\DCS\autoupdate.lock I'll think about a better solution for this. Thank you so much!!!!!!!!!! [sIGPIC]https://drive.google.com/file/d/16rUBmmJR7A3YGZVGPGskxG1XtvulGojJ/view?usp=sharing[/sIGPIC]
Recommended Posts