rocksdanister / lively

Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
https://rocksdanister.com/lively
GNU General Public License v3.0
15.05k stars 1.06k forks source link

Wallpaper thread crash: Cannot access a disposed object. Object name: 'Process'. #1237

Open meekah7 opened 2 years ago

meekah7 commented 2 years ago

Describe the bug I have the Matrix HTML/JS wallpaper on 2 screens, and when running a game in fullscreen after a while sometimes the wallpaper takes up both screens, although not animated anymore. After Alt-Tabbing to get rid of the wallpaper, the desktop wallpaper is just black.

To Reproduce Steps to reproduce the behavior: Sadly I'm really not sure what exactly causes this behavior.

Desktop (please complete the following information):

Additional context The GUI for managing the wallpapers seems to work normally.

Log file (Important) 20220526_114255.txt

rocksdanister commented 2 years ago

Looks like the browser crashed already and Lively is failing to communicate with it, I can't reproduce it on my system (nvidia).. could be amd gpu driver and CefSharp related.

What does the CefSharp logfile say? %LocalAppData%\Packages\12030rocksdanister.LivelyWallpaper_97hta09mmv6hy\LocalCache\Local\Lively Wallpaper\Cef

meekah7 commented 2 years ago

Here's the single file I found in the directory you provided: logfile.txt Also, I am using an AMD CPU and GPU, so the drivers being an issue might be true. I'd be happy to work with you to resolve the issue with AMD drivers if you need me to test something on my hardware.

Skip75 commented 2 years ago

Hello, same issue with me. Also full AMD and dual screen config.

2022-08-04 17:59:27.7768|ERROR|Lively.Core.Wallpapers.WebCefSharpProcess|Stdin write fail: Cannot access a disposed object.
Object name: 'Process'.
2022-08-04 18:27:10.4738|INFO|Lively.Core.Watchdog.WatchdogProcess|Cleared watchdog program(s)..

Inside cef logfile, there is only 1 line of log... and it seems the end of the line is missing^^

[0804/182934.173:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is

And in windows application event log, the error is as below :

Name of the failed application Lively.PlayerCefSharp.exe, version: 1.0.0.0, timestamp: 0x8049d347
Name of failed module: KERNELBASE.dll, version: 10.0.19041.1865, timestamp: 0x279dbf14
Exception code: 0xe0000008
Error offset: 0x0012caf2
Failed process ID: 0x40b4
Start time of failed application: 0x01d8a7c99184ad89
Path of the failed application: C:\Program Files\WindowsApps\12030rocksdanister.LivelyWallpaper_1.0.123.0_x86__97hta09mmv6hy\Build\plugins\cef\Lively.PlayerCefSharp.exe
Path of the failed module: C:\Windows\System32\KERNELBASE.dll
Report ID: e8156449-2ec1-458b-b8c9-ae8c5d2ed988
Full name of the failed package: 12030rocksdanister.LivelyWallpaper_1.0.123.0_x86__97hta09mmv6hy
Application ID of the failed package: App

and

Application: Lively.PlayerCefSharp.exe
Framework version: v4.0.30319
Description: the process was stopped due to an unhandled exception.
Exception information: exception code e0000008, exception address 7710CAF2
Stack:

If needed, I can also share the .WER file.

rocksdanister commented 2 years ago

I am switching to WebView2 in the future if things go according to plan.

There is a build of WebView2 for installer version of Lively if you want to test: https://github.com/rocksdanister/lively/wiki/Web-Guide-I-:-Cef#webview2-microsoft-edge

but only url wallpapers work for now until the till this update https://github.com/MicrosoftEdge/WebView2Feedback/issues/1825

meekah7 commented 2 years ago

I think I haven't had any issues in a while anyway. Not sure if it was an update of your software or a driver update, or maybe even just luck.