Random Blank Menu Tree in Ignition Perspective workstation (v8.1.47) – Need Root Cause and Solution

I looked at the script and there's nothing I can debug given your custom logger. (You should also fix your posted script's formatting--Please see Wiki - how to post code on this forum).