-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s_initISET does not clean up #31
Comments
Hi Nick, This problem does not happen always and it will happen when you do not have a variable called 'vcSESSION' (or this variable is global and 'exist' function cannot detect it). I see the code structure get changed in dev branch and to be safe, I made this updates in branch rieke (see https://github.com/isetbio/isetbio/blob/rieke/isettools/scripts/s_initISET.m). If you really want it at this point, you could checkout this file to dev (I'm not sure where shall I put it actually). |
Thanks.
|
After Brian's new sceneGet, things have gotten a bit better but there is still an issue. If I run v_sceneFromRGB, it leaves windows open when it finishes. This is fine. a) v_sceneFromRGB has a call to ieInit in it. But when I run v_sceneFromRGB again, those windows are not closed by the call to ieInit (nor, I am pretty sure, by s_initISET). I think this is because ieInit is here being invoked from inside a function. b) The non-closing can cause some validation errors, we think, because addtional fields get added to structures as multiple versions of the gui windows pile up. Whether this happens or not depends on how figures were set during the runs that generated the validation data and during the validation run itself. I think that validations are working OK now because we always turn off figures when we invoke the validations from our high level scripts, but this issue could resurface in the future. c) If, after I run v_sceneFromRGB, I then type ieInit at the command line, the windows clear. Sometimes they clear the first time I do it, sometimes I have to run ieInit twice. Or at least, doing it twice works, and sometimes it has failed when I do it once. Maybe it has never worked with a single invocation at the command line. I am running 2014b. So, there is still something to figure out and fix here. |
a) I think you are right but I don't understand the issue. ieInit is very short, by the way. And the only function it calls is pretty short (ieMainClose). I will try to figure out why it only closes on the second call some time, but this will be hard to figure out. b) Right. c) I also get the 'ieInit works second, but not first, time' on other versions of Matlab. It often works the first time, but not always. Also puzzling to me. I will screw around after I get this damn review paper finished. |
ieInit doesn't work for the first time because the if-statement in line 13 The reason why it works when it's called twice is because in the first To fix this issue, we just need to remove the if-statement in line 13. However, making this fix will cause v_sceneFromRGB fail because it cleans To avoid further problems, I didn't make a commit for the fix mentioned Thanks Best, On Thu Jan 01 2015 at 10:09:08 AM Brian Wandell [email protected]
|
I am trying HJ’s suggestions on my computer, with one addition - I put a close all to get rid of the figures on the screen, too. I will see how that works for me for a while and then possibly subject you all to it. I am stopping for the night. Hopefully you all stopped long ago. Brian On Jan 2, 2015, at 1:47 PM, Haomiao Jiang [email protected] wrote:
Brian A. Wandell |
This may be a 2014b issue only. Not sure.
Example follows.
This does not happen always. For example it does not happen with
v_sceneReIllumination.m
The text was updated successfully, but these errors were encountered: