Hi, I’m working on a project that has several graphic circles on the F.Mask layer as part of the user interface (it’s meant to show up as a silver ring for visual effect).
When I plot the gerber files and check them in gerbview the graphic circles do not show up on the F.Mask layer. They are 0.5mm line thickness with a variety of diameters.
My board is pretty complex and contains a lot of detail on the silkscreen and soldermask layer. It has trouble rendering in the 3-D viewer of PCBnew.
I’m wondering if this is just a rendering error in gerbview, or if I’ve done something incorrect with my export settings which is causing the graphic circles to be left out. Can anyone advise on this?
I have some vague memories with problems with circles somewhere in KiCad.
I also seem to remember something about a bug and fixed a long time ago.
Are you using the current KiCad V5.1.5 ?
I’m using 5.1.2, haven’t had a reason to update to 5.15 and don’t necessarily want to do that in the middle of a complex project. Seems like this issue is from back in 2015 so it seems like it would have been solved by now but maybe not?
So the um… F.Mask file is too large for online gerb viewers . This is kind of an art project so that layer contains a bunch of graphics information. Kind of pushing the limits of the software here, but that’s part of the fun.
When I export the circles by themselves in a separate layer they show up in the online viewers.
When I open this project in gerbview I get the following error messages:
Why don’t you just give the files (KiCad project) here as an attachement, or if it’s too large, in some file share service? Somebody here could test it. The bug report would now inevitably be inaccurate because you have two problems: circles not showing and out of (graphics hardware) memory. They may be unrelated.
I do not give myself much hope with opening a 301 MiB Gerber file.
Just out of curiosity (and against better judgement) I did try to open it in GerbView. Which resulted in me resetting my PC 23 minutes later.
I have a 12 year old Dualcore with a measely 4GB of ram.
Opening the file in Geany (my text editor) is a nice stress test, and I can even scroll though the 15 million lines of text without effort.
Files of this size often are badly formed, for example with excessive small unviewable details or even blunt file errors. I do not know if this is true in this case, but I do see repetition of coordinates for example:
lines 815910 and 815911 are the same, and I see this throughout the file.
The 2nd block (starting at line 815907) is a square with the end point the same as the beginning, but i’m not sure what the repetition of the coordinates on those other lines signify.
After that, I took the first 5000 lines of F.Mask, put it in a separate file and opened it in GerbView. I see 9 concentric circles and some small stuff in the lower right corner.
This handfull of pixels is 100kiB of the file.
Each pixel seems to be a square polygon which quite confirmes my suspicions of an extremely inefficient way of doing things.
There must be much better ways to import the same artwork with higher quality and less filesize into Pcbnew?
How repetitive is your border pattern?
If it’s highly repetitive, then re-tracing a bit of it in a vector format and making an array out of it seems like a good idea.
How did you make the artwork? What tools did you use to convert?
Are you aware of svg2shenzhen?
Dumping big bitmaps into a vector program is almost a recipe for a disaster waiting to happen. Even if you manage to make it with KiCad, I would not be surprised if a PCB manufacturer refuses to try to make it.
In one of my other experiment with this file I took the first part and the last part of F_Mask, (Edited with a text editor)
Now I have a gerber file of less than 3kiB that crashes Gerbview when I try to open it. The file itself may be ill formed, but Gerbview crashes with the message:
Segmentation fault (core dumped)
That reeks of something that should not happen.
Is a (possibly or likely) ill formed file valuable for a crash report if it (reliably?) crashes Gerbview?
Damn svg to shenzen looks great, I’m def going to check out using that for future designs. Thanks for the tip.
Been using img2mod by wayneandlayne, which just renders pixels as squares on the graphics layer, which I know is a pretty inefficient way of doing it, but this is just an experiment for an artistic project, so its mostly worked well enough.