adileo / squirreldisk

Beautiful, Cross-Platform and Super Fast Disk Usage Analysis Tool - Built With Rust 🦀
https://squirreldisk.com
GNU Affero General Public License v3.0
741 stars 24 forks source link

SquirrelDisk crashing on startup #6

Open mariobrostech opened 1 year ago

mariobrostech commented 1 year ago

I am currently testing SquirrelDisk on a Windows 10 system. Upon initial installation, starting the app results in it instant-crashing. No error messages are displayed, but nothing happens. Are there any dependencies that SquirrelDisk needs to function? If not, can this issue please be looked into?

Thanks in advance!

adileo commented 1 year ago

Thanks for reporting the issue. Since I don't have a Win 10 machine at hand. Do you have any crash/log errors?

The only dependency I could think of are:

I will investigate into this

mariobrostech commented 1 year ago

Thanks for looking into this! The program doesn't display a crash log/error when it closes, but if this is supposed to be logged somewhere, please let me know so I can look for it and send it to you. I could also try looking through Event Viewer, but it's very verbose and therefore difficult to find exactly what you're looking for. Please don't hesitate to me know if there's any other way I could help!

adileo commented 1 year ago

No problem, you're welcome

I've tried to use it on a clean Win 10 installation in a VM and noticed that the software had a dependency on "Visual C++ Redistributable", so in the last release I switched the "PDU" dependency to a GNU toolchain build (vs the MSVC).

If you are able to test the new v0.3.4 build, it should work With those changes I was able to run it both on a Win 10 Virtual Machine, and another Win 10 machine.

If that's not the case I suppose it could be some kind of antivirus... Or maybe looking into the Event Viewer crash log could be helpful.

mariobrostech commented 1 year ago

Hi,

I tried testing the revised version on my host, and it exhibited the same behavior. When testing with a virtual machine, it also didn't initially work, but upon installing the Visual C++ Redistributable, everything seemed to be functional. Is there any way that you can make the installer prompt the user to install the Visual C++ Redistributable if it isn't already present?

Thanks again!

mariobrostech commented 1 year ago

@adileo I figured out what was causing SquirrelDisk to crash on my personal machine. It requires the Microsoft Edge WebView2 Runtime, which I didn't have installed. Could you also prompt the user to install that before the setup is allowed to proceed further (or remove the dependency, if possible)?

adileo commented 1 year ago

Hi @mariobrostech! Thanks for the help in debugging! I could embed that in the build but it would increase the bundle size of around 100MB for the application. Probably I could find some workaround.

I'll look into it.