- Posts: 149
- Thank you received: 0
Gmoccapy - spindle restarts at program stop
- HalaszAttila
- Topic Author
- Offline
- Premium Member
-
Less
More
2 years 10 months ago #288177
by HalaszAttila
Gmoccapy - spindle restarts at program stop was created by HalaszAttila
Hello,
I found a weird problem in the newest Linuxcnc (v2.9.1) with gmoccapy gui (3.4.6). The problem is with spindle signals. When a running program stops with Program Stop button from gmoccapy, or with halui.program.stop signal, the spindle does not stop (in the previous versions, on program stop, the spindle is stopped too). Better say, as you can -see on screenshot- the spindle stops a short time, and sets back again. I tested it on my own configs, and in simulations too, and in both cases the behavior is the same. If i press 5x-10x the physical button linked to halui.program.stop, 1x-2x stops the spindle, and does not restart it. If the spindle stopped, and press the Program Stop button again (phisical button -> halui.program.stop) the spindle started. It is very dangerous!!!
Has anyone encountered this error?I found another problem in gmoccapy:
forum.linuxcnc.org/gmoccapy/50994-gmocca...ack-commanded-actual
I found a weird problem in the newest Linuxcnc (v2.9.1) with gmoccapy gui (3.4.6). The problem is with spindle signals. When a running program stops with Program Stop button from gmoccapy, or with halui.program.stop signal, the spindle does not stop (in the previous versions, on program stop, the spindle is stopped too). Better say, as you can -see on screenshot- the spindle stops a short time, and sets back again. I tested it on my own configs, and in simulations too, and in both cases the behavior is the same. If i press 5x-10x the physical button linked to halui.program.stop, 1x-2x stops the spindle, and does not restart it. If the spindle stopped, and press the Program Stop button again (phisical button -> halui.program.stop) the spindle started. It is very dangerous!!!
Has anyone encountered this error?I found another problem in gmoccapy:
forum.linuxcnc.org/gmoccapy/50994-gmocca...ack-commanded-actual
Attachment not found
Please Log in to join the conversation.
2 years 10 months ago #288188
by Aciera
Replied by Aciera on topic Gmoccapy - spindle restarts at program stop
Yes, I can reproduce this in a sim config, I've had other issues with gmoccapy and qtdragon on some computers lately like this one:
github.com/LinuxCNC/linuxcnc/issues/2753
The problems seem to depend on the hardware and look like race conditions between the realtime and the non-realtime (ie gui) parts of linuxcnc. Axis Gui still seems to be solid.
Rather unsettling and difficult to troubleshoot I'm afraid.
[edit]
There are others as well:
github.com/LinuxCNC/linuxcnc/issues/2630
github.com/LinuxCNC/linuxcnc/issues/2753
The problems seem to depend on the hardware and look like race conditions between the realtime and the non-realtime (ie gui) parts of linuxcnc. Axis Gui still seems to be solid.
Rather unsettling and difficult to troubleshoot I'm afraid.
[edit]
There are others as well:
github.com/LinuxCNC/linuxcnc/issues/2630
Please Log in to join the conversation.
- HalaszAttila
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 149
- Thank you received: 0
2 years 10 months ago #288190
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
Thank you, then i will roll back to preveous version of linuxcnc. Unfortunately, because the new gmoccapy looks very good.
Please Log in to join the conversation.
- HalaszAttila
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 149
- Thank you received: 0
2 years 10 months ago #288200
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
Found one more error message.
When the program is loaded, and clicking on the white lines to search that line of program, sometime show this message. Clicking on OK, i can continue the work.
When the program is loaded, and clicking on the white lines to search that line of program, sometime show this message. Clicking on OK, i can continue the work.
Attachment not found
Please Log in to join the conversation.
2 years 10 months ago #288328
by zz912
Replied by zz912 on topic Gmoccapy - spindle restarts at program stop
Is it same bug?
github.com/LinuxCNC/linuxcnc/issues/2631
github.com/LinuxCNC/linuxcnc/issues/2631
Please Log in to join the conversation.
2 years 10 months ago #288334
by Aciera
Replied by Aciera on topic Gmoccapy - spindle restarts at program stop
This modification to 'lib/python/rs274/glcanon.py' seems to fix the buffer overflow on a recent build of version 2.9:
Attachment not found
Please Log in to join the conversation.
2 years 10 months ago #288335
by Aciera
Replied by Aciera on topic Gmoccapy - spindle restarts at program stop
Current content is:
As we only want to select a single line it seems wrong to keep increasing the buffer size.
Code:
try:
buffer = glRenderMode(GL_RENDER)
except OverflowError:
self.select_buffer_size *= 2
continue
break
As we only want to select a single line it seems wrong to keep increasing the buffer size.
Please Log in to join the conversation.
2 years 10 months ago #288336
by Aciera
Replied by Aciera on topic Gmoccapy - spindle restarts at program stop
Also
does not seem to catch the error in the first place.
Code:
except OverflowError:
does not seem to catch the error in the first place.
Please Log in to join the conversation.
2 years 10 months ago #288339
by Aciera
Replied by Aciera on topic Gmoccapy - spindle restarts at program stop
I have created a pull request:
github.com/LinuxCNC/linuxcnc/pull/2792/files
github.com/LinuxCNC/linuxcnc/pull/2792/files
Please Log in to join the conversation.
- HalaszAttila
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 149
- Thank you received: 0
2 years 10 months ago #289250
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
Hello,
is this Spindle Stop/Restart bug fixed in newest release (v2.9.2)?
is this Spindle Stop/Restart bug fixed in newest release (v2.9.2)?
Please Log in to join the conversation.
Time to create page: 0.063 seconds
