[vlc-devel] Using VLC 4.0.0 on WSL2 Ubuntu 25.04 with wayland

Rémi Denis-Courmont remi at remlab.net
Sun Jun 22 07:49:38 UTC 2025



Le 19 juin 2025 15:03:43 GMT+02:00, Jean-Yves Baudy <jy.baudy at gmail.com> a écrit :
>Hi,
>When I want to play a video with VLC 4.0.0 on WSL2 Ubuntu 25.04 with
>wayland (compiled from the main branch) I have this error and VLC stop
>working (exit):
>
>   - wp_viewporter#22: error 0: a viewport for that surface already exists
>
>
>If I comment the code here:
>
>   - <     if (sys->viewporter != NULL)
>   <         sys->viewport = wp_viewporter_get_viewport(sys->viewporter,
>   surface);
>   ---
>   >     if (sys->viewporter != NULL) {
>   >         //sys->viewport = wp_viewporter_get_viewport(sys->viewporter,
>   surface);
>   >     }
>
>It works. I have no idea why.

That's going to break normal use of SHM and is not a usable patch.

This is ostensibly a bug in the window provider you're using, it's not respecting the conventions for the Wayland surface type, causing valid display plugins to crash.


More information about the vlc-devel mailing list