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

python3 maxing out CPUs when WebUI Open. #81

Open
UberPlexCa opened this issue Aug 27, 2022 · 2 comments
Open

python3 maxing out CPUs when WebUI Open. #81

UberPlexCa opened this issue Aug 27, 2022 · 2 comments

Comments

@UberPlexCa
Copy link

UberPlexCa commented Aug 27, 2022

Describe the bug
Brand new install of Version | v5.1.1-20220603 main on Ubuntu Server 22.04.1
When you open the WebUI Python3 maxes out all CPUs on the thin client I use for alerts. The moment you close the browser CPUs go back to normal. I believe others have seen this issue as well.
The browser is Chrome.

Any tweaks that can be made to fix this? The thin client is a perfect box for the alerts it has no moving parts but it is CPU limited.

WebUI Open:
image

WebUI Closed:
image

Logs show this each time you open the WebUI

BrokenPipeError: [Errno 32] Broken pipe

Exception occurred during processing of request from ('192.168.1.20', 24843)
Traceback (most recent call last):
File "/usr/lib/python3.10/socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.10/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.10/socketserver.py", line 747, in init
self.handle()
File "/usr/lib/python3.10/http/server.py", line 425, in handle
self.handle_one_request()
File "/usr/lib/python3.10/http/server.py", line 413, in handle_one_request
method()
File "/root/obplayer/obplayer/httpadmin/httpserver.py", line 262, in do_POST
self.send_content(response.status, response.mimetype, response.content, headers=response.headers)
File "/root/obplayer/obplayer/httpadmin/httpserver.py", line 178, in send_content
self.wfile.write(content)
File "/usr/lib/python3.10/socketserver.py", line 826, in write
self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe

@UberPlexCa
Copy link
Author

Any update to this?

@radiorob
Copy link
Member

radiorob commented Nov 11, 2022

Screenshot 2022-11-10 at 19-32-46 Eng Beta Player Dashboard
I have also encountered this, especially trying to host multiple players on one VPS. It is to do with the dated legacy architecture of the way it displays http interface when it was created at the time many years ago. @vincentthedev has started updating support for bootstrap themes that can be seen at the demo site on the Beta Player from the code on the testing branch. Generally speaking http access for the player is only for initial setup and config. After that the player box is command and controlled and managed by an observer.

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

No branches or pull requests

2 participants