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

bqskit-server crashing in detached mode after client disconnects #293

Closed
alonkukl opened this issue Oct 11, 2024 · 1 comment
Closed

bqskit-server crashing in detached mode after client disconnects #293

alonkukl opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alonkukl
Copy link
Contributor

I get the following crash:

ERROR | base: Traceback (most recent call last):
File "..../bqskit/runtime/base.py", line 465, in run
self.handle_message(msg, direction, conn, payload)
File "...//bqskit/runtime/detached.py", line 139, in handle_message
self.handle_disconnect(conn)
File ".../bqskit-1/bqskit/runtime/detached.py", line 265, in handle_disconnect
tasks_to_pop.append((task_id, tid))
UnboundLocalError: local variable 'task_id' referenced before assignment

Whenever a client disconnects from the server:

from bqskit import Circuit
from bqskit.compiler import Compiler
from bqskit.passes import UnfoldPass

passes = [UnfoldPass()]
circuit = Circuit(3)

with Compiler('localhost') as comp:
    out_circ  = comp.compile(circuit, passes)

@alonkukl alonkukl added the bug Something isn't working label Oct 11, 2024
alonkukl added a commit that referenced this issue Oct 11, 2024
@alonkukl
Copy link
Contributor Author

Solved by #294

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

1 participant