Repository navigation
FailFast: padding is not correct #6234
Copy link
Copy link
Closed
Labels
HacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in HacktoberfestResolution-FixedThe issue is fixed.The issue is fixed.
Description
Activity
sayujshajith can you, please copy the crash trace and message?
- addedHacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in Hacktoberfest
on Feb 24, 2018 CallmeJoeBob commented
on Feb 24, 2018 ContributorMore actionsHere is the stack trace when running ls:
PS C:\Users\joelj> ls Directory: C:\Users\joelj Mode LastWriteTime Length Name FailFast: padding is not correct at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage) at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateRowField(String val, Int32 width, Int32 alignment, DisplayCells dc, Boolean addPadding) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\TableWriter.cs:line 501 at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateRow(String[] values, Int32[] alignment, DisplayCells dc) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\TableWriter.cs:line 377 at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateRow(String[] values, LineOutput lo, Boolean multiLine, Int32[] alignment, DisplayCells dc) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\TableWriter.cs:line 226 at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateHeader(String[] values, LineOutput lo) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\TableWriter.cs:line 185 at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.TableOutputContext.GroupStart() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseOutputtingCommand.cs:line 969 at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessGroupStart(OutputContext c) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseOutputtingCommand.cs:line 479 at Microsoft.PowerShell.Commands.Internal.Format.FormatMessagesContextManager.Process(Object o) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\FormatMsgCtxManager.cs:line 101 at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessObject(PSObject so) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseOutputtingCommand.cs:line 169 at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseOutputtingCommand.cs:line 67 at Microsoft.PowerShell.Commands.Internal.Format.FrontEndCommandBase.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseCommand.cs:line 178 at System.Management.Automation.Cmdlet.DoProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\cmdlet.cs:line 172 at System.Management.Automation.CommandProcessor.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessor.cs:line 358 at System.Management.Automation.CommandProcessorBase.DoExecute() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 539 at System.Management.Automation.Internal.PipelineProcessor.Inject(Object input, Boolean enumerate) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 1159 at System.Management.Automation.Internal.PipelineProcessor.Step(Object input) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 856 at Microsoft.PowerShell.Commands.Internal.Format.CommandWrapper.Process(Object o) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseCommand.cs:line 82 at Microsoft.PowerShell.Commands.Internal.Format.SubPipelineManager.Process(PSObject so) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\OutputManager.cs:line 265 at Microsoft.PowerShell.Commands.Internal.Format.OutputManagerInner.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\OutputManager.cs:line 84 at Microsoft.PowerShell.Commands.Internal.Format.FrontEndCommandBase.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\common\BaseCommand.cs:line 178 at Microsoft.PowerShell.Commands.OutDefaultCommand.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\FormatAndOutput\out-console\OutConsole.cs:line 123 at System.Management.Automation.Cmdlet.DoProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\cmdlet.cs:line 172 at System.Management.Automation.CommandProcessor.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessor.cs:line 358 at System.Management.Automation.CommandProcessorBase.DoExecute() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 539 at System.Management.Automation.Internal.Pipe.AddToPipe(Object obj) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\Pipe.cs:line 445 at System.Management.Automation.Internal.Pipe.Add(Object obj) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\Pipe.cs:line 406 at System.Management.Automation.MshCommandRuntime._WriteObjectSkipAllowCheck(Object sendToPipeline) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\MshCommandRuntime.cs:line 2574 at System.Management.Automation.MshCommandRuntime.DoWriteObject(Object sendToPipeline) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\MshCommandRuntime.cs:line 206 at System.Management.Automation.MshCommandRuntime.WriteObject(Object sendToPipeline) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\MshCommandRuntime.cs:line 173 at System.Management.Automation.Cmdlet.WriteObject(Object sendToPipeline) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\cmdlet.cs:line 374 at System.Management.Automation.CmdletProviderContext.WriteObject(Object obj) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\CoreCommandContext.cs:line 1116 at System.Management.Automation.Provider.CmdletProvider.WriteObject(Object item, String path, Boolean isContainer) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\ProviderBase.cs:line 1870 at System.Management.Automation.Provider.CmdletProvider.WriteItemObject(Object item, String path, Boolean isContainer) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\ProviderBase.cs:line 2036 at Microsoft.PowerShell.Commands.FileSystemProvider.Dir(DirectoryInfo directory, Boolean recurse, UInt32 depth, Boolean nameOnly, ReturnContainers returnContainers, InodeTracker tracker) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\FileSystemProvider.cs:line 1732 at Microsoft.PowerShell.Commands.FileSystemProvider.GetPathItems(String path, Boolean recurse, UInt32 depth, Boolean nameOnly, ReturnContainers returnContainers) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\FileSystemProvider.cs:line 1545 at Microsoft.PowerShell.Commands.FileSystemProvider.GetChildItems(String path, Boolean recurse, UInt32 depth) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\FileSystemProvider.cs:line 1399 at System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems(String path, Boolean recurse, UInt32 depth, CmdletProviderContext context) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\namespaces\ContainerProviderBase.cs:line 74 at System.Management.Automation.SessionStateInternal.GetChildItems(CmdletProvider providerInstance, String path, Boolean recurse, UInt32 depth, CmdletProviderContext context) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\SessionStateContainer.cs:line 1741 at System.Management.Automation.SessionStateInternal.GetChildItems(String path, Boolean recurse, UInt32 depth, CmdletProviderContext context) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\SessionStateContainer.cs:line 1661 at System.Management.Automation.ChildItemCmdletProviderIntrinsics.Get(String path, Boolean recurse, UInt32 depth, CmdletProviderContext context) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\ChildrenCmdletProviderInterfaces.cs:line 327 at Microsoft.PowerShell.Commands.GetChildItemCommand.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\Microsoft.PowerShell.Commands.Management\commands\management\GetChildrenCommand.cs:line 316 at System.Management.Automation.Cmdlet.DoProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\cmdlet.cs:line 172 at System.Management.Automation.CommandProcessor.ProcessRecord() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessor.cs:line 358 at System.Management.Automation.CommandProcessorBase.DoExecute() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 539 at System.Management.Automation.Internal.PipelineProcessor.Inject(Object input, Boolean enumerate) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 1159 at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 499 at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 454 at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 77 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 515 at System.Management.Automation.DlrScriptCommandProcessor.Complete() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 416 at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 613 at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 606 at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 518 at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\hostifaces\LocalPipeline.cs:line 377 at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\hostifaces\LocalPipeline.cs:line 573 at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() in D:\HackIllinois2018\Powershell\PowerShell\src\System.Management.Automation\engine\hostifaces\LocalPipeline.cs:line 1254 at System.Threading.Thread.ThreadMain_ThreadStart() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Environment.FailFast(System.String, System.Exception) at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateRowField(System.String, Int32, Int32, Microsoft.PowerShell.Commands.Internal.Format.DisplayCells, Boolean) at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateRow(System.String[], Int32[], Microsoft.PowerShell.Commands.Internal.Format.DisplayCells) at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateRow(System.String[], Microsoft.PowerShell.Commands.Internal.Format.LineOutput, Boolean, Int32[], Microsoft.PowerShell.Commands.Internal.Format.DisplayCells) at Microsoft.PowerShell.Commands.Internal.Format.TableWriter.GenerateHeader(System.String[], Microsoft.PowerShell.Commands.Internal.Format.LineOutput) at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner+TableOutputContext.GroupStart() at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessGroupStart(OutputContext) at Microsoft.PowerShell.Commands.Internal.Format.FormatMessagesContextManager.Process(System.Object) at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessObject(System.Management.Automation.PSObject) at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessRecord() at Microsoft.PowerShell.Commands.Internal.Format.FrontEndCommandBase.ProcessRecord() at System.Management.Automation.Cmdlet.DoProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.Inject(System.Object, Boolean) at System.Management.Automation.Internal.PipelineProcessor.Step(System.Object) at Microsoft.PowerShell.Commands.Internal.Format.CommandWrapper.Process(System.Object) at Microsoft.PowerShell.Commands.Internal.Format.SubPipelineManager.Process(System.Management.Automation.PSObject) at Microsoft.PowerShell.Commands.Internal.Format.OutputManagerInner.ProcessRecord() at Microsoft.PowerShell.Commands.Internal.Format.FrontEndCommandBase.ProcessRecord() at Microsoft.PowerShell.Commands.OutDefaultCommand.ProcessRecord() at System.Management.Automation.Cmdlet.DoProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.Pipe.AddToPipe(System.Object) at System.Management.Automation.Internal.Pipe.Add(System.Object) at System.Management.Automation.MshCommandRuntime._WriteObjectSkipAllowCheck(System.Object) at System.Management.Automation.MshCommandRuntime.DoWriteObject(System.Object) at System.Management.Automation.MshCommandRuntime.WriteObject(System.Object) at System.Management.Automation.Cmdlet.WriteObject(System.Object) at System.Management.Automation.CmdletProviderContext.WriteObject(System.Object) at System.Management.Automation.Provider.CmdletProvider.WriteObject(System.Object, System.String, Boolean) at System.Management.Automation.Provider.CmdletProvider.WriteItemObject(System.Object, System.String, Boolean) at Microsoft.PowerShell.Commands.FileSystemProvider.Dir(System.IO.DirectoryInfo, Boolean, UInt32, Boolean, System.Management.Automation.ReturnContainers, InodeTracker) at Microsoft.PowerShell.Commands.FileSystemProvider.GetPathItems(System.String, Boolean, UInt32, Boolean, System.Management.Automation.ReturnContainers) at Microsoft.PowerShell.Commands.FileSystemProvider.GetChildItems(System.String, Boolean, UInt32) at System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems(System.String, Boolean, UInt32, System.Management.Automation.CmdletProviderContext) at System.Management.Automation.SessionStateInternal.GetChildItems(System.Management.Automation.Provider.CmdletProvider, System.String, Boolean, UInt32, System.Management.Automation.CmdletProviderContext) at System.Management.Automation.SessionStateInternal.GetChildItems(System.String, Boolean, UInt32, System.Management.Automation.CmdletProviderContext) at System.Management.Automation.ChildItemCmdletProviderIntrinsics.Get(System.String, Boolean, UInt32, System.Management.Automation.CmdletProviderContext) at Microsoft.PowerShell.Commands.GetChildItemCommand.ProcessRecord() at System.Management.Automation.Cmdlet.DoProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.Inject(System.Object, Boolean) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(System.Object) at System.Management.Automation.PipelineOps.InvokePipeline(System.Object, Boolean, System.Management.Automation.CommandParameterInternal[][], System.Management.Automation.Language.CommandBaseAst[], System.Management.Automation.CommandRedirection[][], System.Management.Automation.Language.FunctionContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.Interpreter.Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(System.Action`1<System.Management.Automation.Language.FunctionContext>, System.Object, System.Object) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(System.Management.Automation.CommandProcessorBase) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(System.Object) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.Thread.ThreadMain_ThreadStart() at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)- changed the title
[-]When running PowerShell 6.0.1 along side 5.1.15, the window crashes. [/-][+]FailFast: padding is not correct[/+]on Feb 24, 2018 Pull Request #6230 fixes this issue.
Metadata
Metadata
Assignees
Labels
HacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in HacktoberfestResolution-FixedThe issue is fixed.The issue is fixed.
Description
Running Start-DevPowerShell or running the executable "pwsh.exe" results in new PowerShell window, but once you enter any table command, the window crashes.
Noticed that this error occurs with fixes for pull request #5568
Works with earlier versions however.
https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/FormatAndOutput/common/TableWriter.cs#L501
Assert Statement Fails
Steps to reproduce
Run the v6.0.1 executable "pwsh.exe" from the 5.1 launcher or type Start-DevPowerShell
Start-DevPowerShellThen type in any table view command such as:
Expected behavior
Should run PowerShell v6.0.1 in a new window without crashes
Actual behavior
Initially opens PowerShell v6.0.1, but when you type in any table view command, the window crashes.
Environment data
When checking the version table in the original PowerShell Window:
After running the pwsh in one instance within the same window: