Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#612 closed defect (fixed)

Mesa: User error: GL_INVALID_OPERATION in glDeleteShader

Reported by: fabio Owned by:
Priority: Should Have Milestone: Alpha 2
Component: Core engine Keywords:
Cc: Patch:

Description

When closing the editor I always get a:

Mesa: User error: GL_INVALID_OPERATION in glDeleteShader

I compiled mesa and 0ad with debug symbols and put a break on output_if_debug. I get this backtrace:

Breakpoint 1, output_if_debug (prefixString=0x2919dcc "Mesa: User error", outputString=0xbfffcb6c "GL_INVALID_OPERATION in glDeleteShader", 
    newline=1 '\001') at main/imports.c:809
809	{
(gdb) bt
#0  output_if_debug (prefixString=0x2919dcc "Mesa: User error", outputString=0xbfffcb6c "GL_INVALID_OPERATION in glDeleteShader", 
    newline=1 '\001') at main/imports.c:809
#1  0x02759a16 in _mesa_error (ctx=0xb6fc4c78, error=1282, fmtString=0x2928cec "%s") at main/imports.c:998
#2  0x0276f4fe in _mesa_lookup_shader_err (ctx=0xb6fc4c78, name=1, caller=0x291c4b9 "glDeleteShader") at main/shaderobj.c:170
#3  0x0276e2df in delete_shader (ctx=0xb6fc4c78, shader=3221212012) at main/shaderapi.c:449
#4  0x084470d3 in Ogl_Program_dtor (p=0x8829540) at ../../../source/lib/res/graphics/ogl_shader.cpp:430
#5  0x08444582 in h_free_idx (idx=2, hd=0x8829528) at ../../../source/lib/res/h_mgr.cpp:613
#6  0x08444d6e in Shutdown () at ../../../source/lib/res/h_mgr.cpp:838
#7  0x084646f1 in ModuleShutdown (initState=0x861fe8c, shutdown=0x8444cd2 <Shutdown()>) at ../../../source/lib/module_init.cpp:71
#8  0x08444e4b in h_mgr_shutdown () at ../../../source/lib/res/h_mgr.cpp:860
#9  0x082d24c1 in Shutdown () at ../../../source/ps/GameSetup/GameSetup.cpp:681
#10 0x083b259b in AtlasMessage::fShutdown (msg=0xb6ff5d40)
    at ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:103
#11 0x083b2552 in AtlasMessage::fShutdown_wrapper (msg=0xb6ff5d40)
    at ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:87
#12 0x0839f799 in BeginAtlas (args=..., dll=...) at ../../../source/tools/atlas/GameInterface/GameLoop.cpp:211
#13 0x082d4a59 in ATLAS_Run (args=..., flags=1) at ../../../source/ps/GameSetup/Atlas.cpp:54
#14 0x082d4afb in ATLAS_RunIfOnCmdLine (args=..., force=false) at ../../../source/ps/GameSetup/Atlas.cpp:77
#15 0x081e4a29 in RunGameOrAtlas (argc=2, argv=0xbffff424) at ../../../source/main.cpp:431
#16 0x081e5107 in main (argc=2, argv=0xbffff424) at ../../../source/main.cpp:504
(gdb) c
Continuing.
Mesa: User error: GL_INVALID_OPERATION in glDeleteShader
TIMER| resource modules: 9.81219 s
TIMER TOTALS (6 clients)
-----------------------------------------------------
  xml_validation: 24.7842 Mc (3x)
  tc_linkProgram: 62.8229 Mc (7x)
  tc_compileShader: 215.246 Mc (11x)
  tc_transform: 15.5265 Mc (140x)
  tc_plain_transform: 6956.99 kc (126x)
  tc_png_decode: 7304.01 kc (2x)
-----------------------------------------------------
TIMER| shutdown misc: 552.861 us
JS engine warning: leaking GC root '' at 0xb7220110
JS engine warning: 1 GC root remains after destroying the JSRuntime at 0xb7485c48.
                   This root may point to freed memory. Objects reachable
                   through it have not been finalized.
[Thread 0xb7dd9b70 (LWP 27344) exited]
lost connection to FAM[Thread 0xa4127b70 (LWP 27347) exited]

Program exited normally.

Change History (2)

comment:1 by philip, 13 years ago

Resolution: fixed
Status: newclosed

(In [8344]) Fix #612 (passing a program object to glDeleteShader via pglDeleteObjectARB)

comment:2 by fabio, 13 years ago

Milestone: UnclassifiedOS Alpha 2
Note: See TracTickets for help on using tickets.