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

core dumped when turn on Multithreading switch #109

Open
chuanflow opened this issue Nov 12, 2020 · 2 comments
Open

core dumped when turn on Multithreading switch #109

chuanflow opened this issue Nov 12, 2020 · 2 comments

Comments

@chuanflow
Copy link

I add

#define BRUNSLI_EXPERIMENTAL_GROUPS 1

in c/tools/cbrunsli.cc

then try to compress a jpg, but a core dumped. The jpg picture is in the attachment.

c/enc/write_bits.cc:26 (~Storage)
Aborted (core dumped)

data

@chuanflow
Copy link
Author

it seems that DC part_size is not enough when components equal 1.
serialize kBrunsliDCDataTag

size_t part_size = 128 * (128 + 16) * jpg.components.size();
part.resize(part_size);

@eustas
Copy link
Collaborator

eustas commented Sep 15, 2021

Will take a look soon.

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

2 participants