eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.55k stars 1.43k forks source link

sumo-gui crashing when opening any simulation on WSL2 (Windows 11 22H2) #13331

Closed francescoraves483 closed 2 months ago

francescoraves483 commented 1 year ago

I'm currently trying to run sumo-gui on WSL2 (Windows 11 22H2), on a new DELL XPS 13 Plus laptop (with Intel Core i7-1360P and Intel Iris Xe graphics). It has always worked as expected on other devices. It was also working as expected on an older HP laptop (Intel Core i5-8250U) with WSL2 and the same Windows version.

However, on this new laptop, I can't seem to be able to run sumo-gui. I can launch the GUI, but if I try to start any simulation, SUMO takes a lot of time to load it, and it closes up with a Segmentation Fault.

The issue occurs with both SUMO 1.12.0, and SUMO 1.17.0. The scenario I'm using as a reference is the one available here . SUMO crashes both when launching the scenario from the GUI, or when running it with sumo-gui -c map.sumo.cfg.

Could it be an ussue with Intel Iris Xe, when launching SUMO over WSL2?

When SUMO crashes, this is what I get from dmesg:

[ 1419.116173] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[ 1419.286723] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[ 1419.288534] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[ 1419.290401] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[ 1428.315080] sumo-gui[157091]: segfault at 0 ip 00007f40c4063241 sp 00007f40a7d26520 error 6 in libstdc++.so.6.0.28[7f40c3fb6000+f1000]
[Video_of_SUMO_crash_WSL2.zip](https://github.com/eclipse/sumo/files/11593356/Video_of_SUMO_crash_WSL2.zip)
[Video_of_SUMO_crash_WSL2.zip](https://github.com/eclipse/sumo/files/11593362/Video_of_SUMO_crash_WSL2.zip)

[ 1428.315105] Code: 2f 4c 8d 77 10 4c 8b 66 08 48 89 fb 48 89 f5 4d 39 ee 0f 84 99 00 00 00 48 8b 57 10 4c 39 e2 72 58 4d 85 e4 75 33 4c 89 63 08 <43> c6 44 25 00 00 48 8b 44 24 08 64 48 2b 04 25 28 00 00 00 0f 85
[ 1428.315123] potentially unexpected fatal signal 11.
[ 1428.315124] CPU: 14 PID: 157091 Comm: sumo-gui Not tainted 5.15.90.1-microsoft-standard-WSL2 #1
[ 1428.315127] RIP: 0033:0x7f40c4063241
[ 1428.315131] Code: 2f 4c 8d 77 10 4c 8b 66 08 48 89 fb 48 89 f5 4d 39 ee 0f 84 99 00 00 00 48 8b 57 10 4c 39 e2 72 58 4d 85 e4 75 33 4c 89 63 08 <43> c6 44 25 00 00 48 8b 44 24 08 64 48 2b 04 25 28 00 00 00 0f 85
[ 1428.315143] RSP: 002b:00007f40a7d26520 EFLAGS: 00010246
[ 1428.315145] RAX: 0000000000000000 RBX: 00007f40a008b630 RCX: 00007f40a00e0fb0
[ 1428.315147] RDX: 0000000000000000 RSI: 00007f40a00757e0 RDI: 00007f40a008b630
[ 1428.315148] RBP: 00007f40a00757e0 R08: 00007f40a00e0fb0 R09: 000000000000021d
[ 1428.315149] R10: 000000000000006d R11: 00007f40a00690f0 R12: 0000000000000000
[ 1428.315150] R13: 0000000000000000 R14: 00007f40a008b640 R15: 00007f40a0072830
[ 1428.315151] FS:  00007f40a7d2b700 GS:  0000000000000000
[ 1428.315207] misc dxg: dxgk: dxgkio_wait_sync_object_cpu: wait_completion_interruptible: -512
[ 1428.340462] misc dxg: dxgk: dxgkio_wait_sync_object_cpu: Ioctl failed: -512
namdre commented 1 year ago

most likely an issue with the OpenGL drivers for that particular graphics hardware.

see https://github.com/microsoft/WSL/issues/8664

m-kro commented 2 months ago

Closing due to lack of feedback