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

The logfile Files could not be opened error #509

Closed
bigplayer-ai opened this issue Feb 17, 2023 · 3 comments
Closed

The logfile Files could not be opened error #509

bigplayer-ai opened this issue Feb 17, 2023 · 3 comments

Comments

@bigplayer-ai
Copy link

  • WDD Version: 5.2.0
  • OS Version: Windows 11 22621

Steps to Reproduce:

  1. Random error: the log file could not be opened
    The logfile Filescouldnot be opened:
    System.DllNotFoundException: Dll was not found,
    at
    MS.lnternal,WindowsBase.NativeMethodsSetLastError.SetWin
    dowLongPtrWndProc(HandleRef hWnd, Int32 nlndex,
    WndProc dwNewLong)
    at
    MS. Win32. I-InsafeNativeMethods. CriticalSetWindowLong(Han
    dleRef hWnd, Int32 nlndex, WndProc dwNewLong)
    at MS.Win32.HwndSubclass.HookWindowProc(lntPtr hwnd,
    WndProc newWndProc, IntPtr oldWndProc)
    at MS.Win32.HwndSubclass.SubclassWndProc(lntPtr hwnd,
    Int32 msg, IntPtr wParam, IntPtr IParam)
    image

  2. There is no log files in Windynamicdesktop directory

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

@leostudiooo
Copy link
Contributor

leostudiooo commented Feb 19, 2023

Similar problem on Windows 11 Pro Workstation Build 25295.rs_prerelease.230203-1346(i.e. 22H2), appears even after a reinstallation.

Below is the content of report.log:

//2023/2/19 10:03:25
{
  "ClassName": "System.NullReferenceException",
  "Message": "Object reference not set to an instance of an object.",
  "Data": null,
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": "   at WinDynamicDesktop.ConfigMigrator.UpdateToVersion4()\r\n   at WinDynamicDesktop.ConfigMigrator.Run()\r\n   at WinDynamicDesktop.JsonConfig.LoadConfig()\r\n   at WinDynamicDesktop.AppContext..ctor(String[] args)\r\n   at WinDynamicDesktop.Program.Main(String[] args)",
  "RemoteStackTraceString": null,
  "Remote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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
WARNING: Settings file not found or invalid
./scripts/changeAppsTheme.ps1
./scripts/changeSysTheme.ps1
./themes/j15/j15a1.jpg
./themes/j15/j15a2.jpg
./themes/j15/j15a3.jpg
./themes/j15/j15a4.jpg
./themes/j15/j15a5.jpg
./themes/j15/theme.json
{
	"imageFilename": "j15a*.jpg",
	"imageCredits": "手绘群狼",
	"displayName":"J-15 Carrier Takeoff",
	"sunriseImageList": [
	  4,
	  3
	],
	"dayImageList": [
	  1,
	  2
	],
	"sunsetImageList": [
	  3,
	  4
	],
	"nightImageList": [
	  5
	]
}
./themes/j15/thumbnail.png
./themes/Ventura_Abstract/theme.json
{
  "imageFilename": "Ventura_Abstract_*.jpg",
  "imageCredits": "Apple",
  "dayImageList": [
    1
  ],
  "nightImageList": [
    2
  ]
}

./themes/Ventura_Abstract/Ventura_Abstract_1.jpg
./themes/Ventura_Abstract/Ventura_Abstract_2.jpg

I tried to run WDD sudo, and it can create the logfile now. But in the log there is the same error:

[2023-02-19 02:11:35.698] System.NullReferenceException: Object reference not set to an instance of an object.
   at WinDynamicDesktop.ConfigMigrator.UpdateToVersion4()
   at WinDynamicDesktop.ConfigMigrator.Run()
   at WinDynamicDesktop.JsonConfig.LoadConfig()
   at WinDynamicDesktop.AppContext..ctor(String[] args)
   at WinDynamicDesktop.Program.Main(String[] args)

Can't figure out why.

@leostudiooo
Copy link
Contributor

leostudiooo commented Feb 19, 2023

Looked at similar issues #504, #486 and #479, and it seems to be caused by a Windows 11 update to 22H2. However, everyone's error logs do not seem to be the same, except the log file could not be opened.

@t1m0thyj
Copy link
Owner

Closing as duplicate of #479

"The log file could not be opened" is not really an error, just a message that is shown when another error happens. It means that WinDD doesn't have permission to write a log file in the same folder as the EXE, which is expected if you've installed it in a folder like Program Files that requires admin access to write files. The original error message will still be shown in the dialog.

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