Error loading lcd
01 Aug 2016 21:48 #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 or Create an account to join the conversation.
02 Aug 2016 16:37 #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
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
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 or Create an account to join the conversation.
02 Aug 2016 22:50 #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
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 withloadrt 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
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 or Create an account to join the conversation.
02 Aug 2016 23:49 #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
But if you call setp lcd.00.page_num 4
you getrtapi_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 or Create an account to join the conversation.
Time to create page: 0.097 seconds