question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FR: Support Block Dependence

See original GitHub issue

I am getting following error for some lz4 files.

Error: Invalid data block: 12 @579083
    at Decoder.emit_Error (src/node_modules/lz4/lib/decoder_stream.js:64:22)
    at Decoder.uncompress_DataBlock (src/node_modules/lz4/lib/decoder_stream.js:246:9)
    at Decoder._main (src/node_modules/lz4/lib/decoder_stream.js:317:25)
    at Decoder._transform (src/node_modules/lz4/lib/decoder_stream.js:60:7)
    at Decoder.Transform._read (_stream_transform.js:167:10)
    at Decoder.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:301:12)
    at writeOrBuffer (_stream_writable.js:287:5)
    at Decoder.Writable.write (_stream_writable.js:215:11)
    at IncomingMessage.ondata (_stream_readable.js:536:20)

I added some debug code in “Decoder.prototype.uncompress_DataBlock” function in decoder_stream.json

this.descriptor.blockMaxSize 262144 , decodedSize262144 this.descriptor.blockMaxSize 262144, decodedSize -4 <<< This is where it errors out

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pierreccommented, Aug 31, 2017

The block dependency compression is indeed not implemented in the js version. It would be nice to have it, even though the few samples I tried it on (using the Go version) didnt bring any benefit. I dont have time right now to do the work but if you feel like it I would consider a pull request! Or maybe for the time being, just emit an error when the flag is set.

0reactions
khelkuncommented, Aug 26, 2020

@pierrec Sorry to up my previous question but I’d need to figure out why node-lz4 fails to uncompress some of my lz4 files (not all of them).

So far I’ve used lz4js because it does decode my lz4 files compressed with K4os.Compression.LZ4 C# library.

However lz4js has no stream support and I wish to use streams because I have some big lz4 files to uncompress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Social Services Block Grant Program (SSBG)
Through the SSBG, states provide essential social services that help achieve a myriad of goals to reduce dependency and promote self-sufficiency ...
Read more >
Rate Transition - MathWorks
The Rate Transition block transfers data from the output of a block operating at one rate to the input of a block operating...
Read more >
Pharmacological approaches to methamphetamine dependence
The functional effect is to block catecholamine re-uptake from and increase catecholamine ... Dr Karila (France) received support from the MILDT (Mission ...
Read more >
Blocks in TWO-WAY RMANOVA - Forums - IBM Support - IBM
I'm measuring soil Co2 Efflux (the dependent variable) every two weeks for 3 years (Time --> Repeated measure needed) from a grassland.
Read more >
Recovery Housing Program | HUD.gov / U.S. Department of ...
The program is authorized under Section 8071 of the SUPPORT Act. The Department published its formula in the Federal Register (FR) on April...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found