Skip to content

Windows startup hangs when restoring a drive root #118

Closed

Description

@Icatme

Summary

marka.md 1.6.1 can hang on startup when the persisted folder session contains a Windows drive root.

Environment

  • marka.md 1.6.1
  • Windows
  • WebView2 local storage under %LOCALAPPDATA%\com.mattenarle.markamd\EBWebView\Default\Local Storage\leveldb

Reproduction

Persist either or both of these values and start the app:

mdview.folders = ["V:\\"]
mdview.lastFolder = "V:\\"

The normal UI path can create this state by opening a drive root as a folder.

Actual behavior

Startup restores V:\ and passes it to the recursive folder watcher. Watching the entire drive recursively blocks startup long enough for Windows to report AppHangB1.

Clearing only one key does not recover the app because folder hydration falls back through the other key.

Expected behavior

  • Filesystem roots must not be passed to the recursive folder watcher.
  • Existing poisoned sessions must clear both mdview.folders and mdview.lastFolder before persisted React state mounts.
  • Selecting a filesystem root should be rejected so the state cannot be recreated.
  • Unrelated settings such as mdview.lastFile, theme, titlebar visibility, and recent files must remain unchanged.

A Mermaid file stored in mdview.lastFile was tested independently and opens normally.

Activity

  1. mattenarle10 commented on Jul 23, 2026

    @mattenarle10
    Owner

    aghhhhhh really good catch will merge this for next release!!! :DD thanks

  2. mattenarle10 commented on Jul 23, 2026

    @mattenarle10
    Owner

    Fixed in #119 and merged to main. marka.md now rejects filesystem roots, skips recursive watches for unsafe restored paths, and clears poisoned folder-restore state before startup. This will ship in the next patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions