- Posts: 27
- Thank you received: 2
Duplicate O word label error in version 2.6
- lorenzn
- Offline
- Junior Member
-
Less
More
8 years 3 months ago #113360
by lorenzn
Replied by lorenzn on topic Duplicate O word label error in version 2.6
There is no error if I don't edit the file.
The error will occur once for every change (inserting blank lines before o100). The second time I call the subroutine the error does not occur.
The error also does not occur if I toggle the e-stop and machine power buttons:
- machine is on
- edit file to add blank line to move o100 if line
- toggle e-stop and power
- call subroutine
- no error
The error will occur once for every change (inserting blank lines before o100). The second time I call the subroutine the error does not occur.
The error also does not occur if I toggle the e-stop and machine power buttons:
- machine is on
- edit file to add blank line to move o100 if line
- toggle e-stop and power
- call subroutine
- no error
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 3 months ago #113427
by andypugh
Replied by andypugh on topic Duplicate O word label error in version 2.6
This sounds like a problem with cacheing. I think that the interpreter might load a copy of the subroutine file, and it gets confused if you edit the file while the system is live.
I think this is strange, and incovenient, but probably not a major issue for most installations?
I think this is strange, and incovenient, but probably not a major issue for most installations?
Please Log in or Create an account to join the conversation.
- lorenzn
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 2
8 years 3 months ago #113431
by lorenzn
Replied by lorenzn on topic Duplicate O word label error in version 2.6
I suppose it's something to be aware of. In my case I was making frequent edits to the subroutine and calling it again. Now I know to toggle power or call the subroutine two times ignoring the error on the first call after the edit.
I wonder if this was the cause of the problem with the OP. They don't mention if the file was edited with the machine on. Even simply adding a comment line could trigger this error. The first call would be OK then adding a comment or some other edit could trigger the error on the second call.
I wonder if this was the cause of the problem with the OP. They don't mention if the file was edited with the machine on. Even simply adding a comment line could trigger this error. The first call would be OK then adding a comment or some other edit could trigger the error on the second call.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 3 months ago #113432
by andypugh
Replied by andypugh on topic Duplicate O word label error in version 2.6
I think it is worth raising a bug tracker for this, it looks like some check is flagging a false positive.
Can you confirm what version of LinuxCNC you are using? The OP says 2.6 but it is an old thread.
Can you confirm what version of LinuxCNC you are using? The OP says 2.6 but it is an old thread.
Please Log in or Create an account to join the conversation.
- lorenzn
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 2
8 years 3 months ago #113433
by lorenzn
Replied by lorenzn on topic Duplicate O word label error in version 2.6
I'm using 2.8.0~pre1 from March 19 2018.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 3 months ago #113434
by andypugh
Replied by andypugh on topic Duplicate O word label error in version 2.6
The following user(s) said Thank You: lorenzn
Please Log in or Create an account to join the conversation.
Time to create page: 0.167 seconds