WebBrowser crash in Vision

I have a simple Vision application that displays a live stream from an IP camera.

At first, I tried using the IP Cam Viewer, but my camera doesn’t support MJPEG. So I ended up using MediaMTX to convert the RTSP stream into HTTP. In Vision, I embedded a Web Browser component to display the live stream.

It almost works perfectly.
When the Vision client launches, everything works fine.

However, if I try to log in with another user, the Web Browser component crashes and I can’t interact with the application anymore.

When I click the “Log Out” button, I get an error message.
The script on the button is simply:
sytem.vision.logout

I don’t understand what’s causing this issue, and I’m not sure where to start investigating.

Does anyone have an idea what might be going wrong?