Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

icons disappear from cache directory

Aperta
#267 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Inizia riproducendo gli errori relativi alle icone mancanti dopo una pulizia della cache di AddonManager/MacroIcons, quindi traccia il modo in cui gli aggiornamenti degli addon ripopolano quella directory. Il lavoro è completato quando la pulizia della cache e gli aggiornamenti degli addon non lasciano più icone referenziate mancanti durante l’avvio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is there an existing issue for this?
  • I have searched the existing issues
Problem description

I tried a few weekly builds for FC1.1. It frequently leads to error messages during startup related to cached icons, e.g.

Cannot find icon: /home/xyz/.cache/FreeCAD/Cache/AddonManager/MacroIcons/Macro_3D_Parametric_Curve.png
Cannot find icon: /home/xyz/.cache/FreeCAD/Cache/AddonManager/MacroIcons/Parametric_Curve_FP.svg
Cannot find icon: /home/xyz/.cache/FreeCAD/Cache/AddonManager/MacroIcons/FCTexture.png
Cannot find icon: /home/xyz/.cache/FreeCAD/Cache/AddonManager/MacroIcons/120px-FCBmpImportScreenshot.png
... quite a few more

Once I manually copied icons from other places around ~/.local/share/Freecad/Macro/ to this directory, but apparently the cache dir gets emptied from time to time and icons are not reinstalled even after updating the addons. It is however not fully empty, it contains BSpline3D_icon.xpm and Macro_CenterOfMass.svg.
Any idea why this happens or how to prevent it?

Why are the icons copied there, anyway? Isn't is more logical to keep them at the same space as the addon code?

Full version info
happened in several weekly builds over the last months


OS: openSUSE Tumbleweed (KDE/plasma6/xcb)
Architecture: x86_64
Version: 1.1.0dev.14555 (Git shallow) AppImage
Build date: 2025/09/12 03:41:38
Build type: Release
Branch: main
Hash: 952bff5b63a62b55a7ea1623edfb39e90dee2d4c
Python 3.11.13, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: C/Default (C)
Navigation Style/Orbit Style/Rotation Mode: Touchpad/Trackball/Drag at cursor
Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/fusion
Logical DPI/Physical DPI/Pixel Ratio: 96/127.628/1
Installed mods: 
  * Silk 0.2.0
  * FeedsAndSpeeds 0.6.0
  * kicadStepUpMod 11.7.7
  * Assembly4 0.60.2
  * fasteners 0.5.42
  * offline-documentation 1.0.0-alpha
  * MeshRemodel 1.10.38
  * LCInterlocking
  * parts_library
  * 3D_Printing_Tools
  * A2plus 0.4.68
  * 3DfindIT 1.2.0
  * EM 2.1.1
  * ExplodedAssembly
  * ThreadProfile 1.97.0
  * FrameForge-backup-before-zip-migration 0.1.3 (Disabled)
  * workfeature
  * Lithophane
  * FrameForge 0.1.5
  * Manipulator 1.6.3
  * lattice2 1.0.0
  * Defeaturing 1.2.9
  * Assembly3 0.12.2
  * InventorLoader 1.5.1
  * freecad.gears 1.3.0
  * CurvedShapes 1.0.13
  * Curves 0.6.70
  * frame 0.1.1
  * FEM_FrontISTR 0.2.0
  * fcgear 1.0.0
  * Pyramids-and-Polyhedrons
  * pyrate
  * OpticsWorkbench 1.2.2
  * CommandPanel
  * CamScripts
Subproject(s) affected?

None

Anything else?

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Lingua principale
Python
Stelle
20
Fork
32
Merge medio
1g 8h
PR unite (30g)
10

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FreeCAD/AddonManager

Tutte le issue di FreeCAD/AddonManager

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.