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
14.49k stars 1.03k forks source link

Webpage wallpaper crash when running Eye Tracking exe #2152

Closed qualcunu closed 4 months ago

qualcunu commented 4 months ago

Bug description Upon using both UWP and installer Lively app, and launching the Eye Tracking exe file, the Fluids wallpaper will run for a brief time then crash with the code: Stdin write fail: Cannot access a disposed object. Object name: 'System.Diagnostics.Process'.

Steps to reproduce the behavior:

  1. Import "Fluids & Eye" to Lively (Linked below)
  2. Apply the wallpaper (Use Cefsharp)
  3. In "Fluids & Eye/js/" launch "GazeTrackWithTobii2.exe"
  4. Give the wallpaper 5 seconds to begin reacting to the eye tracker input (If nothing happens try re-applying the wallpaper, no need to restart the eye tracking file)

Observed Behaviors Intended behaviors:

Unintended behaviors (The problem):

Videos demonstrating the error:

Desktop

Additional context I had an ambitious project to make my Tobii Eye Tracker function as an input for the Fluids wallpaper. Recently I was finally able to modify the wallpaper's code to do this, and works well in my vscode environment, but once I run it in Lively, it crashes.

(please note) The actual program that sends the eye tracking information is "GazeTrackWithTobii.exe" but I created "GazeTrackWithTobii2.exe" because without an eye tracker you wouldn't be able to reproduce any results. It basically generates a random number in place of the gaze position.

Unfortunately, I cannot access the chrome developer tools to investigate the issue, and while I have looked to see if other people had similar issues, there were no solutions or explanations presented.

Also, while this isn't part of the issue, if you happen to know of an easy way for me to have the exe file launch with the wallpaper please let me know, I don't think there is, but it would make the wallpaper way more usable.

Log file lively_log_20240305_135530.zip

Wallpaper file Fluids & Eye.zip

rocksdanister commented 4 months ago

I am not going to run the exe for safety reasons.

When it crashes what does the CefSharp logfile say? Installer %LocalAppData%\Lively Wallpaper\Cef\logfile.txt

Microsoft Store %LocalAppData%\Packages\12030rocksdanister.LivelyWallpaper_97hta09mmv6hy\LocalCache\Local\Lively Wallpaper\Cef\logfile.txt

qualcunu commented 4 months ago

As for not running the exe, that's fine, totally get it! I've uploaded the original Cpp script to generate the exe file if that's at all helpful! To set it up (Using Visual Studio):

  1. Make a new project: Windows Console Application (C++/WinRT)
  2. Move main.cpp to the project, which can replace the default main.cpp
  3. go to the project tab, the last option [project name] properties, then under configuration properties -> C/C++ -> precompiled headers change the precompiled header dropdown from Use /Yu to Not Using Precompiled Headers
  4. Build the program, then copy to the Fluids & Eye/js/ folder (On the line of code with the comment, changing the milliseconds() parameter sets the speed at which the numbers will generate.) (Default is 500, Eye tracker's speed is 25)

The cpp file I used to run the exe Eye Tracker Sim.zip

CefSharp log Here is the log file from the windows version! The logs seem to stop outputting anything once the wallpaper crashes logfile.txt

Thanks for getting back to me so quick!

rocksdanister commented 4 months ago

I dont have time for this at the moment, too many open issues.

Try recreating this in minimal CefSharp project, if it still happens report to CefSharp directly.

Alternatively integrate the SDK in the Lively C# browser itself by modifying the project.