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

Resizing of the Pygame window crashes #22

Open
ll7 opened this issue Mar 28, 2024 · 1 comment
Open

Resizing of the Pygame window crashes #22

ll7 opened this issue Mar 28, 2024 · 1 comment
Labels
bug Something isn't working p1 1st most import task category

Comments

@ll7
Copy link
Owner

ll7 commented Mar 28, 2024

Exception has occurred: error
Invalid texture
  File "/home/luttkule/git/robot_sf_ll7/robot_sf/render/sim_view.py", line 246, in render
    pygame.display.update()
  File "/home/luttkule/git/robot_sf_ll7/robot_sf/gym_env/robot_env.py", line 206, in render
    self.sim_ui.render(state)
  File "/home/luttkule/git/robot_sf_ll7/examples/simulate_with_svg_map.py", line 50, in test_simulation
    env.render()
  File "/home/luttkule/git/robot_sf_ll7/examples/simulate_with_svg_map.py", line 69, in main
    test_simulation(map_definition)
  File "/home/luttkule/git/robot_sf_ll7/examples/simulate_with_svg_map.py", line 74, in <module>
    main()
pygame.error: Invalid texture
@ll7 ll7 added the bug Something isn't working label Mar 28, 2024
@ll7
Copy link
Owner Author

ll7 commented May 31, 2024

The following is the latest indication when the resizing crashes the application:

/workspaces/robot_sf_ll7# python examples/demo_offensive.py 
2024-05-31 13:45:05.614 | INFO     | robot_sf.render.sim_view:__post_init__:86 - Initializing the simulation view.
/opt/venv/lib/python3.10/site-packages/torch/cuda/__init__.py:141: UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 804: forward compatibility was attempted on non supported HW (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)
  return torch._C._cuda_getDeviceCount() > 0
/opt/venv/lib/python3.10/site-packages/stable_baselines3/common/vec_env/patch_gym.py:95: UserWarning: You loaded a model that was trained using OpenAI Gym. We strongly recommend transitioning to Gymnasium by saving that model again.
  warnings.warn(
/opt/venv/lib/python3.10/site-packages/stable_baselines3/common/base_class.py:748: UserWarning: You are probably loading a model saved with SB3 < 1.7.0, we deactivated exact_match so you can save the model again to avoid issues in the future (see https://github.com/DLR-RM/stable-baselines3/issues/1233 for more info). Original error: Error(s) in loading state_dict for MultiInputActorCriticPolicy:
        Missing key(s) in state_dict: "pi_features_extractor.ray_extractor.0.weight", "pi_features_extractor.ray_extractor.0.bias", "pi_features_extractor.ray_extractor.3.weight", "pi_features_extractor.ray_extractor.3.bias", "pi_features_extractor.ray_extractor.6.weight", "pi_features_extractor.ray_extractor.6.bias", "pi_features_extractor.ray_extractor.9.weight", "pi_features_extractor.ray_extractor.9.bias", "vf_features_extractor.ray_extractor.0.weight", "vf_features_extractor.ray_extractor.0.bias", "vf_features_extractor.ray_extractor.3.weight", "vf_features_extractor.ray_extractor.3.bias", "vf_features_extractor.ray_extractor.6.weight", "vf_features_extractor.ray_extractor.6.bias", "vf_features_extractor.ray_extractor.9.weight", "vf_features_extractor.ray_extractor.9.bias".  
Note: the model should still work fine, this only a warning.
  warnings.warn(
2024-05-31 13:45:42.894 | DEBUG    | robot_sf.render.sim_view:_resize_window:259 - Resizing the window.
2024-05-31 13:49:07.073 | DEBUG    | robot_sf.render.sim_view:_resize_window:259 - Resizing the window.
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Value in failed request:  0xecc
  Serial number of failed request:  208504
  Current serial number in output stream:  208505

@ll7 ll7 added the p1 1st most import task category label Jun 26, 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 p1 1st most import task category
Projects
None yet
Development

No branches or pull requests

1 participant