Large DXF import causes unhandled exception

Hi,

I love the ability to import DXFs from the MCAD program. It is a wonderful feature to facilitate coordination between the PCB and mechanical system. I recently discovered when trying to import a very complicated DXF that there apparently is a limit in size before KiCad says, “nope!”. I got this:

image

If I take the time to remove some things from the model before exporting to DXF, I can get it down to a size that doesn’t crash it. I’m not sure where the breaking point really is.

I suppose I’d consider this a bug. If there’s a size limitation, then I would hope the software would tell me gracefully. But there is a workaround, so no big deal really. Just thought I’d point it out.

Please report this to the bug database, https://gitlab.com/kicad/code/kicad/-/issues, and attach an example file which causes this. A crash is always the highest priority even if there’s a workaround.

Why do you think this is triggered by the size of the DXF file?

It could be that KiCad chokes on some kind of drawing entity in the .DXF file that it can not handle. There are also a lot of dialects for .DXF files. Sometimes it helps to save in another .DXF dialect, or load the .DXF in another program and save it there.

What happens if you press “Ignore”?
If Kicad then can continue with a partially loaded .DXF file then that gives a indication of where it chokes.

I agree with eelik. Any bug that crashes KiCad is taken very seriously. If the bug can be reproduced with a small DXF file because of some unsupported drawing entity that would be a bonus in narrowing it down.

@paulvdh - my assumption was that it’s triggered by size of the DXF as that’s the only correlation I’ve been able to see.

If I press “Ignore”, I’m able to continue where I left off, i.e. KiCad doesn’t crash. “Retry” does nothing. “Abort” causes KiCad to close/crash.

I’ve only seen this happen with the large files. I’ll submit a bug to the database and include an offending DXF.

Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.