mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

2.0.21a windows-x64: SetThreadDescription could not be located in uv.dll

Open jared-lafrancois opened this issue 8 months ago • 5 comments

The following error is displayed in a dialog upon execution of mosquitto.exe:

The procedure entry point SetThreadDescription could not be located in the dynamic link library C:\Program Files\mosquitto\uv.dll.

I found that replacing uv.dll (modified 2025-03-06) in my installation of 2.0.21a with a copy of uv.dll (modified 2024-10-03) installed with 2.0.20 will allow mosquitto.exe to run again.

jared-lafrancois avatar May 05 '25 15:05 jared-lafrancois

Thanks, I'll take a look.

ralight avatar May 06 '25 17:05 ralight

libuv 1.50.0 started using this function, which is only available starting from Windows 10. Windows Server 2016 does not have it. 1.51.0 has a fix in place, so once that is in vcpkg then our builds will start using it. There's no open PR for libuv 1.51.0 at vcpkg, I'll see about getting one submitted.

ralight avatar May 07 '25 12:05 ralight

There is no PR for 1.51.0 because it's already merged. This means our most recent CI build should work for you, @jared-lafrancois. Could you please try the installer located on this page to check it works for you? https://github.com/eclipse-mosquitto/mosquitto/actions/runs/14858110562

ralight avatar May 07 '25 13:05 ralight

This fits with what I'm seeing. Both servers where I initially and unsuccessfully tried installing 2.0.21a are running Windows Server 2016. I tried again on a Windows 11 computer and it works.

https://github.com/eclipse-mosquitto/mosquitto/actions/runs/14858110562

The 2.0.22 CI build from this link does not fix the issue for me on Window Server 2016. The timestamp on uv.dll implies that a newer copy of uv.dll was installed, but the same error persists.

jared-lafrancois avatar May 07 '25 14:05 jared-lafrancois

The vcpkg port was updated to 1.51.0 on the vcpkg github on the 28th April, but I've checked and agree that the version in our installer is still 1.50.0. It seems like github CI only makes use of the vcpkg releases, rather than the head of the vcpkg github ports so 1.51.0 isn't included.

ralight avatar May 07 '25 15:05 ralight