esmini icon indicating copy to clipboard operation
esmini copied to clipboard

Large map simulations with esmini

Open doganulus opened this issue 11 months ago • 4 comments

I am testing esmini with larger road networks, and I encounter some problems (possibly memory leaks) as the application gets unresponsive without showing the window.

I was using the maps from the Carla simulator (https://github.com/carla-simulator/opendrive-test-files). Smaller maps (Town01-02) run as expected with a size of <1MB, but slightly larger ones (Town03-06) do not run even headless with a size of >2M. The medium-sized Town07 with a size of 1.6MB interestingly runs headless but not with a window. So the limit seems to be around 1MB in terms of map filesize.

I expect super-large maps would be out of scope, but I wonder what map sizes can be realistically achieved with the current architecture. Is this a bug or an architecture limitation?

Thanks!

doganulus avatar Jan 01 '25 15:01 doganulus

Great find, thanks for reporting this badness!

It's not the size itself causing trouble. It's a silly bug introduced in v.2.41.1. Root cause; small lane sections at beginning of road not being identified and handled correctly.

Bug should be fixed by commit 0b719f49 on dev branch. Will be included in next release.

If you need it urgently: Hopefully you can build from dev yourself. Otherwise, let us know if you need an executable, and in that case for what system (win, mac or linux)?

BTW: esmini shall indeed handle large networks, you can see a mega road network in action here.

eknabevcc avatar Jan 01 '25 16:01 eknabevcc

Binaries should also be available in the CI build: https://github.com/esmini/esmini/actions/runs/12572297922 (see bottom of page)

eknabevcc avatar Jan 01 '25 16:01 eknabevcc

Handling large networks would be very valuable for us, so I'm glad it's not an essential limitation.

This fix is not urgent, but thank you so much for the fast solution. I am currently exploring different parts to integrate esmini with our specification-based testing tools. I and my students would be happy to test and contribute to the project as much as possible.

doganulus avatar Jan 01 '25 17:01 doganulus

Fix included in v2.44.0

eknabevcc avatar Jan 07 '25 16:01 eknabevcc