Page 1 of 1

Crashes with widget

Posted: 10 Aug 2012, 17:24
by Broker
Processor (intel I7 and AMD Phenom)
Video ( AMD Radeon HD 6570 and ASUS ENGTX460)
Spring 89 and BA 7.68 or 7.70.

When I add a widget CustomFormations+1 the game crashes at indefinite point of time if I try to order the group of units to move to one point. The game hangs both when in game-with-robots mode and when in multiplayer. Logs attached.

CustomFormations+1

Author: Bishop181 (Niobium, jK, gunblob)
Mods: All
Latest Version: 3.100
Downloads: 631 (0.80 D/d)
Entry-Date: 2010-06-13 09:59:31
Description:
It puts units into upto 3 rows ordered by hp/cost. construction units always at the back. adds weighting to units w/ high trajectory &

Re: Crashes with widget

Posted: 13 Aug 2012, 03:04
by zerver
Yep the widget probably has a bug because it hangs in MouseRelease. Report the bug to the authors or try to fix it yourself.

Re: Crashes with widget

Posted: 13 Aug 2012, 08:04
by Broker
the author was not on the forum for 3 years. how to determine where in the error?

Re: Crashes with widget

Posted: 13 Aug 2012, 08:11
by Jools
Look for errors (search for "Customformations") in infolog.txt in spring directory. It should have the error and the line in the widget.

Weird that the whole game crashes...

Re: Crashes with widget

Posted: 13 Aug 2012, 08:13
by Jools
Ah sorry, you attached that file. It seems that the widget causes a crash upstream. In this case, you could notify the makers of the mod (game) you are playing.

I know that this happens in some cases. Modside widgets should probably have better error handling and not crash in cases like these. I know that a similar thing happens if you try to calculate the length of a string that is a number.

Re: Crashes with widget

Posted: 13 Aug 2012, 08:14
by Broker
in the log file, there are no errors. ((((

Re: Crashes with widget

Posted: 13 Aug 2012, 08:15
by Jools
Error: LuaUI::RunCallIn: error = 2, MouseRelease, [string "LuaUI\Widgets\gui_unitgroups5_1.lua"]:798: attempt to index field '?' (a nil value)

Re: Crashes with widget

Posted: 13 Aug 2012, 08:39
by Broker
I'm sorry. it is very difficult for me. there is no debugger. I'm sorry.

Re: Crashes with widget

Posted: 13 Aug 2012, 09:34
by abma
add this widget:
https://github.com/spring/spring/blob/d ... tchdog.lua

this maybe gives you a hint where it hangs

Re: Crashes with widget

Posted: 13 Aug 2012, 10:01
by Niobium