Hi Viesturs, the problem is with the 'text template' property in hal_label1,2,3 in your glade file
for instance, hal_label1 has text template 'Range 1' - note there is no conversion specifier like %s, so it doesnt display a HAL pin value either which is why at runtime Python cant interpolate the HAL widget value into the text template, this is what the error says add a '%s' to these 'text template' properties in glade to hal_label1,2,3 and you're fine - Michael Am 14.03.2013 um 20:54 schrieb Viesturs Lācis: > Hello! > > I would appreciate, if somebody with gladevcp-related experience could > help me to understand, what is wrong with my gladevcp panel. It is > still a work-in-progress glade panel for something like HAL+glade type > of config - the machine has to measure length of different wood pieces > and count them up. So the meter is to show the actual length of > particular piece, measured by encoder module and then that table on > the right is supposed to show the different lengths and counted number > of each. > > The problem is that I can open the glade file with glade editor, save > it with .glade extension, try to load it and receive error on LinuxCNC > startup. > The error, when tried a sim/gladevcp-panel sample config with my glade > panel, is attached below. That sample config works correctly with the > default panel. > The glade panel file is here: > http://cutting.lv/fileadmin/user_upload/counter.glade > > The error message is this: > 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/realtime-2.6.32-122-rtai/modules/linuxcnc > LINUXCNC_CONFIG_DIR= > LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs > INIVAR=inivar > HALCMD=halcmd > LINUXCNC_EMCSH=/usr/bin/wish8.5 > LINUXCNC - 2.5.0 > Machine configuration directory is '/home/vie/linuxcnc/configs/gladevcp' > Machine configuration file is 'gladevcp_panel.ini' > INIFILE=/home/vie/linuxcnc/configs/gladevcp/gladevcp_panel.ini > PARAMETER_FILE=sim.var > TASK=milltask > HALUI=halui > DISPLAY=axis > 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 > Starting TASK program: milltask > Starting DISPLAY program: axis > **** GLADE VCP INFO: Not a libglade project, trying to load as a > GTK builder project > Xlib.protocol.request.QueryExtension > Xlib.protocol.request.QueryExtension > TCL error in asynchronous code: > > while executing > "163745060callit" > ("after" script) > Shutting down and cleaning up LinuxCNC... > Killing task linuxcncsvr, PID=1647 > Killing task milltask, PID=1702 > Removing HAL_LIB, RTAPI, and Real Time OS modules > Removing NML shared memory segments > Cleanup done > > Debug file information: > Can not find -sec MOT -var MOT -num 1 > Can not find -sec IO -var IO -num 1 > Can not find -sec LINUXCNC -var NML_FILE -num 1 > Can not find -sec EMC -var NML_FILE -num 1 > > (gladevcp:1710): libglade-WARNING **: Expected <glade-interface>. Got > <interface>. > > (gladevcp:1710): libglade-WARNING **: did not finish in PARSER_FINISH state > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/gladevcp/hal_widgets.py", line > 266, in <lambda> > lambda p: self.set_text(self.text_template % p.value)) > TypeError: not all arguments converted during string formatting > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/gladevcp/hal_widgets.py", line > 266, in <lambda> > lambda p: self.set_text(self.text_template % p.value)) > TypeError: not all arguments converted during string formatting > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/gladevcp/hal_widgets.py", line > 266, in <lambda> > lambda p: self.set_text(self.text_template % p.value)) > TypeError: not all arguments converted during string formatting > manual-example.hal:8: parameter or pin 'gladevcp.status' not found > /usr/bin/gladevcp:290: GtkWarning: GdkWindow 0x4000003 unexpectedly destroyed > gtk.main() > 1647 > PID TTY STAT TIME COMMAND > 1702 > PID TTY STAT TIME COMMAND > Stopping realtime threads > Unloading hal components > > Kernel message information: > [ 76.350523] I-pipe: Domain RTAI registered. > [ 76.350529] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. > [ 76.350532] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu > 4.4.3-4ubuntu5) . > [ 76.350562] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE > (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). > [ 76.350565] PIPELINE layers: > [ 76.350567] f8d56e20 9ac15d93 RTAI 200 > [ 76.350570] c085cb20 0 Linux 100 > [ 76.372412] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. > [ 76.372555] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with > RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. > [ 76.372560] RTAI[sched]: hard timer type/freq = APIC/12499678(Hz); > default timing: periodic; linear timed lists. > [ 76.372564] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq > = 2599959000 hz. > [ 76.372567] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. > [ 76.372638] RTAI[usi]: enabled. > [ 76.421976] RTAI[math]: loaded. > [ 76.557343] creating ladder-state > [ 78.780589] __ratelimit: 27 callbacks suppressed > [ 78.780594] gladevcp[1710]: segfault at 20 ip 065e7a59 sp bfb23900 > error 4 in libgtk-x11-2.0.so.0.2000.1[6469000+3cd000] > [ 81.182772] RTAI[math]: unloaded. > [ 81.213069] SCHED releases registered named ALIEN RTGLBH > [ 81.248310] RTAI[malloc]: unloaded. > [ 81.348023] RTAI[sched]: unloaded (forced hard/soft/hard > transitions: traps 0, syscalls 0). > [ 81.350343] I-pipe: Domain RTAI unregistered. > [ 81.350379] RTAI[hal]: unmounted. > > > Thanks! > > -- > Viesturs > > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users