Skip to content
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

[8.0] [mono] Assert failed in ConsolePal.GetBufferInfo #92417

Closed
carlossanlop opened this issue Sep 21, 2023 · 4 comments
Closed

[8.0] [mono] Assert failed in ConsolePal.GetBufferInfo #92417

carlossanlop opened this issue Sep 21, 2023 · 4 comments
Assignees
Labels
arch-x64 area-Interop-mono Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-mono specific to the Mono runtime
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Sep 21, 2023

Error Blob

{
  "ErrorMessage": "ConsolePal.Windows.cs:line 1061",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

    tracing\runtimeeventsource\nativeruntimeeventsource\nativeruntimeeventsource.cmd [FAIL]
      
      Unhandled Exception:
      System.Diagnostics.DebugProvider+DebugAssertException:    at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage)
      
         at System.Diagnostics.Debug.Fail(String message, String detailMessage)
      
         at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
      
         at System.Diagnostics.Debug.Assert(Boolean condition)
      
         at System.IO.Win32Marshal.GetExceptionForWin32Error(Int32 errorCode, String path) in /_/src/libraries/Common/src/System/IO/Win32Marshal.cs:line 29
      
         at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) in /_/src/libraries/System.Console/src/System/ConsolePal.Windows.cs:line 1061
      
         at System.ConsolePal.set_ForegroundColor(ConsoleColor value) in /_/src/libraries/System.Console/src/System/ConsolePal.Windows.cs:line 491
      
         at System.Console.set_ForegroundColor(ConsoleColor value) in /_/src/libraries/System.Console/src/System/Console.cs:line 341
      
         at Tracing.Tests.Listener.set_ConsoleForegroundColor(ConsoleColor value)
      
         at Tracing.Tests.Listener.Write(Object o, Nullable`1 consoleColor)
      
         at Tracing.Tests.Listener.WriteLine(Object o, Nullable`1 consoleColor)
      
         at Tracing.Tests.Listener.OnEventWritten(EventWrittenEventArgs eventWrittenEventArgs)
      
         at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(EventWrittenEventArgs eventCallbackArgs)
      
         at System.Diagnostics.Tracing.NativeRuntimeEventSource.ProcessEvent(UInt32 eventID, UInt32 osThreadID, DateTime timeStamp, Guid activityId, Guid childActivityId, ReadOnlySpan`1 payload)
      
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.DispatchEventsToEventListeners(UInt64 sessionID, DateTime syncTimeUtc, Int64 syncTimeQPC, Int64 timeQPCFrequency, Task previousDispatchTask, CancellationToken token)
      
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.<>c__DisplayClass12_0.<StartDispatchTask>b__0()
      
         at System.Threading.Tasks.Task.InnerInvoke()
      
         at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
      
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
      
         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
      
         at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
      
         at System.Threading.Tasks.ThreadPoolTaskScheduler.<>c.<.cctor>b__10_0(Object s)
      
         at System.Threading.Thread.StartCallback()

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=414395
Error message validated: ConsolePal.Windows.cs:line 1061
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/21/2023 5:04:04 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@carlossanlop carlossanlop added area-System.Console os-windows arch-x64 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' untriaged New issue has not been triaged by the area owner runtime-mono specific to the Mono runtime Known Build Error Use this to report build issues in the .NET Helix tab labels Sep 21, 2023
@carlossanlop carlossanlop added this to the 8.0.0 milestone Sep 21, 2023
@ghost
Copy link

ghost commented Sep 21, 2023

Tagging subscribers to this area: @dotnet/area-system-console
See info in area-owners.md if you want to be subscribed.

Issue Details

Error Blob

{
  "ErrorMessage": "ConsolePal.Windows.cs:line 1061",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

    tracing\runtimeeventsource\nativeruntimeeventsource\nativeruntimeeventsource.cmd [FAIL]
      
      Unhandled Exception:
      System.Diagnostics.DebugProvider+DebugAssertException:    at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage)
      
         at System.Diagnostics.Debug.Fail(String message, String detailMessage)
      
         at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
      
         at System.Diagnostics.Debug.Assert(Boolean condition)
      
         at System.IO.Win32Marshal.GetExceptionForWin32Error(Int32 errorCode, String path) in /_/src/libraries/Common/src/System/IO/Win32Marshal.cs:line 29
      
         at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) in /_/src/libraries/System.Console/src/System/ConsolePal.Windows.cs:line 1061
      
         at System.ConsolePal.set_ForegroundColor(ConsoleColor value) in /_/src/libraries/System.Console/src/System/ConsolePal.Windows.cs:line 491
      
         at System.Console.set_ForegroundColor(ConsoleColor value) in /_/src/libraries/System.Console/src/System/Console.cs:line 341
      
         at Tracing.Tests.Listener.set_ConsoleForegroundColor(ConsoleColor value)
      
         at Tracing.Tests.Listener.Write(Object o, Nullable`1 consoleColor)
      
         at Tracing.Tests.Listener.WriteLine(Object o, Nullable`1 consoleColor)
      
         at Tracing.Tests.Listener.OnEventWritten(EventWrittenEventArgs eventWrittenEventArgs)
      
         at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(EventWrittenEventArgs eventCallbackArgs)
      
         at System.Diagnostics.Tracing.NativeRuntimeEventSource.ProcessEvent(UInt32 eventID, UInt32 osThreadID, DateTime timeStamp, Guid activityId, Guid childActivityId, ReadOnlySpan`1 payload)
      
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.DispatchEventsToEventListeners(UInt64 sessionID, DateTime syncTimeUtc, Int64 syncTimeQPC, Int64 timeQPCFrequency, Task previousDispatchTask, CancellationToken token)
      
         at System.Diagnostics.Tracing.EventPipeEventDispatcher.<>c__DisplayClass12_0.<StartDispatchTask>b__0()
      
         at System.Threading.Tasks.Task.InnerInvoke()
      
         at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
      
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
      
         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
      
         at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
      
         at System.Threading.Tasks.ThreadPoolTaskScheduler.<>c.<.cctor>b__10_0(Object s)
      
         at System.Threading.Thread.StartCallback()
Author: carlossanlop
Assignees: -
Labels:

area-System.Console, os-windows, arch-x64, blocking-clean-ci, untriaged, runtime-mono, Known Build Error

Milestone: 8.0.0

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 21, 2023
@jkotas
Copy link
Member

jkotas commented Sep 21, 2023

Related to #51600 ?

@SamMonoRT
Copy link
Member

cc @thaystg @BrzVlad - Has been hit only once, so not the highest priority, but please can you take a look if we regressed this somehow.

@SamMonoRT SamMonoRT modified the milestones: 8.0.0, 9.0.0 Sep 29, 2023
@build-analysis build-analysis bot removed this from the 9.0.0 milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the 9.0.0 milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
@jeffschwMSFT jeffschwMSFT removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Feb 16, 2024
@jeffschwMSFT
Copy link
Member

removing blocking-clean-ci as it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

@BrzVlad BrzVlad closed this as completed Jun 26, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-Interop-mono Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-mono specific to the Mono runtime
Projects
None yet
Development

No branches or pull requests

7 participants