This is definitely a bug....but fixing it will be somewhat complicated (if it is even possible).
What is happening is while the meter is first setting up, it calls a custom lua function (from your MeterStyle). This function in turn calls the same meter's GetOption function, which in turns parses the MeterStyle of the same meter.....which in turn calls the lua script again....and again and again.
Basically an endless loop is happening and the program runs out of stack space and crashes.
Honestly, I have no idea if this is possible to fix since it involves a form of self-referencing. It might only effect the MeterStyle option, but I am not sure about that.
For now you may have to go with your workaround.
-Brian
PS - It's a good idea to use different quotes when nesting quoted items.
Example:
Original version: [&Sc:Repl('[&Sc:Chk('#CURRENTSECTION#','SomeOption')]','MyVal','| YetAnotherStyle')]
Better version: [&Sc:Repl("[&Sc:Chk('#CURRENTSECTION#','SomeOption')]",'MyVal','| YetAnotherStyle')]
What is happening is while the meter is first setting up, it calls a custom lua function (from your MeterStyle). This function in turn calls the same meter's GetOption function, which in turns parses the MeterStyle of the same meter.....which in turn calls the lua script again....and again and again.
Basically an endless loop is happening and the program runs out of stack space and crashes.
Honestly, I have no idea if this is possible to fix since it involves a form of self-referencing. It might only effect the MeterStyle option, but I am not sure about that.
For now you may have to go with your workaround.
-Brian
PS - It's a good idea to use different quotes when nesting quoted items.
Example:
Original version: [&Sc:Repl('[&Sc:Chk('#CURRENTSECTION#','SomeOption')]','MyVal','| YetAnotherStyle')]
Better version: [&Sc:Repl("[&Sc:Chk('#CURRENTSECTION#','SomeOption')]",'MyVal','| YetAnotherStyle')]
Statistics: Posted by Brian — Today, 5:45 am — Replies 3 — Views 105