Bug 430779 - [Viewers] TreeViewer.setInput from other Thread via Display.syncExec while UI-actions freezes App
Summary: [Viewers] TreeViewer.setInput from other Thread via Display.syncExec while UI...
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 06:28 EDT by Manuel Steurer CLA
Modified: 2021-08-24 03:29 EDT (History)
0 users

See Also:


Attachments
Snippet that reproduces the problem (2.87 KB, text/plain)
2014-03-20 06:28 EDT, Manuel Steurer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Steurer CLA 2014-03-20 06:28:11 EDT
Created attachment 241045 [details]
Snippet that reproduces the problem

I've got an auto-reload feature in my app, implemented with a Thread, which after some time time loads the data fresh from a service and then sets it into a Grid that is implemented with a TreeViewer, via Display.syncExex(). When the user does some UI-action at that moment like scrolling, the whole app freezes. Selecting another app unfreezes.
Happens on Windows 7,  Server 2008 R2 Standard, but not on WinXP, Linux.
Using a TableViewer instead of a TreeViewer fixes the problem. Using the refresh method instead of the setInput method also works. syncExec or asyncExec makes no difference. Affects Jface/SWT Eclipse 4.3.1 and 3.7.1 in the same way.
I've attached a Snippet, after it starts, scroll up and down, after some seconds the whole Shell should freeze.
Comment 1 Eclipse Genie CLA 2018-10-11 04:09:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Manuel Steurer CLA 2018-10-15 03:42:58 EDT
Just tried on Windows 10 with eclipse-2018-09 32 and 64 bit, problem still occurs there. I'm working around it as described in the first comment.
Comment 3 Lars Vogel CLA 2019-08-08 15:19:11 EDT
This bug has been marked with as "stalebug" for some time now. I mark this bug as "worksforme" to indicate that no work is planned here. 

If this bug is still relevant for the latest release, please reopen the bug and remote the "stalebug" whiteboard tag.
Comment 4 Manuel Steurer CLA 2019-08-19 02:34:36 EDT
Freeze still happens using latest Eclipse 2019-06 (4.12.0), which comes with SWT version 4926 on Windows 10. Can be easily reproduced running the attached snippet and scrolling the TreeViewer up and down repeatedly.
My first comment states it didn't happen on Windows XP, so maybe some change on ms side causes this.
Comment 5 Manuel Steurer CLA 2019-08-19 02:35:44 EDT
Reopening, problem still relevant using latest Eclipse, see comment above for details.
Comment 6 Eclipse Genie CLA 2021-08-09 14:02:58 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Manuel Steurer CLA 2021-08-24 03:29:47 EDT
Problem still persists with latest swt/jface versions on Windows 10.
Tried with
SWT 3.116.100.v20210602-2209
JFace 3.22.200.v20210401-0958
(both taken from Eclipse 2021-06)
AdoptOpenJdk 11.0.12.7