mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Fix DrawingUtils constructor failing in Web Workers

Open bc-lee opened this issue 1 year ago • 1 comments

Without this commit, the DrawingUtils constructor fails in Web Workers because the CanvasRenderingContext2D is not available in the worker context. This commit adds a check whether the CanvasRenderingContext2D is defined before using it.

Fixes #5284

bc-lee avatar Jun 19 '24 07:06 bc-lee

Hi @mbrenon,

Could you please review this fix for the DrawingUtils constructor failing in Web Workers?

Thank you!!

kuaashish avatar Jun 20 '24 04:06 kuaashish

This is still an issue with 0.10.18 (and it looks like there's another breakage in 0.10.20). Can you please merge ?

jeromecornet avatar Dec 17 '24 16:12 jeromecornet

Hi @schmidt-sebastian,

Could you please review this? It seems the issue persists on our end with version 0.10.20 as well.

Thank you!!

kuaashish avatar Jan 30 '25 07:01 kuaashish