mpv
mpv copied to clipboard
`vo=libmpv` reports OpenGL `INVALID_ENUM` when creating some textures
mpv Information
mpv v0.39.0-82-gfb9ac9b570 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0 (v7.349.0-rc1-dirty)
FFmpeg version: 6.1.2
FFmpeg library versions:
libavcodec 60.31.102
libavdevice 60.3.100
libavfilter 9.12.100
libavformat 60.16.100
libavutil 58.29.100
libswresample 4.12.100
libswscale 7.5.100
Other Information
- Linux version: Gentoo
- Kernel Version: 6.6.47-gentoo-x86_64
- GPU Model: GeForce RTX 4090
- Mesa/GPU Driver Version: 4.6.0 NVIDIA 560.35.03
- Window Manager and Version: Plasma 6.1.5
- Source mpv: emerge (built from source)
- Introduced in version: Reproduced on v0.38.0, verified to happen on v0.34.0 in #13228
Reproduction Steps
- Build qt_opengl example without
mpv::qt::set_option_variant(mpv, "hwdec", "auto");. - Open a file.
Expected Behavior
Video plays without issue and no INVALID_ENUM errors are written to console or logs.
Actual Behavior
Creating several textures in OpenGL fails with the INVALID_ENUM error. Playback is otherwise normal.
[ 8.285][v][libmpv_render] Texture for plane 0: 1280x720
[ 8.285][e][libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
[ 8.308][d][libmpv_render] Resizing texture: 480x270
[ 8.308][e][libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
Log File
https://0x0.st/XEIi.txt
Sample Files
Source code for the lightly modified qt_opengl example I used: https://files.catbox.moe/dvv86a.zip
I carefully read all instruction and confirm that I did the following:
- [X] I tested with the latest mpv version to validate that the issue is not already fixed.
- [X] I provided all required information including system and mpv version.
- [X] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - [X] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- [X] I attached the full, untruncated log file.
- [X] I attached the backtrace in the case of a crash.