omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Brave Origin on Wayland (ARM64 QEMU, virtio-gpu): Google Maps search text never paints; map flashes on pointer move

Open jericle opened this issue 3 weeks ago • 6 comments

System details

  • Omarchy 4.0.0.r7620.gd9cc361-1 (omarchy-dev), Hyprland 0.57.1, kernel 7.3.0-37-omarchy
  • QEMU virt-11.1 ARM64 (aarch64) guest; Red Hat Virtio 1.0 GPU [1af4:1050], kernel reports [drm] features: +virgl +edid -resource_blob -host_visible; Mesa 26.2.6
  • Monitor Virtual-1, hyprctl monitors reports [email protected], scale 1
  • Brave Origin 157.1.99.55, stock Omarchy flags (~/.config/brave-origin-flags.conf unchanged, no --enable-wayland-ime)
  • fcitx5 5.1.23, idle: fcitx5-remote state=1, IM keyboard-us
  • Debug log: https://logs.omarchy.org/z6956d

What's wrong?

Two symptoms in Brave Origin on this VM, in both the Google Maps webapp and a normal Brave Origin tab.

1. Text typed into the Google Maps search box never appears

Steps:

  1. Run omarchy-launch-webapp https://maps.google.com (or open https://maps.google.com in a normal Brave Origin window)
  2. Click the search box and type, e.g. coffee

Expected: the typed text is visible in the field.

Actual: the field keeps showing the Search Google Maps placeholder; no text or caret is painted.

Evidence that this is a paint problem rather than dropped input:

  • After typing, Ctrl+A, Ctrl+C, wl-paste returns exactly the typed string (coffeetest), so the keystrokes reach the DOM.
  • Pressing Enter executes the search: the window title becomes coffee - Google Maps and the results panel (cafes, ratings) renders. The search input still visually shows the placeholder.
  • Reproduces with omarchy-fcitx5 stopped (fcitx5-remote --check reports not running), so this is not the IME.

2. Map flashes on pointer move

Moving the mouse over the map makes the window flash/repaint continuously; it stops when the pointer stops. This matches hyprwm/Hyprland#16077: with a hardware cursor and VRR off, every pointer move schedules a full monitor render, and on virtio-gpu each render re-uploads the whole scanout to the host.

Environment note

Screenshot/coordinate inconsistency in this guest: hyprctl monitors reports 3840x2160, inxi reports 1920x1080, and fullscreen grim captures are 1594x897, so screenshots and window geometry do not line up exactly. Possibly related to omacom/omarchy#17815.

Related

  • hyprwm/Hyprland#16077 (closed NOT_PLANNED): hardware-cursor pointer moves schedule a full render when VRR is off, causing full-frame re-uploads on virtio-gpu. Suggested mitigation there is cursor:no_hardware_cursors = 1; not applied here.
  • brave/brave-browser#57892: fcitx5 Wayland IME in Brave. Ruled out for this report since it reproduces with fcitx5 stopped.
  • omacom/omarchy#17815: QEMU display resolution issue.

jericle avatar Nov 09 '26 05:11 jericle

Can't seem to reproduce it on real hardware.

Edward-cmyk avatar Nov 12 '26 05:11 Edward-cmyk

Thanks for replying. Agent ultimately found the root cause and fixed it

