-
Notifications
You must be signed in to change notification settings - Fork 99
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
Kicad generated drill file ==> bad_alloc #397
Comments
Do you have a sample drill file and command line that I can try so that I can see the error, too? |
I do, here the command used to call pcb2gcode : Here's my "project" test |
Ah yeah, I see that, too! I'll take a look, sorry to keep you waiting! |
How did KiCad select no tool? Strange. I suppose that I can work around it. |
This can happen if there are no holes to drill. This fixes pcb2gcode#397
Hellow everyone, minor bug here
I'm using
Using a drill file generated from KiCad, the drill file creation process crash with a bad_alloc.
the crash occur at the line
What happend?
For some reason, gerbv return me the default tool. The default tool of the gerbv has "drill_unit" = NULL
So the string function crash ;)
I used gerbv version
What did you expect to happen:
I thinks that gerbv should give a non null unit tools by defaukt but I thinks too that the software should manage the exception better.
either by ==> throwing an identified error telling the user that his drill file containe any or default tool.
or by not crashing and not adding the default tool to the list of tools available (that's how I patched mine but I think the first way is cleaner)
In any Case, a big printf that warn the user that for any reason gerbv returned his default tool is welcome
I hope I've helped.
By the way thanks for the hard work given :) that's great. And have a good day
The text was updated successfully, but these errors were encountered: