Duke4.net Forums: Mesa: User error: GL_INVALID_VALUE in glTexSubImage2D(xoffset+width) - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mesa: User error: GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)

User is offline   Zagro 

#1

To reproduce: kill BattleLord, go to main menu, load a game, these Mesa: User error happens:

Load tile   20: p0-m4-e0 highres/screen/hud/0020.png... 30 ms
Load tile  502: p0-m4-e0 highres/textures/0502.png... 18 ms
Mesa: User error: GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)
Mesa: 7 similar GL_INVALID_VALUE errors
Mesa: User error: GL_INVALID_OPERATION in glTexSubImage2D(invalid texture image)
Error: glGetTexLevelParameteriv returned GL_FALSE!
Error: glGetTexLevelParameteriv returned GL_FALSE!
Error: glGetTexLevelParameteriv returned GL_FALSE!
Error: glGetTexLevelParameteriv returned GL_FALSE!
Error: glGetTexLevelParameteriv returned GL_FALSE!


I tried to run eduke under gdb, set a break output_if_debug (the mesa function printing the warning), however when the breakpoint get reached I cannot access gdb console to print the backtrace, I can only press CTRL+ALT+F1, kill -9 eduke32, return to X but then I cannot get a bt since eduke32 is closed.
0

User is offline   Plagman 

  • Former VP of Media Operations

#2

If you build with RELEASE=0 EDuke32 won't grab the mouse and you'll be able to interact with gdb after your breakpoint is hit.
0

User is offline   Zagro 

#3

View PostPlagman, on 29 December 2012 - 11:49 AM, said:

If you build with RELEASE=0 EDuke32 won't grab the mouse and you'll be able to interact with gdb after your breakpoint is hit.


I did a make clean and recompiled with RELEASE=0 but it still doesn't work: as soon as eduke reach the break it stops to (gdb), there is no mouse cursor, the only key combinations that work are SUPER (the Ubuntu Unity dash search panel appears, but keys does not work, while they usually do) and CTRL + ALT + F1 to switch to console. Then I killall -9 eduke32, return to X and I can interact with gdb, but eduke32 being close I cannot get a bt:
Breakpoint 1, output_if_debug (prefixString=0xaac57f10 "Mesa: User error", 
    outputString=0xbfffd30c "GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)", newline=1 '\001')
    at ../../src/mesa/main/errors.c:810
810	   if (debug == -1) {
(gdb) bt
#0  output_if_debug (prefixString=0xaac57f10 <Address 0xaac57f10 out of bounds>, 
    outputString=0xbfffd30c <Address 0xbfffd30c out of bounds>, newline=1 '\001')
    at ../../src/mesa/main/errors.c:810
#1  0xa9ff1c41 in _mesa_error (ctx=0x11007478, 
    error=<error reading variable: Cannot access memory at address 0xbfffe324>, 
    error@entry=<error reading variable: Cannot access memory at address 0xbfffe31c>, 
    fmtString=0xaac6e21b <Address 0xaac6e21b out of bounds>) at ../../src/mesa/main/errors.c:1037

0

User is offline   Hendricks266 

  • Weaponized Autism

  #4

Did you make veryclean?

Try throwing the following in a file named command.txt and launching GDB --command=command.txt.

b output_if_debug
r
bt

0

User is offline   Zagro 

#5

Aha, make veryclean did the trick (however killing BattleLord with it is a bit more difficult :) ), here is the backtrace:

Breakpoint 1, output_if_debug (prefixString=0xaac57f10 "Mesa: User error", 
    outputString=0xbfffd37c "GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)", newline=1 '\001')
    at ../../src/mesa/main/errors.c:810
810	   if (debug == -1) {
(gdb) bt
#0  output_if_debug (prefixString=0xaac57f10 "Mesa: User error", 
    outputString=0xbfffd37c "GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)", newline=1 '\001')
    at ../../src/mesa/main/errors.c:810
#1  0xa9ff1c41 in _mesa_error (ctx=0x11033760, error=1281, fmtString=0xaac6e21b "%s%dD(xoffset+width)")
    at ../../src/mesa/main/errors.c:1037
#2  0xaa06010c in error_check_subtexture_dimensions (ctx=0x11033760, 
    function=0xaac6e82c "glTexSubImage", dims=2, destImage=0x11533b78, xoffset=0, yoffset=0, zoffset=0, 
    subWidth=256, subHeight=256, subDepth=1) at ../../src/mesa/main/teximage.c:1496
#3  0xaa061784 in texsubimage_error_check (ctx=0x11033760, dimensions=2, target=3553, level=0, 
    xoffset=0, yoffset=0, zoffset=0, width=256, height=256, depth=1, format=32993, type=5121)
    at ../../src/mesa/main/teximage.c:2287
#4  0xaa063594 in texsubimage (ctx=0x11033760, dims=2, target=3553, level=0, xoffset=0, yoffset=0, 
    zoffset=0, width=256, height=256, depth=1, format=32993, type=5121, pixels=0x12021548)
    at ../../src/mesa/main/teximage.c:3156
#5  0xaa063852 in _mesa_TexSubImage2D (target=3553, level=0, xoffset=0, yoffset=0, width=256, 
    height=256, format=32993, type=5121, pixels=0x12021548) at ../../src/mesa/main/teximage.c:3219
#6  0x0818f4f0 in uploadtexture (doalloc=0, xsiz=256, ysiz=256, intexfmt=6407, texfmt=32993, 
    pic=0x12021548, tsizx=-1, tsizy=256, dameth=4) at src/polymost.c:1164
#7  0x08191fa2 in gloadtile_hi (dapic=745, dapalnum=255, facen=0, hicr=0x10c1e038, dameth=4, 
    pth=0x1152e7e0, doalloc=0, effect=0 '\000') at src/polymost.c:2016
#8  0x0818d467 in gltexcache (dapicnum=745, dapalnum=255, dameth=4) at src/polymost.c:348
#9  0x081a6b55 in polymost_precache (dapicnum=745, dapalnum=255, datype=1) at src/polymost.c:6465
#10 0x0811d320 in G_CacheMapData () at source/premap.c:517
#11 0x0812681a in postloadplayer (savegamep=1) at source/savegame.c:1761
#12 0x08125200 in sv_loadsnapshot (fil=61, spot=3, h=0xbfffe906) at source/savegame.c:1356
#13 0x08122d84 in G_LoadPlayer (spot=3) at source/savegame.c:306
#14 0x0812310c in G_LoadPlayerMaybeMulti (slot=3) at source/savegame.c:394
#15 0x080ea29a in M_DisplayMenus () at source/menus.c:1743
#16 0x080b6cca in G_PlaybackDemo () at source/demo.c:937
#17 0x0808b2d7 in app_main (argc=6, argv=0xbffff284) at source/game.c:10653
#18 0x081dda44 in main (argc=6, argv=0xbffff284) at src/sdlayer.c:262

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options