Opened 9 years ago

Last modified 9 years ago

#2282 open defect

Mesa: User error: GL_INVALID_ENUM in glTexParameter

Reported by: orbea Owned by: beastd
Priority: normal Component: undetermined
Version: 1.3 Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

os: Slackware current
MPlayer: 1.2.1
mesa: 04c2ca5_2016.02.06
libdrm: 682eaa0_2016.01.29

When using a debug version of mesa and 'mplayer -vo gl' this error is printed while 'mplayer -vo vdpau' works as expected.
Mesa: User error: GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_STORAGE_HINT_APPLE)

I set a breakpoint on output_if_debug in gdb and got this backtrace.

(gdb) run -vo gl Dark.Matter.S01E01.720p.HDTV.x264-KILLERS.mkv
Starting program: /usr/bin/mplayer -vo gl Dark.Matter.S01E01.720p.HDTV.x264-KILLERS.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
MPlayer 1.2.1-5.3.0 (C) 2000-2016 MPlayer Team

Playing Dark.Matter.S01E01.720p.HDTV.x264-KILLERS.mkv.
libavformat version 56.40.101 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO: [H264] 1280x720 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:

encoder: libebml v1.3.0 + libmatroska v1.4.1
creation_time: 2015-06-13 03:05:22

Load subtitles in ./
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x5555568beb80]Channel layout '5.1(side)' with 6 channels does not match specified number of channels 2: ignoring specified channel layout
AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.60:1 - prescaling to correct movie aspect.
VO: [gl] 1280x720 => 1280x800 Planar YV12

Breakpoint 1, output_if_debug (prefixString=0x7fffea04be6f "Mesa: User error",

outputString=0x7fffffffbb70 "GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_STORAGE_HINT_APPLE)", newline=1 '\001') at main/errors.c:1317

warning: Source file is more recent than executable.
1317 if (debug == -1) {
(gdb) bt full
#0 output_if_debug (prefixString=0x7fffea04be6f "Mesa: User error",

outputString=0x7fffffffbb70 "GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_STORAGE_HINT_APPLE)", newline=1 '\001') at main/errors.c:1317

debug = -1

#1 0x00007fffe9b567e8 in _mesa_error (ctx=ctx@entry=0x555557bd9a50,

error=error@entry=1280, fmtString=<optimized out>) at main/errors.c:1583

s = "glTexParameter(pname=GL_TEXTURE_STORAGE_HINT_APPLE)\000\377\177\000\000\000\223\300WUU\000\000\002\000\000\000UU\000\000\030\000\000\000\000\000\000\000\060\254\377\377\377\177\000\000\030\000\000\000\000\000\000\000@\254\377\377\377\177\000\000\220\351\300WUU\000\000\321S\000\000\000\200\377\377/\254\377\377\377\177\000\000\000\000\000\000\000\000\000\000\002\000\000\000\060", '\000' <repeats 19 times>, "[\000\000\000n", '\000' <repeats 19 times>, "w\000\000\000|", '\000' <repeats 11 times>...
s2 = "GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_STORAGE_HINT_APPLE)", '\000' <repeats 62 times>, "\377\177\000\000@˗\360\377\177\000\000\000\000\000\000\000\000\000\000@c\360\377\177\000\000\300\301\377\377\377\177\000\000\260\301\377\377\377\177\000\000P\211\a\352\377\177\000\000(\303\377\377\377\177\000\000\000\000\000\000\000\000\000\000\340"...
len = 70
args = {{gp_offset = 40, fp_offset = 48,

overflow_arg_area = 0x7fffffffcc60, reg_save_area = 0x7fffffffcb70}}

do_log = 0 '\000'
error_msg_id = 1
PRETTY_FUNCTION = "_mesa_error"

#2 0x00007fffe9c203cb in set_tex_parameteri (ctx=ctx@entry=0x555557bd9a50,

texObj=texObj@entry=0x555557c01da0, pname=pname@entry=34236,
params=params@entry=0x7fffffffcca0, dsa=<optimized out>)
at main/texparam.c:629

suffix = 0x7fffea0d1f94 ""

#3 0x00007fffe9c21686 in _mesa_texture_parameteri (ctx=0x555557bd9a50,

texObj=0x555557c01da0, pname=34236, param=34238, dsa=<optimized out>)
at main/texparam.c:919

iparam = {34238, 0, 0, 0}
need_update = <optimized out>

#4 0x00005555556cca4b in ?? ()
No symbol table info available.
#5 0x00005555556d28de in ?? ()
No symbol table info available.
#6 0x00005555556d2e58 in ?? ()
No symbol table info available.
#7 0x00005555556bd9fe in ?? ()
No symbol table info available.
#8 0x0000555555782157 in ?? ()
No symbol table info available.
#9 0x000055555574fa8f in ?? ()
No symbol table info available.
#10 0x000055555574bd5c in ?? ()
No symbol table info available.
#11 0x0000555555811c97 in ?? ()
No symbol table info available.
#12 0x00005555558121d0 in ?? ()
No symbol table info available.
#13 0x0000555555747082 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#14 0x00005555556b30fd in ?? ()
No symbol table info available.
#15 0x00005555556a5597 in ?? ()
No symbol table info available.
#16 0x00007ffff05d66d0 in libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#17 0x00005555556a7a39 in ?? ()
No symbol table info available.

Change History (8)

comment:1 by orbea, 9 years ago

Severity: blockernormal

comment:2 by orbea, 9 years ago

Version: unspecified1.2.1

comment:3 by orbea, 9 years ago

Resolution: fixed
Status: newclosed

Edit: nvm

Last edited 9 years ago by orbea (previous) (diff)

comment:4 by orbea, 9 years ago

Resolution: fixed
Status: closedreopened

comment:5 by orbea, 9 years ago

Version: 1.2.11.3

comment:6 by orbea, 9 years ago

Status: reopenedopen

comment:7 by reimar, 9 years ago

GL_TEXTURE_STORAGE_HINT_APPLE is not supported by Mesa.
As it is a pure optimization and won't break anything I didn't consider it worth adding an extra feature check.
Is there any reason to care about it I missed?

comment:8 by orbea, 9 years ago

Other than for the sake of preventing unnecessary and silly errors from being printed and code correctness, perhaps not.

Note: See TracTickets for help on using tickets.