ofxUICanvas to ofxUISuperCanvas random errors and not showing 1st label name

Hi, I am trying to “port” all the gui of my project from ofxUICanvas to ofxUISuperCanvas.
I have like 5 pannels defined in ‘setup()’ like that:

// GUI LABS:
void setGUIkitsLabs();
ofxUICanvas *guiKitsLabs;

// GUI CAMERA:
void setGUIcamera();
ofxUICanvas *guiCamara;
...

so I ‘switched’ to:

// GUI LABS:
void setGUIkitsLabs();
ofxUISuperCanvas *guiKitsLabs;

// GUI CAMERA:
void setGUIcamera();
ofxUISuperCanvas *guiCamara;
...

Previously I defined each ofxUICanvas on each function like that:

void ofApp::setGUIkitsLabs()
{
    float dim = 22;
    //float xInit = OFX_UI_GLOBAL_WIDGET_SPACING;
    float xInit = 3; // el margen vertical inicial es de 4px(?)
    float length = 153-xInit; // ancho dnlb=153

    // CREATE CANVAS:
    guiKitsLabs = new ofxUICanvas( 160, 0 , (length+(2.0*xInit)), 500 );

    //--
    guiKitsLabs->drawOutline();
    guiKitsLabs->setColorOutline(ofColor(0,0,255));

    // FONTS:
    guiKitsLabs->setFont("GUI/NettoOT.ttf");
    guiKitsLabs->setFontSize(OFX_UI_FONT_LARGE, 9);
    guiKitsLabs->setFontSize(OFX_UI_FONT_MEDIUM, 7);
    guiKitsLabs->setFontSize(OFX_UI_FONT_SMALL, 6);

    // ADD WIDGETS
...
    guiKitsLabs->addWidgetDown(new ofxUILabelButton("SAVE LAB", false, (length/2.0-xInit), dim, OFX_UI_FONT_SMALL));
    guiKitsLabs->addWidgetDown(new ofxUILabel("|NETWORK SERVER", OFX_UI_FONT_MEDIUM));
    guiKitsLabs->setWidgetFontSize(OFX_UI_FONT_SMALL);
    guiKitsLabs->addLabelButton("UPLOAD", false, (length/2-xInit));
    guiKitsLabs->setWidgetPosition(OFX_UI_WIDGET_POSITION_RIGHT);
    guiKitsLabs->addLabelButton("DOWNLOAD", false, (length/2-xInit));
...      
    //--

    // LISTENER :
    ofAddListener(guiKitsLabs->newGUIEvent, this, &ofApp::guiEvent);
}

But now, I get some problems when trying to ‘switch’ or convert my code to ofxUISuperCanvas like this:

void ofApp::setGUIkitsLabs()
{
    float dim = 22;
    //float xInit = OFX_UI_GLOBAL_WIDGET_SPACING;
    float xInit = 3; // el margen vertical inicial es de 4px(?)
    float length = 153-xInit; // ancho dnlb=153

    // CREATE SUPERCANVAS    
    guiKitsLabs = new ofxUISuperCanvas("|kits-LABS ");
    //or: guiKitsLabs = new ofxUISuperCanvas("|kits-LABS", OFX_UI_FONT_LARGE);

    guiKitsLabs->setWidgetFontSize(OFX_UI_FONT_LARGE);
    guiKitsLabs->setGlobalCanvasWidth(length + (2.0 * xInit));

    //--
    
    guiKitsLabs->drawOutline();
    guiKitsLabs->setColorOutline(ofColor(0,0,255));
    
    // FONTS:
    guiKitsLabs->setFont("GUI/NettoOT.ttf");
    guiKitsLabs->setFontSize(OFX_UI_FONT_LARGE, 9);
    guiKitsLabs->setFontSize(OFX_UI_FONT_MEDIUM, 7);
    guiKitsLabs->setFontSize(OFX_UI_FONT_SMALL, 6);

    // ADD WIDGETS
...
    guiKitsLabs->addWidgetDown(new ofxUILabelButton("SAVE LAB", false, (length/2.0-xInit), dim, OFX_UI_FONT_SMALL));
    guiKitsLabs->addWidgetDown(new ofxUILabel("|NETWORK SERVER", OFX_UI_FONT_MEDIUM));
...etc    
    //

    // SET SUPERCANVAS:
    guiKitsLabs->setPosition(160, 0);
    guiKitsLabs->setDimensions(length, 500);
    guiKitsLabs->autoSizeToFitWidgets();

    //--
    
    // LISTENER:
    ofAddListener(guiKitsLabs->newGUIEvent, this, &ofApp::guiEvent);
}

I tried also to create the supercanvas similar to the canvas way too:

guiKitsLabs = new ofxUISuperCanvas("|kits-LABS ", 160, 100, (length+(2.0*xInit)), 500, OFX_UI_FONT_LARGE);

That way should be nice because then I don’t need to define dimensions and so on at the end of the funtions.

THE PROBLEMS:

  • I get crashes randomly when starts. Sometimes take more time to open the app, or maybe I must to recompile again…
  • Sometimes it compiles fine and sometimes I get errors. errors screenshot
    I can only see something related to trueType fonts… Maybe I need to define the fonts and sizes ‘globally in setup()’?
  • Sometimes the first line with the tittle ("|kits-LABS ") of the ofxUISuperCanvas didn’t shows; also randomly… (random size of the font too)

Any idea of where to start looking on?

could be something related to the use of ’ | ’ character?
… anyway is working fine with ofxUICanvas.

I also tried to change the widget and the canvas names, made a project clean, reopened the project or disabled the xml settings loading.

I found this related open issues o the ofxUI Github:
https://github.com/rezaali/ofxUI/issues/223
https://github.com/rezaali/ofxUI/issues/167