WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser

Aperta
#327 18 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Inizia da choreographer/browser_async.py, in particolare dal percorso _close() indicato nel warning, e verifica come si comporta l’arresto del browser quando multiprocessing crea molti worker. Costruisci la riproduzione minima promessa usando Python 3.11 e le versioni indicate di Kaleido, choreographer e Plotly. Il lavoro è completato quando viene determinato se il warning indica un reale errore di cleanup e il comportamento appropriato viene documentato o testato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

P2

Using:
Python 3.11
Multiprocessing
Kaleido 1.0.0rc13
choreographer 1.0.7
plotly 6.1.0
venv

I have a script which using multiprocessing (limited to 30 cores right now on this machine), to generate lots of static images for hosting. I've just moved to testing the new plotly with the new kaleido (another long suffering W11 kaleido hanging process user here), but discovered a new problem so flagging it here because I've not seen it raised anywhere else.

My logs are full of:

WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-3 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-5 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-5 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-5 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-5 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-7 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-7 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.
WARNING Thread(Thread-7 (run)) choreographer.browser_async:browser_async.py:_close()- Resorting to unclean kill browser.

I've not seen anyone post this. I'm attempting to put a small script together to reproduce this out of the venv in which it current runs to remove that.

Is it a known problem? Can I suppress the warning if that's all it is? Do I need to care?

Lingua principale
Python
Stelle
504
Fork
65
Merge medio
6g 9h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plotly/kaleido

Tutte le issue di plotly/kaleido

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.