zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed crashes when pasting text from other apps

Open wjarka opened this issue 9 months ago • 1 comments

Summary

Zed crashes when pasting text from other apps

Description

Steps to trigger the problem:

  1. Open a new document in Zed
  2. Copy a text from web browser
  3. Paste in Zed

Sometimes it needs to be done multiple times. Often it will not paste anything or paste will work and sometimes it will freeze.

Actual Behavior: Zed freezes and needs to be restarted

Expected Behavior: Text is pasted and I can continue coding

Zed Version and System Specs

Zed: v0.187.8 (Zed) OS: Linux Wayland arch unknown Memory: 31.3 GiB Architecture: x86_64 GPU: NVIDIA GeForce RTX 3070 Ti || NVIDIA || 570.153.02

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

wjarka avatar May 27 '25 11:05 wjarka

Could be related to Hyprland's issues when copy/pasting between Wayland and XWayland apps.

Made some changes and will report back if that's still an issue.

wjarka avatar May 27 '25 12:05 wjarka

I'm having same issue here, did you fix it in your Hyprland's configuration? If I start zed with WAYLAND_DISPLAY='' works

luizender avatar Jun 25 '25 13:06 luizender

@luizender in my case, I think I needed to change the clipboard settings and how it handles Wayland vs XWayland, but I can't remember. I switched to Mac now.

wjarka avatar Sep 19 '25 15:09 wjarka

Hi there! 👋 We're working to clean up our issue tracker by closing older bugs that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and it will be kept open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, it will close automatically in 14 days. Thanks for your help!

github-actions[bot] avatar Nov 19 '25 11:11 github-actions[bot]