Can't run Touchy with custom hal file

More
28 Aug 2021 13:43 - 28 Aug 2021 13:46 #219001 by envyvan
Hi Forks,

I try to swith my gui from AXIS to Touchy, I can run the Touchy with original core_sim.hal for simulation.
But after I swith to my custom hal file,  It will show error message below.
If anybody can help would be appreciate.

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.8.1
Machine configuration directory is '/home/cnc/linuxcnc/configs/sim.touchy'
Machine configuration file is 'touchy.ini'
INIFILE=/home/cnc/linuxcnc/configs/sim.touchy/touchy.ini
VERSION=1.1
PARAMETER_FILE=sim.var
TASK=milltask
HALUI=halui
DISPLAY=touchy
COORDINATES=X Y Z
KINEMATICS=trivkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./config.hal
Starting TASK program: milltask
Running HAL command: loadusr gladevcp --always_above -c touchy_test touchy_test_panel.glade
Starting DISPLAY program: touchy
Issuing EMC_TRAJ_SET_TERM_COND --      (  +222,+24,    +0,    +2,0.000000,)
Issuing EMC_TRAJ_SET_G5X --      (  +224,+88,    +0,    +1,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,)
Issuing EMC_TRAJ_SET_G92 --      (  +227,+88,    +0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,)
Issuing EMC_TRAJ_SET_ROTATION --      (  +226,+24,    +0,0.000000,)
task: main loop took 0.011785 seconds
task: main loop took 0.017179 seconds
Issuing EMC_TRAJ_SET_TELEOP_ENABLE --      (  +230,+16,    +1,    +1,)
Issuing EMC_TASK_PLAN_SET_BLOCK_DELETE --      (  +518,+16,    +2,\000,)
Issuing EMC_TASK_PLAN_SET_OPTIONAL_STOP --      (  +517,+16,    +3,\000,)
Issuing EMC_TASK_PLAN_CLOSE --      (  +514,+12,    +4,)
Issuing EMC_TASK_PLAN_OPEN --      (  +506,+268,    +5,/tmp/tmpg0DlWA,)
Issuing EMC_TRAJ_SET_MAX_VELOCITY --      (  +207,+24,    +6,1.666667,)
ini /home/cnc/linuxcnc/configs/sim.touchy/touchy.ini
COORDINATES = XYZABCUVW
TOUCHY postgui filename: touchy_postgui.hal
Shutting down and cleaning up LinuxCNC...
task: 3404 cycles, min=0.000760, max=0.017179, avg=0.001284, 2 latency excursions (> 10x expected cycle time of 0.001000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
/usr/bin/touchy:79: GtkWarning: _gdk_drawable_get_source_drawable: assertion 'GDK_IS_DRAWABLE (drawable)' failed
  pix = gtk.gdk.pixmap_create_from_data(None, pix_data, 1, 1, 1, color, color)
touchy_postgui.hal:9: Pin 'axis.x.jog-counts' was already linked to signal 'jog-counter'
1577
1601
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

I also attached the linuxcnc.report file.

 
Attachments:
Last edit: 28 Aug 2021 13:46 by envyvan.

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

More
28 Aug 2021 16:51 #219023 by cmorley

touchy_postgui.hal:9: Pin 'axis.x.jog-counts' was already linked to signal 'jog-counter'

Right near the bottom it tells you the error.
Touchy also loads it's own postgui hal file named touchy.hal
That file must be present but it can be empty.
The following user(s) said Thank You: envyvan

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

More
29 Aug 2021 12:47 #219096 by envyvan
Got it fix, Thanks.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum