Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.NullReferenceException: OpenRA.Graphics.Renderer #4194

Closed
Vassonx opened this issue Dec 1, 2013 · 11 comments
Closed

System.NullReferenceException: OpenRA.Graphics.Renderer #4194

Vassonx opened this issue Dec 1, 2013 · 11 comments
Labels

Comments

@Vassonx
Copy link

Vassonx commented Dec 1, 2013

So I just recently installed OpenRA playtest- 20131112.

I just click on the icon to start the thing up and after a little while, expecting OpenRA to start up but all I get is crashing and Windows asking me to send an Error Report.
I use Windows XP SP3.

This is the entire contents of the exception.log (There wasn't anything else):

Operating System: Windows (Microsoft Windows NT 5.1.2600 Service Pack 3)
Runtime Version: .NET CLR 2.0.50727.3649
Exception of type System.NullReferenceException: Object reference not set to an instance of an object.
at OpenRA.Graphics.Renderer..ctor()
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
Operating System: Windows (Microsoft Windows NT 5.1.2600 Service Pack 3)
Runtime Version: .NET CLR 2.0.50727.3649
Exception of type System.NullReferenceException: Object reference not set to an instance of an object.
at OpenRA.Program.FatalError(Exception e)
at OpenRA.Program.Main(String[] args)

Hope you can fix. Good luck :)))

@Mailaender
Copy link
Member

Can you try http://open-ra.org/news/playtest-20131130?

@Vassonx
Copy link
Author

Vassonx commented Dec 1, 2013

huh? I can't seem to find a link to download the 20131130.

@Mailaender
Copy link
Member

http://openra.res0l.net/download/ My Chromium always needs me to hammer F5.

@Vassonx
Copy link
Author

Vassonx commented Dec 4, 2013

Still crashing.

Operating System: Windows (Microsoft Windows NT 5.1.2600 Service Pack 3)
Runtime Version: .NET CLR 2.0.50727.3649
Exception of type System.NullReferenceException: Object reference not set to an instance of an object.
at OpenRA.Graphics.Renderer..ctor()
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
Operating System: Windows (Microsoft Windows NT 5.1.2600 Service Pack 3)
Runtime Version: .NET CLR 2.0.50727.3649
Exception of type System.NullReferenceException: Object reference not set to an instance of an object.
at OpenRA.Program.FatalError(Exception e)
at OpenRA.Program.Main(String[] args)

@pchote
Copy link
Member

pchote commented Dec 4, 2013

Have you installed the manufacturer-provided drivers for your graphics card? (this is mentioned on the download page).

@Mailaender
Copy link
Member

I wonder why we get an NRE here. It is pretty much impossible to break the renderer since #4038 even when I explicitly set Graphics.Renderer: to an empty string. Is the graphics.log really empty?

@Vassonx
Copy link
Author

Vassonx commented Dec 6, 2013

Here is the Graphics.log

Unsupported GPU: Missing extensions: GL_ARB_vertex_shader,GL_ARB_fragment_shader,GL_EXT_framebuffer_object

OpenGL Information:
Vendor: Intel
Renderer: Intel 915G
GL Version: 1.4.0 - Build 7.14.10.4764
Shader Version:
Available extensions:
GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow 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_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels 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_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_swap_hint
System.InvalidProgramException: Unsupported GPU. See graphics.log for details.
at OpenRA.Renderer.SdlCommon.SdlGraphics.InitializeSdlGl(Size& size, WindowMode window, String[] requiredExtensions)
at OpenRA.Renderer.SdlCommon.SdlGraphics..ctor(Size size, WindowMode window, String[] extensions)
at OpenRA.Renderer.Glsl.DeviceFactory.Create(Size size, WindowMode windowMode)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
GL Error: GL_INVALID_ENUM
at OpenRA.Renderer.SdlCommon.ErrorHandler.CheckGlError()
at OpenRA.Renderer.SdlCommon.SdlGraphics.InitializeSdlGl(Size& size, WindowMode window, String[] requiredExtensions)
at OpenRA.Renderer.SdlCommon.SdlGraphics..ctor(Size size, WindowMode window, String[] extensions)
at OpenRA.Renderer.Glsl.DeviceFactory.Create(Size size, WindowMode windowMode)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)

OpenGL Information:
Vendor: Intel
Renderer: Intel 915G
GL Version: 1.4.0 - Build 7.14.10.4764
Shader Version:
Available extensions:
GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow 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_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels 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_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_swap_hint
System.InvalidOperationException: OpenGL Error: See graphics.log for details.
at OpenRA.Renderer.SdlCommon.ErrorHandler.CheckGlError()
at OpenRA.Renderer.SdlCommon.SdlGraphics.InitializeSdlGl(Size& size, WindowMode window, String[] requiredExtensions)
at OpenRA.Renderer.SdlCommon.SdlGraphics..ctor(Size size, WindowMode window, String[] extensions)
at OpenRA.Renderer.Glsl.DeviceFactory.Create(Size size, WindowMode windowMode)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
GL Error: GL_INVALID_ENUM
at OpenRA.Renderer.SdlCommon.ErrorHandler.CheckGlError()
at OpenRA.Renderer.SdlCommon.SdlGraphics.InitializeSdlGl(Size& size, WindowMode window, String[] requiredExtensions)
at OpenRA.Renderer.SdlCommon.SdlGraphics..ctor(Size size, WindowMode window, String[] extensions)
at OpenRA.Renderer.Cg.GraphicsDevice..ctor(Size size, WindowMode window)
at OpenRA.Renderer.Cg.DeviceFactory.Create(Size size, WindowMode windowMode)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)

OpenGL Information:
Vendor: Intel
Renderer: Intel 915G
GL Version: 1.4.0 - Build 7.14.10.4764
Shader Version:
Available extensions:
GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow 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_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels 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_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_swap_hint
System.InvalidOperationException: OpenGL Error: See graphics.log for details.
at OpenRA.Renderer.SdlCommon.ErrorHandler.CheckGlError()
at OpenRA.Renderer.SdlCommon.SdlGraphics.InitializeSdlGl(Size& size, WindowMode window, String[] requiredExtensions)
at OpenRA.Renderer.SdlCommon.SdlGraphics..ctor(Size size, WindowMode window, String[] extensions)
at OpenRA.Renderer.Cg.GraphicsDevice..ctor(Size size, WindowMode window)
at OpenRA.Renderer.Cg.DeviceFactory.Create(Size size, WindowMode windowMode)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)

@Vassonx
Copy link
Author

Vassonx commented Dec 6, 2013

Intel(R) says my driver is up-to-date compared to my graphics card. So i suppose my graphic card might be crap or I don't know another problem. Strange through, It can handle other old games just fine.

@Vassonx
Copy link
Author

Vassonx commented Dec 6, 2013

Either my software is shit or my driver seems up-to-date.

@Mailaender
Copy link
Member

Unsupported GPU: Missing extensions: GL_ARB_vertex_shader,GL_ARB_fragment_shader,GL_EXT_framebuffer_object

GMA 900 is far too weak and does not even have the required OpenGL extensions. https://github.com/OpenRA/OpenRA/wiki/FAQ#no-valid-techniques-or-unsupported-gpu

It is strange however that it dumps a NRE into exception.log and the actually readable exception into graphics.log

System.InvalidOperationException: OpenGL Error: See graphics.log for details.

This could be a side effect of #4038. I think we want a specialized error pop-up for this common error: no driver please update if Vendor.Contains("Microsoft") and too weak hardware if Unsupported GPU: Missing extensions (this case)

@Mailaender
Copy link
Member

Fixed with #4326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants