Page 1 of 1

Bug in chili framework

Posted: 15 Mar 2012, 01:00
by Forboding Angel

Code: Select all

[f=0037438] <smuwf> some bug about silo texture popped up
[f=0037915] <TehNewGuy> oh yeah, it's bitching abou tit's radar icon
[f=0038265] <TehNewGuy> which if you look you can see is working fine
[f=0038430] <TehNewGuy> it's a big biohazard symbol
[f=0038847] <TehNewGuy> engine being dumb
[f=0039141] <TehNewGuy> gunship drones incoming now :-)
[f=0039887] Error in Update(): [string "LuaUI/Widgets/chili/Controls/font.lua"]:117: attempt to use a deleted font
[f=0039887] Removed widget: Chili Framework
[f=0039898] <TehNewGuy> heh that didn't last long
[f=0039917] Chili-Error in `Chili Framework`:screen0 : [string "LuaUI/Widgets/chili/Controls/object.lua"]:219: Chili: There is already a control with the name `unit` in `screen0`!
[f=0039917] stacktrace:
	[C]: in error
	[string "LuaUI/Widgets/chili/Controls/object.lua"]:219
	(tail call): in [?]
	(tail call): in [?]
	...
	[string "-------------------------------------------..."]:102
	[string "LuaUI/Widgets/gui_chilicursortip_2.lua"]:867: in BuildTooltip2
[f=0039917] Removed widget: Chili Framework
Anyone know how to maek fixie?

Re: Bug in chili framework

Posted: 15 Mar 2012, 01:01
by smoth
bug in widget, crashing framework.

Re: Bug in chili framework

Posted: 15 Mar 2012, 04:18
by Forboding Angel
Yep, apparently google fixed it long ago (occurred to me to check zk sauce for commit logs).

http://code.google.com/p/zero-k/source/ ... .lua&old=3

Re: Bug in chili framework

Posted: 15 Mar 2012, 05:52
by jK
No, that's something totally different.
And no, it's not a bug in chili, it's a bug in one of your chili client widgets.

Code: Select all

Chili-Error in `Chili Framework`:screen0 : [string "LuaUI/Widgets/chili/Controls/object.lua"]:219: Chili: There is already a control with the name `unit` in `screen0`!
You tried to add multiple chili objects with the same `name`:

Code: Select all

local lable = Chili.Label:New{..., name="MAHNAME",...}
local lable_2nd = Chili.Label:New{..., name="MAHNAME",...} <- crash
chili obj names are unique! this is cause you can use their name for easy finding an obj, e.g. local obj = screen0:FindObject("MAHNAME");
Note, in case you don't need such a functionality you don't have to define the `name` at all (in that case it uses autonameing like this "label0", "label1", "label2", ...)

Re: Bug in chili framework

Posted: 15 Mar 2012, 06:29
by Forboding Angel
I don't have anything other than default chili.

Re: Bug in chili framework

Posted: 15 Mar 2012, 06:31
by jK
[string "LuaUI/Widgets/gui_chilicursortip_2.lua"]:867: in BuildTooltip2

Re: Bug in chili framework

Posted: 15 Mar 2012, 14:21
by Google_Frog
The widgets in ZK are not 'default chili'.

Re: Bug in chili framework

Posted: 15 Mar 2012, 14:49
by Pako
Chili framework is fairly stable and bug free but there is a huge flaw that any Chili widget can crash the whole GUI drawing.

Re: Bug in chili framework

Posted: 15 Mar 2012, 16:49
by CarRepairer
Cursortip2 is way old. Get selections_and_cursortip. And delete selections also.

Re: Bug in chili framework

Posted: 16 Mar 2012, 03:06
by Forboding Angel
Sigh.

Thanks for the help.