Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reg-suit run throws maxMemoryUsageInMB error when comparing two long images #713

Open
ho-shinjo-bf opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@ho-shinjo-bf
Copy link

Describe the bug

reg-cli(reg-suit run) throws error if images are two long to compare. The images size are about 1MB.
Am I able to pass exceededAmount as an option? Or use another option to solve this problem?

/home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/jpeg-js/lib/decoder.js:1071
      throw new Error(`maxMemoryUsageInMB limit exceeded by at least ${exceededAmount}MB`);
            ^

Error: maxMemoryUsageInMB limit exceeded by at least 28MB
    at requestMemoryAllocation (/home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/jpeg-js/lib/decoder.js:1071:13)
    at buildComponentData (/home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/jpeg-js/lib/decoder.js:525:5)
    at constructor.parse (/home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/jpeg-js/lib/decoder.js:869:18)
    at Object.decode (/home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/jpeg-js/lib/decoder.js:1116:11)
    at /home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/img-diff-js/lib/decode-jpeg.js:20:34
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/next/node_modules/.pnpm/[email protected]/node_modules/img-diff-js/lib/decode-jpeg.js:5:58)

Reproduced step

Steps to reproduce the behavior:

  1. Use reg-suit run to compare two long images

Expected behavior

End without error

Actual behavior

End with over maxMemoryUsageInMB

Screenshots

nth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant