Complex operations may crash KnobFS service

Support for KnobFS, share your experience and KnobFS modes.

Moderators: russ, Ralph

Post Reply
Message
Author
roland_lfor
Posts: 9
Joined: Thu Nov 10, 2022 6:55 pm

Complex operations may crash KnobFS service

#1 Post by roland_lfor »

Hi,

Some computations involving more than 1 action can crash the KnobFS service.
For example this one, taken from Mobiflight community preset, to use with the AS CRJ 500/700 to increase MDA or DH height:

Code: Select all

"minor_cw_code":	"(L:ASCRJ_LSP_HEIGHT_SEL) 10 + DNOR (>L:ASCRJ_LSP_HEIGHT_SEL) (L:ASCRJ_LSP_HEIGHT_SEL_CHANGE, Number) ++ (>L:ASCRJ_LSP_HEIGHT_SEL_CHANGE)"
The same code is executed flawlessly using the FSUIPC7 Wasm calculator code.

Thanks

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Complex operations may crash KnobFS service

#2 Post by Corjan »

Hi,


Yeah, I think I know why that happens...
Currently, only executor strings up to 128 characters are supported.

This limitation was set before KnobFS arrived, and back then 128 was enough.


Will add this to my TODO list. Expect this to be increased in the coming months. Will post here when I have a new version,

Corjan

roland_lfor
Posts: 9
Joined: Thu Nov 10, 2022 6:55 pm

Re: Complex operations may crash KnobFS service

#3 Post by roland_lfor »

Thanks!

EDIT: Tested a command of 126 chars, service do not crash anymore, but only the first operation is effectively done.
So there is probably another cause.

EDIT2: Inverted the 2 commands, now only the second works. Maybe a problem with "DNOR" or mixed operations

Post Reply