Replies: 1 comment
-
The file you provided is corrupt (added an extension):
Be sure you didn't transfer the file as text and had CR changed to CR+LF. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to use the decode functionality, I'm working in a container environment so strange to say that it worked at a different computer but not on another. (same architecture).
f, err := os.Open("localTest.txt") if err != nil { panic(err) } d, err := zstd.NewReader(nil, zstd.WithDecoderConcurrency(4)) if err != nil { panic(err) } if err := d.Reset(f); err != nil { panic(err) } stream := d.IOReadCloser() data, err := io.ReadAll(stream) if err != nil { panic(err) } cytolog.Info("%v", data)
But when I try to decompress the attached file it gives the error message in the title. A generate these files by compressing (with similar GO zstd code) a quite repetitive JSON string. If I do the same with a smaller file it works fine. Sometimes it can also produce "litLengths:sequence decoder not defined" but hard to reproduce, in debug mode it also behaves somewhat differently, so I guess it's some datarace.
localTest.txt
Beta Was this translation helpful? Give feedback.
All reactions