hop icon indicating copy to clipboard operation
hop copied to clipboard

[Bug]: Crash during start of HOP GUI

Open KBoersch opened this issue 3 months ago • 4 comments

Apache Hop version?

2.15.0

Java version?

jdk-21.0.5+11

Operating system

Windows

What happened?

When I tried to start the GUI today, HOP crashed everytime and spit out the error in the attached log.

Because I observed, that HOP crashed during looping through some metadata files I opened recently, I decided to delete the audit folder to reset the GUI.

The workaround works, but I guess it might only be a matter of time, till it happens again.

hopui.log

Issue Priority

Priority: 2

Issue Component

Component: Hop Gui

KBoersch avatar Sep 19 '25 06:09 KBoersch

Did you happen to have many pipeline/workflow tabs open? Those errors usually come from hitting the limits of how many UI elements we are allowed to create.

Clearing the audit folder also clears which open tabs you had so that might have indirectly solved the acual issue

hansva avatar Sep 19 '25 07:09 hansva

As far as I can remember, not more than usually. Maybe 4-5 at max. I'm pretty sure I did worse before and it didn't crash

KBoersch avatar Sep 19 '25 07:09 KBoersch

I've had a case during debugging where an insane amount of metadata elements where saved in an audit file. When you try to re-open next it bombs. Since I couldn't find a reproduction case I suspected it was caused by debugging and killing the Hop GUI over and over. So, I guess the thing to do is to implement a sanity check during loading and saving in the active IAuditManager.

mattcasters avatar Oct 03 '25 10:10 mattcasters

We can ignore some SwtError(Code=2 no handle) :

  1. if some controls was disposed and it may happen frequently.
  2. it is asynchronous when distributing swt messages.

A better way is to optimize the disposed process of dynamic Ui.

shlxue avatar Oct 15 '25 16:10 shlxue