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

pygame 单独demo可以通,但是跟lmdrive配起来就会挂 #29

Open
prograguo opened this issue Mar 4, 2024 · 5 comments
Open

pygame 单独demo可以通,但是跟lmdrive配起来就会挂 #29

prograguo opened this issue Mar 4, 2024 · 5 comments

Comments

@prograguo
Copy link

代码和显示图如下
Screenshot from 2024-03-04 14-59-20

@prograguo
Copy link
Author

文字bug是:
Fatal Python error: Segmentation fault

Thread 0x00007f86dc7ff640 (most recent call first):
File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 300 in wait
File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 552 in wait
File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 1156 in run
File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 917 in _bootstrap_inner
File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 885 in _bootstrap

Current thread 0x00007f893e42e740 (most recent call first):
File "leaderboard/team_code/lmdriver_agent.py", line 84 in init
File "leaderboard/team_code/lmdriver_agent.py", line 186 in setup
File "/home/jss/Documents/LMDrive/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 46 in init
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 280 in _load_and_run_scenario
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 426 in run
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 494 in main
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 507 in
./leaderboard/scripts/run_evaluation.sh: line 48: 14321 Segmentation fault (core dumped)

@deepcs233
Copy link
Collaborator

Hi!
Sorry for the late reply, I have been very busy recently. The error you're experiencing seems to originate from the GUI. You can try to comment on the code related to the GUI or change the version of the pygame. The GUI is not the necessary part for running the project.

@timbrist
Copy link

timbrist commented Mar 13, 2024

This problem is caused by ~\LMDrive\leaderboard\team_code\lmdriver_agent.py

        self._display = pygame.display.set_mode(
            (self._width, self._height), pygame.HWSURFACE | pygame.DOUBLEBUF
        )

You probably need to download
sudo apt-get install libsdl2-dev

see the solution in pygame

Ubuntu上运行就会出现pygame的崩溃,和LMDrive没关系。我是先把这行代码注释掉,等能够全部运行了在出来pygame的问题。

@haopenghui
Copy link

@prograguo 你好我想问一下vision_decoder的权重是如何获取的,谢谢

@dingli-dean
Copy link

This problem is caused by ~\LMDrive\leaderboard\team_code\lmdriver_agent.py

        self._display = pygame.display.set_mode(
            (self._width, self._height), pygame.HWSURFACE | pygame.DOUBLEBUF
        )

You probably need to download sudo apt-get install libsdl2-dev

see the solution in pygame

Ubuntu上运行就会出现pygame的崩溃,和LMDrive没关系。我是先把这行代码注释掉,等能够全部运行了在出来pygame的问题。

hello,请问保持 self._display 不注释,这个 issue 有解决吗?

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

No branches or pull requests

5 participants