Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Warnings when closing a display containing an embedded display

Abierto
#3,788 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
java
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Java
Estrellas
130
Forks
132
Merge medio
2 d 11 h
PR fusionados (30 d)
19

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ControlSystemStudio/phoebus

Todos los issues de ControlSystemStudio/phoebus

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.