fritzing-app icon indicating copy to clipboard operation
fritzing-app copied to clipboard

Duplicate part bins

Open mMerlin opened this issue 5 years ago • 0 comments

Current Behaviour

Starting up Fritzing, I noticed that a bunch of the part bins were duplicated in the parts window.

duplicate part bins

Searching around, I found that the ~/.config/Frtizing/Fritzing.conf file (actually ~/.var/app/org.fritzing.Fritzing/config/Fritzing/Fritzing.conf for me, due to using flatpak version) had many entries for each of 3 different bins. Here is a partial extract.

70\location=more
70\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/WeMos.fzb
70\title=WeMos
71\location=more
71\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/dagu.fzb
71\title=Dagu
72\location=more
72\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/frc.fzb
72\title=FRC
73\location=more
73\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/WeMos.fzb
73\title=WeMos
74\location=more
74\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/dagu.fzb
74\title=Dagu
75\location=more
75\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/frc.fzb
75\title=FRC
76\location=more
76\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/WeMos.fzb
76\title=WeMos
77\location=more
77\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/dagu.fzb
77\title=Dagu
78\location=more
78\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/frc.fzb
78\title=FRC
79\location=more
79\path=/home/phil/Documents/data_files/fritzing-parts/bins/more/WeMos.fzb
79\title=WeMos

I do not know how those got there. A bug of some sort, but without any history on my machine to say when or how. Possible triggered by an unrelated system crash while Fritzing was running.

The manual fix is to exit Fritzing, then delete the duplicate references to the 'more' part bin files. They were almost all at the end (higher numbers), so all that was needed was to delete them. Care was needed to only delete the higher numbers. The entries are sorted "alpha" numerically, so entry "3" comes after entry "29". Needed to delete entries 27 through 82, but not entries 3 through 9, which were mixed in. Also needed to delete existing entry 25, and change 26 to 25, to get things back where they belong.

Build:

Version 0.9.4 (CD-498 2019-12-01) 64 [Qt 5.13.2]

Operating System:

Fedora 31 Workstation Editions

Steps to reproduce:

Unknown

Expected Behaviour

Fritzing should check for duplicate "[bins2]" entries, and get rid of them automatically at start-up. Before populating the Parts widget.

mMerlin avatar Jun 08 '20 06:06 mMerlin