Open r-srinivas opened 7 years ago
disable_applet
does work correctly here. Did you modify the ARTIQ code at all to try to fix #629? Have you tried on Linux?
And is the first problem also on 2.0?
I didn't modify the code to try and fix the other issue. I'll try and fix it on linux. This problem has been on 2.0 but I didn't look into it in detail because I thought it was maybe from the custom applets we have, and aside from producing an error message on the log doesn't really do anything terrible.
Happens on 2.0 as well
ERROR:dashboard:quamash.QEventLoop:Task exception was never retrieved
future: <Task finished coro=<AsyncioParentComm._autoclose() done, defined at C:\
Anaconda3\envs\artiq-2016-09-27\lib\site-packages\artiq\protocols\pipe_ipc.py:11
8> exception=OSError(9, 'The handle is invalid', None, 6, None)>
Traceback (most recent call last):
File "C:\Anaconda3\envs\artiq-2016-09-27\lib\asyncio\tasks.py", line 239, in _
step
result = coro.send(None)
File "C:\Anaconda3\envs\artiq-2016-09-27\lib\site-packages\artiq\protocols\pip
e_ipc.py", line 120, in _autoclose
self.server[0].close()
File "C:\Anaconda3\envs\artiq-2016-09-27\lib\asyncio\windows_events.py", line
283, in close
pipe.close()
File "C:\Anaconda3\envs\artiq-2016-09-27\lib\asyncio\windows_utils.py", line 1
57, in close
CloseHandle(self._handle)
OSError: [WinError 6] The handle is invalid
Enabling and disabling big number applet.
disable_applet does work correctly here. Did you modify the ARTIQ code at all to try to fix #629? Have you tried on Linux?
I tried on the virtual machine as well and it doesn't seem to disable either. The applet runs and I can see the countdown from 9 to 0 but then it just stays at 0 and the applet is still enabled. I'm using the exact some code as you have in the examples as far as I can tell.
@r-srinivas @sbourdeauducq re-visit (for new Qt)?
Does this still occur?
Using artiq 3.0 on windows, when disabling an applet on the gui, it closed but generated this error in the log,
This happened with the big_number app and also the custom_applet.py example. Enabling and disabling the app generates this error most of the time, and can even lead to the dashboard crashing with this error message,
In addition, it seems the
disable_applet
command from theccb
doesn't seem to be working. Running the example code ,https://github.com/m-labs/artiq/blob/master/artiq/examples/master/repository/code_applet.py, should close the applet at the end and uncheck the box on the dashboard right? Neither of those things seem to happen. Maybe that's a separate, unrelated issue.