From e82f2d283ce82e14ab323e6be6fbacd58487448d Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Thu, 30 Oct 2025 13:24:09 +0100 Subject: [PATCH] python3Packages.gym: disable test that segfault ``` gym> tests/wrappers/test_record_video.py Fatal Python error: Segmentation fault gym> gym> Thread 0x00007ffea0f716c0 (most recent call first): gym> File "/nix/store/qlz1jypzdb320jp0ci0igxg2ghf0974d-python3-3.12.11/lib/python3.12/threading.py", line 359 in wait gym> File "/nix/store/qlz1jypzdb320jp0ci0igxg2ghf0974d-python3-3.12.11/lib/python3.12/threading.py", line 655 in wait gym> File "/nix/store/vadca0pz5kfvwxaldqzmjxnhm9zz3sb8-python3.12-tqdm-4.67.1/lib/python3.12/site-packages/tqdm/_monitor.py", line 60 in run gym> File "/nix/store/qlz1jypzdb320jp0ci0igxg2ghf0974d-python3-3.12.11/lib/python3.12/threading.py", line 1075 in _bootstrap_inner gym> File "/nix/store/qlz1jypzdb320jp0ci0igxg2ghf0974d-python3-3.12.11/lib/python3.12/threading.py", line 1032 in _bootstrap gym> gym> Current thread 0x00007ffff7f86740 (most recent call first): gym> File "/build/source/gym/envs/classic_control/cartpole.py", line 250 in render gym> File "/build/source/gym/wrappers/order_enforcing.py", line 51 in render gym> File "/build/source/gym/core.py", line 329 in render gym> File "/build/source/gym/wrappers/render_collection.py", line 33 in step gym> File "/build/source/gym/wrappers/record_video.py", line 142 in step gym> File "/build/source/tests/wrappers/test_record_video.py", line 16 in test_record_video_using_default_trigger gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/python.py", line 157 in pytest_pyfunc_call gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_callers.py", line 121 in _multicall gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 512 in __call__ gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/python.py", line 1671 in runtest gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/runner.py", line 178 in pytest_runtest_call gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_callers.py", line 121 in _multicall gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 512 in __call__ gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/runner.py", line 246 in gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/runner.py", line 344 in from_call gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/runner.py", line 245 in call_and_report gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/runner.py", line 136 in runtestprotocol gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/runner.py", line 117 in pytest_runtest_protocol gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_callers.py", line 121 in _multicall gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 512 in __call__ gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/main.py", line 367 in pytest_runtestloop gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_callers.py", line 121 in _multicall gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 512 in __call__ gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/main.py", line 343 in _main gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/main.py", line 289 in wrap_session gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/main.py", line 336 in pytest_cmdline_main gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_callers.py", line 121 in _multicall gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec gym> File "/nix/store/56r3an7jdvdk2086cdm8m4yifgp8wy2p-python3.12-pluggy-1.6.0/lib/python3.12/site-packages/pluggy/_hooks.py", line 512 in __call__ gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/config/__init__.py", line 175 in main gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/_pytest/config/__init__.py", line 201 in console_main gym> File "/nix/store/y35d39jdxlf8nfa6jvl6v084sa8kh73p-python3.12-pytest-8.4.2/lib/python3.12/site-packages/pytest/__main__.py", line 9 in gym> File "", line 88 in _run_code gym> File "", line 198 in _run_module_as_main ``` --- pkgs/development/python-modules/gym/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix index 764a9cda9e28..28c3e53d8128 100644 --- a/pkgs/development/python-modules/gym/default.nix +++ b/pkgs/development/python-modules/gym/default.nix @@ -100,6 +100,9 @@ buildPythonPackage rec { # The requested array has an inhomogeneous shape after 1 dimensions. # The detected shape was (2,) + inhomogeneous part "test_sample_contains" + + # segfault + "test_record_video" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Fatal Python error: Aborted