Quitting fails with "macOS is still restoring the desktop wallpaper" after closing the MacBook lid
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
- 42/100
Direzione di ricerca
Start with AppDelegate.swift at quit start, cancelQuit and showControlPanel, then trace restoreForTermination, restoreNativeSelection, and DesktopWallpaperLedger.readOriginalStore; compare termination cleanup with startup recoveringOrphanedEntries. Reproduce the placeholder display cleanup and cancelled quit behavior from the report. Done means quitting restores the desktop after the stale display entry and the settings window remains accessible if quit is cancelled.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Area
Displays or Spaces
Wallpaper
Any (Animate lock screen on)
What you did
- Play a wallpaper with Animate lock screen on and two external monitors connected.
- Close the MacBook lid.
- Quit Wallpaper Machine from the menu.
What went wrong
After about 5 seconds the app cancels the quit with "macOS is still restoring the desktop wallpaper. Please try quitting again." It failed the same way at 14:30, 15:07 and 15:16, and after the first failure the log kept filling with Native desktop poster sync failed and the same message. Force-quitting and reopening fixed it, and quitting works now. Closing the lid again didn't bring the bug back, so it seems to depend on timing.
Cause: When I closed the lid at 14:18, macOS added a placeholder display for about a second. The log calls it display 4 (1920x1080 at 60 Hz, UUID D546E98D…). The app set its lock-screen extension as that display's wallpaper. The display went away, but the macOS wallpaper store (com.apple.wallpaper/Store/Index.plist) still listed app.wallpapermachine.wallpaper-extension for it in 8 Spaces.
On quit, restoreNativeSelection only restores the displays in its journal, and this one isn't there. DesktopWallpaperLedger.readOriginalStore then finds the extension in the store and throws nativeProviderPending. restoreForTermination retries 25 times at 200 ms intervals, then cancels the quit.
Startup recovery (recoveringOrphanedEntries) cleans up leftovers like this. After I force-quit and reopened the app, the placeholder display's entries pointed to Aerials again, and the next quit took 233 ms.
Suggested fix: Run the same leftover cleanup (recovering: true) when quitting. Give nativeProviderPending its own message too: three different failures show this text now.
What you expected
The app restores the desktop and quits.
Follow-up: the settings window can't be opened after the cancelled quit
The settings window was in full screen when I quit at 15:16. It disappeared when the quit started and stayed hidden after the app cancelled the quit. The app kept running and the menu bar worked, but no window opened until I force-quit.
A stack sample showed the main thread idle in the normal event loop, so the app hadn't hung and no alert was blocking it. The window list still had the 1920x1080 panel window, off screen.
The quit hides the panel with controlPanelWindow?.orderOut(nil) (AppDelegate.swift, quit start). For a full-screen window this probably leaves its full-screen Space behind, and showControlPanel (bringForward + activate) in cancelQuit doesn't bring it back. I've seen this once, right after this failed quit. A fix could take the window out of full screen before hiding it, or keep it visible until the quit is certain.
Diagnostics report
WallpaperMachine-diagnostics-20261203-153126.zip
Details from the app
No response
App version
1.18.0 (71) (macOS 27.2.1)
- Lingua principale
- Swift
- Stelle
- 1.3k
- Fork
- 41
- Merge medio
- 4h 46m
- PR unite (30g)
- 86
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MMFoundation/WallpaperMachine
-
area: settings bug Haiku review: no-score ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MMFoundation/WallpaperMachine#346 ·
I maintainer di solito rispondono entro 1 giorno
-
area: settings bug review: no-score Sonnet ui
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
MMFoundation/WallpaperMachine#345 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
area: displays bug review: no-score Sonnet
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
MMFoundation/WallpaperMachine#344 ·
I maintainer di solito rispondono entro 1 giorno
-
problem appApertabug review: low Sonnet status: needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
MMFoundation/WallpaperMachine#342 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[Web] vảy đuôiApertabug review: low Sonnet status: needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
MMFoundation/WallpaperMachine#341 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di MMFoundation/WallpaperMachine
Issue simili
-
bug priority:low status:queued
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Make the HTTP server's keep-alive and headers timeouts configurableForse già presa @mattgodbolt l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
compiler-explorer/compiler-explorer#9902 ·
I maintainer di solito rispondono entro 1 giorno
-
android internals
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion-labs/Diplomat#291 ·
I maintainer di solito rispondono entro 1 giorno
-
🎉 Add USBview-HSApertaaddition
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
jaywcjlove/awesome-mac#5403 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno