Author Topic: [not a bug] v3.6.0: Game crashes when I left-click while building barracks  (Read 1771 times)

Zhook

  • Guest
List of problematic buildings:
barracks(tech)
blacksmith(tech and norsemen)
pyramid(egiptians)
temple(persians and egiptians)
house(normans)

The problem is
 1)when I start some building from this list and(when they are not completed yet) click left mouse button, game closes. :scared:
Text of error in terminal:
Code: [Select]
v3.6.0-GNUC: 40403-Dec 11 2011 13:34:41, SVN: [$Rev: 2954 $], [STREFLOP]
[2012-07-03 13:52:08] *ERROR* In [game.cpp::mouseDownRight Line: 1910] Error [OpenGL error #1285 [0x505] : [out of memory] at file: [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp], line: 293] x = 318 y = 485
Error saved to logfile [/home/gamer/.megaglest/error.log]
[2012-07-03 13:52:08] *ERROR* In [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/glest_game/main/main.cpp::handleRuntimeError Line: 416] [OpenGL error #1285 [0x505] : [out of memory] at file: [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/glest_game/graphics/renderer.cpp], line: 3740] gameInitialized = 1, program = 0xb5304050
[2012-07-03 13:52:08] *ERROR* In [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/glest_game/main/main.cpp::handleRuntimeError Line: 509] [OpenGL error #1285 [0x505] : [out of memory] at file: [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/glest_game/graphics/renderer.cpp], line: 3740
Stack Trace:
megaglest.real:Glest::Game::glestMain(int, char**) address [0x81f9633] line: 0
megaglest.real:Glest::Game::glestMainWrapper(int, char**) address [0x81ffa93] line: 0
megaglest.real:main() address [0x81ffbd3] line: 0
/lib/tls/i686/cmov/libc.so.6:__libc_start_main() address [0x5c6bd6] line: 0
megaglest.real() [0x80de451] address [0x80de451] line: 0
]
terminate called after throwing an instance of 'std::runtime_error'
  what():  OpenGL error #1285 [0x505] : [out of memory] at file: [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/glest_game/graphics/renderer.cpp], line: 3740
Аварийный останов

errorcode in terminal 134.
log of megaglest:
Code: [Select]
[2012-07-05 12:29:11] Runtime Error information:
======================================================
OpenGL error #1285 [0x505] : [out of memory] at file: [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/glest_game/graphics/renderer.cpp], line: 3740
Stack Trace:
megaglest.real:Glest::Game::glestMain(int, char**) address [0x81f9633] line: 0
megaglest.real:Glest::Game::glestMainWrapper(int, char**) address [0x81ffa93] line: 0
megaglest.real:main() address [0x81ffbd3] line: 0
/lib/tls/i686/cmov/libc.so.6:__libc_start_main() address [0xfcebd6] line: 0
megaglest.real() [0x80de451] address [0x80de451] line: 0
2)if in this time I don`t click and just wait for finishing of building doing nothing - no problems or errors.
 3)some models of constructing(use in all list of buildings) cause this error:
barracks_construction.g3d
blacksmith_construction.g3d
med_bar_construction.g3d
 4) I fix problem in my megaglest files by editing xml files of problematic buildings. I just  change paths in skill parameter "be_built" to model of constructing of house(persian)(house_constructing.g3d)  8)
System xonomi(based on ubuntu 10.04), characteristics of my computer you can see near my profile name. Megaglest 3.6.0.1 and 3.6.0.3.
I hope that problem will be fixed in next versions of megaglest.
If I forgot to write anything about problem, or wrote unreadable - ask.
Russian version of description of problem you can see at http://forum.ubuntu.ru/index.php?topic=196222.0

Thanks.
« Last Edit: 13 July 2012, 17:23:12 by tomreyn »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Hi,

since you are using a build by Playdeb, not one of ours, you should also report your issues at Playdeb. You are using MegaGlest 3.6.0.1, an outdated version. Please use MegaGlest 3.6.0.3, the current stable version which fixes bugs in earlier versions, some of which were critical.

According to the error message...
Code: [Select]
[2012-07-03 13:52:08] *ERROR* In [game.cpp::mouseDownRight Line: 1910] Error [OpenGL error #1285 [0x505] : [out of memory] at file: [/build/build-megaglest_3.6.0.1-1~getdeb1~lucid-i386-xpbeSY/megaglest-3.6.0.1/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp], line: 293] x = 318 y = 485

... you are running out of OpenGL memory there. Your tag line indicates you have a Geforce 6600 GPU, but it's unclear how much memory it has available. This is a pretty old graphics chipset, though (Windows Vista was not close to a release by the time this GPU became available), so chances are it does not confirm with the minimum system requirements. Your CPU also doesn't provide enough resources, and this may be the same for your RAM (although you're not discussing how much you have available) - just because of how dated your hardware seems to be. So this is clearly not a bug.

The FAQ discusses ways to decrease the resource consumptions so that you may be able to play nevertheless, but you probably won't be able to take part in larger multi-player games with this hardware.

Please also note that editing game files results in you being booted off network games. Please do not do this. It is safe, though, to place a renamed copy of a techtree, tileset or map within your User Data directory. On Linux, this is usually located at ~/.megaglest/ (and ~ is a shorthand, meaning your home directory).
« Last Edit: 13 July 2012, 17:27:18 by tomreyn »
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 · · ·

Zhook

  • Guest
Logs from 3.6.0.1, but now I use 3.6.0.3. 3.6.0.3 I downloaded from megaglest.org. This version has this problem too.
If you want, I will cancel my chandes and show to you messages from it and logs.

About requirements, I have 1,7 Gb of Ram, about GPU I will look.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Logs from 3.6.0.1, but now I use 3.6.0.3. 3.6.0.3 I downloaded from megaglest.org. This version has this problem too.
If you want, I will cancel my chandes and show to you messages from it and logs.

About requirements, I have 1,7 Gb of Ram, about GPU I will look.
The GeForce 6600 seems to have either 128 or 256 MB of video RAM. Small, but I don't see how it would be the cause of a crash. When video RAM is used up, the computer would generally use regular RAM, which is slower (different type of RAM, and far away from the video card). Unless there's a lot of other programs sapping up that 1.7GB of RAM, surely there should be plenty of memory? The GeForce 6 series is old, sure (mid 2004), but I don't see why it shouldn't be enough to play MegaGlest.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zhook

  • Guest
My GPU RAM=256mb.
Can you test this problem on other old configurations of computers(or on weak computers with minimal sucessful system characteristicks for MG)? ???
I don't know what caused error, but after changing xml parameters to other constructing models - problem fixed.
Maybe, it will be usefull for somebody other.
If it's not usefull and not bug, I'm sorry.  :-[

In two days I will test my memory for errors(last testing was in end of 2011 year - no errors).
Will write when finished.  :-X

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
When video RAM is used up, the computer would generally use regular RAM, which is slower (different type of RAM, and far away from the video card).

I'm not convinced this is necessarily so. I've seen people having problems with OpenGL running out of memory with older GPUs usually when their GPU had dedicated/soldered-on RAM and this was less than 256 MB, but in conformity with our other minimum requirements. Can you provide a source which backs up your statement and where it is obvious that it applies to this GPU's Windows driver?

Zhook: There are other people with such old configurations for whom the game does work. Can you explain where the 1.7 GB RAM value stems from and what it means exactly? Is it that Windows says there are 300 MB unallocated memory when you only have Windows running and nothing else? Is this also the very same setup you had when you experienced the problem with MegaGlest crashing? Can you make a screen shot of the process list available when running MegaGlest before reproducing this issue? Additionally you could run GPU-Z, export the data and post it here.

Please also note that, while it may be so that the way the game data you edited is by default triggers this issue, this is really just the trigger which makes your memory overflow, but it's most likely not the underlying reason, i.e. this is most likely not a bug in this game data. As such you should not need to edit it, and even if you do this will probably not fix things for long for you.

Finally, please also post the --verbose output (see the FAQ on how to generate it) when running into this issue with MegaGlest 3.6.0.3.
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 · · ·

Zhook

  • Guest
Ok. Tomorrow all screens and logs and results of tests will be here(now I write not from computer).

About windows:
Windows(when I had it)(Now I am on linux only) didn't show any problems with memory or gpu.
Out of memory before this I saw in windows, when create very,very,very....very many units in Heroes of AE.
But this was only two times in heroes of ae(second - I try to start heroes of ae under wine, linux).

Zhook

  • Guest
Results:
memtest - no errors
Linux System Report: support utility for Linux users - http://www.ovrload.ru/temp/system_report_dc77f0246552bfc7479f14d07c66c6f9.log
verbose(built barracks(with standart xml) and clicked) - http://www.ovrload.ru/temp/log-verbose_5b2f50cf1ce0ac4cc11f82a72cfc9af2.log

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Thanks for providing more information.

Based on the system report I can now add a few facts:

You're using our MegaGlest 3.6.0.3 build, that's good.

Your kernel image is very outdated (version 2.6.32-25), it was compiled on Oct 16, 2010. It is not unthinkable that the video/graphics drivers embedded in this kernel version are buggy. Running such an outdated kernel image is also a potential security risk. The current kernel version for Ubuntu Lucid (10.04) is 2.6.32-41.

You're usigng the proprietary Nvidia video driver version 173.14.27, while the current version in lucid is 173.14.22, so you seem to be using a foreign driver source there.

You have 1758 MB of physical RAM, which isn't that much, but should work for playing smaller MegaGlest games if you have little or nothing else running (besides Linux and your graphical desktop).

You game data is stored at /media/for_home/zhs/megaglest_3.6.0.3/, that's unusual. Is this a removable device and/or external storage? Is it a hard disk or other media type?
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 · · ·

Zhook

  • Guest
About nvidia: I updated my driver from repos  because had thinked that it cause problem.
About drive: /media/for_home is partition of my internal hdd, I'm waiting for update my distro(xonomi) and will mount this partition  as /home when install new linux version.(I have pertitions for_var and for_boot too).

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
If this is the newest kernel you can get from Xonomi then you should clearly switch to a different distribution quickly. Xonomi seems to be a re-blended Ubuntu 10.10. You could probably try to just replace the APT sources by those of Ubuntu, and upgrade till you end up on a currently maintained Ubuntu version (11.04 is still maintained, which would be the first step after 10.10). Or you could go all the way through to the latest version which is 12.04. Or, and that's probably the best option after all, you could just save your data on external disk, USB key or other storage and install Ubuntu 12.04 (or any other widely used and supported Linux distribution) fresh.

About the MegaGlest issues, it's pretty useless to try to get it to work on this system (both because of the outdated hardware and software), but if you still want to try then I suggest you read the FAQ entry on how to improve your video performance. Try also both with and without the TextureCompression option discussed on the wiki.

Finally you could and I think you also should give the Ubuntu 12.04 live/installation CD a try, too. You may be able to just download and 'install' (on virtual storage) and run MegaGlest on your computer with a current kernel this way, without making any changes to your hard disk.

Anyway, this is how far I'm willing to go on this topic.
« Last Edit: 18 June 2016, 13:38:33 by filux »
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 · · ·