Error loading lcd

More
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

Please Log in or Create an account to join the conversation.

More
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
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"
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
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.

More
02 Aug 2016 22:50 #78308 by BigJohnT
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
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"
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
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.

More
02 Aug 2016 23:49 #78312 by andypugh
Replied by andypugh on topic Error loading lcd

But if you call setp lcd.00.page_num 4
you get
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 or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum