Author Topic: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash  (Read 3068 times)

grub

  • Guest
3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« on: 15 May 2011, 11:36:06 »
I was getting I think the same crash on ubuntu 10.* so installed a fresh ubuntu 11.04, and it is still there?
Linux 2.6.38-8, AMD 64 Sempron LE-1150, (only 1 cpu core), one gig ram which has about 450mb free with gnome running, 
the mb is a ASRock N68-S with Nvidia MCP61 Graphics processor with 512mb, I seem to remember shared mem.
I am running MegaGlest-Installer-3.5.1_i386_64_linux.run but have tried 3.4.0 and i386 I tried uninstalling and reinstalling and still no luck...

The crash happens after a few minuets (about 5) of game play, so is real boring to test.
Here is what is give back, to me it looks like an out of memory error, the game play seems fine before it crashes!
I am lost, any help much appreciated.

Code: [Select]
terminate called after throwing an instance of 'std::runtime_error'
  what():  OpenGL error #1285 : out of memory at file: /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp, line 1973
v3.5.1-GNUC: 40401 [64bit]-May  7 2011 14:13:56, SVN: [Rev: 2252], [STREFLOP]
[2011-05-15 12:27:52] *ERROR* Font not found [-*-helvetica-*-r-*-*-10-*-*-*-*-*-*-*] trying to fallback to [fixed]
[2011-05-15 12:27:52] *ERROR* Font not found [-*-helvetica-*-r-*-*-10-*-*-*-*-*-*-*] trying to fallback to [fixed]
[2011-05-15 12:27:52] *ERROR* Font not found [-*-helvetica-*-r-*-*-10-*-*-*-*-*-*-*] trying to fallback to [fixed]
[2011-05-15 12:27:52] *ERROR* Font not found [-*-helvetica-*-r-*-*-11-*-*-*-*-*-*-*] trying to fallback to [fixed]
[2011-05-15 12:27:52] *ERROR* Font not found [-*-helvetica-*-r-*-*-14-*-*-*-*-*-*-*] trying to fallback to [fixed]
[2011-05-15 12:27:52] *ERROR* Font not found [-*-helvetica-*-r-*-*-10-*-*-*-*-*-*-*] trying to fallback to [fixed]
[2011-05-15 12:32:49] *ERROR* In [game.cpp::mouseDownLeft Line: 1167] Error [OpenGL error #1285 : out of memory at file: /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp, line 293]
[2011-05-15 12:32:49] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 344] [OpenGL error #1285 : out of memory at file: /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp, line 1973] gameInitialized = 1, program = 0xf40fc0
[2011-05-15 12:32:51] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 435] [OpenGL error #1285 : out of memory at file: /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp, line 1973
Stack Trace:
./megaglest:Glest::Game::glestMain(int, char**) address [0x65094c] line: 2953
./megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x653944] line: 3014
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fb60b9cceff] line: 0
./megaglest() [0x574289] address [0x574289] line: 116
]

grub

  • Guest
Re: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« Reply #1 on: 15 May 2011, 16:34:39 »
well the vm memory of does not seem to be to much of a problem, How are you mesuring it top or system monitor or something else?

and the rest of the computer does not seem to be suffering, cpu is up at the top near 57% for megaglist with top, memory 17% so the crash I have happens I don't think is a mem leek!
system monitor on gnome does also not show any spick in memory use, although it shows the total cpu up at the top the system seems quite usable!

Is the a demo way to run megaglist to do the exact same thing every time?

I get a feeling that my problem is happening when megaglist rendered something? looking at the logs...
I tried running with just human and not doing anything and after 10 minuets it still ok, so I start building etc and on the 3rd building it crashes!

can I get any information with a core file?

I am Lost lost lost on this one, anyone any ideas?

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« Reply #2 on: 15 May 2011, 17:08:49 »
Grub: your computers' specs are below the minimum requirements for MegaGlest, which can result in such errors.

The ASRock N68-S motherboard comes with an integrated NVidia GeForce 7025 GPU which can lock up to 256 MB of the systems' RAM for graphics processing. The error message you are running into basically states that the memory available to the GPU is insufficient. Check you BIOS and see if you can assign a fixed value of 256MB exclusively for graphics processing.

Boot up Ubuntu, then open a terminal window, run free -m and post its output here so we can see exactly how much free memory you have.

Next, change into the directory you have MegaGlest installed in. If you installed using our installer with defaults then this command will get you there: cd ~/megaglest
Now invoke MegaGlest as follows and post the output it produces here, wrapped in a code block:
./start_megaglest --opengl-info

Close the terminal window and start MegaGlest as usual, set all graphics options to minimum (for now, you can try raising them again later), restart MegaGlest and see if it works better for you now.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

grub

  • Guest
Re: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« Reply #3 on: 15 May 2011, 19:57:35 »
Thanks  tomreyn
Well I switched to 256MB

I tried with tinny window still crashes, see hight width below:

Code: [Select]
; === propertyMap File ===

ColorBits=16
DisableScreenshotConsoleText=1
EnableFTPServer=1
EnableFTPServerInternetTechtreeXfer=1
EnableFTPServerInternetTilesetXfer=1
EnableFTPXfer=1
EnableTextureCompression=0
FTPServerPort=61358
FactorySound=None
Filter=Bilinear
FontSizeAdjustment=0
Lang=english
MapPreview=0
MasterServerExternalPort=61357
MaxLights=1
NetPlayerName=newbie
PrivacyPlease=0
ScreenHeight=240
ScreenShotFileType=jpg
ScreenWidth=320
ServerIp=192.168.0.4
Shadows=Disabled
SoundVolumeAmbient=80
SoundVolumeFx=80
SoundVolumeMusic=90
Textures3D=0
TilesetParticles=0
UnitParticles=0
Windowed=0
Don't know if the is any other settings to switch off?

$ free -m
                 total       used       free     shared    buffers     cached
Mem:           744        679         64          0         33        289
-/+ buffers/cache:        356        387
Swap:         3813          0       3813

Code: [Select]
$ ./start_megaglest --opengl-info

OpenGL Info:
   OpenGL Version: 2.1.2 NVIDIA 173.14.30
   OpenGL Renderer: 2.1.2 NVIDIA 173.14.30
   OpenGL Vendor: NVIDIA Corporation
   OpenGL Max Lights: 8
   OpenGL Max Texture Size: 4096
   OpenGL Max Texture Units: 4
   OpenGL Modelview Stack: 32
   OpenGL Projection Stack: 4
OpenGL 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_depth_bounds_test GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample
   GL_EXT_framebuffer_object GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil 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_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_lod
   GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB 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_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_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query
   GL_NV_packed_depth_stencil 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_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

OpenGL Platform Extensions:
Still crashes like always.
I guess I need a graphics card or more ram or processor or something...?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« Reply #4 on: 15 May 2011, 22:16:34 »
For shure more ram! MG will not work with this.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« Reply #5 on: 16 May 2011, 00:43:05 »
Your only hope is to 'try' enabling texture compression and hope it cuts enough RAM usage that paerhaps the game might work. This option is in the options menu

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: 3.5.1 ubuntu 11.04, 64, OpenGL out of memory? crash
« Reply #6 on: 16 May 2011, 00:43:50 »
$ free -m
                 total       used       free     shared    buffers     cached
Mem:           744        679         64          0         33        289
-/+ buffers/cache:        356        387
Swap:         3813          0       3813

According to this you now have up to 387 MB physical (non-swapped) RAM available for the game. And you said it was 450 MB (how did you measure this?) before you changed the memory allocation of the GPU.

Well I switched to 256MB

Are you saying you switched the graphics card to use 256MB - in your BIOS?

If so, what was it set to before you did? 256 MB - (450 MB - 387 MB) = 193 MB. That's pretty close to 3 x 8² MB = 192 MB. So did you have 192 MB RAM dedicated to the GPU in BIOS before?

I tried with tiny window still crashes, see height + width below:
Don't know if the is any other settings to switch off?

Huh that's really a small dimension there. Please try at least 640 x 480, since if you go even lower this could cause other issues (and this is really not tested).
Does it still crash with the same error message, though, or is it a different one now?

I guess I need a graphics card or more ram or processor or something...?

Your GPU's OpenGL capabilities are fine. Just like titi I think what you are really missing most of all is more RAM. Unfortunately, I'm afraid that as soon as you would have enough RAM, you would probably realise that you need more processing power (CPU), too. Those are your bottlenecks, the GPU isn't.

Hardware upgrade options:
* RAM: This board can take up to 8 GB RAM (DDR2 1066*/800/667/533 non-ECC, un-buffered memory), it as 2 memory slots (so 2 x 4 GB is the maximum configuration). You will probably have 2 x 512 MB now. For dual channel memory operation you need to have two identical (same brand, speed, size and chip-type) memory modules installed. So if intend to upgrade your RAM you will most likely need/want to replace the current DIMMs by new ones. See your mainboards' user manual for more info. An upgrade to 8 GB RAM would currently cost ~ USD 120.
* CPU: Be sure to also read the hint about automatic system bus downgrade with AM2+/AM3 CPUs. An Athlon 64 X2 5400+ (AM2 socket), 2x 2.80GHz, tray, model ADO5400IAA5DO, which is a Brisbane (65 nm) variant would cost about USD 70 (if you can find a shop which still has some).
* For a newer CPU, while not decreasing FSB speed, you'd also want a mainboard replacement.

Note that if you upgrade your hardware you will most likely also want/need to upgrade your BIOS to the latest revision available.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything