t1m0thyj / WinDynamicDesktop

Port of macOS Mojave Dynamic Desktop feature to Windows
https://windd.info
Mozilla Public License 2.0
4.39k stars 292 forks source link

Error when applying theme to lock screen #564

Closed InfinitGit closed 8 months ago

InfinitGit commented 8 months ago

Steps to Reproduce:

  1. Change display selection to "Lock screen"
  2. Attempt to apply any theme to the "Lock screen"

Error: image

Logfile: "[2024-02-18 18:52:13.988] System.IndexOutOfRangeException: Index was outside the bounds of the array. at WinDynamicDesktop.EventScheduler.Run(Boolean forceImageUpdate, DisplayEvent overrideEvent) at WinDynamicDesktop.ThemeDialog.ApplySelectedTheme() at WinDynamicDesktop.ThemeDialog.applyButton_Click(Object sender, EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)"

Are you using the Microsoft Store version of WDD?: Yes

t1m0thyj commented 8 months ago

@InfinitGit Thanks for reporting this. So far I haven't been able to reproduce the issue - am able to apply themes to the lock screen on both a laptop and a multi-monitor desktop. How many monitors/displays do you have and which theme do you have selected for each one?

Also if you navigate to the folder where WinDynamicDesktop EXE is located, there should be a "report.log" file that contains a more detailed error report. Please upload this file to the issue.

Ghadeem commented 8 months ago

I encounter the same error every time I open the app or press the 'refresh wallpaper' button, even though I haven't enabled the lock screen option. I'm currently using the Big Sur theme and originally used the Windows Store version of the app. However, I faced this issue, so I downloaded version 5.4.1 from GitHub, and that's when this issue started occurring. I have attached the 'report.log' file for your reference and action. debug.log report.log WinDynamicDesktop.dll.log

t1m0thyj commented 8 months ago

@Ghadeem The bug you've reported is different from the lock screen error - please see https://github.com/t1m0thyj/WinDynamicDesktop/issues/563#issuecomment-1955934762 for how to fix it. Thanks for attaching the logs, they helped me to diagnose the issue.

@InfinitGit Please provide logs when you have a chance (see my comment above). I still haven't been able to reproduce the lock screen issue.

t1m0thyj commented 8 months ago

@InfinitGit After further investigation I think I identified the cause of the error. Please download the latest test build from here and try to apply a theme to the lock screen again. If it still doesn't work, then please send logs as I mentioned in earlier comment.

t1m0thyj commented 8 months ago

Fixed in 5.4.2