{"action":"created","issue":{"url":"https://api.github.com/repos/machinekit/machinekit/issues/412","labels_url":"https://api.github.com/repos/machinekit/machinekit/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/machinekit/machinekit/issues/412/comments","events_url":"https://api.github.com/repos/machinekit/machinekit/issues/412/events","html_url":"https://github.com/machinekit/machinekit/issues/412","id":53232878,"number":412,"title":"GCode program fails with \"Unexpected realtime delay on RT thread 1\"","user":{"login":"ftkalcevic","id":1462773,"avatar_url":"https://avatars.githubusercontent.com/u/1462773?v=3","gravatar_id":"","url":"https://api.github.com/users/ftkalcevic","html_url":"https://github.com/ftkalcevic","followers_url":"https://api.github.com/users/ftkalcevic/followers","following_url":"https://api.github.com/users/ftkalcevic/following{/other_user}","gists_url":"https://api.github.com/users/ftkalcevic/gists{/gist_id}","starred_url":"https://api.github.com/users/ftkalcevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftkalcevic/subscriptions","organizations_url":"https://api.github.com/users/ftkalcevic/orgs","repos_url":"https://api.github.com/users/ftkalcevic/repos","events_url":"https://api.github.com/users/ftkalcevic/events{/privacy}","received_events_url":"https://api.github.com/users/ftkalcevic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/machinekit/machinekit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2015-01-02T00:35:01Z","updated_at":"2015-05-02T11:01:21Z","closed_at":null,"body":"As reported on the machinekit group (https://groups.google.com/d/msg/machinekit/NeZXwHa2FqU/BYlLLXJiRuEJ) linuxcnc fails repeatedly on the same line with...\r\n\r\n> 14: Unexpected realtime delay on RT thread 1 \r\n> emc/task/taskintf.cc 617: Error on axis 3, command number 248\r\n\r\nwhen running the gcode...\r\n\r\n```\r\nG21        ;metric values\r\nG90        ;absolute positioning\r\nG64 P0.1    ; path mode\r\n\r\nG92  A881.308240\r\n;TYPE:FILL\r\nG1 X-44.982000 Y16.959000 Z6.5 A881.308240 F4800\r\nG1 X-45.503000 Y16.439000 A881.318030 \r\nG0 X-45.012 Y16.364\r\nG1 X-44.416000 Y16.959000 A881.329230 \r\nG1 X-45.012000 Y16.364000 A881.340440 \r\nG0 X-45.011 Y15.799\r\nG1 X-43.851000 Y16.959000 A881.362260\r\nG1 X-45.011000 Y15.799000 A881.384090 \r\nG0 X-44.806 Y15.438\r\nG1 X-43.699000 Y16.545000 A881.404920 \r\nG1 X-44.806000 Y15.438000 A881.425740 \r\nM2\r\n```\r\n\r\nThis doesn't happen without the `G64 P0.1` command.\r\n\r\nMy machine is a lineardelta printer, using the lineardeltakins, but if I run with genkins, I get the same problem.  The hardware is a BeagleBoneBlack with CRAMPS interface.\r\n\r\nI tried to turn debug up and got a few more extra lines...\r\n\r\n```\r\nMotion id 10 took 0.028377 seconds (current 11)\r\njoint 0 -18.245 197.131 197.149\r\njoint 1 15.171 204.743 204.728\r\njoint 2 -11.522 157.982 157.993\r\njoint 3 0.490 0.029 0.028\r\njoint 0 -4.262 197.025 197.030\r\njoint 1 3.522 204.831 204.827\r\njoint 2 -2.698 157.915 157.918\r\njoint 3 0.114 0.032 0.031\r\njoint 0 -19.602 196.907 196.927\r\njoint 1 14.513 204.919 204.904\r\njoint 2 19.095 158.022 158.003\r\njoint 3 0.000 0.032 0.032\r\nMotion id 11 took 0.033792 seconds (current 12)\r\n14: Unexpected realtime delay on RT thread 1\r\njoint 0 0.000 198.630 198.630\r\njoint 1 0.000 203.835 203.835\r\njoint 2 0.000 159.385 159.385\r\njoint 3 0.000 0.384 0.384\r\nemc/task/taskintf.cc 626: Error on axis 3, command number 399\r\nMotion id 12 took 0.151054 seconds (current 0)\r\nNML_INTERP_LIST::append(nml_msg_ptr{size=12,type=EMC_TASK_PLAN_SYNCH}) : list_size=1, line_number=17\r\nemcTaskPlanClose() called at emc/task/emctask.cc:206\r\n```\r\n\r\n\r\nThe lines that start with \"joint n...\" are print statements in  taskintf.c:emcAxisUpdate showing: joint #, vel_cmd, pos_cmd, pos_fb.  That doesn't show much.  The only thing that looks suspicious is the line \"Motion id 12 took 0.151054 seconds\", (5 times longer than normal) but there is no error.\r\n"},"comment":{"url":"https://api.github.com/repos/machinekit/machinekit/issues/comments/98347670","html_url":"https://github.com/machinekit/machinekit/issues/412#issuecomment-98347670","issue_url":"https://api.github.com/repos/machinekit/machinekit/issues/412","id":98347670,"user":{"login":"strahlex","id":1467368,"avatar_url":"https://avatars.githubusercontent.com/u/1467368?v=3","gravatar_id":"","url":"https://api.github.com/users/strahlex","html_url":"https://github.com/strahlex","followers_url":"https://api.github.com/users/strahlex/followers","following_url":"https://api.github.com/users/strahlex/following{/other_user}","gists_url":"https://api.github.com/users/strahlex/gists{/gist_id}","starred_url":"https://api.github.com/users/strahlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strahlex/subscriptions","organizations_url":"https://api.github.com/users/strahlex/orgs","repos_url":"https://api.github.com/users/strahlex/repos","events_url":"https://api.github.com/users/strahlex/events{/privacy}","received_events_url":"https://api.github.com/users/strahlex/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T11:01:21Z","updated_at":"2015-05-02T11:01:21Z","body":"@sam0737 There is no fix at the moment that works. Playing with the parameters does not help.\r\n\r\nHowever, you can workaround this bug by just not using the `G64 P0.1    ; path mode` command. That works fine for me until we find a solution."}}