I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMatrix

I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMatrix

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMatrix

Post by Cmdr_Shaffer »

Heh, so I think I'm finally getting the hang of this Spring thing :-) Got a game going with some bots (I got my butt kicked, but the FPS stayed manageable), and am downloading new maps every day. Only problem is the pesky LUA interface. I am getting various error messages spammed in the chat window to no end--here's one of those messages:

Code: Select all

Error: OpenGL: source<API> type<error> id<0> severity<high>:
GL_STACK_UNDERFLOW in glPopMatrix(mode=GL_MODELVIEW)
I have gotten some other messages--but now that I go looking for them, I can't find them, of course :P Anyway, that message is just repeated ad infinitum, but I cant find its cause.

I've done some searching, and it seems that the sufferers of this error message also have graphical deficiencies that accompany it--but to the best of my knowledge, my graphics look fine, even if I do have them set to minimum. However, one thing I have noticed, is that if I use the terminal command /luaui disable I get a fair performance increase in BA and NOTA, and a HUGE performance increase in Zero-K--anybody have any clues as to what's going on there? Heh, and that brings me to the second part of my question:

After reading the SpringWiki, I tried using F11 to load up the Lua List to see what's running, and what I can tinker with to see if I can stop the messages, and maybe kick up my performance by another couple of FPS. And that's where I run into more problems. In BA, F11 just brings up the Lua tweaker, where I can move windows around and stuff, and so I can't even see the list; in NOTA, after I clicked a few things, I broke something :( because now I'm missing some screen elements, and it's doing the same thing as BA--F11 only brings up the tweaker, and the /luaui reload command doesn't fix it. And I'm afraid to try the same thing on Zero-K, cuz I don't want to break it, either.

Whew! Sorry guys for the long post--but hopefully someone can help me out with this? I'm more than willing to provide any information you need--right now, I'm running Ubuntu 13.04 on a Toshiba laptop.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I think I broke the Lua...

Post by Silentwings »

Please pastebin your infolog and provide a link.
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Re: I think I broke the Lua...

Post by Cmdr_Shaffer »

Certainly :)

http://pastebin.com/xLLYLR74

Oh, and question: I've noticed some people, when addressing my original error, the message that gets repeated in my chatbox, they refer to something called the "RedMinimap", and disabling that solves their problems. What is the Red Minimap, and how do I disable it?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I think I broke the Lua...

Post by Silentwings »

I've never seen those error before & don't know what causes them. But to disable red minimap, press f11 in game, scroll down the list to find it and change it to red.
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Re: I think I broke the Lua...

Post by Cmdr_Shaffer »

Thanks for your help--but that's also part of my problem. I can't access the Lua list in BA, and I broke it in NOTA, and reloading the Lua doesn't help. :?
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: I think I broke the Lua...

Post by Funkencool »

Sounds like your hotkeys might be messed up. Check to make sure tweak mode isn't using both ctrl+f11 AND f11. No idea why but its happened to me..
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Re: I think I broke the Lua...

Post by Cmdr_Shaffer »

Funkencool wrote:Sounds like your hotkeys might be messed up. Check to make sure tweak mode isn't using both ctrl+f11 AND f11. No idea why but its happened to me..
That was it, thanks! One problem down--and potentially another one I'm putting the pieces together to:

When playing Robot Wars http://springfiles.com/spring/games/robot-wars-1, when selecting the 3rd faction that is not Arm or Core, at least against a Null AI of the same faction, I get no message spam. So, the info thus far is the message ceases when all Lua functions are disabled, and my faction is not Arm or Core. Does this narrow things down for anyone? I'm still looking through the various Lua options to see what there is that I can turn off that maybe is causing the problem--and I'll let you know as soon as I have results.

EDIT: Disregard that last bit. The error messages are back--but gameplay still does not seem to be affected in any way.

EDIT #2: It was the "Red Minimap" Lua--can anybody tell me what that is? When I hover my mouse over it, all it says is it requires the Red_UI_Framework. And why does it not like my PC?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I think I broke the Lua...

Post by Silentwings »

You don't need red minimap - when you remove it the engine replaces it with something of equally good functionality. Don't worry about it.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: I think I broke the Lua...

Post by Funkencool »

I would guess your graphics card doesnt support some open GL functions used by certain APIs (red ui framework in this case) which is causing the error messages. Default spring uses very basic open gl (from my understanding) so you dont see these errors until a lua script specifically calls them.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: I think I broke the Lua...

Post by Jools »

Maybe he hasnt just enabled red ui framework? Try to press F11 and see if you can turn red ui framework to be green?

Red™ is another user interface, some people (including me) thinks it looks nice, but it's nothing essential. Red Minimap™ is the minimap part of that interface, there is Red resource Bars™, Red Tooltop™ too. They all require Red UI Framework™.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by knorke »

never saw that error. i edited it into title in hope it attracts attention of someone who knows better
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by zwzsg »

It is a known NOTA error: http://springrts.com/phpbb/viewtopic.php?f=11&t=30617

The mod maintainers known about it, but won't/can't fix.
No offense meant, I understand it can be quite daunting to locate and fix, especially when not familiar with Spring OpenGL Lua.
TheSponge
Posts: 5
Joined: 27 Jun 2013, 18:18

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by TheSponge »

Do you use Intel graphics? I have an Intel HD 2000 on Xubuntu 12.10 32bit and I also have OpenGL error spam. If you are using Spring 91.0 it is because 91.0 is not Mesa compatible and Mesa is a significant part of the Intel graphics drivers for linux. Do you also get horrific graphics bugs when you are looking at a unit that has a .3do model (more specifically, these bugs)? Unless you feel like finding and fixing it yourself, there is nothing you can do apart from use later versions of spring than 91.0 (94.1 is the current latest).
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by Anarchid »

AFAIK only ZK uses 91.0. BA, Evo, and everybody else live in the future.
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by Cmdr_Shaffer »

Hmm...well yes, I do use 91.0, but I have ATI integrated graphics (I'm on a laptop). But how do people play online with Zero-K if they use version 91?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by Anarchid »

In short, by using multiengine-capable lobbies, such as weblobby, zero-k lobby or the you-know-who lobby.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by knorke »

can also use non-multi-engine lobbies like this:
http://springrts.com/phpbb/viewtopic.php?f=11&t=30615
(but a bit cumbersome)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa

Post by abma »

if i remember right this is a known bug in 91.0 which should be fixed in 94.1.

you can either change to the binary gfx-driver (which suppresses the error) or use spring 94.1.

the error happens because count of glPopMatrix doesn't match the count of glPushMatrix. in this case glPopMatrix is called to often.
Post Reply

Return to “Help & Bugs”