Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

ofxUICanvas::setVisible crashes in latest build #250

Closed
genekogan opened this issue Jun 26, 2015 · 4 comments
Closed

ofxUICanvas::setVisible crashes in latest build #250

genekogan opened this issue Jun 26, 2015 · 4 comments

Comments

@genekogan
Copy link

I'm getting runtime errors when toggling visibility of a canvas -- only in the most recent nightly builds, not in 0.8.4. So presuming it may be an issue for 0.9.

void ofApp::setup(){
    gui = new ofxUICanvas("hello");
}
void ofApp::update(){
}
void ofApp::draw(){
}
void ofApp::keyPressed(int key){
    if (key=='1') {
        gui->toggleVisible();
    }
}

screen shot 2015-06-26 at 5 06 14 pm

@rezaali
Copy link
Owner

rezaali commented Jun 27, 2015

thanks for letting me know, ofxUI needs a lot of love, will try to update it this weekend for OF 0.9

@genekogan
Copy link
Author

awesome!
can i also alert you to this issue i opened some time ago which may be related?
ofxUI often crashes the app if you try to remove widgets on mouse clicks (usually because it attempts to access the mouseReleased function of a widget which was deleted while the mouseReleased iterator is still running.
this makes it difficult to regenerate canvases, which would be a very useful feature. this is the only major issue i often encounter when using it, otherwise it's very stable.

@rezaali
Copy link
Owner

rezaali commented Jun 29, 2015

@genekogan thanks! So the bug is fixed in the develop branch (working on updating the examples too), can you make another issue regarding the mouseReleased function / delete widget crash.

Commit: 576bef8

@rezaali rezaali closed this as completed Jun 29, 2015
@genekogan
Copy link
Author

awesome, thanks!
i already made that issue some time ago -- it is here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants