You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Failed to find symbol file, expected location:
"/opt/carla-simulator/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.sym"
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)
importglobimportosimportsysimportnumpyasnpimporttime# ==============================================================================# -- Find CARLA module ---------------------------------------------------------# ==============================================================================try:
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg'% (
sys.version_info.major,
sys.version_info.minor,
'win-amd64'ifos.name=='nt'else'linux-x86_64'))[0])
exceptIndexError:
pass# ==============================================================================# -- Add PythonAPI for release mode --------------------------------------------# ==============================================================================try:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +'/carla')
exceptIndexError:
passimportcarlaclassEnvironment:
def__init__(self, world='Town01_Opt', host='localhost', port=2200):
self.client=carla.Client(host, port) #Connect to serverself.client.set_timeout(30.0)
self.world=self.client.load_world(world)
def__del__(self):
ifself.client:
delself.clientifself.world:
delself.worldprint("__del__ called")
if__name__=="__main__":
forxinrange(0,20000):
env=Environment(world="Town01_Opt", port=2200, host="localhost")
time.sleep(1) # let the env render for a second print(f"world {x}")
The code creates and destroys a world multiple times.
After around ~120 worlds, the server crashes with the error above, although each world is destroyed before creating a new one.
This is a condensed version of this.
Might also be relevant for this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
CARLA version: 0.9.13
Platform/OS: Linux
Error is on server-side
Error-Message:
I run carla server side by:
Minimal code:
The code creates and destroys a world multiple times.
After around ~120 worlds, the server crashes with the error above, although each world is destroyed before creating a new one.
This is a condensed version of this.
Might also be relevant for this.
Update:
Found similar (unsolved) problem here
The text was updated successfully, but these errors were encountered: