lx-s / WinMute

WinMute lets you automatically mute your PC volume on certain events (e. g. Screensaver, Workstation Lock, Shutdown, etc.).
BSD 3-Clause "New" or "Revised" License
168 stars 6 forks source link

WinMute 2.3.0 bug #23

Closed GitToLife closed 1 year ago

GitToLife commented 1 year ago

Hi,

Got this error (picture) whenever launch the app or lock the system

image

lx-s commented 1 year ago

Can you tell me how you installed it (setup or just unzipped)? Which Operating System Version are you using (I'm guessing Windows 10)? Do you run WinMute under any kind of sandbox or virtualization that would prevent registry access?

Could you also enable logging and post your log-file? grafik

Thanks for your help!

GitToLife commented 1 year ago

Can you tell me how you installed it (setup or just unzipped)? => I don't remember sorry.

Which Operating System Version are you using (I'm guessing Windows 10)? => Yes, Windows 10 Enterprise LTSC Version 1809 (OS Build 17763.4377)

Do you run WinMute under any kind of sandbox or virtualization that would prevent registry access? => No

Could you also enable logging and post your log-file? => Sure, below is my log: [2023-06-13 14:11:23] Loading settings: [2023-06-13 14:11:23] Restore volume: Yes [2023-06-13 14:11:23] Mute on lock: Yes [2023-06-13 14:11:23] Mute on display standby: Yes [2023-06-13 14:11:23] Mute on logout: No [2023-06-13 14:11:23] Mute on suspend: No [2023-06-13 14:11:23] Mute on shutdown: No [2023-06-13 14:11:23] Show notifications: No [2023-06-13 14:11:23] Mute on bluetooth: No [2023-06-13 14:11:23] Use devicelist: No [2023-06-13 14:11:23] Mute on WLAN: No [2023-06-13 14:11:23] Use allowlist: No [2023-06-13 14:11:33] Loading settings: [2023-06-13 14:11:33] Restore volume: Yes [2023-06-13 14:11:33] Mute on lock: Yes [2023-06-13 14:11:33] Mute on display standby: Yes [2023-06-13 14:11:33] Mute on logout: No [2023-06-13 14:11:33] Mute on suspend: No [2023-06-13 14:11:33] Mute on shutdown: No [2023-06-13 14:11:33] Show notifications: No [2023-06-13 14:11:33] Mute on bluetooth: No [2023-06-13 14:11:33] Use devicelist: No [2023-06-13 14:11:33] Mute on WLAN: No [2023-06-13 14:11:33] Use allowlist: No [2023-06-13 14:11:38] Mute Event: Workstation Lock start [2023-06-13 14:11:38] Saving mute status [2023-06-13 14:11:38] Found audio endpoint "FxSound Speakers (FxSound Audio Enhancer)" [2023-06-13 14:11:38] Found audio endpoint "Speakers (Realtek High Definition Audio)" [2023-06-13 14:11:38] Found audio endpoint "Realtek Digital Output(Optical) (Realtek High Definition Audio)" [2023-06-13 14:11:38] Found audio endpoint "ROG PG348Q (NVIDIA High Definition Audio)" [2023-06-13 14:11:38] Found audio endpoint "Realtek Digital Output (Realtek High Definition Audio)" [2023-06-13 14:11:38] Muting workstation [2023-06-13 14:11:40] Mute Event: Workstation Lock stop [2023-06-13 14:11:40] Restoring previous mute state [2023-06-13 14:11:40] Restoring: Mute false for "FxSound Speakers (FxSound Audio Enhancer)" [2023-06-13 14:11:40] Restoring: Mute false for "Speakers (Realtek High Definition Audio)" [2023-06-13 14:11:40] Restoring: Mute false for "Realtek Digital Output(Optical) (Realtek High Definition Audio)" [2023-06-13 14:11:40] Restoring: Mute true for "ROG PG348Q (NVIDIA High Definition Audio)" [2023-06-13 14:11:40] Restoring: Mute false for "Realtek Digital Output (Realtek High Definition Audio)" [2023-06-13 14:12:34] Loading settings: [2023-06-13 14:12:34] Restore volume: Yes [2023-06-13 14:12:34] Mute on lock: Yes [2023-06-13 14:12:34] Mute on display standby: Yes [2023-06-13 14:12:34] Mute on logout: No [2023-06-13 14:12:34] Mute on suspend: No [2023-06-13 14:12:34] Mute on shutdown: No [2023-06-13 14:12:34] Show notifications: No [2023-06-13 14:12:34] Mute on bluetooth: No [2023-06-13 14:12:34] Use devicelist: No [2023-06-13 14:12:34] Mute on WLAN: No [2023-06-13 14:12:34] Use allowlist: No [2023-06-13 14:12:36] Mute Event: Workstation Lock start [2023-06-13 14:12:36] Saving mute status [2023-06-13 14:12:36] Muting workstation [2023-06-13 14:12:38] Mute Event: Workstation Lock stop [2023-06-13 14:12:38] Restoring previous mute state [2023-06-13 14:12:38] Restoring: Mute false for "FxSound Speakers (FxSound Audio Enhancer)" [2023-06-13 14:12:38] Restoring: Mute false for "Speakers (Realtek High Definition Audio)" [2023-06-13 14:12:38] Restoring: Mute false for "Realtek Digital Output(Optical) (Realtek High Definition Audio)" [2023-06-13 14:12:38] Restoring: Mute true for "ROG PG348Q (NVIDIA High Definition Audio)" [2023-06-13 14:12:38] Restoring: Mute false for "Realtek Digital Output (Realtek High Definition Audio)" [2023-06-13 14:12:53] Loading settings: [2023-06-13 14:12:53] Restore volume: Yes [2023-06-13 14:12:53] Mute on lock: Yes [2023-06-13 14:12:53] Mute on display standby: Yes [2023-06-13 14:12:53] Mute on logout: No [2023-06-13 14:12:53] Mute on suspend: No [2023-06-13 14:12:53] Mute on shutdown: No [2023-06-13 14:12:53] Show notifications: No [2023-06-13 14:12:53] Mute on bluetooth: No [2023-06-13 14:12:53] Use devicelist: No [2023-06-13 14:12:53] Mute on WLAN: No [2023-06-13 14:12:53] Use allowlist: No

lx-s commented 1 year ago

Before we proceed, could you make sure that you are indeed using WinMute 2.3.0. I am missing the following line from your log file (also the formatting changed in WinMute 2.3.0): [...] Mute specific endpoints only: No

If updating to WinMute 2.3.0 does not fix the problem, would you be so kind as to provide with a screenshot (or an export) of the registry-key HKEY_CURRENT_USER\Software\lx-systems\WinMute

grafik

An export would be possible by right-clicking the WinMute "folder" within the Registry Editor (regedit.exe) and choosing export.

GitToLife commented 1 year ago

You were right. I was using 2.2.0.0 instead, because this setup installed the wrong version (https://github.com/lx-s/WinMute/releases/download/2.3.0.0/WinMute_2.3.0-Setup.exe)

I've just tested the 2.3.0 version from the zip link (https://github.com/lx-s/WinMute/releases/download/2.3.0.0/WinMute_2.3.0.zip) and it still doesn't fix the problem so below is my regedit screenshot :

image

Thanks

lx-s commented 1 year ago

Thank your for answering so quickly and sorry for my slow response...

I reuploaded the setup.exe (and in that instance, I really have to automate the whole packaging process, so that that error won't happen again).

Whats really irritating is, that no calls to the registry are made during lock and/or unlock. Later that day, I'll modify the program to log all registry accesses and I'd like to provide that modified version to, so that I can a better understanding what is happening on your machine.

Thank you for your patience.

lx-s commented 1 year ago

Later that day: I had the time actually now, and it's a 5 line change ;)

Here is a modified WinMute version that has logs when registry accesses fail. If you'd like, you can run it with logging enabled and share me your log file, after you encounter the error.

Thanks for your help!

WinMute_2.3.0.0_with_reg_log.zip

GitToLife commented 1 year ago

Hi,

It's okay. I've created an Autoit script running background to close that error dialog so now I can live with it :D Below is my log:

[2023-07-02 11:30:02] Starting WinMute 2.3.0.0 [2023-07-02 11:30:02] Loading settings: [2023-07-02 11:30:02] Restore volume: Yes [2023-07-02 11:30:02] Mute on lock: Yes [2023-07-02 11:30:02] Mute on display standby: Yes [2023-07-02 11:30:02] Mute on logout: No [2023-07-02 11:30:02] Mute on suspend: No [2023-07-02 11:30:02] Mute on shutdown: No [2023-07-02 11:30:02] Show notifications: No [2023-07-02 11:30:02] Mute on bluetooth: No [2023-07-02 11:30:02] Use devicelist: No [2023-07-02 11:30:02] Mute on WLAN: No [2023-07-02 11:30:02] Use allowlist: No [2023-07-02 11:30:02] Mute specific endpoints only: No [2023-07-02 11:30:05] Starting new session... [2023-07-02 11:30:05] Found audio endpoint "FxSound Speakers (FxSound Audio Enhancer)" [2023-07-02 11:30:05] Found audio endpoint "Speakers (Realtek High Definition Audio)" [2023-07-02 11:30:05] Found audio endpoint "Realtek Digital Output(Optical) (Realtek High Definition Audio)" [2023-07-02 11:30:05] Found audio endpoint "ROG PG348Q (NVIDIA High Definition Audio)" [2023-07-02 11:30:05] Found audio endpoint "Realtek Digital Output (Realtek High Definition Audio)" [2023-07-02 11:30:05] Starting WinMute 2.3.0.0 [2023-07-02 11:30:05] Loading settings: [2023-07-02 11:30:05] Restore volume: Yes [2023-07-02 11:30:05] Mute on lock: Yes [2023-07-02 11:30:05] Mute on display standby: Yes [2023-07-02 11:30:05] Mute on logout: No [2023-07-02 11:30:05] Mute on suspend: No [2023-07-02 11:30:05] Mute on shutdown: No [2023-07-02 11:30:05] Show notifications: No [2023-07-02 11:30:05] Mute on bluetooth: No [2023-07-02 11:30:05] Use devicelist: No [2023-07-02 11:30:05] Mute on WLAN: No [2023-07-02 11:30:05] Use allowlist: No [2023-07-02 11:30:05] Mute specific endpoints only: No [2023-07-02 11:30:06] [Registry] Failed to query value for key "SystemUsesLightTheme" [2023-07-02 11:30:06] WinMute initialized [2023-07-02 11:30:21] Starting WinMute 2.3.0.0 [2023-07-02 11:30:21] Loading settings: [2023-07-02 11:30:21] Restore volume: Yes [2023-07-02 11:30:21] Mute on lock: Yes [2023-07-02 11:30:21] Mute on display standby: Yes [2023-07-02 11:30:21] Mute on logout: No [2023-07-02 11:30:21] Mute on suspend: No [2023-07-02 11:30:21] Mute on shutdown: No [2023-07-02 11:30:21] Show notifications: No [2023-07-02 11:30:21] Mute on bluetooth: No [2023-07-02 11:30:21] Use devicelist: No [2023-07-02 11:30:21] Mute on WLAN: No [2023-07-02 11:30:21] Use allowlist: No [2023-07-02 11:30:21] Mute specific endpoints only: No [2023-07-02 11:30:24] Starting new session... [2023-07-02 11:30:24] Found audio endpoint "FxSound Speakers (FxSound Audio Enhancer)" [2023-07-02 11:30:24] Found audio endpoint "Speakers (Realtek High Definition Audio)" [2023-07-02 11:30:24] Found audio endpoint "Realtek Digital Output(Optical) (Realtek High Definition Audio)" [2023-07-02 11:30:24] Found audio endpoint "ROG PG348Q (NVIDIA High Definition Audio)" [2023-07-02 11:30:24] Found audio endpoint "Realtek Digital Output (Realtek High Definition Audio)" [2023-07-02 11:30:24] Starting WinMute 2.3.0.0 [2023-07-02 11:30:24] Loading settings: [2023-07-02 11:30:24] Restore volume: Yes [2023-07-02 11:30:24] Mute on lock: Yes [2023-07-02 11:30:24] Mute on display standby: Yes [2023-07-02 11:30:24] Mute on logout: No [2023-07-02 11:30:24] Mute on suspend: No [2023-07-02 11:30:24] Mute on shutdown: No [2023-07-02 11:30:24] Show notifications: No [2023-07-02 11:30:24] Mute on bluetooth: No [2023-07-02 11:30:24] Use devicelist: No [2023-07-02 11:30:24] Mute on WLAN: No [2023-07-02 11:30:24] Use allowlist: No [2023-07-02 11:30:24] Mute specific endpoints only: No [2023-07-02 11:30:25] [Registry] Failed to query value for key "SystemUsesLightTheme" [2023-07-02 11:30:25] WinMute initialized

Hope it helps!

lx-s commented 1 year ago

Strange that the key "SystemUsesLightTheme" is not available on your system.

Attached you'll find a new version, that should get rid of the messagebox :) WinMute_2.3.0.0_with_reg_log.zip

GitToLife commented 1 year ago

Strange that the key "SystemUsesLightTheme" is not available on your system.

Attached you'll find a new version, that should get rid of the messagebox :) WinMute_2.3.0.0_with_reg_log.zip

It worked, thanks!