Author Topic: [not a bug] 3.6.0: Crashes before game menu appears (VBO)  (Read 3156 times)

stone33

  • Guest
[not a bug] 3.6.0: Crashes before game menu appears (VBO)
« on: 8 December 2011, 03:33:42 »
When I start megaglest runs correctly until I press mouse left button to jump the introduction of the game and pass to the game menu it´s when the game crash and it appears this error:

(click to show/hide)

My pc specs:
Windows vista home premium 32-BIT SP2
Intel core duo CPU E4700
3 GB RAM
I reinstalled megaglest but it happens the same

Edit (tomreyn): Rewrap error message
« Last Edit: 18 December 2011, 12:25:24 by tomreyn »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: megaglest 3.6 crash before the game menu appear
« Reply #1 on: 8 December 2011, 05:18:50 »
Please post the contents of C:\Users\USER\AppData\Roaming\megaglest\error.log, too. If you are comfortable with running the game from command line then please run it as follows and paste (here) the output this generates, too:
megaglest.exe --opengl-info --sdl-info --lua-info --curl-info

If this fails, please provide details about your video card and the driver you are using by other means (GPU-Z should tell).

Thanks.
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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: megaglest 3.6 crash before the game menu appear
« Reply #2 on: 8 December 2011, 06:31:10 »
Better yet, if possible run megaglest from a DOS window like this:

Code: [Select]
c:
cd "\program files\megaglest"
megaglest --verbose > error.log

then paste the contents of error.log here in the forums

stone33

  • Guest
Re: megaglest 3.6 crash before the game menu appear
« Reply #3 on: 8 December 2011, 07:46:35 »
Quote
Please post the contents of C:\Users\USER\AppData\Roaming\megaglest\error.log
it only says this:

[2011-12-07 23:31:30] Runtime Error information:
======================================================
Unknown error!

Quote
If you are comfortable with running the game from command line then please run it as follows and paste (here) the output this generates, too:
megaglest.exe --opengl-info --sdl-info --lua-info --curl-info

I couldnt run megaglest with cmd.exe and this appeared:
 
C:\Users\USER>megaglest.exe --opengl-info --sdl-info --lua-info --curl-info
"megaglest.exe" its no recongnized like a internal or axternal command,
program or file for executable batch.

Quote
If this fails, please provide details about your video card and the driver you are using by other means (GPU-Z should tell).



I dont think that the motherboard of my pc is the problem; I had megaglest 3.5.3 installed and I didn´t have any problem.

Edit (tomreyn): Embed image in message
« Last Edit: 8 December 2011, 13:02:40 by tomreyn »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: megaglest 3.6 crash before the game menu appear
« Reply #4 on: 8 December 2011, 14:37:01 »
Since you say you upgraded from an earlier version, IF you have set a non-english language in the game then please follow these steps before you try any of those below.

Quote
If you are comfortable with running the game from command line then please run it as follows and paste (here) the output this generates, too:
megaglest.exe --opengl-info --sdl-info --lua-info --curl-info

I couldnt run megaglest with cmd.exe and this appeared:
 
C:\Users\USER>megaglest.exe --opengl-info --sdl-info --lua-info --curl-info
"megaglest.exe" its no recongnized like a internal or axternal command,
program or file for executable batch.

That's because you need to run this command in the directory MegaGlest is installed in, i.e. the directory containing megaglest.exe. So you want to start the command line (cmd.exe), then type:
Code: [Select]
cd %PROGRAMFILES%\MegaGlest\
megaglest.exe --opengl-info --sdl-info
megaglest.exe --verbose > verbose.txt

The first megaglest.exe run will output some information on the cmd.exe window. Copy this information here (wrap it into a spoiler like you did before).

The second megaglest.exe run will create a new file, verbose.txt. Open this file (which is located in %PROGRAMFILES%\MegaGlest\) with a text editor and copy its contents to the MegaGlest pastebin. Post it, you will then end up on a new Internet address. Copy this from your web browsers' address bar and paste it here.

Quote
If this fails, please provide details about your video card and the driver you are using by other means (GPU-Z should tell).

Thanks for posting the screen shot. According to this, you have the latest driver available for Windows Vista installed for this chipset family. There is a Windows 7 driver which bears a higher version number, but it was released by the same time (2009) so it will most likely not differ much. According to a compatibility sheet on the Intel website, both your hardware and driver should support OpenGL 1.4+.
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 · · ·

stone33

  • Guest
Re: megaglest 3.6 crash before the game menu appear
« Reply #5 on: 9 December 2011, 03:09:34 »
Quote
Since you say you upgraded from an earlier version, IF you have set a non-english language in the game then please follow these steps before you try any of those


this doesn´t works the game crash before the game menu appear, I tried that the presentation of the game run complete, but always the game crash when the ornithoper and flyingvalkyrie are fighting.

Quote
The first megaglest.exe run will output some information on the cmd.exe window. Copy this information here


(click to show/hide)

Quote
The second megaglest.exe run will create a new file, verbose.txt. Open this file (which is located in %PROGRAMFILES%\MegaGlest\)

It doesn´t create the file,verbose.txt, in the cmd window it appears this:

(click to show/hide)
« Last Edit: 9 December 2011, 07:02:00 by stone33 »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: megaglest 3.6 crash before the game menu appear
« Reply #6 on: 9 December 2011, 04:18:54 »
It doesn´t create nothing, in the cmd window it appears this
To be a grammar fiend, double negatives become a positive (in other words, "doesn't create nothing" implies something is created).

Code: [Select]
C:\Users\USER>cd %PROGRAMFILES%\MegaGlest\

C:\Program Files\MegaGlest>megaglest.exe --verbose > verbose.txt
denied access.

C:\Program Files\MegaGlest>
That's a rather strange permission error. MegaGlest was unable to create a file in its own installation directory. Are you running under a restricted account or an administrator? If it's under an administrator, still not working, and you are the sole user of the computer, one fix I've seen for weird permission errors was to set the file or folder under your own ownership by right clicking the folder, opening properties, in the security tab, click the edit button. Select your user name (add it if it isn't there) and tick the "full control" box. It's a cheap fix, but has worked on some issues like that in the past (not all, of course).

On a side note, be careful with changing permissions like that. Minor programs like MegaGlest handle it fine, but some programs are... less graceful, by personal experience.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: megaglest 3.6 crash before the game menu appear
« Reply #7 on: 9 December 2011, 05:53:09 »
So the first command succeeded, very well stone33. Now we just need to get the other one to work, too.

That's a rather strange permission error. MegaGlest was unable to create a file in its own installation directory. Are you running under a restricted account or an administrator? If it's under an administrator, still not working, and you are the sole user of the computer, one fix I've seen for weird permission errors was to set the file or folder under your own ownership by right clicking the folder, opening properties, in the security tab, click the edit button. Select your user name (add it if it isn't there) and tick the "full control" box. It's a cheap fix, but has worked on some issues like that in the past (not all, of course).

I would not do this. If you cannot write there then it's by design, and this (security related) design should not be tampered with. Instead, you should write the file to a different location, one you may already write to:
Code: [Select]
cd %PROGRAMFILES%\MegaGlest\
megaglest.exe --verbose > %TEMP%\verbose.txt
echo Your file was stored at:
echo %TEMP%\verbose.txt

This time verbose.txt should get created - in the given location. Open this file with a text editor (such as Wordpad/Windows Write/Notepad) and copy its contents to the MegaGlest pastebin. Post it, you will then end up on a new Internet address. Please copy this from your web browsers' address bar and paste it here.
« Last Edit: 9 December 2011, 05:58:30 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 · · ·

stone33

  • Guest
Re: megaglest 3.6 crash before the game menu appear
« Reply #8 on: 9 December 2011, 06:59:57 »
Quote
Quote from: stone33 on Today at 03:09:34 AM

It doesn´t create nothing, in the cmd window it appears this

To be a grammar fiend, double negatives become a positive (in other words, "doesn't create nothing" implies something is created).

Well, english it´s not my mother tongue, but I will change my previus post for your tranquility.

Quote
Quote from: Omega on Today at 04:18:54 AM

That's a rather strange permission error. MegaGlest was unable to create a file in its own installation directory. Are you running under a restricted account or an administrator? If it's under an administrator, still not working, and you are the sole user of the computer, one fix I've seen for weird permission errors was to set the file or folder under your own ownership by right clicking the folder, opening properties, in the security tab, click the edit button. Select your user name (add it if it isn't there) and tick the "full control" box. It's a cheap fix, but has worked on some issues like that in the past (not all, of course).

I would not do this. If you cannot write there then it's by design, and this (security related) design should not be tampered with. Instead, you should write the file to a different location

Sorry, I had already followed the suggestion of omega when you posted this,but it worked, anyway I set the permission configuration like appeared at fisrt.

Here is the second command:
http://megaglest.pzt.me/5wa8

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: megaglest 3.6 crash before the game menu appear
« Reply #9 on: 9 December 2011, 15:03:10 »
Please trying running megaglest with the following parameters:

Code: [Select]
cd %PROGRAMFILES%\MegaGlest\
megaglest.exe --show-ini-setting > verbose.txt
megaglest.exe --disable-vbo --disable-sound --verbose >> verbose.txt
then pastebin the verbose.txt again

Thanks

stone33

  • Guest
Re: megaglest 3.6 crash before the game menu appear
« Reply #10 on: 10 December 2011, 01:10:16 »
Quote
Please trying running megaglest with the following parameters:

Code: [Select]
cd %PROGRAMFILES%\MegaGlest\
megaglest.exe --show-ini-setting > verbose.txt
megaglest.exe --disable-vbo --disable-sound --verbose >> verbose.txt
then pastebin the verbose.txt again

The verbose.txt:
http://megaglest.pzt.me/726t

With this code now the game doesn´t crash, but the game is obviously without sound.
 
« Last Edit: 10 December 2011, 01:18:36 by stone33 »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: megaglest 3.6 crash before the game menu appear
« Reply #11 on: 10 December 2011, 01:31:01 »
Now try this:

