Skip to content

Toponaming: Migration dialog gets triggered even after migrating to 1.1. #26690

@drwho495

Description

@drwho495

Problem description

Sometimes, FreeCAD will ask you to migrate a file that has already been migrated in the latest version of a program if said file has some specific objects (like an AdditivePipe.)

This issue happens because of inconsistencies in how StringHashers are saved; sometimes a hasher can be added to an object that has an empty Element Map. When that happens, the program will not save that object with that String Hasher.

Workbench affected?

Core (App, Gui,...)

Steps to reproduce

  1. Open the file in the latest version of 1.2.
  2. Press "Yes" if prompted to migrate.
  3. Save and re-open.

Expected behavior

The program should only prompt to migrate the file once.

Actual behavior

The program prompts to migrate the file every time it is loaded.

Development version About Info (in Safe Mode)

OS: Ubuntu 24.04.2 LTS (ubuntu:GNOME/ubuntu-xorg/xcb)
Architecture: x86_64
Version: 1.2.0dev.20251230 (Git shallow) AppImage
Build date: 2025/12/30 17:40:39
Build type: Release
Branch: grafted,grafted
Hash: f5759e580b6330906beca12b4be419b030a088ab
Python 3.11.14, 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: English/United States (en_US)
Navigation Style/Orbit Style/Rotation Mode: Gesture/Rounded Arcball/Drag at cursor
Stylesheet/Theme/QtStyle: OpenLight.qss/OpenLight/
Logical DPI/Physical DPI/Pixel Ratio: 96/161.377/1
Installed mods: 
  * A2plus 0.4.68
  * Render 2024.12.15 (Disabled)
  * reload 0.2.0
  * FeedsAndSpeeds 0.6.0
  * ArchTextures
  * Assembly3 0.12.2
  * SaveAndRestore 0.2.1
  * CadbaseLibrary 2.0.0
  * Behave-Dark-Colors 0.1.1
  * SearchBar 1.0.2
  * Design456 0.0.1
  * lattice2 1.0.0
  * WebTools 1.0.0
  * Manipulator 1.5.7
  * toSketch 1.0.1
  * Curves 0.6.60
  * POV-Ray-Rendering
  * Assembly4 0.50.19-dev
  * cadquery-freecad-workbench 2.1.0
  * MnesarcoUtils 0.2.16
  * FreeCAD-Ribbon-v.1.9.1.9 1.9.1.9 (Disabled)
  * Ondsel-Lens 2024.11.29.01 (Disabled)
  * freecad.gears 1.3.0
  * ExplodedAssembly
  * TNamingPlayground
  * fasteners 0.5.37
  * FreeCAD-Telemetry 1.0.0beta (Disabled)
  * QuickMeasure 2022.10.28
  * FreeCAD-Ribbon 1.9.1.1
  * Channels 0.1.0.dev2
  * Movie 2025.1.4
  * assembly2
  * sheetmetal 0.7.55
  * chrono-preprocessor-main
  * Freecad-Built-in-themes-beta 1.2.2
  * OpenTheme 2024.9.1
  * FreecadDiscordPresence 1.0.3

Last known good version (optional)

weekly-2025.12.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ConfirmedThe issue was confirmed by othersTopic: ToponamingToponaming bug also existing in realthunders LS3 branchType: BugThis issue or PR is related to a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions