chocolatey / ChocolateyGUI

A delicious GUI for Chocolatey
https://docs.chocolatey.org/en-us/chocolatey-gui/
Apache License 2.0
1.65k stars 251 forks source link

Null reference exception is thrown when accessing the Chocolatey GUI settings screen #1003

Closed mattgyver-it closed 1 year ago

mattgyver-it commented 1 year ago

Checklist

What You Are Seeing?

I just did a fresh install of Chocolatey 2.0.0 through powershell on Win 10 Home as an OSS user. I installed the ChocolateyGUI package. When I open ChocolateyGUI as admin, and click on Settings, it immediately throws the following NullException and then crashes. Screenshot 2023-05-31 072129

What is Expected?

I expected to see the settings menu

How Did You Get This To Happen?

  1. Open ChocolateyGUI
  2. Click Settings

System Details

Installed Packages

-lo is invalid

Chocolatey v2.0.0
7zip.install 22.1.0
adobereader 2023.1.20143
chocolatey 2.0.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolateygui 2.0.0
dotnetfx 4.8.0.20220524
KB2919355 1.0.20160915
KB2919442 1.0.20160915
notepadplusplus.install 8.5.3
11 packages installed.

Output Log

2023-05-31 07:18:49.608 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:18:49.729 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 117ms
2023-05-31 07:19:57.506 -07:00 [Fatal] Unhandled Exception
2023-05-31 07:45:48.683 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 07:45:59.752 -07:00 [Fatal] Unhandled Exception
2023-05-31 07:49:22.924 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 07:49:27.112 -07:00 [Fatal] Unhandled Exception
2023-05-31 07:52:33.609 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 07:52:42.332 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:52:43.383 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0
2023-05-31 07:52:43.475 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0 88ms
2023-05-31 07:52:43.603 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:52:44.712 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0
2023-05-31 07:52:44.792 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0 77ms
2023-05-31 07:52:45.076 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:52:45.147 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 69ms
2023-05-31 07:53:00.634 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:01.645 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0
2023-05-31 07:53:01.871 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0 223ms
2023-05-31 07:53:01.976 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:03.124 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0
2023-05-31 07:53:03.369 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0 242ms
2023-05-31 07:53:03.508 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:53:03.734 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 225ms
2023-05-31 07:53:23.243 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:24.357 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0
2023-05-31 07:53:24.437 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0 78ms
2023-05-31 07:53:24.537 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:25.570 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0
2023-05-31 07:53:25.643 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0 70ms
2023-05-31 07:53:25.757 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:53:25.824 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 65ms
2023-05-31 07:53:43.633 -07:00 [Fatal] Unhandled Exception
2023-05-31 08:06:26.524 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 08:06:30.382 -07:00 [Fatal] Unhandled Exception

Additional Context

No response

pauby commented 1 year ago

I am able to reproduce this issue.

gep13 commented 1 year ago

A new version of Chocolatey GUI (v2.1.0-alpha-20230608) has been released which aims to address this issue. You can find the release notes here:

https://docs.chocolatey.org/en-us/chocolatey-gui/release-notes#alpha-20230608-june-8-2023

And the package here:

https://community.chocolatey.org/packages/chocolateygui/2.1.0-alpha-20230608

You should be able to upgrade to this package version using:

choco upgrade chocolateygui --pre

If you could take this for a spin, and verify that the issue is now resolved, that would be very helpful.

mattgyver-it commented 1 year ago

I upgraded the package, and settings loads fine now! Thanks!

gep13 commented 1 year ago

@mattgyver-it thank you for confirming!

IT-Apkl commented 1 year ago

Had the same issue but couldn't find this report. Adding keywords to make this issue easier to find.

Keywords:

choco-bot commented 1 year ago

:tada: This issue has been resolved in version 2.1.0 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket: