mattcasters opened a new pull request, #7763: URL: https://github.com/apache/hop/pull/7763
## What Fixes SWT resource leaking in `SwtGc.drawImage(SvgFile, …)`. Every call previously created a new `SwtUniversalImageSvg` (and SWT `Image` bitmaps) and never disposed them. Canvases that paint many SVG icons per frame — for example large graphs while dragging nodes — exhaust native handles and throw: `org.eclipse.swt.SWTError: No More handles` ## Changes - Cache `SwtUniversalImage` instances keyed by SVG filename + dark/light mode - Register a `Display` dispose hook to clean up cached images on shutdown - Add `getNativeGc()` so callers can paint shared/cached bitmaps without going through the leaky path ## Testing - Compiled `hop-ui` - Manual scenario: large model graph with many table icons; drag/rearrange without handle exhaustion Fixes #7762 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
