Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Warnings when closing a display containing an embedded display

Aperta
#3,788 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

Start with JFXRepresentation.java at the shutdown() method linked in the issue, then trace how parent and embedded-display disposal are scheduled on the UI thread. Reproduce closing a screen containing an embedded display and inspect the shutdown warning. Done means the disposal order no longer logs the warning while still disposing the embedded display’s widgets.

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

Descrizione

We have noticed that we get the following warning in the console when we close a screen that contained an embedded display widget:

WARNING [org.csstudio.display.builder.representation] Display representation still contains items on shutdown: [Pane@3eba30d5]

After looking at the code this is what I think it happening:

  • When you close the (parent) screen it starts to dispose of the widgets on the screen, which includes an embedded display widget.
  • It calls dispose() on the embedded screen, which schedules a task to be run on the UI thread to dispose of the widgets in that embedded screen.
  • But the the shutting down of the parent screen continues and occupies the UI thread meaning the above task cannot run yet.
  • Before this task to dispose of the embedded display widgets has chance to run, we hit the final shutdown() method, which checks to see whether there are any children that haven't been disposed of yet. In this case there is, the embedded display, and so it logs the warning that we see in the console.
  • Shortly after we see the embedded display run through disposing of its widgets as it can now run on the UI thread.

This doesn't seem to have any impact on functionality but maybe there is a better way to handle this?

Lingua principale
Java
Stelle
130
Fork
132
Merge medio
2g 11h
PR unite (30g)
19

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 ControlSystemStudio/phoebus

Tutte le issue di ControlSystemStudio/phoebus

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.