- Posts: 3410
- Thank you received: 0
Error loading lcd
10 years 2 months ago #78257
by BigJohnT
Replied by BigJohnT on topic Error loading lcd
I tested in Uspace, Preempt RT and it loaded without an error, so that looks good so far. I wonder why it worked in RTAI?
JT
JT
Please Log in to join the conversation.
10 years 2 months ago #78296
by newbynobi
Replied by newbynobi on topic Error loading lcd
I just tested and lcd does load without any error, so I went on and configured my fmt_strings and I found another serious bug
My fmt_strings has actually 4 pages, and I can call them with
setp lcd.00.page_num 0
setp lcd.00.page_num 1
setp lcd.00.page_num 2
setp lcd.00.page_num 3
But if you call setp lcd.00.page_num 4
you get
So all crashed, no more reaction etc.
Do you want me to open a issue in github?
Norbert
Code:
loadrt lcd fmt_strings="Tool %2d ZO %7.3f\nX Pos = %8.3f\nY Pos = %8.3f\nZ Pos = %8.3f |Line = %5d\nLength = %5d\nProgress = %3.1f | \n Machine in ESTOP| \n Machine ON\n but not homed"
setp lcd.00.page_num 0
setp lcd.00.page_num 1
setp lcd.00.page_num 2
setp lcd.00.page_num 3
But if you call setp lcd.00.page_num 4
you get
Code:
rtapi_app: caught signal 11 - dumping core
So all crashed, no more reaction etc.
Do you want me to open a issue in github?
Norbert
Please Log in to join the conversation.
10 years 2 months ago #78308
by BigJohnT
I would open an issue on github for sure. I probably have the hardware to test this (I should as a Mesa Dealer)
JT
Replied by BigJohnT on topic Error loading lcd
newbynobi wrote: I just tested and lcd does load without any error, so I went on and configured my fmt_strings and I found another serious bug
My fmt_strings has actually 4 pages, and I can call them withCode:loadrt lcd fmt_strings="Tool %2d ZO %7.3f\nX Pos = %8.3f\nY Pos = %8.3f\nZ Pos = %8.3f |Line = %5d\nLength = %5d\nProgress = %3.1f | \n Machine in ESTOP| \n Machine ON\n but not homed"
setp lcd.00.page_num 0
setp lcd.00.page_num 1
setp lcd.00.page_num 2
setp lcd.00.page_num 3
But if you call setp lcd.00.page_num 4
you get
Code:rtapi_app: caught signal 11 - dumping core
So all crashed, no more reaction etc.
Do you want me to open a issue in github?
Norbert
I would open an issue on github for sure. I probably have the hardware to test this (I should as a Mesa Dealer)
JT
Please Log in to join the conversation.
10 years 2 months ago #78312
by andypugh
I think lines 266 and 267 need to swap places:
github.com/LinuxCNC/linuxcnc/blob/master...omponents/lcd.c#L265
Or. possibly, an explicit range test on page_num before doing anything at all.
It notices the problem the first time through but then carries on regardless next thread cycle.
Replied by andypugh on topic Error loading lcd
newbynobi wrote: But if you call setp lcd.00.page_num 4
you getCode:rtapi_app: caught signal 11 - dumping core
I think lines 266 and 267 need to swap places:
github.com/LinuxCNC/linuxcnc/blob/master...omponents/lcd.c#L265
Or. possibly, an explicit range test on page_num before doing anything at all.
It notices the problem the first time through but then carries on regardless next thread cycle.
Please Log in to join the conversation.
Time to create page: 0.061 seconds
