Skip to content

fix: add --disable-gpu to obsidian headless wrapper - #1434

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/obsidian-disable-gpu
Apr 11, 2026
Merged

fix: add --disable-gpu to obsidian headless wrapper#1434
shunkakinoki merged 1 commit into
mainfrom
fix/obsidian-disable-gpu

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • Rebuild home-manager on kyber and run obsidian CLI
  • Verify no more ANGLE Display::initialize error / GLX is not present stderr spam

Summary by cubic

Add --disable-gpu to the Obsidian headless wrapper to prevent GLX/ANGLE initialization errors on GPU-less hosts (e.g., kyber) and stop stderr spam. Follows up on #1433 which added --no-sandbox.

Written for commit d05bce9. Summary will update on new commits.

Copilot AI review requested due to automatic review settings April 11, 2026 16:07
@mesa-dot-dev

mesa-dot-dev Bot commented Apr 11, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@coderabbitai

coderabbitai Bot commented Apr 11, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@shunkakinoki has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 17 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 1 minutes and 17 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6b57df2d-797f-43e9-a6d1-a247c1211021

📥 Commits

Reviewing files that changed from the base of the PR and between 45f16cd and d05bce9.

📒 Files selected for processing (1)
  • home-manager/modules/obsidian/obsidian-headless.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/obsidian-disable-gpu

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@shunkakinoki
shunkakinoki merged commit 5adf159 into main Apr 11, 2026
28 checks passed
@shunkakinoki
shunkakinoki deleted the fix/obsidian-disable-gpu branch April 11, 2026 16:07
@mesa-dot-dev

mesa-dot-dev Bot commented Apr 11, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Adds --disable-gpu flag to the obsidian headless wrapper to prevent GLX/ANGLE initialization errors on headless hosts without a GPU.

What changed?

  • Added --disable-gpu flag to the obsidian headless wrapper

Description generated by Mesa. Update settings

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the --disable-gpu flag to the obsidian-headless.sh script to improve its performance in headless environments. The review feedback suggests further enhancing stability by adding the --disable-software-rasterizer and --disable-dev-shm-usage flags to the execution command to prevent potential crashes in shared memory constrained environments.

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
exec @xvfbRun@/bin/xvfb-run -a @obsidian@/bin/obsidian --no-sandbox "$@"
exec @xvfbRun@/bin/xvfb-run -a @obsidian@/bin/obsidian --no-sandbox --disable-gpu "$@"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To ensure maximum compatibility and stability in headless environments, consider adding --disable-software-rasterizer and --disable-dev-shm-usage alongside --disable-gpu.

  • --disable-software-rasterizer: Prevents Electron from falling back to software-based GL rendering, which can still cause issues on some headless hosts.
  • --disable-dev-shm-usage: Prevents crashes in environments where the shared memory partition (/dev/shm) is too small, a common issue in headless or containerized setups.
Suggested change
exec @xvfbRun@/bin/xvfb-run -a @obsidian@/bin/obsidian --no-sandbox --disable-gpu "$@"
exec @xvfbRun@/bin/xvfb-run -a @obsidian@/bin/obsidian --no-sandbox --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage "$@"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds the --disable-gpu Chromium/Electron flag to the Obsidian headless wrapper to avoid GLX/ANGLE initialization errors on headless hosts without GPU support (follow-up to #1433).

Changes:

  • Append --disable-gpu to the Obsidian invocation in the xvfb-run wrapper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants