Skip to content

snapshot3D with webshot=TRUE is dangerous #370

@stla

Description

@stla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions