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]: Concurrent users broken with job-manager #858

Closed
1 task done
outlookhazy opened this issue Sep 8, 2022 · 2 comments
Closed
1 task done

[Bug]: Concurrent users broken with job-manager #858

outlookhazy opened this issue Sep 8, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@outlookhazy
Copy link
Contributor

What happened?

When using the job-manager, concurrent requests from separate browsers/users seem to be causing a deadlock that makes the UI entirely unresponsive, even after all jobs are complete. Docker instance has to be rebooted to get it back.

Version

0.0.1 (Default)

What browsers are you seeing the problem on?

Chrome

Where are you running the webui?

Linux

Custom settings

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@outlookhazy outlookhazy added the bug Something isn't working label Sep 8, 2022
@outlookhazy
Copy link
Contributor Author

outlookhazy commented Sep 8, 2022

Couldn't figure out where it's hanging, I tried swapping out the int list for a proper semaphore but python isn't really my thing
For clarity sake, forcing job-manager to disabled via source and it works fine with multiple client sessions (requests get queued by the system and it just shows Loading for longer while it's busy).

@outlookhazy
Copy link
Contributor Author

outlookhazy commented Sep 9, 2022

Still present in latest commit (67515f0).
Steps to duplicate:
Build/run Docker container (I haven't tested with other setups)
Open 2 browser sessions on host directed to webui
pre-enter prompts into both sessions, no need to change any settings from default
Hit "Generate" on first session
while generation is in progress, hit "Generate" on second session
Both sessions will complete successfully and display the output image
Any attempt to perform any generation operation (or server request such as refresh etc) will now fail, this includes other tabs and any new sessions.
Websocket info in console shows rpc(?) queue actions going up, but I'm assuming something deadlocked in the background is preventing the system from recovering.

It appears necessary to restart the container to recover in this state.

@cobryan05 cobryan05 mentioned this issue Sep 13, 2022
4 tasks
@hlky hlky closed this as completed in a797312 Sep 18, 2022
Repository owner moved this from Bugs to Done in Stable Diffusion WebUI Sep 18, 2022
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
Development

No branches or pull requests

1 participant