Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engraving files are not loaded when greater than 10Mb #111

Closed
paulusjacobus opened this issue Jan 1, 2017 · 9 comments
Closed

Engraving files are not loaded when greater than 10Mb #111

paulusjacobus opened this issue Jan 1, 2017 · 9 comments

Comments

@paulusjacobus
Copy link

I am using cnc for laser engraving via an arduino uno with grbl. I noticed that cnc does not load bigger files than 10Mb. Is there a way to increase the size?

@mayhem2408
Copy link

What platform are you running? I haven't gone as large as 10Mb, but 5-6Mb files are very slow with my raspberry Pi struggling to keep up the data flow. Smaller files have no problem.

@paulusjacobus
Copy link
Author

Hi @mayhem2408 i use a windows 10 machine and i can not upload beyond 10 Mb files. They are big because of 10 bits pixel and 256 gray shades. I wonder if this is something that can be configured? Thanks

@cheton
Copy link
Collaborator

cheton commented Jan 4, 2017

Hi @paulusjacobus,

Could you attach a zip file containing your 10MB gcode examples? That will be useful for troubleshooting.

@paulusjacobus
Copy link
Author

Hi @cheton will do tonight when I get home. They are very simple rows of G1 Xn.n Yn.n Sn commands.

@paulusjacobus
Copy link
Author

paulusjacobus commented Jan 4, 2017 via email

@cheton
Copy link
Collaborator

cheton commented Jan 4, 2017

You can send the file to my email: cheton@gmail.com

@cheton
Copy link
Collaborator

cheton commented Jan 7, 2017

Hi @paulusjacobus,

The maximum upload file size is limited by the body-parser middleware:
https://github.com/cheton/cnc/blob/master/src/app/config/settings.base.js#L54

// https://github.com/expressjs/body-parser
'body-parser': {
    'json': {
        // maximum request body size. (default: <100kb>)
        limit: '10mb'
    },
    'urlencoded': {
        extended: true,
        // maximum request body size. (default: <100kb>)
        limit: '10mb'
    }
}

I will increase the upload file limit from 10mb to 100mb in the next version. That should resolve your issue.

BTW, I'm doing performance enhancements for loading large G-code files. This can significantly reduce the total loading time from 40+ seconds to 5~8 seconds using your 10MB example.

@paulusjacobus
Copy link
Author

paulusjacobus commented Jan 7, 2017 via email

@cheton
Copy link
Collaborator

cheton commented Jan 9, 2017

Fixed in v1.8.13

@cheton cheton closed this as completed Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants