Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gef-dev] Zest problem - Widget is disposed

Hi,

I have seen several times widget is disposed exceptions from Zest2 / GEF4 Zest without being able to reproduce it. However, last week I found an issue where this issue was reproducible.

Basically, a graph was initialized, a connection was removed then at a later point re-added. The GraphViewer at this point tried to check the already existing connectionMap, and returned the old Item, that was already disposed.

I created a quick fix for the issue that disallows returning disposed connections in http://git.eclipse.org/c/gef/org.eclipse.gef4.git/commit/?id=af8d97dd52cae0220c805c02ab630f64a2b117e6

I am not entirely satisfied with the solution, as it hides the fact that something bad remained in the internal maps, so I am open on how to fix this issue in a better way. I also created a bug with this issue (https://bugs.eclipse.org/bugs/show_bug.cgi?id=404308).

If someone else has seen similar issues, could he try the solution as well?

Thanks,
Zoltán
-- Zoltán Ujhelyi
https://www.inf.mit.bme.hu/en/members/ujhelyiz

Fault Tolerant Systems Research Group
Budapest University of Technology and Economics



Back to the top