vaadin / collaboration-engine

The simplest way to build real-time collaboration into web apps
https://vaadin.com/collaboration
Other
3 stars 1 forks source link

CollaborationAvatarGroup grows larger and larger on idle #57

Closed wfischlein closed 2 years ago

wfischlein commented 2 years ago

When leaving the browser window open (e.g. over night) that shows a CollaborationAvatarGroup then the number of avatars just grows

Steps to reproduce the behavior:

Exception in thread "pool-1-thread-3" Exception in thread "pool-1-thread-9" Exception in thread "pool-1-thread-4" com.vaadin.flow.component.UIDetachedException at com.vaadin.flow.component.UI.handleAccessDetach(UI.java:415) at com.vaadin.flow.component.UI.access(UI.java:515) at com.vaadin.flow.component.UI.access(UI.java:502) at com.vaadin.collaborationengine.ComponentConnectionContext.lambda$flushPendingActionsIfActive$1(ComponentConnectionContext.java:290) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)

Expected behavior Avatar group should stick to the size of open UIs, log should not show stacktraces

Screenshots

image

Versions

Additional context Add any other context about the problem here.