Title: Corrupted PowerShellProperties.json prevents powershell from starting · Issue #2342 · PowerShell/PowerShell · GitHub
Open Graph Title: Corrupted PowerShellProperties.json prevents powershell from starting · Issue #2342 · PowerShell/PowerShell
X Title: Corrupted PowerShellProperties.json prevents powershell from starting · Issue #2342 · PowerShell/PowerShell
Description: Steps to reproduce Corruption of this file can happen for natural reasons (i.e. file was not flushed, but process died). You can corrupt it artificially. I.e. '' > src\powershell-win-core\bin\Debug\netcoreapp1.0\win10-x64\PowerShellPrope...
Open Graph Description: Steps to reproduce Corruption of this file can happen for natural reasons (i.e. file was not flushed, but process died). You can corrupt it artificially. I.e. '' > src\powershell-win-core\bin\Debug...
X Description: Steps to reproduce Corruption of this file can happen for natural reasons (i.e. file was not flushed, but process died). You can corrupt it artificially. I.e. '' > src\powershell-win-cor...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2342
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Corrupted PowerShellProperties.json prevents powershell from starting","articleBody":"\u003c!--\n\nIf it is a bug report:\n- make sure you are able to repro it on the latest released version. \nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\n- Search the existing issues.\n- Refer to the [FAQ](../docs/FAQ.md).\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\n- Fill out the following repro template\n\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\n-->\n## Steps to reproduce\n\nCorruption of this file can happen for natural reasons (i.e. file was not flushed, but process died).\nYou can corrupt it artificially.\n\nI.e.\n\n``` powershell\n'' > src\\powershell-win-core\\bin\\Debug\\netcoreapp1.0\\win10-x64\\PowerShellProperties.json\nsrc\\powershell-win-core\\bin\\Debug\\netcoreapp1.0\\win10-x64\\powershell.exe\n```\n## Expected behavior\n\nPowerShell should be able to run\n## Actual behavior\n\n```\nC:\\Users\\sevoroby>F:\\dev\\PowerShell/src/powershell-win-core\\bin\\Debug\\netcoreapp1.0\\win10-x64\\powershell.exe\nPowerShell\nCopyright (C) 2016 Microsoft Corporation. All rights reserved.\n\nThe shell cannot be started. A failure occurred during initialization:\nError reading JToken from JsonReader. Path '', line 0, position 0.\n\nC:\\Users\\sevoroby>\n```\n\nPowerShell cannot run.\nRemoving the file fixes the problem.\n\nI propose to handle this error gracefully: if file is corrupted, we should re-create it, like it was not present at all.\n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n``` powershell\n> $PSVersionTable\nName Value\n---- -----\nPSVersion 6.0.0-alpha\nCLRVersion\nGitCommitId v6.0.0-alpha.10\nPSRemotingProtocolVersion 2.3\nPSEdition Core\nSerializationVersion 1.1.0.1\nBuildVersion 3.0.0.0\nWSManStackVersion 3.0\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\n```\n","author":{"url":"https://github.com/vors","@type":"Person","name":"vors"},"datePublished":"2016-09-22T19:51:58Z","url":"https://github.com/PowerShell/PowerShell/issues/2342"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f4a11d97-4efc-1886-c85f-30972d27cce1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BD0:23D2A5:266F2E:35FF93:6AFD72C8 |
| html-safe-nonce | 81a3289ec43181d87f9b11a712305334f230fd63f61b8912d86ecea75382dbdd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkQwOjIzRDJBNToyNjZGMkU6MzVGRjkzOjZBRkQ3MkM4IiwidmlzaXRvcl9pZCI6IjU4MzE3MTA0NDg4ODk0NTk0MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 21cd6c2eb2a1814bfa67cbd91efbbeb6f9cb97f68edd694d3b8e595091f3d208 |
| hovercard-subject-tag | issue:178704414 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2342/issue_layout |
| twitter:image | https://opengraph.githubassets.com/385cc518b948391aa8b178d3a7eeb398da6bff09a6d6f57d933370cb7fb452f2/PowerShell/PowerShell/issues/2342 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/385cc518b948391aa8b178d3a7eeb398da6bff09a6d6f57d933370cb7fb452f2/PowerShell/PowerShell/issues/2342 |
| og:image:alt | Steps to reproduce Corruption of this file can happen for natural reasons (i.e. file was not flushed, but process died). You can corrupt it artificially. I.e. '' > src\powershell-win-core\bin\Debug... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vors |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width