cvplot icon indicating copy to clipboard operation
cvplot copied to clipboard

Issue with multithreading

Open copark86 opened this issue 5 years ago • 1 comments

I am trying to use cvplot in 2 threads where each of the thread draws separate plots. The problem is that it freezes when view flush or finish is called. It seems like there is a shared component in the view class. Does anyone have the same issue?

PS. Same problem when thread 1 display opencv window and thread 2 try to draw a plot.

copark86 avatar Sep 20 '19 02:09 copark86

Thanks for reporting. cvplot does not support multi-threading. It uses shared variables, like shared_window and shared_figures_ in window.cc and figure.cc. Adding locking is not on the roadmap, but I gladly merge a PR with a fix.

leovandriel avatar Jun 04 '22 02:06 leovandriel