A Reading view tab sometimes comes up blank and stays blank: only closing the tab and opening the note again draws it. It happens in the main window and in pop-out windows, on macOS, with several Obsidian windows open (some on other desktops).
As far as I can read the code, MarkdownPreviewRenderer.queueRender() books the redraw on activeWindow (the window focused last), not on the window the tab is in. If that window isn’t visible (on another desktop, for example), its animation frames don’t run, so the redraw never comes. And queueRender() never replaces a redraw already booked as an animation frame, so every later attempt to draw the tab waits behind it.
Steps to reproduce
The console lines put Obsidian in the state it is in when the window you focused last is now hidden (hard to time by hand).
- In the Sandbox vault, open any note in Reading view in the main window.
- Open a second note in a new window (right-click its tab → Move to new window).
- In the main window, open the developer console (Cmd+Option+I) and run:
const pop = app.workspace.floatingSplit.children[0].win; pop.electronWindow.hide(); // as if it were on another desktop - Run:
activeWindow = pop; // what Obsidian sets when the pop-out was the last window focused app.workspace.getLeavesOfType('markdown').find((l) => l.view.containerEl.win === window && l.view.getMode?.() === 'preview').view.previewMode.rerender(true); - Resize the main window a little.
- Show the pop-out again:
pop.electronWindow.show();
(Minimizing the pop-out instead of hiding it isn’t enough: a minimized pop-out still reports itself visible, keeps drawing, and the note draws normally.)
Did you follow the troubleshooting guide? [Y/N]
Yes. The steps above were run in the Sandbox vault (no community plugins, restricted mode on). I first saw it in my own vault, with several windows open.
Expected result
After step 4 or 5, the note draws again: the main window is visible.
Actual result
After step 4 only 1 of the note’s 10 sections is drawn, and resizing doesn’t draw the rest: previewMode.renderer.queued stays set (high: true) and never runs. At step 6, the moment the pop-out is shown, all 10 are drawn: the redraw was waiting on the pop-out’s frames. In everyday use the window focused last can stay hidden for hours (on another desktop), so the tab stays blank until it’s closed and reopened.
Environment
SYSTEM INFO:
Obsidian version: 1.14.5
Installer version: 1.14.5
Operating system: Darwin Kernel Version 25.6.0: Tue Aug 18 17:48:46 PDT 2026; root:xnu-12377.161.15.700.19~2/RELEASE_ARM64_T6041 25.6.0
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
macOS 26.7.1, Apple Silicon (Sandbox vault). In my own vault it happens in the main window and in pop-outs alike: whichever window the tab is in, when the window focused last is hidden.
Additional information
In app.js (1.14.5), queueRender() books through a small scheduler that reads activeWindow: requestAnimationFrame when there’s no delay, requestIdleCallback + setTimeout otherwise. If a redraw is already booked, queueRender() only replaces it when it isn’t the animation-frame kind, so a frame booked on a hidden window blocks the tab for as long as that window stays hidden.
The 0.15.5 changelog has “Fixed reading mode in pop-out window not rendering when the main window is minimized”. This looks like the same thing from the other side: the redraw now follows the window focused last instead of the tab’s own window.
Suggested fix: book the redraw on the tab’s window (this.previewEl.win) instead of activeWindow, or let queueRender() replace a booked frame that belongs to another window.
Workaround I use in my own vault (a small local plugin; with it, the reproduction there draws the whole note):
const { Plugin, MarkdownPreviewRenderer } = require('obsidian');
module.exports = class extends Plugin {
onload() {
const proto = MarkdownPreviewRenderer.prototype, original = proto.queueRender;
proto.queueRender = function (...args) {
const own = this.previewEl?.win;
if (!own || own === window.activeWindow) return original.apply(this, args);
const focused = window.activeWindow;
window.activeWindow = own; // book on the tab's own window
try { return original.apply(this, args); } finally { window.activeWindow = focused; }
};
this.register(() => { proto.queueRender = original; });
}
};