The trouble with these error codes is they are printed by a generic error function,
which just gives the function within which the error arose and the return value.

To get a proper log you need to wipe /var/log/linuxcnc.log before you start
sudo echo "" > /var/log/linuxcnc.log will do it
run with
DEBUG=5 machinekit

Then you will hopefully get a traceback and much better picture of what led to the error.

Any segfaults should have more info appearing in /var/log/dmesg

If there is a core dump into the PWD, so much the better.

The only downside to the extra logging, is that if you are doing long prints with a card that is short of space,
that could in itself cause problems.

See what you can come up with.

regards

On 22/03/17 09:26, 'Marco Negrini' via Machinekit wrote:
Hi all,
sometimes my machnekit crash while running, this is what happens:

suddently in the terminal, the machinekit process starts writing:

halcmd: hal_init() failed : -12
NOTE: rtapi module must be loaded

it happens more likely when i start a new print or when i resume (after pause) one.
while the terminal writes this the machine keep working correctly, but any halcmd command i try to use returns the error above

once i let this run for a while, it ended up with a seg fault and everything closed...

doing research i found post talking about the -22 error, but i don't think it is my case, or other post talking about problem starting machinekit, but, the first 2 o 3 prints end succesfully, so i think it is not a problem during the start.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to