WinDynamicDesktop icon indicating copy to clipboard operation
WinDynamicDesktop copied to clipboard

Error when opening windynamicdesktop

Open familypc123 opened this issue 2 years ago • 9 comments

  • WDD Version: i cant open the windynamicdesktop but i reinstalled to the 5.1.0
  • OS Version: Windows 10 pro 21H2 Steps to Reproduce:
  1. open windynamic desktop on windows 10 pro 21H2
  2. receive this error: object reference not set to an instance on an object. image

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

familypc123 avatar Aug 31 '22 07:08 familypc123

Could you attach the contents of the settings.conf or settings.json file in the same folder as the log file? Feel free to redact location info from them.

To work around the issue, you can delete the settings file to reset WDD settings and relaunch WDD.

t1m0thyj avatar Aug 31 '22 11:08 t1m0thyj

where is this file located?

familypc123 avatar Aug 31 '22 13:08 familypc123

there is no folder windynamicdesktop where the app is saying that there is.

familypc123 avatar Aug 31 '22 13:08 familypc123

See the steps here to find the location where WDD is installed: https://github.com/t1m0thyj/WinDynamicDesktop/wiki/Troubleshooting#finding-where-app-is-installed

t1m0thyj avatar Aug 31 '22 13:08 t1m0thyj

See the steps here to find the location where WDD is installed: https://github.com/t1m0thyj/WinDynamicDesktop/wiki/Troubleshooting#finding-where-app-is-installed

followed this did not find any folder that has this name in localapp %LOCALAPPDATA%\Programs

familypc123 avatar Aug 31 '22 13:08 familypc123

From the Windows start menu, can you right click on WinDynamicDesktop and select Open file location?

t1m0thyj avatar Aug 31 '22 13:08 t1m0thyj

I have the same issue "Index was outside the bounds of the array."

WDD version: 5.1.0 From Microsoft Store: No

I tried the steps you mentioned but did not help, I also tried to insert ["Windows_10"] into activeTheme key as someone has suggested, didn't help too.

Happened right after choosing timezone. When I try to select another theme, this error pops up and there is only Windows theme named as "None".

My current Windows version is - 21H2, build 19044.2006

Config file looks like this:

{ "locationMode": 1, "location": null, "latitude": null, "longitude": null, "sunriseTime": null, "sunsetTime": null, "sunriseSunsetDuration": 0, "activeThemes": null, "darkMode": false, "changeLockScreen": false, "enableShuffle": false, "lastShuffleDate": null, "shuffleHistory": null, "favoriteThemes": null, "language": "en", "autoUpdateCheck": true, "lastUpdateCheckTime": "09/17/2022 19:24:11", "hideTrayIcon": false, "fullScreenPause": false, "enableScripts": false, "debugLogging": false }

Error:

[2022-09-17 17:24:12.735] System.IndexOutOfRangeException: Index was outside the bounds of the array. at WinDynamicDesktop.ThemeDialog.<>c__DisplayClass7_0.<GetDisplayNames>b__4(KeyValuePair2 x) at System.Linq.Enumerable.SelectIPartitionIterator2.LazyToArray() at System.Linq.Enumerable.SelectIPartitionIterator`2.ToArray() at WinDynamicDesktop.ThemeDialog.GetDisplayNames() at WinDynamicDesktop.ThemeDialog.ThemeDialog_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Jaxsss avatar Sep 17 '22 17:09 Jaxsss

@Jaxsss Since the error message mentions GetDisplayNames, this error seems related to the number of displays you have connected and some of them not being detected correctly. How many screens/monitors do you have?

t1m0thyj avatar Sep 17 '22 18:09 t1m0thyj

I have 3 monitors. All of them are detected in Windows Settings and also in NVIDIA Control Panel, I do have all three of them connected to graphics card.

Jaxsss avatar Sep 17 '22 18:09 Jaxsss

Closing since the original issue has gone stale and the other issue (IndexOutOfRangeException) is tracked in #498

t1m0thyj avatar Jan 03 '23 01:01 t1m0thyj