This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 05548a26c4 Fixes #9309 : Refresh the debug panel on the GUI thread
(#9312)
05548a26c4 is described below
commit 05548a26c4fc5d1723524fdf65df4372028a3047
Author: Bart Maertens <[email protected]>
AuthorDate: Fri Nov 6 10:50:33 2026 +0100
Fixes #9309 : Refresh the debug panel on the GUI thread (#9312)
---
.../hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
index 6080e9943f..107373b44e 100644
---
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
+++
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
@@ -7359,11 +7359,21 @@ public class HopGuiPipelineGraph extends
HopGuiAbstractGraph
executionGuiSession.stopIfCurrent(engine, this::stopRedrawTimer);
}
- /** Copies the live hop and transform counts into the debugger tables. */
+ /**
+ * Copies the live hop and transform counts into the debugger tables.
Callers include engine
+ * threads (finished/stopped listeners), so the widget work always runs on
the display thread.
+ */
private void refreshDebugPanel() {
- if (debugDelegate != null) {
- debugDelegate.refresh();
+ if (debugDelegate == null || !isUiAlive()) {
+ return;
}
+ hopDisplay()
+ .asyncExec(
+ () -> {
+ if (isUiAlive() && debugDelegate != null) {
+ debugDelegate.refresh();
+ }
+ });
}
protected void stopRedrawTimer() {