Root cause Your VM has no /dev/kvm — the aarch64 CPU is fully emulated in software (QEMU TCG, CPU revision 0, no hypervisor). Chromium's V8 JavaScript JIT cannot run on that: renderers die immediately → windows render black (or a frozen frame), inputs dead, eventually "Process crashed". This affected Brave and Chromium equally, and was independent of X11 vs Wayland, sandboxing, networking, or fcitx/IME — all of which we tested. The earlier suspicion about fcitx/IME (the --enable-wayland-ime in /etc/chromium-flags.conf dated Oct 23) was a red herring; the IME grabbing keys was a symptom of renderers being wedged, not the cause. The fix: --js-flags=--jitless disables V8's JIT. With it, Maps loads fully and is responsive (verified twice via screenshots: alerts, weather, category chips, and your "everything works" test). What I changed

  • Default browser → Chromium (omarchy default browser chromium), as you asked.
  • ~/.config/chromium-flags.conf — added --js-flags=--jitless (the fix), --enable-unsafe-swiftshader (software WebGL for the virtio GPU), --disable-wayland-ime. Your existing flags were kept. Original saved as chromium-flags.conf.bak.1794653434 if you ever want it back.
  • ~/.config/brave-origin-flags.conf — temporarily edited during testing, then restored to your Nov 9 state.
  • Nothing in /etc was touched; fcitx5 stays installed and untouched. The Maps webapp launcher (Google Maps.desktop → omarchy-launch-webapp) needed no changes — it picks up Chromium automatically. Notes / caveats
  • Speed: JIT-less JS is slower. A real fix would be enabling KVM (or virgl GPU) on the VM host, which would let you drop --js-flags=--jitless.
  • Memory: your VM shows ~4 GB of swap in use; if Maps feels sluggish, more guest RAM helps.
  • CJK/fcitx in Chromium is bypassed by --disable-wayland-ime (Latin input works; fcitx IME for Chinese doesn't, per your call).
  • Brave is still broken on this VM (zygote SIGTRAP, dead renderers — the other opencode session's investigation is valid). The same --js-flags=--jitless may revive it if you add it to brave-origin-flags.conf someday, but I left that alone.
  • The stale "Process crashed: brave" notification can be dismissed whenever; it's from the earlier Brave crashes, unrelated to this fix.
  • Trade to know: if Omarchy ever overwrites ~/.config/chromium-flags.conf, re-add the three flags above and Maps will go black again.

On Thu, 12 Nov 2026 at 15:10, Edward-cmyk @.***> wrote:

Edward-cmyk left a comment (omacom/omarchy#18231) https://github.com/omacom/omarchy/issues/18231#issuecomment-6815260443

Can't seem to reproduce it on real hardware.

— Reply to this email directly, view it on GitHub https://github.com/omacom/omarchy/issues/18231?email_source=notifications&email_token=AR2QHS4M7M2XBX253F3LLP35YVA5TA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOBRGUZDMMBUGQZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6815260443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2QHS6FJWD7ZHBQFSNW7V35YVA5TAVCNFSNUABFKJSXA33TNF2G64TZHM4TSNBQHEZTCNRWHNEXG43VMU5TMMRYGA3TMMJYGUZKC5QC . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/AR2QHS6SRLHNFDOQ3QIOUWL5YVA5TA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOBRGUZDMMBUGQZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG and Android https://github.com/notifications/mobile/android/AR2QHS4KWJXOMS2IYYCXDHD5YVA5TA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOBRGUZDMMBUGQZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA. Download it today! You are receiving this because you authored the thread.Message ID: <omacom/omarchy/issues/18231/6815260443 @.***>

jericle avatar Nov 14 '26 11:11 jericle

Follow-up from the same ARM64 TCG guest, verified end-to-end today:

  • --js-flags=--jitless also revives Brave Origin. With ~/.config/brave-origin-flags.conf carrying --js-flags=--jitless --enable-unsafe-swiftshader --disable-wayland-ime, Maps renders and search / ☰ / Ctrl+R work. Default browser switched back to brave-origin. (The earlier zygote SIGTRAP appears to be the same JIT-crash family; unproven in isolation.)
  • Flag-file behavior on this build: Arch's /usr/lib/chromium/chromium parses /etc/chromium-flags.conf, then ~/.config/chromium-flags.conf; lines starting with # are skipped. /etc/chromium-flags.conf (2026-10-23) contains only --enable-wayland-ime; my ~/.config files carry the switches that actually fix it. Brave reads only ~/.config/brave-origin-flags.conf.
  • IME/fcitx flags (--enable-wayland-ime, --wayland-text-input-version=1) changed nothing; the JIT disable was the load-bearing flag. Latin input works; CJK via fcitx in Chromium/Brave remains bypassed per local preference, not because of a hard failure found.

TCG-only reproduction, none of this affects real hardware — matching Edward-cmyk's result. Suggestion for the ARM64 virt image: ship --js-flags=--jitless (and --enable-unsafe-swiftshader when no Vulkan/SwiftShader ICD is present) as the default browser flags, or at least document them.

Filed by Inkling 2 Small Free via OpenCode.

jericle avatar Nov 14 '26 11:11 jericle

Correction to my earlier comment: with the IME path left untouched, Chinese input works too. So the IME flags were never needed at all — not as a workaround, not as a bypass. Final guest config is just --js-flags=--jitless plus --enable-unsafe-swiftshader in the user flags file; no IME overrides anywhere.

Filed by Inkling 2 Small Free via OpenCode.

jericle avatar Nov 14 '26 12:11 jericle

I read the report and all follow-ups, including the correction that Chinese input works without IME overrides. I have not independently reproduced the ARM64 TCG failure or isolated the effects of the two remaining browser flags, so the underlying cause remains unconfirmed by this review.

GPT-6 in Codex was the only model to review the issue in this run (reasoning effort was not exposed to the session). My provisional classification is hardware compatibility, but the configured second classifier returned no classification. Classification remains unsettled and is waiting for maintainer review; no patch was made.

omarchybot avatar Nov 19 '26 01:11 omarchybot

The earlier classification blocker is resolved: this is now classified as hardware compatibility. I checked the current browser launchers and flag setup, but did not reproduce the ARM64/TCG failure: the available workers use x86/KVM. The debug-log link now returns HTTP 404.

To separate the remaining causes, please share a fresh omarchy-debug log and compare four cases on the same guest and browser version: neither workaround flag, --js-flags=--jitless alone, --enable-unsafe-swiftshader alone, and both. Fully quit Brave between cases and use temporary profiles with otherwise identical settings and no IME overrides. For each case, record whether search text and the caret paint, whether Enter executes the search, whether the browser crashes, and whether moving the pointer still causes flashing. Please include the effective command line from brave://version and graphics status from brave://gpu; if it crashes, include the crash backtrace or fatal error rather than only the signal name.

The combined workaround remains reporter evidence; it does not yet establish one cause for the text-painting failure, crashes and pointer flashing. This is waiting on those guest results. GPT-6 in Codex (reasoning effort not reported) was the only model to review the diagnosis in this run; no second diagnostic review was requested, and no patch was made.

omarchybot avatar Nov 23 '26 09:11 omarchybot