:display:gsg:glgsg(error): glGraphicsStateGuardian_src.cxx : invalid enumerant

Bug #1401338 reported by DevPlayer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Expired
Undecided
Unassigned

Bug Description

Panda3d 1.9.0 devel, compiled against Python 3.4.2 on Windows XP SP3 32bit
Simply instantating ShowBase subclass causes error to be printed to stderr
however the window still works fine.

This is printed to console:
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
:display:gsg:glgsg(error): at 1931 of d:\panda3d\git\v190\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : in
valid enumerant

The previous line is in the debug

mypanda_test.py
# py -3
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
    def __init__(self):
        ShowBase.__init__(self)
app = MyApp() # this line generates error
# app.run()

"""
:express(debug): mount / under /
:interrogatedb(debug): Creating interrogate database
:interrogatedb(debug): Got interrogate data for module libp3downloader
:interrogatedb(debug): Got interrogate data for module libp3express
:interrogatedb(debug): Got interrogate data for module libp3recorder
:interrogatedb(debug): Got interrogate data for module libp3pgraphnodes
:interrogatedb(debug): Got interrogate data for module libp3pgraph
:movies(debug): Registered audio type with extension wav
:movies(debug): Registered audio type with extension wave
:movies(debug): Registered audio type with extension ogg
:movies(debug): Registered audio type with extension oga
:interrogatedb(debug): Got interrogate data for module libp3movies
:interrogatedb(debug): Got interrogate data for module libp3grutil
:interrogatedb(debug): Got interrogate data for module libp3chan
:interrogatedb(debug): Got interrogate data for module libp3pstatclient
:interrogatedb(debug): Got interrogate data for module libp3char
:interrogatedb(debug): Got interrogate data for module libp3collide
:interrogatedb(debug): Got interrogate data for module libp3device
:interrogatedb(debug): Got interrogate data for module libp3dgraph
:interrogatedb(debug): Got interrogate data for module libp3display
:interrogatedb(debug): Got interrogate data for module libp3pipeline
:interrogatedb(debug): Got interrogate data for module libp3event
:interrogatedb(debug): Got interrogate data for module libp3gobj
:interrogatedb(debug): Got interrogate data for module libp3gsgbase
:interrogatedb(debug): Got interrogate data for module libp3linmath
:interrogatedb(debug): Got interrogate data for module libp3mathutil
:interrogatedb(debug): Got interrogate data for module libp3parametrics
:pnmimage(debug): Registering image type SGI RGB
:pnmimage(debug): Registering image type Targa
:pnmimage(debug): Registering image type Raw binary RGB
:pnmimage(debug): Registering image type SoftImage
:pnmimage(debug): Registering image type Windows BMP
:pnmimage(debug): Registering image type NetPBM-style PBM/PGM/PPM/PNM
:pnmimage(debug): Registering image type Portable Float Map
:pnmimage(debug): Registering image type JPEG
:pnmimage:png(debug): PNG version 10603
:pnmimage(debug): Registering image type PNG
:pnmimage:tiff(debug): LIBTIFF, Version 4.0.3
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.
:pnmimage(debug): Registering image type TIFF
:interrogatedb(debug): Got interrogate data for module libp3pnmimage
:interrogatedb(debug): Got interrogate data for module libp3text
:interrogatedb(debug): Got interrogate data for module libp3tform
:interrogatedb(debug): Got interrogate data for module libp3putil
:interrogatedb(debug): Got interrogate data for module libp3audio
:interrogatedb(debug): Got interrogate data for module libp3pgui
:interrogatedb(debug): Got interrogate data for module libp3net
:interrogatedb(debug): Got interrogate data for module libp3nativenet
:interrogatedb(debug): Got interrogate data for module libp3dxml
:interrogatedb(debug): Got interrogate data for module libp3pnmtext
:interrogatedb(debug): Got interrogate data for module libp3dcparser
:interrogatedb(debug): Got interrogate data for module libp3showbase
:interrogatedb(debug): Got interrogate data for module libp3deadrec
:interrogatedb(debug): Got interrogate data for module libp3interval
:interrogatedb(debug): Got interrogate data for module libp3distributed
:interrogatedb(debug): Got interrogate data for module libp3physics
:interrogatedb(debug): Got interrogate data for module libp3particlesystem
:interrogatedb(debug): Got interrogate data for module libp3distort
:interrogatedb(debug): Got interrogate data for module libp3vision
:interrogatedb(debug): Got interrogate data for module libp3skel
:interrogatedb(debug): Got interrogate data for module libp3egg
:interrogatedb(debug): Got interrogate data for module libp3egg2pg
:interrogatedb(debug): Got interrogate data for module libpandaode
:interrogatedb(debug): Got interrogate data for module libp3vrpn
:pgraph(debug): Constructing 0324AAB4, hidden
:pgraph(debug): Constructing 0324AA04, render
:pgraph(debug): Constructing 00B268F4, render2d
:pgraph(debug): Constructing 0330EBF4, aspect2d
:pgraph(debug): Constructing 03315584, a2dBackground
:pgraph(debug): Constructing 03315634, a2dTopCenter
:pgraph(debug): Constructing 03315704, a2dTopCenterNS
:pgraph(debug): Constructing 033157DC, a2dBottomCenter
:pgraph(debug): Constructing 033158A4, a2dBottomCenterNS
:pgraph(debug): Constructing 033159B4, a2dLeftCenter
:pgraph(debug): Constructing 03315AC4, a2dLeftCenterNS
:pgraph(debug): Constructing 03315BD4, a2dRightCenter
:pgraph(debug): Constructing 03315CE4, a2dRightCenterNS
:pgraph(debug): Constructing 03315E1C, a2dTopLeft
:pgraph(debug): Constructing 03315F2C, a2dTopLeftNS
:pgraph(debug): Constructing 0331603C, a2dTopRight
:pgraph(debug): Constructing 0331614C, a2dTopRightNS
:pgraph(debug): Constructing 0331625C, a2dBottomLeft
:pgraph(debug): Constructing 0331636C, a2dBottomLeftNS
:pgraph(debug): Constructing 03A433F4, a2dBottomRight
:pgraph(debug): Constructing 03A43504, a2dBottomRightNS
:pgraph(debug): Constructing 00A92114, pixel2d
:pgraph(debug): Constructing 00AE92E4, dataRoot
:pgraph(debug): Constructing 03A42BD4, trackball
:pgraph(debug): Constructing 00AA302C, drive
:pgraph(debug): Constructing 0331DFF4, mouse2cam
:pgraph(debug): Constructing 03A31FDC, render2dp
:pgraph(debug): Constructing 00A65F4C, aspect2dp
:pgraph(debug): Constructing 03A320A4, a2dpTopCenter
:pgraph(debug): Constructing 03A321CC, a2dpBottomCenter
:pgraph(debug): Constructing 03A322EC, a2dpLeftCenter
:pgraph(debug): Constructing 03A32424, a2dpRightCenter
:pgraph(debug): Constructing 03A32534, a2dpTopLeft
:pgraph(debug): Constructing 03A32644, a2dpTopRight
:pgraph(debug): Constructing 03A32754, a2dpBottomLeft
:pgraph(debug): Constructing 03A32864, a2dpBottomRight
:pgraph(debug): Constructing 00A5D3EC, pixel2dp
:display: loading display module: libpandagl.dll
:display(debug): Registering wglGraphicsPipe as a GraphicsPipe type.
:display(debug): symbol of get_pipe_type_pandagl = 05371110
:display(debug): pipe_type_index = 678
:display(debug): pipe_type = wglGraphicsPipe
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
:display:windisplay: OS version: 5.1.2.2600
:display:windisplay: Service Pack 3
:display:windisplay: max Mhz 2992000000, current Mhz 2992000000
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): Creating new window window1
:display(debug): Created wglGraphicsWindow 03A3BD54
:display(debug): Windows resorted: window1(0)
 window1(0)
:display:windisplay(debug): ClearToBlack(00360486, origin=(240, 212) size=(800, 600) title="Panda" !undecorated !fixed_size !fullscreen !minimized open !cursor_hidden absolute )
:display:windisplay(debug): WM_SIZE: 00360486, 0
:display:windisplay(debug): GetClientRect() failed in handle_reshape. Ignoring.
:display:windisplay(debug): WM_ACTIVATE: 00360486, 1, 0
:display(debug): system_changed_properties(foreground !minimized )
:event(debug): Throwing event window-event(wglGraphicsWindow)
:display:windisplay(debug): setfocus
:display(debug): system_changed_properties(foreground )
:task(debug): AsyncTaskManager TaskManager task chain loader; 0 tasks: set_num_threads(1)
:display:wgldisplay(debug): Preliminary pixfmt #4 = depth_bits=16 color_bits=24 red_bits=8 green_bits=8 blue_bits=8 alpha_bits=8 back_buffers=1 force_hardware
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pixel_format 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_multisample 0
:display:wgldisplay(debug): Found 30 advanced formats: [ 1 3 5 2 4 6 40 39 38 37 34 33 32 31 28 27 26 25 22 21 20 19 14 13 12 11 10 9 8 7 ]
:display:wgldisplay(debug): Selected advanced pixfmt #4 = depth_bits=16 color_bits=24 red_bits=8 green_bits=8 blue_bits=8 alpha_bits=8 back_buffers=1 force_hardware
:display:wgldisplay(debug): ================================
:display:wgldisplay(debug): Selected GL PixelFormat is #4, ICD driver
PFD flags: 0x00000025 ( PFD_DOUBLEBUFFER| PFD_SUPPORT_OPENGL| PFD_DRAW_TO_WINDOW|)
PFD iPixelType: PFD_TYPE_RGBA
PFD cColorBits: 32 R: 8 G: 8 B: 8
PFD cAlphaBits: 8 DepthBits: 16 StencilBits: 0 AccumBits: 64
:display:gsg:glgsg(debug): GL_VENDOR = Intel
:display:gsg:glgsg(debug): GL_RENDERER = Intel 865G
:display:gsg:glgsg(debug): GL_VERSION = 1.3.0 - Build 4.14.10.4363, decoded to 1.3
:display:gsg:glgsg(debug): GL Extensions:
:display:gsg:glgsg(debug): GL_3DFX_texture_compression_FXT1
:display:gsg:glgsg(debug): GL_ARB_multitexture
:display:gsg:glgsg(debug): GL_ARB_point_parameters
:display:gsg:glgsg(debug): GL_ARB_texture_border_clamp
:display:gsg:glgsg(debug): GL_ARB_texture_compression
:display:gsg:glgsg(debug): GL_ARB_texture_cube_map
:display:gsg:glgsg(debug): GL_ARB_texture_env_add
:display:gsg:glgsg(debug): GL_ARB_texture_env_combine
:display:gsg:glgsg(debug): GL_ARB_texture_env_crossbar
:display:gsg:glgsg(debug): GL_ARB_texture_env_dot3
:display:gsg:glgsg(debug): GL_ARB_transpose_matrix
:display:gsg:glgsg(debug): GL_ARB_vertex_buffer_object
:display:gsg:glgsg(debug): GL_ARB_vertex_program
:display:gsg:glgsg(debug): GL_ARB_window_pos
:display:gsg:glgsg(debug): GL_EXT_abgr
:display:gsg:glgsg(debug): GL_EXT_bgra
:display:gsg:glgsg(debug): GL_EXT_blend_color
:display:gsg:glgsg(debug): GL_EXT_blend_func_separate
:display:gsg:glgsg(debug): GL_EXT_blend_minmax
:display:gsg:glgsg(debug): GL_EXT_blend_subtract
:display:gsg:glgsg(debug): GL_EXT_clip_volume_hint
:display:gsg:glgsg(debug): GL_EXT_compiled_vertex_array
:display:gsg:glgsg(debug): GL_EXT_cull_vertex
:display:gsg:glgsg(debug): GL_EXT_draw_range_elements
:display:gsg:glgsg(debug): GL_EXT_fog_coord
:display:gsg:glgsg(debug): GL_EXT_multi_draw_arrays
:display:gsg:glgsg(debug): GL_EXT_packed_pixels
:display:gsg:glgsg(debug): GL_EXT_rescale_normal
:display:gsg:glgsg(debug): GL_EXT_secondary_color
:display:gsg:glgsg(debug): GL_EXT_separate_specular_color
:display:gsg:glgsg(debug): GL_EXT_stencil_wrap
:display:gsg:glgsg(debug): GL_EXT_texture_compression_s3tc
:display:gsg:glgsg(debug): GL_EXT_texture_env_add
:display:gsg:glgsg(debug): GL_EXT_texture_env_combine
:display:gsg:glgsg(debug): GL_EXT_texture_filter_anisotropic
:display:gsg:glgsg(debug): GL_IBM_texture_mirrored_repeat
:display:gsg:glgsg(debug): GL_NV_blend_square
:display:gsg:glgsg(debug): GL_NV_texgen_reflection
:display:gsg:glgsg(debug): GL_SGIS_generate_mipmap
:display:gsg:glgsg(debug): GL_WIN_swap_hint
:display:gsg:glgsg(debug): WGL_ARB_buffer_region
:display:gsg:glgsg(debug): WGL_ARB_extensions_string
:display:gsg:glgsg(debug): WGL_ARB_make_current_read
:display:gsg:glgsg(debug): WGL_ARB_pbuffer
:display:gsg:glgsg(debug): WGL_ARB_pixel_format
:display:gsg:glgsg(debug): WGL_EXT_swap_control
:display:gsg:glgsg(debug): HAS EXT GL_KHR_debug 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_debug_output 0
:display:gsg:glgsg(debug): gl-debug enabled, but NOT supported.
:display:gsg:glgsg(debug): HAS EXT GL_ARB_point_parameters 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_point_sprite 0
:display:gsg:glgsg(debug): HAS EXT GL_OES_point_sprite 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_ES3_compatibility 0
:display:gsg:glgsg(debug): HAS EXT GL_NV_primitive_restart 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_vertex_blend 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_matrix_palette 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_depth_texture 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_storage 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_storage 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_array 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_cube_map 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_seamless_cube_map 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_sRGB 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_sRGB 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_bgra 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_rescale_normal 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_vertex_array_bgra 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_vertex_array_bgra 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_multisample 0
:display:gsg:glgsg(debug): HAS EXT GL_SGIS_generate_mipmap 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_non_power_of_two 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_depth_texture 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_env_combine 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_env_crossbar 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_env_dot3 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_vertex_buffer_object 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_shading_language_100 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_geometry_shader4 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_tessellation_shader 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_compute_shader 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_framebuffer_object 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_framebuffer_multisample 0
:display:gsg:glgsg(debug): HAS EXT GL_NV_framebuffer_multisample_coverage 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_framebuffer_blit 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_draw_buffers 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_viewport_array 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_occlusion_query 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_timer_query 0
:display:gsg:glgsg(debug): HAS EXT GL_SGIS_texture_edge_clamp 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_border_clamp 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_mirrored_repeat 0
:display:gsg:glgsg(debug): HAS EXT GL_OES_texture_mirrored_repeat 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_mirror_clamp 0
:display:gsg:glgsg(debug): max texture dimension = 2048, max 3d texture = 128, max 2d texture array = 0, max cube map = 1024
:display:gsg:glgsg(debug): max_elements_vertices = 1024, max_elements_indices = 1024
:display:gsg:glgsg(debug): vertex buffer objects are supported.
:display:gsg:glgsg(debug): Supported compressed texture formats:
  GL_COMPRESSED_RGB_S3TC_DXT1_EXT
  GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
  GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
  GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
  GL_COMPRESSED_RGB_FXT1_3DFX
  GL_COMPRESSED_RGBA_FXT1_3DFX
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_filter_anisotropic 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_shader_image_load_store 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_shader_image_load_store 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_multi_bind 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_internalformat_query2 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_bindless_texture 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_get_program_binary 0
:display:gsg:glgsg(error): at 1931 of d:\panda3d\git\v190\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : invalid enumerant
:display:gsg:glgsg(debug): HAS EXT GL_EXT_stencil_wrap 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_stencil_two_side 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_draw_instanced 0
:display:gsg:glgsg(debug): HAS EXT GL_EXT_draw_instanced 0
:display:gsg:glgsg(debug): max lights = 16
:display:gsg:glgsg(debug): max clip planes = 6
:display:gsg:glgsg(debug): max texture stages = 4
:display:gsg:glgsg(debug): Supported Cg profiles:
:display:gsg:glgsg(debug): arbvp1
:display:gsg:glgsg(debug):
Cg vertex profile = arbvp1 id = 6150
Cg pixel profile = unknown id = 6145
shader model = 0
:display:gsg:glgsg(debug): HAS EXT WGL_EXT_swap_control 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pbuffer 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pixel_format 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_multisample 0
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_render_texture 0
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display: Created output of type wglGraphicsWindow
:pgraph(debug): Constructing 03A1EF94, camera
:pgraph(debug): Constructing 03A1F15C, cam
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display:windisplay(debug): Got reshape request (-2, -2, 1, 800, 600)
:display(debug): system_changed_properties(origin=(240, 212) size=(800, 600) )
:display(debug): system_changed_size(800, 600)
:display: Unable to set window properties: !undecorated !fixed_size
:pgraph(debug): Constructing 03A1F7C4, keyboard_mouse
:pgraph(debug): Constructing 03A1F954, watcher0
:pgraph(debug): Constructing 03A09114, buttons0
:pgraph(debug): Constructing 03A3E00C, HID_Vid_413c_Pid_3010.6_319508e7_0_0000
:pgraph(debug): Constructing 03A3E174, watcher1
:pgraph(debug): Constructing 03A3E664, buttons1
:pgraph(debug): Constructing 03A3E984, timeButtons
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:pgraph(debug): Constructing 03A3F0F4, cam2d
:gobj(debug): Lens.do_resequence_fov_triad(): film_size fov focal_length
:pgraph(debug): Constructing 03A3F324, camera2d
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:pgraph(debug): Constructing 03A3F74C, cam2dp
:gobj(debug): Lens.do_resequence_fov_triad(): film_size fov focal_length
:pgraph(debug): Constructing 03A3F954, camera2dp
:audio(debug): create_AudioManager()
  audio_library_name="p3openal_audio"
:audio(debug): dl_name="libp3openal_audio.so"
:audio(debug): symbol of get_audio_manager_func_openal_audio = 0D931D20
:audio(debug): Create_OpenALAudioManager()
:audio(debug): ALC_DEVICE_SPECIFIER:OpenAL Soft
:audio(debug): AL_RENDERER:OpenAL Soft
:audio(debug): AL_VENDOR:OpenAL Community
:audio(debug): AL_VERSION:1.1 ALSOFT 1.15.1
:audio(debug): create_AudioManager()
  audio_library_name="p3openal_audio"
:audio(debug): Create_OpenALAudioManager()
:audio(debug): ALC_DEVICE_SPECIFIER:OpenAL Soft
:audio(debug): AL_RENDERER:OpenAL Soft
:audio(debug): AL_VENDOR:OpenAL Community
:audio(debug): AL_VERSION:1.1 ALSOFT 1.15.1
:util(debug): Adjusting global clock's real time by -1.25714e-005 seconds.
:task(debug): Adding PythonTask resetPrevTransform
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask dataLoop
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask ivalLoop
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask collisionLoop
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask garbageCollectStates
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask igLoop
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask audioLoop
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): Adding PythonTask eventManager
:event(debug): Throwing event TaskManager-addTask(PythonTask)
:task(debug): AsyncTaskManager TaskManager; 8 tasks: cleanup()
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:event(debug): Throwing event TaskManager-removeTask(PythonTask)
:audio(debug): Going to try to close openAL
:audio(debug): openAL Closed
:display(debug): _pending_close.size() = 1
:display:windisplay(debug): WM_ACTIVATE: 00360486, 0, 0
:display(debug): system_changed_properties(!foreground !minimized )
:event(debug): Throwing event window-event(wglGraphicsWindow)
:display:windisplay(debug): killfocus
:display(debug): system_changed_properties(!foreground )
:display: Closing wglGraphicsWindow
:display(debug): Removed wglGraphicsWindow 03A3BD54
:display(debug): 03A3CE84 close_gsg wglGraphicsStateGuardian
:display:gsg:glgsg(debug): GLGraphicsStateGuardian 03A3CE84 destructing
:util(debug): make_instance(BamCacheIndex, params) returns 03A64684, of type BamCacheIndex
:util(debug): make_instance(BamCacheRecord, params) returns 00AC0234, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA3494, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA35A4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA36B4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA37C4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA3944, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA3AC4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA3C44, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA3DDC, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA3F74, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA410C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA42A4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA443C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA45D4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA476C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA4904, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA4A64, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA4BFC, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA4D94, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA4F2C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA50C4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 00AA525C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8D894, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8DA4C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8DBAC, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8DD0C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8DEC4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E06C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E204, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E364, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E4C4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E624, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E7DC, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8E984, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8EB2C, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8ECD4, of type BamCacheRecord
:util(debug): make_instance(BamCacheRecord, params) returns 03B8EE7C, of type BamCacheRecord
:util:bam(debug): Finalizing bam source
:express(debug): unmount / from

"""

