omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Microsoft Edge crashes under Wayland with tile rule on hover

Open mihapus opened this issue 8 months ago • 6 comments

Summary

Microsoft Edge segfaults when hovering over images on certain sites (e.g. omarchythemes.com theme detail pages). The crash is caused by the interaction between Edge's native Wayland popup/overlay handling and the tile on window rule in browser.conf.

Details

Edge is recognized in omarchy's window rules and launch scripts, but unlike Brave and Chromium, it has no flags config file shipped in ~/.local/share/omarchy/config/. The correct filename for Edge is microsoft-edge-stable-flags.conf (not microsoft-edge-flags.conf).

Even with a flags file matching the other browsers' Wayland flags, Edge 146 crashes (SIGSEGV) when:

  • Running under native Wayland (--ozone-platform=wayland)
  • The tile on rule from browser.conf is active
  • The user hovers over certain page elements (images on theme detail pages)

The GPU process also logs: '--ozone-platform=wayland' is not compatible with Vulkan

What was tested

Approach Result
--disable-gpu Still crashes on hover
--disable-gpu-compositing Still crashes
--disable-vulkan Still crashes
--disable-extensions Still crashes
--use-gl=angle --use-angle=gl Still crashes
tile off window rule No crash, but window spazzes on hover
--ozone-platform=x11 (XWayland) Works perfectly

Environment

  • Edge 146.0.3856.72
  • Hyprland 0.54.2
  • Intel Iris Xe Graphics (Raptor Lake-P)
  • Monitor: 1920x1200 @ scale 1.5

Workaround

Create ~/.config/microsoft-edge-stable-flags.conf:

--ozone-platform=x11
--force-device-scale-factor=1.5
--enable-features=TouchpadOverscrollHistoryNavigation
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url

Note: --force-device-scale-factor must match the monitor scale from hyprctl monitors.

Suggestion

Ship a microsoft-edge-stable-flags.conf in ~/.local/share/omarchy/config/ using --ozone-platform=x11 (since native Wayland is unstable in Edge), along with a scale factor that matches the user's display. Alternatively, the tile on rule in browser.conf could be scoped more narrowly to avoid triggering the Edge crash.

mihapus avatar Mar 22 '26 18:03 mihapus

I had the same issue, solved with your workaround, hope this gets fixed in next releases.

JBolivarC avatar Apr 06 '26 17:04 JBolivarC

Thanks! It's very useful.

Sympsel avatar Apr 08 '26 10:04 Sympsel

I had a similar issue. It wasn't crashing, but any browser-native tooltip would cause the rendered view to flicker/glitch. It looked like the browser was briefly re-tiling or redrawing part of the UI, causing a noticeable flicker.

Forcing X11 in the configuration fixed it, although all context menus now have a weird blurred border, similar to the one shown in the screenshot.

Image

As I was writing this comment though, I noticed that the behavior is not completely gone. Clicking on the words that the built-in spell checker marked to review, the window goes back to that flicker.

https://github.com/user-attachments/assets/36155c7e-8156-47fa-a0a5-106e6eae7ade

antipopp avatar Jun 09 '26 13:06 antipopp

Just a note for others looking at this issue. I had experienced regular crashes with Edge, so I tried this. The crashes went away, but I quickly hit a different issue: Clicking between web apps would sometimes switch workspaces and focus a completely different Edge window than the one I'd clicked on.

Turns out (according to OpenCode) that X11 has no "per window input isolation" so Edge can't really tell which window is receiving input when it's configured like this.

I've worked around it by setting my default browser back to Chromium but binding Super+Shift+Return to microsoft-edge-stable. So I get Edge as my browser but all my webapps are just using the inbuilt Chromium. Not ideal but it's doing the trick.

mabster avatar Jul 12 '26 21:07 mabster

Confirmed a closely related issue on another Intel system. In my case Edge did not crash, but hovering elements with tooltips caused severe visual redraw/hit-testing desynchronization that looked like the page was resetting. The URL remained unchanged, so it was not an actual reload.

Environment:

  • Omarchy 4.0.0-1
  • Microsoft Edge 151.0.4129.101
  • Hyprland 0.56.2
  • Intel HD Graphics 520, i915
  • Linux 7.1.8-arch1-3
  • Single 1366×768 display at scale 1

Edge was using the stock Wayland flags: --ozone-platform=wayland --ozone-platform-hint=wayland

Replacing them with --ozone-platform=x11 in ~/.config/microsoft-edge-stable-flags.conf and fully restarting Edge resolved the problem completely.

This suggests the issue is not limited to fractional scaling or newer Intel GPUs, and that an XWayland fallback for Edge would be useful.

codexmark avatar Aug 28 '26 03:08 codexmark

I tried to reproduce this on a fresh Omarchy 4.0.4 VM (Hyprland 0.56.2, virtio GPU, scale 1) with Edge 154.0.4258.62 installed through omarchy-install-browser edge, running native Wayland with the stock flags and the tile rule from default/hypr/apps/browser.lua active. It did not reproduce. Page tooltips, toolbar tooltips, and hovering the images on omarchythemes.com and a theme detail page all drew as anchored popups. No extra Hyprland window opened, Edge did not crash, and no core dump was written.

Every report here is from an Intel GPU (Iris Xe, HD 520), so this looks specific to that hardware and Edge's native Wayland path rather than something a stock install hits everywhere. Since 3.8.0, installing Edge writes ~/.config/microsoft-edge-stable-flags.conf with the same flags as Chromium, so the missing flags file mentioned in the report is already handled.

#7569 is probably the same mechanism on the same GPU family: Edge opens a tooltip as a separate, anonymous Hyprland window instead of a popup. An anonymous window has an empty class, so the Edge rule in browser.lua doesn't match it, and Hyprland tiles new windows by default anyway. That would explain why tile off stopped the crash but left the window jumping on hover. Forcing X11 avoids it, but commenters here have seen it cause clicks focusing the wrong Edge window and blurred context-menu borders. Whether Omarchy should ship that tradeoff for Edge is a decision for the maintainer, and it needs the mechanism pinned down first.

If you can still trigger it on the current Edge with the stock Wayland flags, these would settle it:

  1. With Edge open, run socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | grep -E '^(openwindow|closewindow)' in a terminal, then hover until the flicker or crash happens. Paste what it prints, and the output of microsoft-edge-stable --version.
  2. Whether Chromium on the same machine, with the same page and the same hover, behaves the same way.
  3. If it still crashes: the output of coredumpctl info msedge from right after the crash.

This was checked by Claude Opus 5.5, with a second opinion from Codex Medium. Codex agreed that nothing in Omarchy's config is shown to cause this and that none of the candidate workarounds is a contained fix. It added that an anonymous tooltip window can't pick up the Edge tile rule. It couldn't read this thread itself, so it worked from my summary of the comments. This is waiting on someone with an affected Intel machine.

omarchybot avatar Oct 08 '26 00:10 omarchybot