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

Throws an exception under certain conditions when using multiple spinners. #18

Open
ghost opened this issue Aug 4, 2022 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Aug 4, 2022

Although the conditions under which this occurs have not been identified, it is more likely to occur when the console is shrunk while displaying long text containing characters of different byte counts.

environment

  • Windows10
  • .NET 6.0
  • Visual Studio 2022
Console.OutputEncoding = Encoding.UTF8;
var spinner1 = new Spinner("あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめも");
var spinner2 = new Spinner("aあいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめも");
spinner1.Start();
spinner2.Start();

Thread.Sleep(100_000);
spinner1.Succeed();
spinner2.Succeed();

System.AggregateException: 'One or more errors occurred. (パイプの他端にプロセスがありません。)'
内部例外
IOException: パイプの他端にプロセスがありません。

この例外は、最初にこの呼び出し履歴
System.ConsolePal.GetBufferInfo(bool, out bool)
System.ConsolePal.GetCursorPosition()
Kurukuru.Spinner.Render(string) 場所: Spinner.cs
Kurukuru.Spinner.Start.AnonymousMethod__0() 場所: Spinner.cs でスローされました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants