-
Notifications
You must be signed in to change notification settings - Fork 942
Installing package after BSOD fails with "hexadecimal value 0x00, is an invalid character. Line 1, position 1" error #3875
Description
Checklist
- I confirm there are no unresolved issues reported on the Chocolatey Status page.
- I have verified this is the correct repository for opening this issue.
- I have verified no other issues exist related to my problem.
- I have verified this is not an issue for a specific package.
- I have verified this issue is not security related.
- I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
(I ticked the "I have verified no other issues exist related to my problem" box above but I did find related issue #1328 , but was asked to create a new issue regardless.)
I am trying to install a package - specifically notepadplusplus - and it fails because it is unable to parse some file that it expects to be in XML format.
If I run this command - choco install notepadplusplus --trace this is the relevant portion of chocolatey.log (which contains all output seen onscreen as well):
2026-03-31 22:25:40,731 25728:1 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/ - :ResolveResource:0
2026-03-31 22:25:40,735 25728:1 [INFO ] - [NuGet] CACHE https://community.chocolatey.org/api/v2/Packages(Id='notepadplusplus.install',Version='8.9.3') - :MoveNext:0
2026-03-31 22:25:40,736 25728:1 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/ - :ResolveResource:0
2026-03-31 22:25:40,752 25728:1 [DEBUG] - Attempting to delete file "". - :DeleteFile:0
2026-03-31 22:25:40,752 25728:1 [INFO ] - Downloading package from source 'https://community.chocolatey.org/api/v2/' - :Install:0
2026-03-31 22:25:40,753 25728:1 [DEBUG] - Package download location 'https://community.chocolatey.org/api/v2/package/notepadplusplus.install/8.9.3' - :Install:0
2026-03-31 22:25:40,758 25728:1 [DEBUG] - Skipping package hash validation as feature 'usePackageHashValidation' is not enabled. - :ValidatePackageHash:0
2026-03-31 22:25:40,786 25728:1 [ERROR] - notepadplusplus.install not installed. An error occurred during installation:
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1. - :Install:0
2026-03-31 22:25:40,790 25728:1 [INFO ] - notepadplusplus.install package files install failed with exit code 1. Performing other installation steps. - :HandlePackageResult:0
2026-03-31 22:25:40,791 25728:1 [DEBUG] - No package information as package is null. - :Get:0
2026-03-31 22:25:40,797 25728:1 [DEBUG] - No package information to save as package is null. - :Save:0
2026-03-31 22:25:40,798 25728:1 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... - :Publish:0
2026-03-31 22:25:40,798 25728:1 [ERROR] - The install of notepadplusplus.install was NOT successful. - :HandlePackageResult:0
2026-03-31 22:25:40,799 25728:1 [ERROR] - notepadplusplus.install not installed. An error occurred during installation:
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1. - :HandleFailedOperation:0
2026-03-31 22:25:40,807 25728:1 [WARN ] -
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). - :ReportActionSummary:0
2026-03-31 22:25:40,808 25728:1 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... - :Publish:0
2026-03-31 22:25:40,810 25728:1 [ERROR] - Value cannot be null or an empty string.
Parameter name: value - :Main:0
2026-03-31 22:25:40,810 25728:1 [ERROR] - More Details: System.ArgumentException: Value cannot be null or an empty string.
Parameter name: value
at NuGet.Versioning.NuGetVersion.Parse(String value)
at chocolatey.infrastructure.results.PackageResult.get_Identity()
at chocolatey.infrastructure.app.services.NugetService.<>c__DisplayClass23_9.<Install>b__30(PackageDependency d)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at chocolatey.infrastructure.app.services.NugetService.Install(ChocolateyConfiguration config, Action`2 continueAction, Action`2 beforeModifyAction)
at chocolatey.infrastructure.app.services.ChocolateyPackageService.Install(ChocolateyConfiguration config)
at chocolatey.infrastructure.app.runners.GenericRunner.Run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
at chocolatey.infrastructure.app.runners.ConsoleApplication.Run(String[] args, ChocolateyConfiguration config, Container container)
at chocolatey.console.Program.Main(String[] args) - :Main:0
2026-03-31 22:25:40,811 25728:1 [DEBUG] - Exiting with 1 - :Main:0
What is Expected?
Ideally the installation should succeed, though that might be unreasonable given the circumstances (see below)
What I would more realistically expect would be for the installation process to clear whatever broken file or cache it is encountering.
If it can't do that, it could suggest a command that would allow me to force clear the relevant package.
Failing that, it should at least catch the exception and report which file it is having trouble with.
How Did You Get This To Happen?
This is not a reproducible problem. I was running choco upgrade all when my computer had a blue-screen-of-death and restarted. At the time it was working on the Notepad++ package. On retrying I found some files that seemed corrupted so I deleted them. If I remember correctly, this included a registry.bad file which only contained a long string of the null character, no text or XML. This was after trying to use the suggestion here - https://docs.chocolatey.org/en-us/troubleshooting/#a-corrupt-registry-file-exists - which did nothing.
User Story
As a user, when Chocolatey fails to install a package due to a problem parsing a file and cannot recover, it should suggest a command to fix the issue, or at least show me the exact file that it is failing on.
System Details
- Operating System: Windows 11
- Windows PowerShell version: 5.1.26100.7920
- Chocolatey CLI Version: 2.7.0
- Chocolatey Licensed Extension version: n/a
- Chocolatey License type: free
- Terminal/Emulator: all commands were run in a Powershell window running as Administrator
Installed Packages
Chocolatey v2.7.0
7zip 26.0.0
7zip.install 26.0.0
anki 25.9.20250923
audacity 3.7.7
autohotkey.portable 2.0.22
blender 5.1.0
chocolatey 2.7.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-misc-helpers.extension 0.0.4
chocolatey-windowsupdate.extension 1.0.5
clion-ide 2026.1.0
dbeaver 26.0.1
docker-desktop 4.66.1
dosbox 0.74.3
DotNet4.6.1 4.6.1055.20170308
dotnet4.7.1 4.7.2558.20190226
dotnetfx 4.8.0.20220524
dropbox 244.4.6580
epicgameslauncher 1.3.149
Everything 1.4.11032
f.lux 4.134.0
f.lux.install 4.134.0
filezilla 3.69.6
flow-launcher 2.1.1
foxitreader 2025.3.0.35737
git 2.53.0.2
git.install 2.53.0.2
goggalaxy 2.0.77.22
guitar-pro 7.6.0.2089
hg 6.3.1
hxd 2.5.0
iperf3 3.20.0
itch 26.1.9.20241215
iTunes 12.13.10.3
jetbrains-rider 2025.3.4
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
latencymon 7.31.0
libreoffice-fresh 26.2.1
musicbee 3.6.9202
netfx-4.6.2 4.6.2.20210905
obsidian 1.11.7
obs-studio 32.1.0
obs-studio.install 32.1.0
openmpt 1.32.6
playnite 10.51.0
procexp 17.10.0
procmon 4.1.0
putty 0.83.0
putty.portable 0.83.0
pycharm 2025.3.3
python313 3.13.12
rufus 4.13.0
scrivener 3.1.5.1
sourcetree 3.4.30
steam 3.10.91.91241028
streamdeck 7.3.1.22604
syncthing 2.0.15
teracopy 3.17.0
thunderbird 148.0.1
todolist 9.1.12
unity-hub 3.14.4
vcredist140 14.50.35719
vcredist2008 9.0.30729.616104
vcredist2010 10.0.40219.32503
vcredist2015 14.0.24215.20170201
vcredist2017 14.16.27052
vivaldi 7.9.3970.45
vivaldi.portable 7.9.3970.45
vlc 3.0.23
vlc.install 3.0.23
winmerge 2.16.54.2
wiztree 4.28.0
xnviewmp 1.10.3
xnviewmp.install 1.10.3Output Log
Sorry, the log is 10MB large and I don't have time to check the log for any personal data that needs scrubbing. Beyond the output above, I can also include the following config data which was output when the command was run:
2026-03-31 22:25:39,462 25728:1 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review. - :ToString:0
2026-03-31 22:25:39,464 25728:1 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\Ben\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'|
IncludeConfiguredSources='False'|ShowOnlineHelp='False'|Debug='False'|
Verbose='False'|Trace='True'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|
DisableCompatibilityChecks='False'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='notepadplusplus'|
AllVersions='False'|SkipPackageInstallProvider='False'|
SkipHookScripts='False'|PackageNames='notepadplusplus'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
UseHttpCache='True'|CacheExpirationInMinutes='30'|
AllowDowngrade='False'|ForceDependencies='False'|PinPackage='False'|
IncludeHeaders='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.26200.0'|
Information.PlatformName='Windows 11'|
Information.ChocolateyVersion='2.7.0.0'|
Information.ChocolateyProductVersion='2.7.0'|
Information.FullName='choco, Version=2.7.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='Ben'|Information.UserDomainName='WIN11-DESKTOP'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='False'|
Information.LicenseType='Foss'|Information.CurrentDirectory='D:\'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.UsePackageHashValidation='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.IgnorePinned='False'|
ListCommand.OrderBy='Id'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
UpgradeCommand.IgnorePinned='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
LicenseCommand.Command='Unknown'|OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'| - :FindCommand:0Additional Context
No response
Acceptance Criteria
No response