Revision history for this message
DevPlayer (devplayer) wrote :

My video card has no Pixel Shaders support and is an Intel onboard chip of a Dell Dimension 3000. The video card driver is old but is the latest driver I've been able to find.

Revision history for this message
DevPlayer (devplayer) wrote :

Compiled with VC2010 Win7.1 SDK with patch
makepanda --everything --installer --no-eigen
Python 3.4.2 copied into thirdparty/win-python

Revision history for this message
rdb (rdb) wrote :

I remember fixing an error like this in the past. Please let me know if this is still an issue with recent dev builds.
https://www.panda3d.org/download.php?platform=windows&version=devel&sdk

Changed in panda3d:
status: New → Incomplete
Revision history for this message
DevPlayer (devplayer) wrote :

I will retry with that source code. I still develop with same hardware, OS and Python version 3.4.2.

With Windows XP I believe I'm not able to compile against Python 3.5 as I think that uses a Microsoft VS version that does not support Windows XP OS.

Revision history for this message
rdb (rdb) wrote :

Note that there are Python 3.4 builds of Panda available on the linked download page, that should (in theory) still support Windows XP. I just instructed the buildbot to make a more up-to-date build, which should become available soon.

If you do get the same error again, I would ask you to put "gl-check-errors true" in Config.prc to get a more precise estimation of the line number where the error occurs.

Revision history for this message
rdb (rdb) wrote : Re: [Bug 1401338] Re: :display:gsg:glgsg(error): glGraphicsStateGuardian_src.cxx : invalid enumerant
Download full text (26.6 KiB)

Ah, actually, I just think I found the *real* cause of the issue. I
noticed a case where a value was queried without checking for pre-2.0
versions of OpenGL. There's a new Python 3.4 build available on the devel
buildbot page.

On 9 December 2015 at 23:12, rdb <email address hidden> wrote:

> Note that there are Python 3.4 builds of Panda available on the linked
> download page, that should (in theory) still support Windows XP. I just
> instructed the buildbot to make a more up-to-date build, which should
> become available soon.
>
> If you do get the same error again, I would ask you to put "gl-check-
> errors true" in Config.prc to get a more precise estimation of the line
> number where the error occurs.
>
> --
> You received this bug notification because you are subscribed to
> Panda3D.
> https://bugs.launchpad.net/bugs/1401338
>
> Title:
> :display:gsg:glgsg(error): glGraphicsStateGuardian_src.cxx : invalid
> enumerant
>
> Status in Panda3D:
> Incomplete
>
> Bug description:
> Panda3d 1.9.0 devel, compiled against Python 3.4.2 on Windows XP SP3
> 32bit
> Simply instantating ShowBase subclass causes error to be printed to
> stderr
> however the window still works fine.
>
> This is printed to console:
> Known pipe types:
> wglGraphicsPipe
> (all display modules loaded.)
> :display:gsg:glgsg(error): at 1931 of
> d:\panda3d\git\v190\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
> : in
> valid enumerant
>
> The previous line is in the debug
>
> mypanda_test.py
> # py -3
> from direct.showbase.ShowBase import ShowBase
> class MyApp(ShowBase):
> def __init__(self):
> ShowBase.__init__(self)
> app = MyApp() # this line generates error
> # app.run()
>
>
> """
> :express(debug): mount / under /
> :interrogatedb(debug): Creating interrogate database
> :interrogatedb(debug): Got interrogate data for module libp3downloader
> :interrogatedb(debug): Got interrogate data for module libp3express
> :interrogatedb(debug): Got interrogate data for module libp3recorder
> :interrogatedb(debug): Got interrogate data for module libp3pgraphnodes
> :interrogatedb(debug): Got interrogate data for module libp3pgraph
> :movies(debug): Registered audio type with extension wav
> :movies(debug): Registered audio type with extension wave
> :movies(debug): Registered audio type with extension ogg
> :movies(debug): Registered audio type with extension oga
> :interrogatedb(debug): Got interrogate data for module libp3movies
> :interrogatedb(debug): Got interrogate data for module libp3grutil
> :interrogatedb(debug): Got interrogate data for module libp3chan
> :interrogatedb(debug): Got interrogate data for module libp3pstatclient
> :interrogatedb(debug): Got interrogate data for module libp3char
> :interrogatedb(debug): Got interrogate data for module libp3collide
> :interrogatedb(debug): Got interrogate data for module libp3device
> :interrogatedb(debug): Got interrogate data for module libp3dgraph
> :interrogatedb(debug): Got interrogate data for module libp3display
> :interrogatedb(debug): Got interrogate data for module libp3pipeline
> :interrogate...

Revision history for this message
DevPlayer (devplayer) wrote :

Ah ok. I just finished running tests with previous distribution without success. just minutes ago. I'll get new distro, remove old and retry again.

Here is the mypanda3d_test.py I ran before the latest distro (two hours ago).

"""
 Microsoft Windows XP [Version 5.1.2600]

 Python executable:
  D:\Panda3D-1.10.0\python\python.exe

 Python version:
  3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)]

 OS PATH=
  C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\Wbem

 sys.path:
  D:\Projects\panda3d\hello
  D:\Panda3D-1.10.0\python\python34.zip
  D:\Panda3D-1.10.0\python\DLLs
  D:\Panda3D-1.10.0\python\lib
  D:\Panda3D-1.10.0\python
  D:\Panda3D-1.10.0
  D:\Panda3D-1.10.0\bin
  D:\Panda3D-1.10.0\python\lib\site-packages

 Panda version: 1.10.0
 """
"""
    A. I removed all references I could find which gave me access to any Python.
 B. Tested by trying to run py.exe and python.exe. I got command-not-found-like errors.
    .py file extensions are associated with C:\WINDOWS\py.exe
    C:\WINDOWS\py.exe uses the registry to find python.exe.
    C. I ran and installed Panda3D-sdk-1.10.0pre-0ec8f1d-py3.4.exe to drive D: default directory.
    D. I ran this file several times.
 """

# File config.prc contents.
# Having this file in same directory
# didnt' seem to change the outcome at all.
"""
gl-check-errors true
"""

# depreciated
#import direct.directbase.DirectStart

# Ran many times to get error occassionally
from direct.showbase.ShowBase import ShowBase
base = ShowBase() # window always comes up
#base.run() # keeps window up.

# On the Console screen I get either:
"""
D:\Projects\panda3d\v110pre>mypanda_test
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
"""

# or occationally I get:
"""
D:\Projects\panda3d\v110pre>mypanda_test
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
:display:gsg:glgsg(error): at 3387 of c:\buildslave\sdk-windows-i386\build\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : invalid enumerant
:display:gsg:glgsg(error): An OpenGL error (invalid enumerant) has occurred. Set gl-check-errors #t in your PRC file to display more information.
"""

# Again that is with either a config.prc containing "gl-check-errors true" unquoted or without.

Revision history for this message
DevPlayer (devplayer) wrote :

With Panda3D-SDK-1.10.0pre-735bdaf-py3.4.exe I did not get the display/invalid enumerant errors. But the panda tutorial code that shows the walking panda made the panda model a walking rainbow panda. Also the rainbow textures seem to hide behind other textures of the terrain.

Revision history for this message
rdb (rdb) wrote :

Hmm, okay. There may be another issue going on as well then.

To isolate the cause of the issue, it might be good to turn off as many OpenGL features as possible, and see if that seems to resolve the issue. Add this to Config.prc:

gl-support-clamp-to-border false
gl-ignore-filters true
gl-ignore-mipmaps true
gl-support-rescale-normal false
gl-color-mask false
gl-separate-specular-color false
gl-support-primitive-restart-index false
vertex-buffers false
gl-vertex-array-objects false
driver-generate-mipmaps false

If that doesn't exhibit the same issue, take out the variables one by one, and see which which exact setting causes the issue to reappear.

Revision history for this message
DevPlayer (devplayer) wrote :

The issue remained with those settins in the config.prc. No new console messages. By the way does case in the Config.prc file name matter? I am using Windows XP. There's a reason I ask.

I figured maybe some textures where corrupt on my harddrive. So I tried each sample in the samples folder. Of course the CG samples did not run, not supported, nor is the shader sample. One sample "render-to-texture" just crashes. I saw most samples with weird textures. Those samples "worked" functionally and the models themselves looked fine, just not some textures. The sky textures were always fine. I have not see the "invalid enumerate" message since using the Panda3D-SDK-1.10.0pre-735bdaf-py3.4.exe build.

Anyway, when I ran through all the samples, the ones that worked had that the weird texture stuff going on (boxing-robots looked fine). So I was going to copy your recommended Config.prc from my walking-panda project (which still has rainbow panda texture with the above Config.prc adds) over to each panda3d sample and retry the samples with the Config.prc in each sample folder.

However before coping it over I reran the ball-in-maze sample and without coping the Config.prc file into that folder, the sample's textures looked -mostly- fine. Perhaps running render-to-texture or one of the samples set something in the video card... so miffing.

Anyway I still haven't done the local compiling thing just yet. I am just working off that distro you recommeded. My PC for this bug, at the moment is setup only with the panda3d distro. No other packages are yet re-installed. Also, I play many games, FPS, strategy, etc.. No issues with the games graphics.

With the walking panda tutorial I run from the console with a very clean OS environment variable setup and keep a close eye on the windows registry python paths.

Sooo...... I don't know.

Revision history for this message
DevPlayer (devplayer) wrote :

Just another note. I don't do
python.exe walking_panda.py
nor ppython.exe walking_panda.py
nor py.exe walking_panda.py

I just do:
walking_panda.py
which should run the C:\WINDOWS\py.exe which checks the registry and finds D:\Panda3D-1.10.0\p*.exe
So it probably doesn't run D:\Panda3d-1.10.0\py.exe
nor unlikely runs D:\Panda3d-1.10.0\ppython.exe

I'll post the code I am using to help with tracking down the issue - if you like -. It's just a few lines for the core Panda stuff and a bunch of version/path metainfo printed to console based on flags of sys.argv flag.

Revision history for this message
DevPlayer (devplayer) wrote :

addmendment misspelled folder where python exe's are. I should have typed: D:\Panda3D-1.10.0\python\ppython.exe

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Panda3D because there has been no activity for 60 days.]

Changed in panda3d:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.