Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] CanonicalEditPolicy make views immutable command launched in UI thread in a asynchronous way

Hi Team,

I recently worked on one bug in our product difficult to reproduce which
occured quite randomly (depending on drag and drop speed executed buy
the end user). During debugging I found that when the bug occured a node
instance was destroyed instead of another. The substution was made in
CanonicalEditPolicy#cleanCanonicalSemanticChildren method, due to
"viewInMap.isMutable()" condition returned true. Then I found that the
command to make the view immutable is launched in UI Thread in a
asynchronous way (See CanonicalEditPolicy#makeViewsImmutable and
AsyncCommand#execute). So it seems that the immutable command execute
sometimes after the canonical refresh.

I am wondering why this modification to the model is made in the UI
thread and why in a asynchronous way ?

Thanks,

Cheers,

Mariot




Back to the top