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

LZMA_PROG_ERROR on setting memlimit #96

Open
redbrain opened this issue Dec 29, 2020 · 0 comments
Open

LZMA_PROG_ERROR on setting memlimit #96

redbrain opened this issue Dec 29, 2020 · 0 comments

Comments

@redbrain
Copy link

The offending code:

const compress = lzma.createCompressor({
    preset: 9,
    threads: os.cpus().length-1,
    memlimit: os.totalmem()/2
});

The error:

C:\Users\redbrain\Documents\dilr_out\Coding\Other\dzip>node index.js
Setting memlimit to 3954104320 bytes, aka 3.6825 gigabytes
C:\Users\redbrain\Documents\dilr_out\Coding\Other\dzip\node_modules\lzma-native\index.js:292
    stream.memlimitSet(options.memlimit);
           ^

LZMA_PROG_ERROR: Programming error
    at exports.createStream (C:\Users\redbrain\Documents\dilr_out\Coding\Other\dzip\node_modules\lzma-native\index.js:292:12)
    at Object.exports.createCompressor (C:\Users\redbrain\Documents\dilr_out\Coding\Other\dzip\node_modules\lzma-native\index.js:298:10)
    at Object.<anonymous> (C:\Users\redbrain\Documents\dilr_out\Coding\Other\dzip\index.js:17:23)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 11,
  desc: 'Programming error'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant