[Solved] Nothing displaying + access violation error

Kukanani

11-11-2009 02:32:58

Hi all,

First off let me say that MyGUI is great...if I could get it working. :)

I'm getting a black window along with an access violation in my MSVC Express debugging system while trying to run Demo_Gui_v8:

Unhandled exception at 0x32336e69 in Demo_Gui_v8.exe: 0xC0000005: Access violation reading location 0x32336e69.

This is in a MyGUI file, oddly enough. BaseManager.cpp, line 81:

mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject( OIS::OISKeyboard, true ));

Any help would be appreciated!

Thanks

my.name

11-11-2009 12:43:30

version Ogre
version MyGUI

Kukanani

13-11-2009 04:26:40

Whoops, so sorry.

Ogre 1.6 source from SVN (about 2 months old)
MyGUI 2.2.3 (about 2 weeks old)

I was trying to find the MyGUI log to post but it isn't appearing anywhere on my file system. My Ogre log has no hitches:

19:39:25: Creating resource group General
19:39:25: Creating resource group Internal
19:39:25: Creating resource group Autodetect
19:39:25: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:39:25: Registering ResourceManager for type Material
19:39:25: Registering ResourceManager for type Mesh
19:39:25: Registering ResourceManager for type Skeleton
19:39:25: MovableObjectFactory for type 'ParticleSystem' registered.
19:39:25: OverlayElementFactory for type Panel registered.
19:39:25: OverlayElementFactory for type BorderPanel registered.
19:39:25: OverlayElementFactory for type TextArea registered.
19:39:25: Registering ResourceManager for type Font
19:39:25: ArchiveFactory for archive type FileSystem registered.
19:39:25: ArchiveFactory for archive type Zip registered.
19:39:25: FreeImage version: 3.10.0
19:39:25: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:39:25: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
19:39:25: DDS codec registering
19:39:25: Registering ResourceManager for type HighLevelGpuProgram
19:39:25: Registering ResourceManager for type Compositor
19:39:25: MovableObjectFactory for type 'Entity' registered.
19:39:25: MovableObjectFactory for type 'Light' registered.
19:39:25: MovableObjectFactory for type 'BillboardSet' registered.
19:39:25: MovableObjectFactory for type 'ManualObject' registered.
19:39:25: MovableObjectFactory for type 'BillboardChain' registered.
19:39:25: MovableObjectFactory for type 'RibbonTrail' registered.
19:39:25: Loading library .\RenderSystem_GL
19:39:25: Installing plugin: GL RenderSystem
19:39:25: OpenGL Rendering Subsystem created.
19:39:26: Plugin successfully installed
19:39:26: Loading library .\RenderSystem_Direct3D9
19:39:26: Installing plugin: D3D9 RenderSystem
19:39:26: D3D9 : Direct3D9 Rendering Subsystem created.
19:39:27: D3D9: Driver Detection Starts
19:39:27: D3D9: Driver Detection Ends
19:39:28: Plugin successfully installed
19:39:28: *-*-* OGRE Initialising
19:39:28: *-*-* Version 1.6.4 (Shoggoth)
19:39:28: Creating resource group Bootstrap
19:39:28: Added resource location '../../Media/Common/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
19:39:28: Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
19:39:28: Added resource location '../../Media/MyGUI_Media' of type 'FileSystem' to resource group 'General'
19:39:28: Added resource location '../../Media/Tools/LayoutEditor' of type 'FileSystem' to resource group 'General'
19:39:28: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
19:39:28: D3D9 : RenderSystem Option: Anti aliasing = None
19:39:28: D3D9 : RenderSystem Option: Floating-point mode = Fastest
19:39:28: D3D9 : RenderSystem Option: Full Screen = Yes
19:39:28: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 9200M GS
19:39:28: D3D9 : RenderSystem Option: VSync = No
19:39:28: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
19:39:28: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
19:39:28: CPU Identifier & Features
19:39:28: -------------------------
19:39:28: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU T5800 @ 2.00GHz
19:39:28: * SSE: yes
19:39:28: * SSE2: yes
19:39:28: * SSE3: yes
19:39:28: * MMX: yes
19:39:28: * MMXEXT: yes
19:39:28: * 3DNOW: no
19:39:28: * 3DNOWEXT: no
19:39:28: * CMOV: yes
19:39:28: * TSC: yes
19:39:28: * FPU: yes
19:39:28: * PRO: yes
19:39:28: * HT: no
19:39:28: -------------------------
19:39:28: *** Starting Win32GL Subsystem ***
19:39:28: GLRenderSystem::_createRenderWindow "OGRE Render Window", 640x480 windowed miscParams: FSAA=0 colourDepth=32 displayFrequency=0 gamma=false vsync=false
19:39:28: Created Win32Window 'OGRE Render Window' : 640x480, 32bpp
19:39:28: GL_VERSION = 2.1.2
19:39:28: GL_VENDOR = NVIDIA Corporation
19:39:28: GL_RENDERER = GeForce 9200M GS/PCI/SSE2
19:39:28: GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_bindable_uniform GL_EXT_depth_bounds_test GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_timer_query GL_EXT_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_buffer_float GL_NV_conditional_render GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_gpu_program4 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GL_WIN_swap_hint WGL_EXT_swap_control
19:39:28: Supported WGL extensions: WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_ARB_pixel_format_float WGL_ARB_render_texture WGL_ATI_pixel_format_float WGL_EXT_extensions_string WGL_EXT_framebuffer_sRGB WGL_EXT_pixel_format_packed_float WGL_EXT_swap_control WGL_NV_float_buffer WGL_NV_multisample_coverage WGL_NV_render_depth_texture WGL_NV_render_texture_rectangle
19:39:28: ***************************
19:39:28: *** GL Renderer Started ***
19:39:28: ***************************
19:39:28: Registering ResourceManager for type GpuProgram
19:39:28: GLSL support detected
19:39:28: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
19:39:28: FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_L8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_A4L4 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_BYTE_LA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:28: FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT16_R depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT32_R depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: FBO PF_SHORT_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
19:39:29: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_A8 PF_A4L4 PF_BYTE_LA PF_R5G6B5 PF_B5G6R5 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB
19:39:29: RenderSystem capabilities
19:39:29: -------------------------
19:39:29: RenderSystem Name: OpenGL Rendering Subsystem
19:39:29: GPU Vendor: nvidia
19:39:29: Device Name: GeForce 9200M GS/PCI/SSE2
19:39:29: Driver Version: 2.1.2.0
19:39:29: * Fixed function pipeline: yes
19:39:29: * Hardware generation of mipmaps: yes
19:39:29: * Texture blending: yes
19:39:29: * Anisotropic texture filtering: yes
19:39:29: * Dot product texture operation: yes
19:39:29: * Cube mapping: yes
19:39:29: * Hardware stencil buffer: yes
19:39:29: - Stencil depth: 8
19:39:29: - Two sided stencil support: yes
19:39:29: - Wrap stencil values: yes
19:39:29: * Hardware vertex / index buffers: yes
19:39:29: * Vertex programs: yes
19:39:29: * Fragment programs: yes
19:39:29: * Geometry programs: yes
19:39:29: * Supported Shader Profiles: arbfp1 arbvp1 fp20 fp30 fp40 glsl gp4gp gpu_gp nvgp4 vp30 vp40
19:39:29: * Texture Compression: yes
19:39:29: - DXT: yes
19:39:29: - VTC: yes
19:39:29: * Scissor Rectangle: yes
19:39:29: * Hardware Occlusion Query: yes
19:39:29: * User clip planes: yes
19:39:29: * VET_UBYTE4 vertex element type: yes
19:39:29: * Infinite far plane projection: yes
19:39:29: * Hardware render-to-texture: yes
19:39:29: * Floating point textures: yes
19:39:29: * Non-power-of-two textures: yes
19:39:29: * Volume textures: yes
19:39:29: * Multiple Render Targets: 8
19:39:29: - With different bit depths: yes
19:39:29: * Point Sprites: yes
19:39:29: * Extended point parameters: yes
19:39:29: * Max Point Size: 63.375
19:39:29: * Vertex texture fetch: yes
19:39:29: - Max vertex textures: 32
19:39:29: - Vertex textures shared: yes
19:39:29: * Render to Vertex Buffer : yes
19:39:29: * GL 1.5 without VBO workaround: no
19:39:29: * Frame Buffer objects: yes
19:39:29: * Frame Buffer objects (ARB extension): no
19:39:29: * Frame Buffer objects (ATI extension): no
19:39:29: * PBuffer suppport: no
19:39:29: * GL 1.5 without HW-occlusion workaround: no
19:39:29: Registering ResourceManager for type Texture
19:39:29: ResourceBackgroundQueue - threading disabled
19:39:29: Particle Renderer Type 'billboard' registered
19:39:29: Parsing scripts for resource group Autodetect
19:39:29: Finished parsing scripts for resource group Autodetect
19:39:29: Parsing scripts for resource group Bootstrap
19:39:29: Parsing script OgreCore.material
19:39:29: Parsing script OgreProfiler.material
19:39:29: Parsing script Ogre.fontdef
19:39:29: Parsing script OgreDebugPanel.overlay
19:39:29: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
19:39:29: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:39:29: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:39:29: Font BlueHighwayusing texture size 512x512
19:39:29: Info: Freetype returned null for character 127 in font BlueHighway
19:39:29: Info: Freetype returned null for character 128 in font BlueHighway
19:39:29: Info: Freetype returned null for character 129 in font BlueHighway
19:39:29: Info: Freetype returned null for character 130 in font BlueHighway
19:39:29: Info: Freetype returned null for character 131 in font BlueHighway
19:39:29: Info: Freetype returned null for character 132 in font BlueHighway
19:39:29: Info: Freetype returned null for character 133 in font BlueHighway
19:39:29: Info: Freetype returned null for character 134 in font BlueHighway
19:39:29: Info: Freetype returned null for character 135 in font BlueHighway
19:39:29: Info: Freetype returned null for character 136 in font BlueHighway
19:39:29: Info: Freetype returned null for character 137 in font BlueHighway
19:39:29: Info: Freetype returned null for character 138 in font BlueHighway
19:39:29: Info: Freetype returned null for character 139 in font BlueHighway
19:39:29: Info: Freetype returned null for character 140 in font BlueHighway
19:39:29: Info: Freetype returned null for character 141 in font BlueHighway
19:39:29: Info: Freetype returned null for character 142 in font BlueHighway
19:39:29: Info: Freetype returned null for character 143 in font BlueHighway
19:39:29: Info: Freetype returned null for character 144 in font BlueHighway
19:39:29: Info: Freetype returned null for character 145 in font BlueHighway
19:39:29: Info: Freetype returned null for character 146 in font BlueHighway
19:39:29: Info: Freetype returned null for character 147 in font BlueHighway
19:39:29: Info: Freetype returned null for character 148 in font BlueHighway
19:39:29: Info: Freetype returned null for character 149 in font BlueHighway
19:39:29: Info: Freetype returned null for character 150 in font BlueHighway
19:39:29: Info: Freetype returned null for character 151 in font BlueHighway
19:39:29: Info: Freetype returned null for character 152 in font BlueHighway
19:39:29: Info: Freetype returned null for character 153 in font BlueHighway
19:39:29: Info: Freetype returned null for character 154 in font BlueHighway
19:39:29: Info: Freetype returned null for character 155 in font BlueHighway
19:39:29: Info: Freetype returned null for character 156 in font BlueHighway
19:39:29: Info: Freetype returned null for character 157 in font BlueHighway
19:39:29: Info: Freetype returned null for character 158 in font BlueHighway
19:39:29: Info: Freetype returned null for character 159 in font BlueHighway
19:39:29: Info: Freetype returned null for character 160 in font BlueHighway
19:39:29: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
19:39:29: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
19:39:29: Parsing script OgreLoadingPanel.overlay
19:39:29: Finished parsing scripts for resource group Bootstrap
19:39:29: Parsing scripts for resource group General
19:39:29: Finished parsing scripts for resource group General
19:39:29: Parsing scripts for resource group Internal
19:39:29: Finished parsing scripts for resource group Internal
19:39:29: *** Initializing OIS ***

my.name

13-11-2009 12:42:01

MyGUI.log and show code

Kukanani

13-11-2009 21:28:00

Please, I already said these.


...while trying to run Demo_Gui_v8...



...I was trying to find the MyGUI log to post but it isn't appearing anywhere on my file system...


So where can I find MyGUI.log? It's not showing up, even after a Vista file search.

my.name

14-11-2009 01:35:39

How other demos behave?

Kukanani

14-11-2009 02:37:13

I also tried Demo_Colour_v8 and Demo_Font_v8. Both give the exact same results.

my.name

14-11-2009 17:28:16

There can be different versions OIS

Kukanani

15-11-2009 00:07:03

I downloaded the latest version of OIS and built it myself about a week ago. Should I use an older version?

Kukanani

15-11-2009 00:33:26

Ah, you were right. I downloaded the latest version of OIS because I built my own DLL and LIB files, but I forgot to replace the include files I was referencing in the MSVC project with the new ones.

So it was an OIS version mismatch. Working now

Thanks so much!

my.name

15-11-2009 04:09:16

=)

mrmclovin

28-11-2009 20:43:08

I have same problem:
My access violation is at:
mInputManager = OIS::InputManager::createInputSystem(pl); // Common/OIS/InputManager.cpp

Downloaded latset mygui SVN and build latest OIS, copied all include files and replaced .lib

The OIS works perfecly in my application. The error occurr in the layout editor...

mrmclovin

28-11-2009 20:47:01

Okey, it works now... changed from ois.lib to ois_d.lib in linker-input in debug configuration for layout editor