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

cv2 error on datarmor #100

Closed
vincelhx opened this issue Dec 20, 2024 · 2 comments · Fixed by #101
Closed

cv2 error on datarmor #100

vincelhx opened this issue Dec 20, 2024 · 2 comments · Fixed by #101
Assignees

Comments

@vincelhx
Copy link
Collaborator

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.10.0) /home/conda/feedstock_root/build_artifacts/libopencv_1727758804785/work/modules/core/src/system.cpp:1772: error: (-215:Assertion failed) tlsSlotsSize > slotIdx in function 'getData'
Aborted

while processing a random S1A image.

@vincelhx
Copy link
Collaborator Author

the error was coming from here

 self.gradients = xsarsea.gradients.Gradients(
            self.xr_dataset_100['sigma0_detrend'],
            windows_sizes=self.windows_sizes,
            downscales_factors=self.downscales_factors,
            window_step=self.window_step
        )

https://github.com/umr-lops/grdwindinversion/blob/004d4b4cc682409a7dcb8a0f94921acaa5c3f8ac/grdwindinversion/gradientFeatures.py#L58C1-L63C10

and then on the call of cv2.resize in xsarsea

@vincelhx
Copy link
Collaborator Author

#101 will solve
however i dont understand something.

when i place the "force-singlethread" lines on inversion.py it's working ; if i place them on main.py its not..
in the second case i get a segmentation fault.

in any case i think that the best thing is to call cv2 at first

@agrouaze agrouaze added the bug Something isn't working label Dec 20, 2024
@agrouaze agrouaze linked a pull request Dec 20, 2024 that will close this issue
@vincelhx vincelhx removed the bug Something isn't working label Jan 20, 2025
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

Successfully merging a pull request may close this issue.

2 participants