-
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
interp error in 2.9.3, started somewhere between 2.9.3-83-g1d5d02d836 and 2.9.3-2099-g9f5a1c8f50 #3174
Comments
My take on this is you should not be using the Secret Buildbot Debs at http://buildbot2.highlab.com/ for version 2.9. The current release 2.9.3 is set by a tag "v2.9.3" in git and the Debs are available on the official Linuxcnc repository. In summary. only use the secret Buildbot for 2.10 master branch and use the released Debs for 2.9.3 In my view, the developers got into some bad habits when we maintained two versions for such a long time. I don't understand why there has been a continual stream of commits to 2.9. It seems to be way more than bug fxes pending the release of 2.9.4. If that is required, we should have released 2.10 and get back to better code integrity. |
|
yes sim config for axis, files below: |
sudo apt install linuxcnc-uspace is this the correct release for lockdown 2.9.3 from apt? |
Yes. provided your /etc/apt sources files are set as per the install ISO defaults, otherwise you will get a very old version on Debian12 but a more current version (possibly 2.93) on yet to be released Debian13. (testing). |
changing tool numbers to something below 24 makes the error go away... is there some (new) limit how high tool number can be? |
that number seems to be a moving target and isn't repeatable, the first person who noticed it the threshhold was below 199, whe i tested it was below 105, so something fishy is happening i couldn't see or find. I spent 2 days thinking it was in our build trying to find where we broke to find there was no change that caused it. thats when we noticed it went away on different lcnc builds. |
If the problem was introduced between two commits then "git bisect" will
find the problematic commit pretty quickly.
(I might find time, but I have a lot on. Mainly at the moment I am getting
my late mother's house ready for sale. It was built around 1450...)
…--
atp
|
debugging this, I get
https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/rs274/interpret.py#L151 seems that code there assumes tool index = tool number. also, gcodemodule.cc needs to be fixed so comment is consistent with code around line 917 and exception is reported. |
I'm not able to find commit 9f5a1c8 but will try to search from v2.9.3 release tag. |
can't reproduce on 2.9 |
My tooltable (6 lines):
in the GCODE I have 'T6 M6' (which works) and later 'T7 M6' (which fails) Seems that 'idx' in that section of 'interpret.py' refers to the line in the tooltable. Debugging gives :
|
yes with some of rene's tool table refactoring something got lost. really confusing mix of tool number, pocket number and tool table index. something like
should do but I'm not sure that covers all cases. I will prepare a PR and try to include some test cases. |
does that change to tool 6 or to tool 220? or worse, change to tool 6 and apply offsets of tool 220? does it work on 2.9? |
Actual tool change seems not affected (displayed tool number and tool offsets are correct). I'm testing on master currently. |
Just checked out 2.9.3 and it works for me there. It seems that interpret.py 'change_tool(self, idx)' gets the correct line number. So something must have removed that looked which line in the tool table held the requested tool number. |
it should also work on tip of 2.9 branch. which raises the question what is going on in 2.9.3-2099-g9f5a1c8f50 whatever that is. |
I know, I'm puzzled as to why this bug would be reported on Version 2.9.3. |
I reported this or something very similar in my forum post “Inconsistent values from Versaprobe <https://forum.linuxcnc.org/qtvcp/54169-inconsistent-values-from-versaprobe> ” in mid October.
My opinion says that without a delimited tool table file its very confusing to manually add a record/row.
From: Sigma1912 ***@***.***>
Sent: Monday, November 11, 2024 10:12 AM
To: LinuxCNC/linuxcnc ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [LinuxCNC/linuxcnc] interp error in 2.9.3, started somewhere between 2.9.3-83-g1d5d02d836 and 2.9.3-2099-g9f5a1c8f50 (Issue #3174)
I know, I'm puzzled as to why this bug would be reported on Version 2.9.3.
—
Reply to this email directly, view it on GitHub <#3174 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABFIKPKFZAZA5H4ZCUB6W3L2ADJMPAVCNFSM6AAAAABRQOIOKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGUZTMNBZGE> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/ABFIKPNIJECUVEJTHNFDOED2ADJMPA5CNFSM6AAAAABRQOIOKWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUTELQKW.gif> Message ID: ***@***.*** ***@***.***> >
|
I don't see how that is remote similar -- can you please open a new issue if some problem still exists, and please post complete version info. thanks. |
I think that my point is, the tool table format changed. Perhaps my oversight but, I did note that
the previous code wrote out each and every “column” in the tool table whereas now, not all columns are written
to the table.
I didn’t see where there was a change in code but, like I said it might be my oversight.
Apologies for polluting the thread. 😊
From: Robert Schöftner ***@***.***>
Sent: Monday, November 11, 2024 1:24 PM
To: LinuxCNC/linuxcnc ***@***.***>
Cc: Andy (gardenweazel) Lewis ***@***.***>; Comment ***@***.***>
Subject: Re: [LinuxCNC/linuxcnc] interp error in 2.9.3, started somewhere between 2.9.3-83-g1d5d02d836 and 2.9.3-2099-g9f5a1c8f50 (Issue #3174)
I reported this or something very similar in my forum post “Inconsistent values from Versaprobe https://forum.linuxcnc.org/qtvcp/54169-inconsistent-values-from-versaprobe ” in mid October.
I don't see how that is remote similar -- can you please open a new issue if some problem still exists, and please post complete version info. thanks.
—
Reply to this email directly, view it on GitHub <#3174 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABFIKPIV3VRRTMHQMYW6WE32AD74HAVCNFSM6AAAAABRQOIOKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYHA3TMMBUHE> .
You are receiving this because you commented. <https://github.com/notifications/beacon/ABFIKPJ3EYZNWWUNPMI3HUT2AD74HA5CNFSM6AAAAABRQOIOKWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUTFAHRC.gif> Message ID: ***@***.*** ***@***.***> >
|
Just found the same problem here (although it does not produce an error): in 2.9: 'self.tool_list' contains the tool table line [0, 5, 4, 6, 2, 1, 3, 0] [edit] |
Here are the steps I follow to reproduce the issue:
py3dev@py3dev:~/linuxcnc/configs/sim.axis$ linuxcnc axis.ini
LINUXCNC - 2.9.3-2099-g9f5a1c8f50
Machine configuration directory is '/home/py3dev/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
linuxcncsvr (8811) emcsvr: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
milltask (8824) task: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
halui (8826) halui: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal
Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Found file(lib): /usr/share/linuxcnc/hallib/check_xyz_constraints.hal
Found file(REL): ./cooling.hal
USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed
note: MAXV max: 5.000 units/sec 300.000 units/min
note: LJOG max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
!!!emc/rs274ngc/gcodemodule.cc: parse_file() f=/home/py3dev/linuxcnc/nc_files/aa_error_test.ngc
!!!interp_error=1 result=2 last_sequence_number=16
It worked properly here: 2.9.3-83-g1d5d02d836
It shows error here: 2.9.3-2099-g9f5a1c8f50 (and possibly in between but i didn't test any of those)
I am using this Linux distribution and version (often, shown by
lsb_release -a
):Debian 12
I am using this kernel version (shown by
uname -a
):Linux py3dev 6.1.0-27-rt-amd64 1 SMP PREEMPT_RT Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
I am running ...
[X ] A binary version from linuxcnc.org (including buildbot.linuxcnc.org)
I am using this user interface (GUI) (e.g., AXIS, Touchy, gmoccapy, etc):
Axis gui
I am using this interface hardware vendor and chipset (e.g., parallel port, ethernet port, FPGA card):
sim
The text was updated successfully, but these errors were encountered: