Closed abol-karimi closed 1 year ago
Hi Abolfazl,
That looks like one of the bugs in this issue, which was fixed in this PR. The good news is that the fix should have been backported to 2.x and made it into 2.1. Can you try updating to Version 2.1 of Scenic (which should be compatible with what you have right now) and see if that resolves the issue?
Thanks for the quick reply! The minimal example above works fine with v2.1. However, my actual scenic code (which is a modular scenario) still triggers the same error.
Can you provide your code that reproduces it? Then we can investigate why things are still crashing.
I see that scenic.simulators.carla.actions
keeps a reference to scenic.simulators.carla.model
in order to access the Vehicle
and Pedestrian
classes, which seems similar to the bug that was fixed.
You're right, good catch! We'll think about how to fix this.
@abol-karimi Hopefully this is now fixed in main
; please give it a try and let us know.
I applied your changes to v2.1.0 and it works, thank you!
I had tried porting my project to Scenic 3 but I noticed a significant slow down.
Glad to hear it's working now. We'll back-port the fix to 2.x!
How much of a slowdown are you experiencing? We're definitely trying to avoid a significant slowdown for 2.0 scenarios in Scenic 3.0. Could you share your scenario with us so that we can profile it and try to ameliorate the slowdown?
That would be great! Since we want to publish the results, the code is in a private repository. I'll add you to the repo and will show you how to run it.
Sounds good! If you'd like you can email me at evin {at} ucsc.edu
The patch (and several others) have been back-ported to 2.x in this PR: https://github.com/BerkeleyLearnVerify/Scenic/pull/173 .
Please let me know if there's any other issues, but I'll go ahead and close the issue for now.
Using Scenic's Python API, I cannot run a scenario immediately after another. For the second simulation, I get the following error:
Platform:
Here is the
loopy.py
script:and the two scenic files
dynamic1.scenic
anddynamic2.scenic
specify the same scenario: