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

[Bug]: "RuntimeError: cannot join current thread" after typing "exit" using CLI #6185

Open
1 task done
scosenza opened this issue Jan 10, 2025 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@scosenza
Copy link

scosenza commented Jan 10, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

If I type "exit" from a docker run CLI (openhands.core.cli) I see:

What would you like me to help you with?

>> exit
🤖 

Exception ignored in: <function LogStreamer.__del__ at 0xffff531c45e0>
Traceback (most recent call last):
  File "/app/openhands/runtime/utils/log_streamer.py", line 42, in __del__
    self.close(timeout=5)
  File "/app/openhands/runtime/utils/log_streamer.py", line 48, in close
    self.stdout_thread.join(timeout)
  File "/usr/local/lib/python3.12/threading.py", line 1144, in join
    raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

Related, typing "/exit" doesn't exit e.g.

>> /exit
🤖 

>> 

OpenHands Installation

Docker command in README

OpenHands Version

0.19.0

Operating System

MacOS

Logs, Errors, Screenshots, and Additional Context

No response

@scosenza scosenza added the bug Something isn't working label Jan 10, 2025
@scosenza scosenza changed the title [Bug]: "RuntimeError: cannot join current thread" [Bug]: "RuntimeError: cannot join current thread" after typing "exit" using CLI Jan 10, 2025
@mamoodi
Copy link
Collaborator

mamoodi commented Jan 10, 2025

Just CC'ing @enyst since he was making some changes in CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants