Skip to content

process.wait() does not seem to wait enough #419

@TC-FF

Description

@TC-FF

Setup Information

  • ravenpy version: 0.16.0
  • Python version: 3.12.7
  • Operating System: Windows

Description

in ravenpy.py,

      process = subprocess.Popen(  # noqa: S603
        cmd,
        cwd=configdir,
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        universal_newlines=True,
    )`

       stdout, stderr = process.communicate(input="\n")
       returncode = process.wait()

This part of code does not seem to wait enough, it keeps crashing semi-randomly. If I put a breakpoint and wait or resend the lines, it does not crash.

Steps To Reproduce

No response

Additional context

No response

Contribution

  • I would be willing/able to open a Pull Request to address this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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