gladevcp command for testing error mmap tool data not available, continuing

More
16 Jan 2023 11:40 #262116 by JetForMe
I've managed to get a reasonable 2.9/master build running and I'm able to use Glade 3/GTK+3 to work on VCPs. The docs said I could test my panel by executing gladevcp on the command line, and that does display my panel and widgets, but also has an error that I'm not sure how to interpret or correct. Since it refers to tool data, something my panel will be manipulating, I wanted to make sure I dealt with it:
$ gladevcp -u mypanel.py mypanel.ui
[GladeVCP][INFO]  Logging to: /home/rmann/gladevcp.log (logger.py:107)
tool_mmap_user(): file open fail: No such file or directory
tool_mmap_user(): no mmap file,continuing
mmap tool data not available, continuing emc/usr_intf/axis/extensions/emcmodule.cc

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

More
17 Jan 2023 01:52 #262204 by cmorley
Not an error. You can ignore it.
It's got to do with trying to connect to a tool database.

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

More
17 Jan 2023 02:30 - 17 Jan 2023 02:43 #262208 by JetForMe
Please tell me more. All of this work I'm doing is around tool libraries, so I'm very curious to learn about these tool databases.
Last edit: 17 Jan 2023 02:43 by JetForMe.

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

More
More
17 Jan 2023 03:03 #262210 by JetForMe
Oh that’s great! Alas, the demo seems to have some issues:
703 18:59: db_demo/ (2.9) $ linuxcnc db_ran.ini 
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/rmann/linuxcnc/configs/sim/axis/db_demo'
Machine configuration file is 'db_ran.ini.expanded'
Starting LinuxCNC...
====Waiting for v2.1 version reply from ./db_ran.py
execv fail: Bad address
!!!!!db_init: fork FAIL
FORK: Bad address

1080309 IO::tooldata_db_init() FAIL


tooldata_load: Failed to load tooldata from database

!!!! db_version MISMATCH require:v2.1 received:emc/iotask/ioControl.cc 786: 

1080308 IO::tooldata_db_init() FAIL


tooldata_load: Failed to load tooldata from database

emc/iotask/ioControl.cc 786: can't load tool table.
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
Found file(LIB): /home/rmann/linuxcnc/lib/hallib/basic_sim.tcl
setup_kins: cmd=loadrt trivkins coordinates=XYZABCUVW
…

/tmp/db_ran-file gets created, and I can run the tool directly:
780 18:55: db_demo/ (2.9) $ ./db.py
./db.py: starting(random_toolchanger) n_pockets = 15
./db.py: init_tools(): tfirst=10 tlast=19
v2.1
./db.py: 

NOTE: Terminal command to monitor database file:
     $ watch -c -n 1 cat /tmp/db_ran_file

./db.py: **Start: tool_modify_task
./db.py: **Active threads:['tool_modify_task']
./db.py: **Begin tool_modify_task tno=15 letter=A ct_max=2 wait_secs=5
./db.py: tool_modify_task: tno=15 A=0.100
./db.py: tool_modify_task: tno=15 A=0.101
./db.py: **End tool_modify_task ct=2
./db.py: **Start: tool_update_task
./db.py: **Active threads:['tool_update_task']
./db.py: **Begin tool_update_task begin_tno=40 ct_max=2 wait_secs=5
./db.py: add_dbtool: ADD tno=40 pno=120
./db.py: add_dbtool: ADD tno=41 pno=121
./db.py: **End tool_update_task ct=2

But I can't load any tools in Axis. Tool file contents:
Every 1.0s: cat /tmp/db_ran_file                                                                                                                                                              debian: Mon Jan 16 19:03:19 2023

T0 P0
T10 P110 D0.10 Z0.10
T11 P111 D0.10 Z0.11
T12 P112 D0.10 Z0.12
T13 P113 D0.13 Z0.13
T14 P114 D0.14 Z0.14
T15 P115 D0.15 Z0.15 A0.101
T16 P116 D0.16 Z0.16
T17 P117 D0.17 Z0.17
T18 P118 D0.18 Z0.18
T19 P119 D0.19 Z0.19
T40 P120 D0.04 Z0.4
T41 P121 D0.041 Z0.41

; Recent (last 10) db history:
; Created /tmp/db_ran_file (init_tools)
; tno: 15 modified param A=0.100
; tno: 15 modified param A=0.101
; tno: 40 added   (add_dbtool)
; tno: 41 added   (add_dbtool)
The following user(s) said Thank You: rodw

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

More
17 Jan 2023 11:22 #262226 by rodw
Not sure of your environment but both the sims worked for me. I have no need for it but expected it to work cos I think it ws written by Dewey Garrett who is very precise with his work,,

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

More
18 Jan 2023 00:05 #262290 by phillc54
I had the same problem on an arm64 rip build but I noticed that Dewey pushed a change and that has fixed it for me.

github.com/LinuxCNC/linuxcnc/commit/f20a...d89a67faf1a5a45174ef
 

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

More
18 Jan 2023 01:12 #262297 by rodw

I had the same problem on an arm64 rip build but I noticed that Dewey pushed a change and that has fixed it for me.

github.com/LinuxCNC/linuxcnc/commit/f20a...d89a67faf1a5a45174ef

 

See, I told you he was precise! Precisely on time! :)
I am in awe of his work!

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

More
18 Jan 2023 01:22 #262298 by JetForMe
And that seems to have fixed things!

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

Moderators: HansU
Time to create page: 0.100 seconds
Powered by Kunena Forum