-
Notifications
You must be signed in to change notification settings - Fork 190
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
Display exception when creating multiple SMARTS instances #184
Comments
Hello @zbzhu99 , this is a known issue. SMARTS uses a few dependencies that have the requirement for a single instance in a process. In order to use another SMARTS instance in the same thread, the previous needs to be destroyed, or run on another process. There is an https://github.com/huawei-noah/SMARTS/blob/master/examples/multi_instance.py#L68-L162 |
@Gamenot We might be able to solve this problem using the suggestions in this comment here: panda3d/panda3d#996 (comment) Namely, use the lower level components of panda3d instead of ShowBase |
@davidrusu Yes, it seems like |
Hi there, I wrote the original github issue over at Panda3D. Just wondering if you'd be willing to share your implementation of the referenced |
@alek5k We'd be happy to share it once we've got around to tackling this. Currently we are also relying on multiprocessing to avoid multiple instances of Showbase. If you beat us to it, please come back and share your findings. |
Another relevant issue with Panda3D that you might run into if you are planning on running many instances in linux: |
@alek5k Yeah we did hit that one with one of our users as well Maybe you can find something of use from the other configuration options we tuned here: https://github.com/huawei-noah/SMARTS/blob/master/smarts/core/smarts.py#L62-L68 |
Since we are just using |
This particular problem has been addressed using |
I encounter the "Display is not found" exception when trying to create multiple SMARTS instances:
To reproduce:
Development Environment:
OS: Ubuntu 16.04
Python: 3.7.4
SUMO: 1.7.0
SMARTS: 0.4.4
The text was updated successfully, but these errors were encountered: