Terminal.Gui: Application crashes while resizing on Windows 10 Version 22H2

Describe the bug When resizing the terminal by grabbing a corner or double-clicking on the title bar, the application throws an error. The problem disappears after removing the button.

To Reproduce

using Terminal.Gui;

namespace Test
{
    public class Program
    {
        static void Main()
        {
            Application.Init();
            var container = new View() { X = Pos.Center(), Y = Pos.Center(), Width = 8, Height = 8, ColorScheme = Colors.Error };
            var button = new Button("Test") { X = Pos.Center(), Y = Pos.Center() };
            container.Add(button);
            Application.Top.Add(container);
            Application.Run();

            return;
        }
    }
}


Screenshots guics gui2

Desktop:

  • OS: Windows 10
  • TerminalGui version: 1.12.1

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 15

Most upvoted comments

I think we need a minimum repro before they will take it seriously. So a new console app with just the code needed to cause the ‘pipe not there’ error

On Mon, 10 Jul 2023, 13:23 BDisp, @.***> wrote:

This problem has to be subjected to https://github.com/microsoft/dotnet but I haven’t had a chance yet. I would like someone to be available to submit it, please.

— Reply to this email directly, view it on GitHub https://github.com/gui-cs/Terminal.Gui/issues/2714#issuecomment-1628852945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHO3C5BJK6X3M4TJI6ZG7GLXPPX3FANCNFSM6AAAAAAZFRDFQA . You are receiving this because you were mentioned.Message ID: @.***>

@BDisp yes, im using 22H2.