mattcasters opened a new issue, #7896:
URL: https://github.com/apache/hop/issues/7896

   ## Description
   
   When running a pipeline in Hop GUI, the Console sometimes logs:
   
   ```
   ERROR: Error calling extension point 'GetFieldsExtension'
   org.eclipse.swt.SWTException: Invalid thread access
     at ExplorerPerspective.getActiveFileTypeHandler
     at HopGui.getActivePipelineGraph
     at TestingGuiPlugin.getCurrentUnitTest / getStateMap
     at PipelineGetFieldsExtensionPoint
     at PipelineMeta.getThisTransformFields
     at LineageTransformSchemaEmitter (design-graph fallback)
     at LineageHubTransformFinishXp (TransformFinished)
     at RunThread.run
   ```
   
   ## Cause
   
   `TransformFinished` lineage runs on a worker thread and may call 
`PipelineMeta.getTransformFields`. That fires `GetFieldsExtension`, which looks 
up the active unit test via SWT widgets. SWT only allows UI-thread access. The 
exception is caught and logged; the pipeline continues (console spam).
   
   ## Expected
   
   No Invalid thread access / GetFieldsExtension ERROR when running pipelines. 
Design-time Get Fields and unit-test input dataset overrides still work on the 
UI thread.
   
   ## Proposed fix
   
   In `TestingGuiPlugin.getCurrentUnitTest` (and `getPipelineGraph` if 
present): if `Display.getCurrent() == null`, return `null` without touching 
widgets. Optionally broaden design-graph fallback catches in 
`LineageTransformSchemaEmitter`.


-- 
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]

Reply via email to