race on workspace startup
Hi Chris,
I'm finding that when I launch a workspace file with MWClient, sometimes it looks like the Python Client Bridge script runs before the MWEL is done loading, and so it doesn't initialize properly. I think you fixed some race like this before, is that right? I'm using the snapshot from 2021.01.08.
Mark
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Christopher Sta... on 16 May, 2022 02:56 PM
Hi Mark,
Yes, when loading a workspace that contains an experiment path, the client doesn't wait for the experiment to finish loading before launching the Python bridge or any other plugin window. I don't think this issue has come up before, which is surprising.
I will work on fixing this. In the meantime, you may be able to avoid the issue by adding a short wait at the start of your Python bridge script -- maybe a second or two, depending on how long your experiment takes to load.
Sorry about this!
Cheers,
Chris
2 Posted by mhisted on 16 May, 2022 03:12 PM
Thanks, Chris!
I have a strong feeling that you and I discussed this before, but perhaps my memory is broken on this. I think I'm overfilling it.
Mark
Christopher Stawarz closed this discussion on 01 Jun, 2022 01:57 PM.
Christopher Stawarz re-opened this discussion on 13 Jun, 2022 03:39 PM
Support Staff 3 Posted by Christopher Sta... on 13 Jun, 2022 03:39 PM
Hi Mark,
I'm looking at this now, and I'm having trouble understanding where this is causing problems for you. Can you tell me exactly how the script's initialization fails? Is it expecting a particular value for a variable and not seeing it?
Thanks,
Chris