Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Document Windows ML VC++ runtime dependency and fix doc anchors

Anand Baburajanff0db4af0a9b
diff --git a/docs/docs/photos/faq/index.md b/docs/docs/photos/faq/index.md
index 36ebecfc21..363f8a2601 100644
--- a/docs/docs/photos/faq/index.md
+++ b/docs/docs/photos/faq/index.md
@@ -400,6 +400,7 @@ Jump to a category:
- [Why does my desktop app crash during large uploads?](/photos/faq/troubleshooting#desktop-large-uploads)
- [Why are my photo thumbnails missing or incorrect?](/photos/faq/troubleshooting#thumbnails)
+- [Why is ML stuck on Windows (or models never download)?](/photos/faq/troubleshooting#windows-ml-stuck)
- [Why aren't my watch folders syncing?](/photos/faq/troubleshooting#watch-folders-troubleshooting)
- [Can I upload from a network drive (NAS)?](/photos/faq/troubleshooting#nas)
- [Can I safely close the desktop app while it's uploading?](/photos/faq/troubleshooting#close-during-upload)
diff --git a/docs/docs/photos/faq/troubleshooting.md b/docs/docs/photos/faq/troubleshooting.md
index 33cc06d6e0..67366f28fc 100644
--- a/docs/docs/photos/faq/troubleshooting.md
+++ b/docs/docs/photos/faq/troubleshooting.md
@@ -255,6 +255,29 @@ Switch to a local profile, or exclude `%APPDATA%\ente\models\` from roaming sync
After making changes, quit the app completely, log out, and log back in to restart the ML pipeline.
+### Why is ML stuck on Windows (or models never download)? {#windows-ml-stuck}
+
+If ML does not progress, `%APPDATA%\\ente\\models\\` is never created, or logs show `ERR_DLOPEN_FAILED` for `onnxruntime_binding.node`, your Microsoft VC++ runtime is likely too old for the ONNX runtime bundled with Ente.
+
+**Root cause:**
+
+Recent ONNX Runtime builds on Windows require Microsoft VC++ runtime version `14.40+`. On some Windows 11 systems, an older VC++ runtime can still be installed.
+
+**Check your installed VC++ runtime version:**
+
+```powershell
+powershell -Command "(Get-Item 'C:\Windows\System32\vcruntime140.dll').VersionInfo.FileVersion"
+```
+
+**Fix:**
+
+Install/update the Microsoft Visual C++ Redistributable (x64):
+
+- Direct download: [vc_redist.x64.exe](https://aka.ms/vc14/vc_redist.x64.exe)
+- Reference: [Latest supported Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist)
+
+After updating, fully quit and reopen Ente, then re-enable ML. You should see model download entries in logs (for example, `Downloading ML model from ...`) and indexing should continue normally.
+
### Why aren't my watch folders syncing? {#watch-folders-troubleshooting}
If watch folders aren't uploading new files automatically:
diff --git a/docs/docs/photos/troubleshooting/desktop-install/index.md b/docs/docs/photos/troubleshooting/desktop-install/index.md
index 9573a32c23..9aa8351e29 100644
--- a/docs/docs/photos/troubleshooting/desktop-install/index.md
+++ b/docs/docs/photos/troubleshooting/desktop-install/index.md
@@ -10,9 +10,10 @@ The content from **Desktop Installation Troubleshooting** has been reorganized.
## Desktop Installation Issues
-- [Windows JavaScript error (missing VC++ runtime)](/photos/faq/troubleshooting#windows-vc) - Solution for "JavaScript error in main process"
+- [Windows JavaScript error (missing VC++ runtime)](/photos/faq/troubleshooting#windows-javascript-error) - Solution for "JavaScript error in main process"
+- [Windows ML stuck / models not downloading](/photos/faq/troubleshooting#windows-ml-stuck) - Fix for ONNX runtime DLL initialization failures
- [Linux AppImage issues](/photos/faq/troubleshooting#appimage-integration) - Desktop integration, FUSE requirements, ARM64 support
-- [Linux SUID sandbox error](/photos/faq/troubleshooting#linux-suid) - Command line execution issues
+- [Linux SUID sandbox error](/photos/faq/troubleshooting#suid-sandbox-error) - Command line execution issues
## General Installation