Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: AL|EN on February 18, 2018, 11:48:44 AM

Title: weidu is trying to query setup-<anything>.exe<anything> and hangs
Post by: AL|EN on February 18, 2018, 11:48:44 AM
During auto-update, when there is a "setup-<modTp2Name>.exe.manifest" file present, weidu is trying to query this file and hangs:


Code: [Select]
[G:\Gry\BGIIEE\data\00783\setup-EET.exe] WeiDU version 24400
{setup-EET.exe.manifest} Queried (pid = -1)

process is hanging forever, using "--no-exit-pause" didn't help.
Title: Re: weidu is trying to query setup-<anything>.exe<anything> and hangs
Post by: Argent77 on February 18, 2018, 12:39:46 PM
It's apparently not limited to setup-*.exe.manifest. Looking at the code (https://github.com/WeiDUorg/weidu/blob/master/src/autoupdate.ml#L19) I see that any filename starting with the regex pattern "setup-.*exe" may cause the same issue, which includes harmless and unrelated names such as "setup-lexer.txt" or simply "setup-exe" (without extension).

You can work around the issue with the --noautoupdate argument.
Title: Re: weidu is trying to query setup-<anything>.exe<anything> and hangs
Post by: AL|EN on February 18, 2018, 02:45:03 PM
Yep, it seems that the dot . is special character for OCaml regexp and it isn't escaped.
Title: Re: weidu is trying to query setup-<anything>.exe<anything> and hangs
Post by: Wisp on February 19, 2018, 02:38:59 PM
Fixed. Not that it makes launching strange files and waiting until they respond any less unwise.
Title: Re: weidu is trying to query setup-<anything>.exe<anything> and hangs
Post by: AL|EN on February 20, 2018, 12:04:37 PM
So there is no timeout for query of weidu version from exe?
Title: Re: weidu is trying to query setup-<anything>.exe<anything> and hangs
Post by: Wisp on February 21, 2018, 01:37:12 PM
So there is no timeout for query of weidu version from exe?
Quite so.