PCB Libraries Forum Homepage
Forum Home Forum Home > PCB Footprint Expert > Questions & Answers
  New Posts New Posts RSS Feed - FPE Library Size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FPE Library Size

 Post Reply Post Reply
Author
Message
jayfrancis View Drop Down
New User
New User


Joined: 12 Jan 2015
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jayfrancis Quote  Post ReplyReply Direct Link To This Post Topic: FPE Library Size
    Posted: 19 Jan 2023 at 1:22pm
Hi,

Going from Library Expert to Footprint Expert, my library size has dramatically increased (roughly 50K-ish to over 150M).

Is this correct, or is something wrong with my library?

I use GitHub to save/track my changes (I know - the fpx isn't optimized for that, but at least I can match it up with other files I change).  Unfortunately, GitHub has a 100MB size limit :-(

--Jay
Back to Top
Back to Top
Tom H View Drop Down
Admin Group
Admin Group
Avatar

Joined: 05 Jan 2012
Location: San Diego, CA
Status: Offline
Points: 5718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tom H Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jan 2023 at 1:59pm
When your FPX library grows in size, it's mostly due to "Special Characters" as the FPX file is 100% ASCII. 

Open your old FPX file in Excel spreadsheet and find out where the issues are. 

If you clean up your FPX file in Excel, you need to copy the contents to Notepad.exe to convert the data back to ASCII. But we can do that for you. 

Send us your old FPX file and we'll check it.

Stay connected - follow us! X - LinkedIn
Back to Top
jayfrancis View Drop Down
New User
New User


Joined: 12 Jan 2015
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jayfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jan 2023 at 6:33pm
Thanks for your help Tom!

If anyone finds this thread - the culprit was a special character (TM symbol) in a component field.  Tom was able to clear the error and bring the library back to a healthy state.

--Jay

Back to Top
Ian S View Drop Down
Advanced User
Advanced User


Joined: 21 Aug 2014
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ian S Quote  Post ReplyReply Direct Link To This Post Posted: 20 Jan 2023 at 4:22am
Any chance you can add some code to check for special characters to prevent the FPX exponentially growing in size?

I've seen the issue a couple of times and ended up with an FPX of >250 MB.
Back to Top
Jeff.M View Drop Down
Admin Group
Admin Group


Joined: 16 May 2012
Location: San Diego
Status: Offline
Points: 477
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeff.M Quote  Post ReplyReply Direct Link To This Post Posted: 20 Jan 2023 at 9:45am
There is already code that's supposed to prevent that.
If you can provide an example of some text you've added to your fpx file that has caused your problem, we'll review the prevent code.
Thanks for the report...
Stay connected - follow us! Twitter - LinkedIn
Back to Top
Ian S View Drop Down
Advanced User
Advanced User


Joined: 21 Aug 2014
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ian S Quote  Post ReplyReply Direct Link To This Post Posted: 20 Jan 2023 at 10:11am
Hi Jeff,

I believe that my last issue was caused by file corruption, where a part with no special characters when added to the FPX has subsequently changed.

If it happens again, I'll provide an example.

Can the code be expanded to check the FPX file for the existence of non-ascii characters when it's opened, and capture potential corruption, rather than just at data entry?

Ian
 
Back to Top
Tom H View Drop Down
Admin Group
Admin Group
Avatar

Joined: 05 Jan 2012
Location: San Diego, CA
Status: Offline
Points: 5718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tom H Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jul 2023 at 12:11pm
The FPX file is ASCII. 

"Symbol Characters" are not allowed in an ASCII database. 

Do not use any special Symbols like these: 

® © ™ µ  ± 

Stay connected - follow us! X - LinkedIn
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.265 seconds.