processing / processing/p5.js-web-editor

assets gets duplicated on the duplicating the sketch, exceeding memory size of 250mb

Open
#2,119 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

Details about the bug:

after I created a sketch and uploded around 149mb of assets and then I duplicated the sketch in the user/sketches and I found out that it also duplicates the assets and exceeds the size of 250mb.
assetsduplicated

  • p5.js version: v1.5.0
  • Web browser and version: MS Edge 110.0.1587.46 (Official build) (64-bit)
  • Operating System: Windows 11
  • Steps to reproduce this: already mentioned above

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the user/sketches flow by creating a sketch with about 149 MB of assets and duplicating it. Inspect how duplication handles the sketch's assets; done means duplicating the sketch does not unnecessarily duplicate assets or exceed the 250 MB limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.