[Bug]: Crash during start of HOP GUI
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.
Issue Priority
Priority: 2
Issue Component
Component: Hop Gui
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
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
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.
We can ignore some SwtError(Code=2 no handle) :
- if some controls was disposed and it may happen frequently.
- it is asynchronous when distributing swt messages.
A better way is to optimize the disposed process of dynamic Ui.