-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
2.9 Gmoccapy - wrong tool disable MDI mode #3129
Comments
Confirmed. First changing to a tool nr that is present in the tool table (Note the 'RUN' and 'IDLE' messages that point to GStat correctly sending messages about the interpreter mode changing first to run and then back to idle):
Then here when calling a non-existent tool nr (note the absence of 'RUN' and 'IDLE' ):
This seems to be a very similar issue as #3120. |
The idea being that with the G4 command and the following queue buster we have the interpreter_mode change to 'run' for long enough for the GStat module to sense the change and send a message to Gmoccapy before the interpreter ingests the 'T{0} M6' which causes the abort. |
I understand you, but I dont know, if G4 is clean solution. This problem is also in 2.9. Did you tested it in 2.9? |
It certainly seems the easiest solution but might need a comment in the code as to why this is needed. N.B. I find it quite surprising that 'self.command.wait_complete()' does not fix this (at least on my PC) which may be a bit of an indication that we may rely a bit too much on it. And yes this also fixes 2.9, tested. |
Actually, now that I think about it, the problem with 'self.command.wait_complete()' likely is that it blocks python execution and thus also blocks the GStat module. So during 'self.command.wait_complete()' an event driven GUI using GStat messages is basically blind. |
Thanks for researching the bug. I would like to ask @rmu75 for a comment/opinion. |
Thanks for finding all the bugs :) |
Yes |
I guess even worse is that the GStat module itself is blind. |
To Sigma1912: |
If I set wrong tool (tool is not in tooltable), then I cannot activate MDI windows. MDI mode is activated, but users cannot see it.
MDI.mp4
I entered G49 to rule out bugs related to AUTOMATIC_G43.
For better bug diagnosis, I made this PR:
#3123
The text was updated successfully, but these errors were encountered: