Open bupthcp opened 1 year ago
Thanks @bupthcp
I found your explanation to be very detailed and interesting. I was not aware of such behavior in Safari. I tried playing with this and totally agree with your description. In the next month, I'll fix that.
https://user-images.githubusercontent.com/334716/216724158-d97f7489-06d3-4e9b-a774-dd1057c7f119.mp4
When I was using Pikaso, I found a canvas leak problem on webbiew/safari of iOS and Safari of Mac and Windows. It's not a bug of Pikaso or Konva-JS, it may be an bad implementaion of iOS webview. But using pikaso in some way will cause the canvas leak ,and reach the limi of 384M memory of iOS,then no canvas can be operated on the web page. Let me describe the detail of the problem.
(2) The setImageFromUrl function. It will create a history state with a konva stage and a snapshot will be clone from the stage. The snapshot is a local variable, so the canvas of the snapshot will cause a leak.