zed icon indicating copy to clipboard operation
zed copied to clipboard

Code appears line by line when scrolling, second half of view is empty, but code is actually there

Open ForceBru opened this issue 5 months ago • 12 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Steps to reproduce: open a relatively long file and scroll around.

The bottom half of the "code view" is empty. When scrolling, code gradually appears, filling more of the bottom half. Then randomly stops appearing, so the bulk of the visible code scrolls to the top while the bottom fills with empty space. Then more of the code starts appearing again. See screen recording.

When the bottom half is empty, the code is still there: I can select it, select & highlight variable names, red squiggles are there too. So it could be a graphics issue. Unfortunately I have an old NVIDIA GeForce GT 640M, so that's not good. However, absolutely no other text editor and no other app behaves like this for me, only Zed. VSCode, SublimeText, Jupyter, the terminal, Safari, everything works fine and has always been working fine except Zed. In fact, I've never ever encountered this kind of glitch in any other app before. Thus, perhaps the GPU isn't so old that it can't render text properly...

https://github.com/zed-industries/zed/assets/8695383/da00cfd5-1373-4b2e-a2ed-05b63dd9c00d

Environment

Zed: v0.121.3 (Zed Preview) same for many previous stable (not preview) versions iMac 21.5-inch, Late 2012 OS: macOS 13.6.3 Memory: 8 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

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

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

[INFO] ========== starting zed ==========
[INFO] Opening main db
[ERROR] crates/zed/src/zed.rs:519: EOF while parsing a value at line 1 column 0
[INFO] Opening main db
[ERROR] crates/zed/src/main.rs:887: reading themes from "/Users/forcebru/.config/zed/themes"

Caused by:
    No such file or directory (os error 2)
[INFO] build git repository ".git"
[INFO] set environment variables from shell:/usr/local/bin/fish, path:/Users/forcebru/.pyenv/shims:/usr/local/sbin:/Users/forcebru/.cargo/bin:/Users/forcebru/.pyenv/bin:/Users/forcebru/.juliaup/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/quarto/bin
[INFO] Opening main db
[INFO] starting language server "pyright", path: "/Users/forcebru/Desktop/VolatilityForecasting", id: 1
[INFO] Node runtime install_if_needed
[WARN] request completed with error: request or operation took longer than the configured timeout time
[ERROR] auto-update failed: error:request or operation took longer than the configured timeout time

Caused by:
    [28] Timeout was reached
[INFO] Node runtime install_if_needed
[INFO] 1 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Pyright language server 1.1.345 starting"
}
[INFO] 1 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Server root directory: file:///Users/forcebru/Library/Application%20Support/Zed/languages/pyright/node_modules/pyright/dist"
}
[INFO] 1 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Starting service instance \"\""
}
[INFO] 1 unhandled notification client/unregisterCapability:
{
  "unregisterations": [
    {
      "id": "b9868252-260c-47d0-b71f-c564c6b1827a",
      "method": "workspace/didChangeWatchedFiles"
    }
  ]
}
[ERROR] crates/lsp/src/lsp.rs:624: oneshot canceled
[ERROR] crates/ai/src/providers/open_ai/embedding.rs:170: NotPresent
[ERROR] crates/semantic_index/src/semantic_index.rs:87: user is not authenticated
[ERROR] crates/gpui/src/window.rs:387: window not found
[ERROR] crates/ai/src/providers/open_ai/embedding.rs:170: NotPresent
[ERROR] crates/semantic_index/src/semantic_index.rs:87: user is not authenticated

ForceBru avatar Feb 05 '24 22:02 ForceBru

Hey, thanks for the report. This seems to be related to https://github.com/zed-industries/zed/issues/6853 ; both issues have a bit older Macs as well.

osiewicz avatar Feb 05 '24 23:02 osiewicz

Couldn't find that issue myself, sorry for the duplicate. BTW, it could be useful to automatically attach a line like "iMac 21.5-inch, Late 2012" to the environment if possible, perhaps along with the GPU specs. Currently I put it there myself.

ForceBru avatar Feb 05 '24 23:02 ForceBru

I'm also facing this same issue. I'm on MacBook Pro (Mid 2012). Processor: 2.7 GHz Quad-Core Intel Core i7 Memory: 16 GB 1600 MHz DDR3 Graphics: NVIDIA GeForce GT 650M 1 GB + Intel HD Graphics 4000 1536 MB

Really appreciate any help on this, would love to use Zed on my machine! 🙏

Akshat-Jain avatar Feb 13 '24 18:02 Akshat-Jain

I also have been getting this odd issue when scrolling through text, the bottom half disappears, I have highlighted the missing text at the bottom to show it actually exists. JH-BCNKZ

Here is the same image with a different file to show its not isolated to one file, i am just browsing the bootstraps most recent codebase. guheZs5r

This is the system i am using its a 2014 macbook pro. CDc4D2WD

davro avatar Feb 15 '24 18:02 davro

This looks just like the bug in #5062.

CurbaiCode avatar Feb 16 '24 19:02 CurbaiCode

Just to surface this, there's a user experiencing this on Sonoma:

  • https://github.com/zed-industries/zed/issues/8056

JosephTLyons avatar Feb 20 '24 19:02 JosephTLyons

I'm having the same problem. I'm on BigSur, MacBook Pro mid 2014 and Geforce GT750M

lhps avatar Feb 21 '24 20:02 lhps

Same issue, on an old mac 2013

bennjjii avatar Feb 28 '24 08:02 bennjjii

Having same issue, running Zed 0.126.3

Screenshot 2024-03-19 at 05 58 39

Screenshot 2024-03-19 at 05 51 52

RyzorBent avatar Mar 19 '24 04:03 RyzorBent

I keep coming back hoping there is a fix. It definitely has something to do with my NVIDIA GPU on my mid 2014 MacBook Pro (11,3 / Metal2 / Kepler). I don't see the issue when switching to integrated GPU on Sonoma: 14.4 - OCLP: 1.4.2 but after a while I can report that there are some strange artifacts occurring when scrolling.... missing letters.. Zed is basically unusable for myself.

image

MrCee avatar Mar 24 '24 14:03 MrCee

Today, i had to stop using Zed all together, as letters started disappearing immediately after the latest Zed 0.127.3 update. 😥 Screenshot 2024-03-24 at 19 12 28

RyzorBent avatar Mar 24 '24 17:03 RyzorBent

Same bug on macOS 10.15.7 With zed version 0.132.3

I noticed that it does that on the window size or for sure on characters count displayed in the window

mougis avatar Apr 27 '24 22:04 mougis