-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in list command #2273
Comments
Thank you for reporting this. Would you be willing to submit a report using Feedback Hub and provide the link to the report so we can review the additional logs provided? |
It would be better if you had the failure bucket from the crash event; that makes it very easy to find the crash dumps in the back end. But Feedback Hub probably won't help much here. |
After some investigation, there are likely no crash dumps but it might help understand the root problem here if you could provide the log file from a crashing And now in the middle of writing this, I think the issue might be that the Given that your successful log shows this:
With no value for the package id that is failing suggests that the id might also have an embedded null character, or isn't properly being converted from UTF-16 to UTF-8. |
Right. I hoped that narrowing it down to the working/failed versions would get us there. Anyway, given the feedback hub won't help much, instead I've
If needed I could get a full dump. Hope this helps in tracking down this regression. As I said before, the first release versions of winget.exe_220624_163606.dmp.zip |
@ajkajk thank you so much for going above and beyond to help us build a better product. |
I made a fix that should mitigate the issue, but it is hard to know for sure. This is a store signed package, same as the rest on the releases. If you could verify that it does mitigate the issue for you, that would help a lot. I'm going to look at your files to confirm my theory on the root cause. [Remove the .zip extension] |
That didn't take long, found a null byte in a version string immediately.
So the mitigation should work, but it will mean that Photoshop Elements here won't be in |
Tried that build and As you expected, Photoshop Elements is not in the list. It wasn't in the list produced by v1.3.1391-preview either. Elements does appear OK in the Windows 10 Settings/Apps list. Thanks for the fix - I'll look forward to the full fix. Please close this issue whenever your process suggests. |
Brief description of your issue
I upgraded from v1.3.1251-preview to v1.31681 (rc1) and winget now crashes.
I tried other versions - v1.3.1391-preview works but v1.3.1611-preview fails.
The failure occurs when the program examined the installed programs e.g. list command.
The same or very similar failure occurred in earlier versions of the program I tried on this installation; v1.3.1251-preview was the first version I tried that was able to list installed programs. So it appears that v1.3.1611-preview has regressed and the correction included in v1.3.1251-preview seems to have been lost.
Steps to reproduce
The crash occurs on one particular machine whenever a list command is issued.
Expected behavior
A list of installed programs displayed.
Actual behavior
The crash is an access violation and is reported in Security and Maintenance with the following details listed:
The log ends:
The log from a successful run is the same but continues:
Environment
The text was updated successfully, but these errors were encountered: