facebookresearch / theseus

A library for differentiable nonlinear optimization
MIT License
1.78k stars 128 forks source link

Segmentation fault on CusolverLUSolver #634

Open shengtsui opened 11 months ago

shengtsui commented 11 months ago

❓ Questions and Help

I got this error when running unit test.

tests/theseus_tests/extlib/test_cusolver_lu_solver.py Fatal Python error: Segmentation fault

Current thread 0x00007fd0e5137740 (most recent call first):
  File "/home/stsui/theseus/tests/theseus_tests/extlib/test_cusolver_lu_solver.py", line 56 in check_lu_solver
  File "/home/stsui/theseus/tests/theseus_tests/extlib/test_cusolver_lu_solver.py", line 86 in test_lu_solver_1
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/python.py", line 194 in pytest_pyfunc_call
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/python.py", line 1792 in runtest
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 262 in <lambda>
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 341 in from_call
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 261 in call_runtest_hook
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 222 in call_and_report
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 133 in runtestprotocol
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/main.py", line 350 in pytest_runtestloop
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/main.py", line 325 in _main
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/main.py", line 271 in wrap_session
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/main.py", line 318 in pytest_cmdline_main
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/home/stsui/.local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 169 in main
  File "/home/stsui/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 192 in console_main
  File "/home/stsui/.local/lib/python3.10/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib/python3.10/runpy.py", line 86 in _run_code
  File "/usr/lib/python3.10/runpy.py", line 196 in _run_module_as_main
luisenp commented 10 months ago

HI @shengtsui. Are you still having this error? Can you share details of your installation? Did you install theseus from source or from pypi? What's your CUDA version?