Skip to content

System.TimeoutException on JitExplorer.Pipe #54

Description

@Symbai

Happens with 0.9 and current code releases. The following code throws a TimeoutException:

System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.ConnectInternal(Int32 timeout, CancellationToken cancellationToken, Int32 startTime)
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at JitExplorer.Engine.RuntimeDisassembler.CompileJitAndDisassemble(String sourceCode, Config config) in D:\a\JitExplorer\JitExplorer\JitExplorer.Engine\RuntimeDisassembler.cs:line

using var cpipe = new System.IO.Pipes.NamedPipeClientStream(".", "JitExplorer.Pipe", System.IO.Pipes.PipeDirection.InOut, System.IO.Pipes.PipeOptions.None);
try
{
cpipe.Connect(3000);
}
catch
{
p.Kill();
throw;

Code I wanted to JIT

namespace JitExplorer
{
    using System;

    public class Test
    {
    const int bla = 63;
        [Jit.This]
        public static void Execute()
        {
            for (int i = 0; i < 100; i++)
            {
                i = bla + 1;
            }
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions