rgl icon indicating copy to clipboard operation
rgl copied to clipboard

snapshot3D with webshot=TRUE is dangerous

Open stla opened this issue 1 year ago • 0 comments

Hello,

I had a big mesh. Maybe about 500000 vertices and 1e6 faces. It has multiple colors too. I ran snapshot3d with webshot=TRUE and this has frozen the laptop, completely blocked, totally irresponsive. I had to shut it down by brutally pressing the power button.

So I thought maybe a force option would be reasonable in snapshot3d, which whould be FALSE by default. It would be ignored if webshot=FALSE. If webshot=TRUE and force=FALSE and the mesh is big, no snapshot would be generated, instead a warning would be printed, something like "Your mesh is big and using webshot is not safe; use force=TRUE if you are sure you want to use webshot".

Now I don't know what would be the limit defining a "big" mesh.

  • rgl Version: 1.1.15
  • R Version: 4.3
  • Platform: Linux Mint 20

stla avatar Jun 12 '23 08:06 stla