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

import cv2 ImportError: dlopen: cannot load any more object with static TLS #74

Open
Skealz opened this issue Sep 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Skealz
Copy link
Collaborator

Skealz commented Sep 9, 2024

2024-09-09 15:27 datarmor1    sarwing    qsubarray_wait   : Error from /home1/scratch/sarwing/qsubarray/sarwing/20240909/1522-qTa/cache/c69e19dab5aef90145000
964502ac0f9/stdout:
version file : /home/datawork-cersat-public/cache/public/ftp/project/sarwing/processings/xsar_2024v7v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1
_1v2v1/all_plugins_cmod5n_ecmwf/rcm/rcm-1/sc50mb/2022/268/RCM1_OK2378142_PK2381315_1_SC50MB_20220925_233123_HH_HV_GRD/.sarL2Processor/OWI.version
logname: no login name
Mon Sep  9 15:23:10 GMT 2024
@r2i1n20:/home1/datahome/sarwing%  SAR_L1-to-L2_wind_processor --input_file /home/datawork-cersat-public/provider/csa/satellite/l1/rcm/rcm-1/sc50mb/2022/268/
RCM1_OK2378142_PK2381315_1_SC50MB_20220925_233123_HH_HV_GRD --outputdir /home/datawork-cersat-public/cache/public/ftp/project/sarwing/processings/xsar_2024v7
v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1_1v2v1/all_plugins_cmod5n_ecmwf/rcm/rcm-1/sc50mb/2022/268/RCM1_OK2378142_PK2381315_1_SC50MB_20220925
_233123_HH_HV_GRD --config_file /home/datawork-cersat-public/cache/project/sarwing/configs/grdwind_cmod5n_ecmwf.yaml

====================================


Traceback (most recent call last):
  File "/home/datawork-cersat-public/cache/project/sarwing/commits/xsar_2024v7v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1_1v2v1/grdwindinversio
n/bin/SAR_L1-to-L2_wind_processor", line 7, in <module>
    from grdwindinversion.main import processor_starting_point
  File "/home/datawork-cersat-public/cache/project/sarwing/commits/xsar_2024v7v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1_1v2v1/grdwindinversio
n/lib/python3.10/site-packages/grdwindinversion/__init__.py", line 7, in <module>
    from grdwindinversion import *
  File "/home/datawork-cersat-public/cache/project/sarwing/commits/xsar_2024v7v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1_1v2v1/grdwindinversio
n/lib/python3.10/site-packages/grdwindinversion/inversion.py", line 18, in <module>
    from grdwindinversion.streaks import get_streaks
  File "/home/datawork-cersat-public/cache/project/sarwing/commits/xsar_2024v7v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1_1v2v1/grdwindinversio
n/lib/python3.10/site-packages/grdwindinversion/streaks.py", line 2, in <module>
    import xsarsea.gradients
  File "/home/datawork-cersat-public/cache/project/sarwing/commits/xsar_2024v7v30_1v2_0v2v3vpost15_1v1v1_1v0v6_1v0v6_1v1v11_1v0v3_1v0v1_1v2v1/grdwindinversio
n/lib/python3.10/site-packages/xsarsea/gradients.py", line 19, in <module>
    import cv2
ImportError: dlopen: cannot load any more object with static TLS
@Skealz
Copy link
Collaborator Author

Skealz commented Sep 16, 2024

Happens when executing on datarmor cluster

@Skealz
Copy link
Collaborator Author

Skealz commented Sep 16, 2024

Can reproduce using only :

from scipy import signal, ndimage
import xarray as xr
import cv2

Using only 1 import before cv2 did not trigger the error. Re-try to import cv2 after the error seems to work.

@agrouaze agrouaze added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants