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

random tile decoding problems #47

Open
hanatos opened this issue Sep 27, 2023 · 1 comment
Open

random tile decoding problems #47

hanatos opened this issue Sep 27, 2023 · 1 comment

Comments

@hanatos
Copy link

hanatos commented Sep 27, 2023

heya,

i'm using rawloader through a thin c-bindings layer (which you can find here).

when running this code on a sequence of dng files, i get random tile decoding issues which manifest themselves like so:

2023-09-27-152613_1131x709_scrot

or so:

2023-09-27-153744_955x694_scrot

jumping around the images. looks like a threading issue to me (?). is this a bug? am i calling it wrong? do i have to wait before reading out the buffer after calling rawloader::decode_file()?

@pedrocr
Copy link
Owner

pedrocr commented Sep 27, 2023

If it happens randomly on the same input threading seems like the most likely culprit.

A quick check would be to set RAYON_NUM_THREADS to 1 in the shell and see if that makes a difference.

There's nothing in the API that needs waiting, the threading is all internal. It may be some kind of bug in the environment rayon needs that the C binding is not setting up.

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