winsiderss / systeminformer

A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware. Brought to you by Winsider Seminars & Solutions, Inc. @ http://www.windows-internals.com
https://systeminformer.sourceforge.io
MIT License
11.01k stars 1.4k forks source link

Settings history #1565

Closed alabotski closed 1 year ago

alabotski commented 1 year ago

Description of the feature, modification, idea or suggestion

Is it possible to add saving the history of settings (for example, 5 files)

Sometimes I get this error (often lately) And I have to start setting up the application from the very beginning

image

Proposed implementation details (optional)

No response

dmex commented 1 year ago

Sometimes I get this error (often lately)

Can you upload a copy of the corrupt settings file?

Is it possible to add saving the history of settings

This type of bug has only happened once in 14 years and last time it was caused by an antivirus product. I don't want to make changes to something that's not broken. There's something that has to be causing the corruption.

alabotski commented 1 year ago

@dmex Give me some time.... I deleted the wrong settings file I'll try again to reproduce this error

alabotski commented 1 year ago

It's me again

Windows 2023-02-19 09-34-03

And broken settings file (change extension) SystemInformer.exe.settings.xml.txt

dmex commented 1 year ago

@alabotski

System Informer was terminated while it was saving the settings file and half of the file is missing.

Have you used any system/tweaking/performance tools or modified any timeouts/shutdown related?

alabotski commented 1 year ago

@dmex Yes, I configured something similar when reinstalling Windows But! For all time and with all programs, this problem is only with systeminformer

Is it really such a heavy operation to form an xml and save it on disk? What is missing in the allotted time?

And the second question, why change the settings file every time? Isn't it logical to do this after changing the settings?

dmex commented 1 year ago

Yes, I configured something similar when reinstalling Windows

What values did you configure so I can test this?

why change the settings file every time? Isn't it logical to do this after changing the settings?

There's no notification for some settings like resizing the window or columns so the settings are saved when exiting the application.

Is it really such a heavy operation to form an xml and save it on disk?

No, saving the settings is less than 1 second.

For all time and with all programs, this problem is only with systeminformer

You're probably corrupting other processes but they're not showing a message so you never know.

Task manager applications are configured by default to be the very, very last application terminated by Windows during shutdown so you're able to investigate or debug applications blocking shutdown.

The default shutdown timeout is 60 seconds. You've configured ? 10 seconds and other processes take 9.5 seconds and we're getting half a second or 500ms before getting terminated.

alabotski commented 1 year ago

@dmex Thanks for answer

I have changed the following value HKEY_CURRENT_USER\Control Panel\Desktop\HungAppTimeout REG_SZ 1000 10

Also, you need “heavy” program For example, I can reproduce this crash with Cisco Any Connect

If I close Cisco, wait and then turn off Windows 10 – all works fine BUT But if I immediately turn off the computer without completing Cisco (the shutdown operation takes 30–60 seconds), then it is highly likely that after the reboot the config file System Informer will already be broken

dmex commented 1 year ago

HungAppTimeout

@alabotski Did you also configure AutoEndTasks?

alabotski commented 1 year ago

My value

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"=dword:00000001
dmex commented 1 year ago

Shutdown changes:

Ideally the application settings would only be saved when changing settings/resizing windows/resizing columns instead of when the application exits but this will take some time to update everything.


add saving the history of settings (for example, 5 files)

We could add an option to create a backup of the application settings but shouldn't be needed after the above changes. Let me know if you're still seeing any corrupted settings messages and I'll re-open the issue 👍