Large NGC File Crash

More
04 Dec 2022 11:09 - 04 Dec 2022 11:18 #258495 by MarcoGaspar
Hello,

When loading large ngc file (240 MB) linux cnc crash.

If i try loading the file disabling axis preview it say: "parse_file interp_error" and don't load the file.

Program file:    marcogaspar.net/linuxcnc/2002.ngc

 
 

File Attachment:

File Name: linuxcnc_report.txt
File Size:11 KB
Attachments:
Last edit: 04 Dec 2022 11:18 by MarcoGaspar.

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

More
05 Dec 2022 01:05 #258548 by andypugh
Replied by andypugh on topic Large NGC File Crash
I tried cutting the file down until it would open, but the limit seemed to be somewhere below 1 million lines (your code has 7.8 million lines)

However, looking in the kernel log I see:
[130829.056946] Out of memory: Kill process 2157 (axis) score 479 or sacrifice child
[130829.056960] Killed process 2157 (axis) total-vm:2229844kB, anon-rss:1887644kB, file-rss:0kB, shmem-rss:56kB
[130829.104866] oom_reaper: reaped process 2157 (axis), now anon-rss:0kB, file-rss:1040kB, shmem-rss:56kB

How much memory does your PC have? It is possible that more might help.

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

More
05 Dec 2022 01:27 #258550 by tommylight
Replied by tommylight on topic Large NGC File Crash
I can open it on my main PC, also GUI is very responsive despite the graphic card being at 90% load, i can zoom, move, pan and tilt, until it locks after about 3 minutes of playing around.
It does not lock if not messed with much, a bit of messing seems OK.
When it does lock, some processes have to be killed, ending some does not work.
Notice the screenshot with CPU/Memory usage, i watched the memory climb from 4.8 to 14GB while this was loading, took about 80 seconds.

Attachments:

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

More
05 Dec 2022 01:30 #258552 by andypugh
Replied by andypugh on topic Large NGC File Crash
I just doubled the memory of the VM I was testing in and managed to get the code to run (by turning off the preview at line 1 milllion)
At that point Axis was using 4GB of memory.

So it looks like if you increase system memory (maybe to 8GB?) and turn off the Axis preview then the code will run. If you already have that much memory then maybe look at closing other software (is the CAM software running on the same PC?)

But it might also be worth looking at changing the postprocessor settings to shrink the file size. The gode mainly contains of moves of around 50 microns in length.

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

More
07 Dec 2022 01:30 #258779 by tommylight
Replied by tommylight on topic Large NGC File Crash

I can open it on my main PC, also GUI is very responsive despite the graphic card being at 90% load, i can zoom, move, pan and tilt, until it locks after about 3 minutes of playing around.

Sorry, forgot to add, the 90% load on the graphic card is not from LinuxCNC, it is from mining ETC.

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

Time to create page: 0.230 seconds
Powered by Kunena Forum