macOS: creating new note fails when obsidian is running but minimized / closed

The issue occurs when obsidian is running but either:

  • the obsidian window is minimized (⌘-M)
  • the obsidian window is closed (⇧-⌘-W)

In that situation, after having focused Obsidian (using ⌘-tab):

⇧-⌘-N / “File > New Note to the Right” has the same effect

2 Likes

I can reproduce.

With only Sandbox open:

  • If the Sandbox is minimized to the dock, ⌘+N does nothing (but the File menu flashes).
  • If the Sandbox is minimised, File>New Note shows the JavaScript error.

If no vaults are open but Obsidian is running and the focused app:

  • ⌘+N does nothing (but the File menu flashes).
  • File>New Note shows the JavaScript error.

I never have Obsidian running with all vaults minimized or closed so have never seen this before. It’s understandable with no open or focused vault that Obsidian doesn’t know where to put a new note, but the vault switcher, at least, should show up.

@masklinn, could put post your debug info (⌘+P>Show debug info) just to finish out your bug report? Thanks. Here’s mine:

macOS 12.6.2, Sandbox

SYSTEM INFO:
	Obsidian version: v1.1.9
	Installer version: v1.1.9
	Operating system: Darwin Kernel Version 21.6.0: Sun Nov  6 23:31:13 PST 2022; root:xnu-8020.240.14~1/RELEASE_ARM64_T6000 21.6.0
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none
1 Like

I can also reproduce this.

I can also reproduce this

Steps to reproduce

Running macOS 10.15.7 Catalina, Obsidian 1.4.5, reproduced with current and new blank vault.

  1. Open your current vault
  2. Minimize the window
  3. With the current app still being Obsidian, i.e. menu bar shows Obsidian, File, Edit, Insert, Format, etc; click Obsidian > Preferences or Help > Open Sandbox Vault.
  4. Javascript error window pops up.
  5. If the window is re-opened (not minimized in dock), the error disappears.

Did you follow the troubleshooting guide? [Y]

Expected result

Unable to open preferences or sandbox vault when the main window is minimized.

Actual result

Even with the sandbox vault, the error persists.

Environment

SYSTEM INFO:
Obsidian version: v1.4.5
Installer version: v1.3.5
Operating system: Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64 19.6.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Screenshot of error:
Screenshot 2023-09-19 at 10.06.36 AM

1 Like

will be fixed 1.4.15

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.