Cause: There is a cycle of submenu references in the module.
Action: Find and fix the cycles before generating. Use Expand All to help find cycles.