Page 1 of 1
I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMatrix
Posted: 22 Aug 2013, 18:02
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

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.
Re: I think I broke the Lua...
Posted: 22 Aug 2013, 19:32
by Silentwings
Please pastebin your infolog and provide a link.
Re: I think I broke the Lua...
Posted: 22 Aug 2013, 19:40
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?
Re: I think I broke the Lua...
Posted: 22 Aug 2013, 22:17
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.
Re: I think I broke the Lua...
Posted: 22 Aug 2013, 23:37
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.

Re: I think I broke the Lua...
Posted: 23 Aug 2013, 00:46
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..
Re: I think I broke the Lua...
Posted: 23 Aug 2013, 03:01
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?
Re: I think I broke the Lua...
Posted: 23 Aug 2013, 04:05
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.
Re: I think I broke the Lua...
Posted: 23 Aug 2013, 14:42
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.
Re: I think I broke the Lua...
Posted: 23 Aug 2013, 17:09
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™.
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 23 Aug 2013, 19:29
by knorke
never saw that error. i edited it into title in hope it attracts attention of someone who knows better
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 23 Aug 2013, 20:13
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.
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 28 Aug 2013, 14:35
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).
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 28 Aug 2013, 16:21
by Anarchid
AFAIK only ZK uses 91.0. BA, Evo, and everybody else live in the future.
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 28 Aug 2013, 16:56
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?
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 29 Aug 2013, 11:05
by Anarchid
In short, by using multiengine-capable lobbies, such as weblobby, zero-k lobby or the you-know-who lobby.
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 29 Aug 2013, 17:21
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)
Re: I think I broke the Lua... GL_STACK_UNDERFLOW in glPopMa
Posted: 15 Oct 2013, 13:47
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.