Code: [Select]
cd %PROGRAMFILES%\MegaGlest\
megaglest.exe --show-ini-settings > verbose.txt
megaglest.exe --disable-vbo >> verbose.txt

then pastebin the verbose.txt again.

This should enable sound but does it crash anymore or does it now work?

stone33

  • Guest
Re: megaglest 3.6 crash before the game menu appear
« Reply #12 on: 10 December 2011, 02:56:58 »
Quote
This should enable sound but does it crash anymore or does it now work?
In fact the sound wasn´t enabled I tried to load a single-player game but megaglest crashed, but I found out what was the problem, I enabled the sound manually in option menu, and set "directsound8" in music and sound option; the other option "Open AL" crashes the game when I loaded a single-player game. Also I set the correct resolution video for my pc this also caused the crash. Now the game run´s fine when I load a singleplayer. But this happens only when I run the game with cmd, and not when I run the megaglest.exe. 

The verbose.txt:
http://megaglest.pzt.me/4fts

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: megaglest 3.6 crash before the game menu appear
« Reply #13 on: 17 December 2011, 02:41:20 »
Are you saying the game only does not crash when you run it from command line?

Does it make a difference when you run it with or without the --disable-vbo option?
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 · · ·

stone33

  • Guest
Re: [more info] 3.6.0: Crashes before game menu appears
« Reply #14 on: 18 December 2011, 03:28:32 »
Quote
Are you saying the game only does not crash when you run it from command line?

yes

Quote
Does it make a difference when you run it with or without the --disable-vbo option?
I use this for run the game:

C:\Users\USER>cd %PROGRAMFILES%\MegaGlest\
C:\Program Files\MegaGlest>megaglest.exe --disable-vbo

If I dont use "--disable-vbo"  the game crash.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [more info] 3.6.0: Crashes before game menu appears
« Reply #15 on: 18 December 2011, 12:24:51 »
OK, so indeed this is the same issue (on your end) as discussed on the other thread: Your graphics driver states it provides VBO support when it actually doesn't support it. To work around this graphics driver bug, you can set DisableVBO=true in %AppData%\MegaGlest\glestuser.ini.

You can edit this file by clicking on (Windows) Start, then in the "Search" box type this:
notepad %AppData%\MegaGlest\glestuser.ini

Notepad should open and load an existing file. You can then add DisableVBO=true to the end of this file, then close Notepad/the editor and confirm you want to save this file.

Next time you start MegaGlest (by means of clicking on the MegaGlest icon on the Programs menu) there should be no more problem with this.
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 · · ·

stone33

  • Guest
Re: [not a bug] 3.6.0: Crashes before game menu appears (VBO)
« Reply #16 on: 19 December 2011, 03:43:15 »
I followed your instructions and it´s worked.

Quote
Notepad should open and load an existing file. You can then add DisableVBO=true to the end of this file, then close Notepad/the editor and confirm you want to save this file.
I would add to your instructions for other peolpe with this problem, that if you have windows vista you must run Notepad with administrator privilege otherwise this solution may not work.

I can run megaglest normally, but now I have a strange problem, if I want play a single player game, I have to open other option like tutorials, scenarios, credits or any other box option "before" open single player if I open single player mode directly, megaglest get freeze.This only happens with single player.

 

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: [not a bug] 3.6.0: Crashes before game menu appears (VBO)
« Reply #17 on: 19 December 2011, 05:57:16 »
Quote
Notepad should open and load an existing file. You can then add DisableVBO=true to the end of this file, then close Notepad/the editor and confirm you want to save this file.
I would add to your instructions for other peolpe with this problem, that if you have windows vista you must run Notepad with administrator privilege otherwise this solution may not work.
Huh? Appdata's in the user folder, this shouldn't be the case...
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

stone33

  • Guest
Re: [not a bug] 3.6.0: Crashes before game menu appears (VBO)
« Reply #18 on: 20 December 2011, 02:48:46 »
Quote
Huh? Appdata's in the user folder, this shouldn't be the case...
I agree with you, I found the problem, my brother changed the permission access of glest.ini  (I dont know why), this was the reason that I couldnt edit glest.ini without administrator permission.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [not a bug] 3.6.0: Crashes before game menu appears (VBO)
« Reply #19 on: 20 December 2011, 03:43:55 »
You're not supposed to edit glest.ini (which is located in %ProgramFiles%\MegaGlest), ever. If you edited it, make sure you replace it by the original copy.

You can safely edit glestuser.ini (in %APPDATA%\MegaGlest), though, that's the place where you are supposed to make custom configurations.
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 · · ·

stone33

  • Guest
Re: [not a bug] 3.6.0: Crashes before game menu appears (VBO)
« Reply #20 on: 20 December 2011, 04:58:16 »
You can safely edit glestuser.ini (in %APPDATA%\MegaGlest), though, that's the place where you are supposed to make custom configurations.
Yes, I meant to say "glestuser.ini" instead of "glest.ini",I didn´t edit glest.ini in %ProgramFiles%\MegaGlest , I made the custom configurations  in %APPDATA%\MegaGlest\glestuser.ini.
« Last Edit: 20 December 2011, 05:21:12 by stone33 »

 

anything