Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening windynamicdesktop #473

Closed
familypc123 opened this issue Aug 31, 2022 · 10 comments
Closed

Error when opening windynamicdesktop #473

familypc123 opened this issue Aug 31, 2022 · 10 comments

Comments

@familypc123
Copy link

  • 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

@t1m0thyj
Copy link
Owner

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.

@familypc123
Copy link
Author

where is this file located?

@familypc123
Copy link
Author

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

@t1m0thyj
Copy link
Owner

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

@familypc123
Copy link
Author

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

@t1m0thyj
Copy link
Owner

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

@Jaxsss
Copy link

Jaxsss commented Sep 17, 2022

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.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)

@t1m0thyj
Copy link
Owner

t1m0thyj commented Sep 17, 2022

@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?

@Jaxsss
Copy link

Jaxsss commented Sep 17, 2022

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.

@t1m0thyj
Copy link
Owner

t1m0thyj commented Jan 3, 2023

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

@t1m0thyj t1m0thyj closed this as completed Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants