openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

UI: segfault when switching camera streams

Open haraschax opened this issue 3 years ago • 2 comments

Describe the bug

When switching camera streams in the ui, as is done in this commit. https://github.com/commaai/openpilot/commit/1db0b6acf0ca433a2eeaec4ed1af6d51241e9061

It can sometimes segault.

It's relatively easy to reproduce by checking out that commit and running replay on public route ./replay "1df037e2a95eb9be|2022-10-17--14-52-31" --ecam

If you then skip forward and back frequently you should quickly see a segault

Segmentation fault (core dumped)

Provide a route where the issue occurs

1df037e2a95eb9be|2022-10-17--14-52-31

openpilot version

draw-mpc

Additional info

No response

haraschax avatar Oct 18 '22 21:10 haraschax

@deanlee Something you want to look into?

haraschax avatar Oct 18 '22 21:10 haraschax

It's not clear why this is happening, I'll keep checking

deanlee avatar Oct 19 '22 08:10 deanlee

The segfault I encountered was :

#0 0x00007f6676881cd0 n/a (/usr/lib/x86_64-linux-gnu/dri/iris_dri.so + 0x109ecd0)

It's a opengl problem, iris_dri is part of libgl1-mesa-dri (the OpenGL API -- DRI modules): https://packages.ubuntu.com/search?suite=focal&arch=amd64&mode=exactfilename&searchon=contents&keywords=iris_dri.so

deanlee avatar Oct 24 '22 01:10 deanlee