Skip to content

Saving flamegraphview in speedscope-format does not work #1001

@Thomas-S-B

Description

@Thomas-S-B

Exception is thrown when i want to save a flamegraphview in the speedscope-format:

System.InvalidOperationException: Sample with no Thread assigned!

  bei Microsoft.Diagnostics.Tracing.Stacks.Formats.SpeedScopeStackSourceWriter.<>c__DisplayClass2_0.<GetSortedSamplesPerThread>b__0(StackSourceSample sample)

  bei Diagnostics.Tracing.StackSources.FilterStackSource.<>c__DisplayClass1_0.<ForEach>b__0(StackSourceSample sample)

  bei Microsoft.Diagnostics.Tracing.Stacks.MutableTraceEventStackSource.ForEach(Action`1 callback)

  bei Diagnostics.Tracing.StackSources.FilterStackSource.ForEach(Action`1 callback)

  bei Microsoft.Diagnostics.Tracing.Stacks.Formats.SpeedScopeStackSourceWriter.GetSortedSamplesPerThread(StackSource stackSource)

  bei Microsoft.Diagnostics.Tracing.Stacks.Formats.SpeedScopeStackSourceWriter.Export(StackSource source, TextWriter writer, String name)

  bei Microsoft.Diagnostics.Tracing.Stacks.Formats.SpeedScopeStackSourceWriter.WriteStackViewAsJson(StackSource source, String filePath)

  bei PerfView.StackWindow.DoSave(Object sender, RoutedEventArgs e)

  bei PerfView.StackWindow.DoSaveAs(Object sender, RoutedEventArgs e)

  bei System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)

  bei System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)

  bei System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)

  bei System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)

  bei System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)

  bei System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)

  bei System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)

  bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

  bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

  bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

  bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

  bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

  bei System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)

  bei System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)

  bei System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e)

  bei System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)

  bei System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)

  bei System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)

  bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

  bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

  bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

  bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

  bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

  bei System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)

  bei System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)

  bei MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

  bei System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)

  bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

  bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions