Environment
Jmix version: 2.7.4
Source: forum
Bug Description
When a Jmix FlowUI view is navigated away from, View.onDetachInternal() removes event listeners and view attributes but does not clear or release the DataContext. Entities held by the DataContext (and their data containers) retain EclipseLink lazy-loading ValueHolder references that pin the originating ClientSession and RepeatableWriteUnitOfWork in memory. Over time, this causes unbounded accumulation of EclipseLink sessions proportional to the number of view navigations across all active Vaadin sessions.
Environment
Jmix version: 2.7.4
Source: forum
Bug Description
When a Jmix FlowUI view is navigated away from, View.onDetachInternal() removes event listeners and view attributes but does not clear or release the DataContext. Entities held by the DataContext (and their data containers) retain EclipseLink lazy-loading ValueHolder references that pin the originating ClientSession and RepeatableWriteUnitOfWork in memory. Over time, this causes unbounded accumulation of EclipseLink sessions proportional to the number of view navigations across all active Vaadin sessions.