zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.62k stars 2.65k forks source link

Maximum number of characters rendered per screen? #5062

Open wlib opened 1 year ago

wlib commented 1 year ago

Check for existing issues

Describe the bug / provide steps to reproduce it

It looks like whenever there are a lot of characters in the buffer (either text editor or terminal) it stops rendering later characters until the buffer is scrolled down, as if there is a limit on characters rendered on the screen. Note that whitespace does not seem to affect it.

I can replicate this by making a new buffer and pasting in a bunch of dense text. Here are 25 lines of 100 a characters:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

This renders only up to line 17, column 39 (1638 characters) for me. When I scroll down a line, another 100 become visible.

Screen Shot demonstrating the rendering issue

Environment

% echo $(zed --version) "\n"macOS $(sw_vers -productVersion) "\n"architecture $(uname -m)
Zed 0.66.1 – /Applications/Zed.app
macOS 11.6.1
architecture x86_64

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

I think that the rendering limit should not be discoverable without some pathological unicode input, and even then it should probably only cut off the line without wrapping it, making it individually scrollable with buttons or something.

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

N/A

JosephTLyons commented 1 year ago

Huh, this one is super strange. I'm not able to recreate it on my end, but it seems like some of our team members might've ran into it in the past. I wonder what the difference might be.

Labrium commented 8 months ago

I am also experiencing this same issue with those exact measurements (line 17, column 39 (1638 characters))

Zed 0.118.1 – /Volumes/Macintosh HDD/Applications/Zed.app 
macOS 10.15.7 
architecture x86_64

I have a suspicion it might be some kind of GPU limit, so this might help:

NVIDIA GeForce GT 750M 1 GB
Metal: Supported, feature set macOS GPUFamily1 v4
jansol commented 8 months ago

Can't repro either but there seems to be a forced line wrap after 511 characters even if line wrapping is set to "none" in config.

jansol commented 8 months ago

Even this stress test input (1000 rows, 1000 columns) for an old programming exercise (count number of rooms, # is a wall, no diagonal connections between cells) renders just fine aside from the forced line wrap.

Labrium commented 7 months ago

Updating Zed to 0.119.17 makes it even worse, only showing exactly 9 lines (712 characters):

Screen Shot 2024-01-24 at 12 01 54 PM

Is this because of the new GPUI 2?

CurbaiCode commented 6 months ago

I have this same issue as well with 681 characters on:

Zed: v0.122.2 (Zed)
OS: macOS 10.15.7
Memory: 8 GiB
Architecture: x86_64

PCIe: NVIDIA GeForce GT 650M
Metal: Supported, feature set macOS GPUFamily1 v4

Built-In: Intel HD Graphics 4000 (not being used for Zed)
Metal: Supported, feature set macOS GPUFamily1 v4

but not on my other machine:

Zed: v0.122.2 (Zed)
OS: macOS 12.6.6
Memory: 16 GiB
Architecture: x86_64

Built-In: Intel Iris
Metal Family: Supported, Metal GPUFamily macOS 1

Could it be a bug specific to NVIDIA?

jansol commented 6 months ago

Seems like a very odd bug, even for NVIDIA standards if that is the case. But my machine where I can't repro this does indeed not have an NVIDIA chip:

Chipset Model:  Intel HD Graphics 530
Bus:    Built-In
Metal Family:   Supported, Metal GPUFamily macOS 2

Chipset Model:  AMD Radeon Pro 460
Bus:    PCIe
Metal Family:   Supported, Metal GPUFamily macOS 2
CurbaiCode commented 6 months ago

A lot of people are having the same issue (see 7411 and 6853), and they all seem to have NVIDIA.

jansol commented 6 months ago

8056 looks very similar too, and also involves an NVIDIA GPU.

mikayla-maki commented 6 months ago

Hi y'all, if anyone here can reliably repro this bug, could you try building and running Zed with cargo run --release --features "macos-blade"? Would love to see if the issue is in our metal renderer, or if it's across both :)

sfclub commented 6 months ago

❯ cargo run --release --features "macos-blade" error: none of the selected packages contains these features: macos-blade ❯ pwd /Users/sfclub/IdeaProjects/zed ❯ ls CODE_OF_CONDUCT.md Dockerfile Procfile debug.plist livekit.yaml target CONTRIBUTING.md LICENSE-AGPL README.md docker-compose.sql plugins typos.toml Cargo.lock LICENSE-APACHE assets docker-compose.yml rust-toolchain.toml Cargo.toml LICENSE-GPL crates docs script

sfclub commented 6 months ago
cargo run --release output (before error)

/Users/sfclub/IdeaProjects/zed
❯ cargo run --release
    Updating git repository `https://github.com/servo/pathfinder.git`
    Updating git repository `https://github.com/kvark/blade`
    Updating git repository `https://github.com/zed-industries/font-kit`
    Updating crates.io index
    Updating git repository `https://github.com/zed-industries/wezterm`
    Updating git submodule `https://github.com/madler/zlib.git`
    Updating git submodule `https://github.com/glennrp/libpng.git`
    Updating git submodule `https://github.com/wez/freetype2.git`
^C     Fetch [==>                      ]  13.39%, 2.07MiB/s
❯ cargo run --release
    Updating crates.io index
    Updating git submodule `https://github.com/wez/freetype2.git`
    Updating git submodule `https://github.com/nyorain/dlg.git`
    Updating git submodule `https://github.com/harfbuzz/harfbuzz.git`
    Updating git repository `https://github.com/virchau13/tree-sitter-astro.git`
    Updating git repository `https://github.com/prcastro/tree-sitter-clojure`
    Updating git repository `https://github.com/agent3bood/tree-sitter-dart`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter.git`
    Updating git repository `https://github.com/camdencheek/tree-sitter-dockerfile`
    Updating git repository `https://github.com/gbprod/tree-sitter-gitcommit`
    Updating git repository `https://github.com/tree-sitter/tree-sitter-haskell`
    Updating git repository `https://github.com/MichaHoffmann/tree-sitter-hcl`
    Updating git repository `https://github.com/nushell/tree-sitter-nu`
    Updating git repository `https://github.com/victorhqc/tree-sitter-prisma`
    Updating git repository `https://github.com/Himujjal/tree-sitter-svelte`
    Updating git repository `https://github.com/shnarazk/tree-sitter-uiua`
  Downloaded sys-locale v0.3.1
  Downloaded ahash v0.8.8
  Downloaded toml v0.8.10
  Downloaded plist v1.5.1
  Downloaded toml_edit v0.22.6
  Downloaded quick-xml v0.30.0
  Downloaded alacritty_terminal v0.22.0
  Downloaded winnow v0.6.1
  Downloaded metal v0.25.0
  Downloaded 9 crates (4.0 MB) in 3.41s (largest was `metal` at 3.0 MB)
   Compiling libc v0.2.152
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.1.0
   Compiling serde v1.0.196
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.4
   Compiling memchr v2.6.3
   Compiling once_cell v1.19.0
   Compiling zerocopy v0.7.32
   Compiling smallvec v1.11.1
   Compiling ahash v0.8.8
   Compiling allocator-api2 v0.2.16
   Compiling anyhow v1.0.75
   Compiling pin-project-lite v0.2.13
   Compiling equivalent v1.0.1
   Compiling crc32fast v1.3.2
   Compiling serde_json v1.0.107
   Compiling aho-corasick v1.1.1
   Compiling thiserror v1.0.48
   Compiling quote v1.0.35
   Compiling syn v2.0.48
   Compiling regex-syntax v0.7.5
   Compiling hashbrown v0.14.0
   Compiling cc v1.0.84
   Compiling errno v0.3.8
   Compiling memoffset v0.9.0
   Compiling itoa v1.0.9
   Compiling semver v1.0.18
   Compiling rustc-hash v1.1.0
   Compiling either v1.9.0
   Compiling tracing-core v0.1.31
   Compiling ryu v1.0.15
   Compiling crossbeam-utils v0.8.16
   Compiling paste v1.0.14
   Compiling rustix v0.38.30
   Compiling itertools v0.10.5
   Compiling target-lexicon v0.12.13
   Compiling cranelift-isle v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling cranelift-codegen-shared v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling cranelift-codegen-meta v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling regex-automata v0.3.8
   Compiling pkg-config v0.3.27
   Compiling bitflags v1.3.2
   Compiling hashbrown v0.13.2
   Compiling arbitrary v1.3.2
   Compiling slice-group-by v0.3.1
   Compiling slab v0.4.9
   Compiling bumpalo v3.14.0
   Compiling cranelift-control v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling leb128 v0.2.5
   Compiling wasm-encoder v0.38.1
   Compiling mach v0.3.2
   Compiling cranelift-codegen v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling wasmtime-asm-macros v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling wasmtime-wmemcheck v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling sptr v0.3.2
   Compiling wasmtime-jit-icache-coherence v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling typenum v1.17.0
   Compiling regex v1.9.5
   Compiling vcpkg v0.2.15
   Compiling tree-sitter v0.20.10 (https://github.com/tree-sitter/tree-sitter?rev=1d8975319c2d5de1bf710e7e21db25b0eee4bc66#1d897531)
   Compiling wasmtime-c-api-macros v0.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling generic-array v0.14.7
   Compiling serde_derive v1.0.196
   Compiling tracing-attributes v0.1.26
   Compiling thiserror-impl v1.0.48
   Compiling wasmtime-versioned-export-macros v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling wasmtime-runtime v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling futures-core v0.3.30
   Compiling syn v1.0.109
   Compiling polling v2.8.0
   Compiling io-lifetimes v1.0.11
   Compiling libz-sys v1.1.12
   Compiling scopeguard v1.2.0
   Compiling futures-io v0.3.30
   Compiling rustix v0.37.23
   Compiling libm v0.2.8
   Compiling num-traits v0.2.16
   Compiling async-io v1.13.0
   Compiling core-foundation-sys v0.8.6
   Compiling event-listener v2.5.3
   Compiling lock_api v0.4.10
   Compiling concurrent-queue v2.2.0
   Compiling curl-sys v0.4.67+curl-8.3.0
   Compiling fastrand v1.9.0
   Compiling waker-fn v1.1.0
   Compiling parking v2.1.0
   Compiling futures-lite v1.13.0
   Compiling async-lock v2.8.0
   Compiling spin v0.5.2
   Compiling lazy_static v1.4.0
   Compiling pin-project-internal v1.1.3
   Compiling futures-macro v0.3.30
   Compiling socket2 v0.4.9
   Compiling erased-serde v0.3.31
   Compiling serde_fmt v1.0.3
   Compiling indexmap v2.0.0
   Compiling bitflags v2.4.1
   Compiling cranelift-entity v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling bincode v1.3.3
   Compiling value-bag-serde1 v1.4.1
   Compiling value-bag v1.4.1
   Compiling cranelift-bforest v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling gimli v0.28.0
   Compiling object v0.32.1
   Compiling log v0.4.20
   Compiling tracing v0.1.37
   Compiling wasmparser v0.118.1
   Compiling regalloc2 v0.9.3
   Compiling async-channel v1.9.0
   Compiling parking_lot_core v0.8.6
   Compiling tinyvec_macros v0.1.1
   Compiling unicode-bidi v0.3.13
   Compiling tinyvec v1.6.0
   Compiling fnv v1.0.7
   Compiling glob v0.3.1
   Compiling async-task v4.7.0
   Compiling unicode-normalization v0.1.22
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling clang-sys v1.6.1
   Compiling getrandom v0.2.10
   Compiling async-fs v1.6.0
   Compiling async-net v1.7.0
   Compiling async-process v1.7.0
   Compiling curl v0.4.44
   Compiling ppv-lite86 v0.2.17
   Compiling pin-utils v0.1.0
   Compiling adler v1.0.2
   Compiling atomic-waker v1.1.1
   Compiling minimal-lexical v0.2.1
   Compiling uuid v0.5.1
   Compiling percent-encoding v2.3.0
   Compiling form_urlencoded v1.2.0
   Compiling nom v7.1.3
   Compiling core-foundation v0.9.4
   Compiling blocking v1.3.1
   Compiling idna v0.4.0
   Compiling digest v0.10.7
   Compiling bstr v1.6.2
   Compiling wasmtime-types v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling cpufeatures v0.2.9
   Compiling same-file v1.0.6
   Compiling walkdir v2.4.0
   Compiling sha2 v0.10.7
   Compiling globset v0.4.13
   Compiling wasmtime-environ v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling url v2.4.1
   Compiling backtrace v0.3.69
   Compiling crossbeam-epoch v0.9.15
   Compiling isahc v1.7.2
   Compiling futures-sink v0.3.30
   Compiling bytes v1.5.0
   Compiling futures-channel v0.3.30
   Compiling rust-embed-utils v8.0.0
   Compiling rand_core v0.6.4
   Compiling async-executor v1.5.1
   Compiling libloading v0.7.4
   Compiling num-integer v0.1.45
   Compiling futures-task v0.3.30
   Compiling futures-util v0.3.30
   Compiling rand_chacha v0.3.1
   Compiling rust-embed-impl v8.0.0
   Compiling cexpr v0.6.0
   Compiling miniz_oxide v0.7.1
   Compiling wasmtime-jit v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling pin-project v1.1.3
   Compiling rayon-core v1.12.0
   Compiling peeking_take_while v0.1.2
   Compiling home v0.5.5
   Compiling lazycell v1.3.0
   Compiling signal-hook v0.3.17
   Compiling shlex v1.3.0
   Compiling which v4.4.2
   Compiling crossbeam-deque v0.8.3
   Compiling rand v0.8.5
   Compiling signal-hook-registry v1.4.1
   Compiling instant v0.1.12
   Compiling parking_lot_core v0.9.8
   Compiling futures-executor v0.3.28
   Compiling cranelift-native v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling cranelift-frontend v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling cranelift-wasm v0.103.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling wasmtime-cranelift-shared v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling http v0.2.9
   Compiling wasmtime-cranelift v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling dirs-sys v0.3.7
   Compiling rayon v1.8.0
   Compiling wasmtime v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling futures v0.3.28
   Compiling parking_lot v0.11.2
   Compiling byteorder v1.4.3
   Compiling wasmtime-c-api-impl v16.0.0 (https://github.com/bytecodealliance/wasmtime?rev=v16.0.0#6613acd1)
   Compiling parking_lot v0.12.1
   Compiling tracing-futures v0.2.5
   Compiling addr2line v0.21.0
   Compiling sluice v0.5.5
   Compiling encoding_rs v0.8.33
   Compiling castaway v0.1.2
   Compiling prettyplease v0.2.15
   Compiling rustc-demangle v0.1.23
   Compiling mime v0.3.17
   Compiling rust-embed v8.0.0
   Compiling smol v1.3.0
   Compiling dirs v3.0.2
   Compiling collections v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/collections)
   Compiling take-until v0.2.0
   Compiling arrayvec v0.7.4
   Compiling heck v0.4.1
   Compiling core-graphics-types v0.1.3
   Compiling foreign-types-macros v0.2.3
   Compiling objc_exception v0.1.2
   Compiling num-iter v0.1.43
   Compiling bindgen v0.65.1
   Compiling bytemuck v1.14.0
   Compiling foreign-types-shared v0.3.1
   Compiling fastrand v2.0.0
   Compiling foreign-types v0.5.0
   Compiling tempfile v3.9.0
   Compiling base64 v0.13.1
   Compiling crossbeam-queue v0.3.8
   Compiling malloc_buf v0.0.6
   Compiling indexmap v1.9.3
   Compiling adler32 v1.2.0
   Compiling rustc_version v0.4.0
   Compiling objc v0.2.7
   Compiling unicode-general-category v0.2.0
   Compiling pollster v0.2.5
   Compiling static_assertions v1.1.0
   Compiling hashbrown v0.12.3
   Compiling atomic v0.5.3
   Compiling block v0.1.6
   Compiling os_str_bytes v6.5.1
   Compiling clap_lex v0.2.4
   Compiling postage v0.5.0
   Compiling pathfinder_simd v0.5.2 (https://github.com/servo/pathfinder.git?rev=e4fcda0d5259d0acf902aee6de7d2501f2bd6629#e4fcda0d)
   Compiling deflate v0.8.6
   Compiling miniz_oxide v0.3.7
   Compiling sum_tree v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/sum_tree)
   Compiling flate2 v1.0.27
   Compiling deranged v0.3.8
   Compiling atty v0.2.14
   Compiling miniz_oxide v0.4.4
   Compiling util v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/util)
   Compiling cbindgen v0.26.0
   Compiling textwrap v0.16.0
   Compiling float-cmp v0.5.3
   Compiling strsim v0.10.0
   Compiling termcolor v1.1.3
   Compiling time-core v0.1.1
   Compiling time v0.3.28
   Compiling clap v3.2.25
   Compiling png v0.16.8
   Compiling media v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/media)
   Compiling core-graphics v0.23.1
   Compiling jpeg-decoder v0.1.22
   Compiling uuid v1.4.1
   Compiling toml v0.5.11
   Compiling memmap2 v0.2.3
   Compiling num-rational v0.3.2
   Compiling slotmap v1.0.6
   Compiling xmlparser v0.13.5
   Compiling unicode-bidi-mirroring v0.1.0
   Compiling matches v0.1.10
   Compiling siphasher v0.2.3
   Compiling ttf-parser v0.9.0
   Compiling weezl v0.1.7
   Compiling ttf-parser v0.12.3
   Compiling unicode-script v0.5.5
   Compiling unicode-ccc v0.1.2
   Compiling svgtypes v0.5.0
   Compiling data-url v0.1.1
   Compiling rustybuzz v0.3.0
   Compiling fontdb v0.5.4
   Compiling roxmltree v0.14.1
   Compiling metal v0.25.0
   Compiling rgb v0.8.36
   Compiling safe_arch v0.5.2
   Compiling kurbo v0.8.3
   Compiling simplecss v0.2.1
   Compiling serde_derive_internals v0.26.0
   Compiling dirs-sys-next v0.1.2
   Compiling pico-args v0.4.2
   Compiling arrayvec v0.5.2
   Compiling rctree v0.3.3
   Compiling font-kit v0.11.0 (https://github.com/zed-industries/font-kit?rev=5a5c4d4#5a5c4d4c)
   Compiling arrayref v0.3.7
   Compiling color_quant v1.1.0
   Compiling unicode-vo v0.1.0
   Compiling schemars v0.8.15
   Compiling xmlwriter v0.1.0
   Compiling usvg v0.14.1
   Compiling gif v0.11.4
   Compiling tiny-skia v0.5.1
   Compiling dirs-next v2.0.0
   Compiling schemars_derive v0.8.15
   Compiling svgfilters v0.3.0
   Compiling gpui v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/gpui)
   Compiling tiff v0.6.1
   Compiling pathfinder_geometry v0.5.1
   Compiling core-text v20.1.0
   Compiling cocoa-foundation v0.1.2
   Compiling derive_refineable v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/refineable/derive_refineable)
   Compiling euclid v0.22.9
   Compiling linkme-impl v0.3.17
   Compiling dyn-clone v1.0.14
   Compiling grid v0.11.0
   Compiling float-ord v0.2.0
   Compiling svg_fmt v0.4.1
   Compiling scoped_threadpool v0.1.9
   Compiling convert_case v0.4.0
   Compiling linkme v0.3.17
   Compiling etagere v0.2.8
   Compiling image v0.23.14
   Compiling derive_more v0.99.17
   Compiling taffy v0.3.11 (https://github.com/DioxusLabs/taffy?rev=1876f72bee5e376023eaa518aa7b8a34c769bd1b#1876f72b)
   Compiling cocoa v0.25.0
   Compiling refineable v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/refineable)
   Compiling resvg v0.14.1
   Compiling gpui_macros v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/gpui_macros)
   Compiling ordered-float v2.10.0
   Compiling ctor v0.2.6
   Compiling num_cpus v1.16.0
   Compiling raw-window-handle v0.6.0
   Compiling seahash v4.1.0
   Compiling digest v0.9.0
   Compiling async-trait v0.1.73
   Compiling libgit2-sys v0.14.2+1.5.1
   Compiling seq-macro v0.2.2
   Compiling bromberg_sl2 v0.6.0 (https://github.com/zed-industries/bromberg_sl2?rev=950bc5482c216c395049ae33ae4501e08975f17f#950bc548)
   Compiling clock v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/clock)
   Compiling rope v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/rope)
   Compiling siphasher v0.3.11
   Compiling phf_shared v0.11.2
   Compiling toml_datetime v0.6.5
   Compiling serde_spanned v0.6.5
   Compiling iana-time-zone v0.1.57
   Compiling text v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/text)
   Compiling libsqlite3-sys v0.26.0
   Compiling tree-sitter-json v0.19.0
   Compiling fsevent-sys v3.1.0
   Compiling serde_json_lenient v0.1.7
   Compiling winnow v0.6.1
   Compiling fsevent v2.0.2 (/Users/sfclub/IdeaProjects/zed/crates/fsevent)
   Compiling prost-derive v0.9.0
   Compiling chrono v0.4.31
   Compiling phf_generator v0.11.2
   Compiling toml_edit v0.22.6
   Compiling async-global-executor v2.3.1
   Compiling kv-log-macro v1.0.7
   Compiling security-framework-sys v2.9.1
   Compiling zstd-sys v2.0.8+zstd.1.5.5
   Compiling native-tls v0.2.11
   Compiling rustversion v1.0.14
   Compiling security-framework v2.9.2
   Compiling async-std v1.12.0
   Compiling release_channel v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/release_channel)
   Compiling feature_flags v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/feature_flags)
   Compiling toml v0.8.10
   Compiling phf_macros v0.11.2
   Compiling prost v0.9.0
   Compiling prost-build v0.9.0
   Compiling num-bigint v0.4.4
   Compiling httparse v1.8.0
   Compiling fixedbitset v0.4.2
   Compiling palette v0.7.3
   Compiling unicode-segmentation v1.10.1
   Compiling heck v0.3.3
   Compiling petgraph v0.6.4
   Compiling prost-types v0.9.0
   Compiling phf v0.11.2
   Compiling block-buffer v0.9.0
   Compiling approx v0.5.1
   Compiling zeroize_derive v1.4.2
   Compiling serde_repr v0.1.16
   Compiling palette_derive v0.7.3
   Compiling multimap v0.8.3
   Compiling fast-srgb8 v1.0.0
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling opaque-debug v0.3.0
   Compiling num-bigint-dig v0.7.1
   Compiling sha-1 v0.9.8
   Compiling zeroize v1.6.0
   Compiling strum_macros v0.25.2
   Compiling utf-8 v0.7.6
   Compiling simple_asn1 v0.5.4
   Compiling strum v0.25.0
   Compiling tungstenite v0.16.0
   Compiling color v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/color)
   Compiling rpc v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/rpc)
   Compiling async-native-tls v0.3.3
   Compiling prost-derive v0.8.0
   Compiling pem v0.8.3
   Compiling unicase v2.7.0
   Compiling pin-project-lite v0.1.12
   Compiling subtle v2.5.0
   Compiling rsa v0.4.0
   Compiling smol-timeout v0.6.0
   Compiling prost v0.8.0
   Compiling async-tungstenite v0.16.1
   Compiling pulldown-cmark v0.9.3
   Compiling indoc v1.0.9
   Compiling lsp-types v0.94.1 (https://github.com/zed-industries/lsp-types?branch=updated-completion-list-item-defaults#90a040a1)
   Compiling thread_local v1.1.7
   Compiling async-broadcast v0.4.1
   Compiling itertools v0.11.0
   Compiling language v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/language)
   Compiling unicode_categories v0.1.1
   Compiling sqlez v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/sqlez)
   Compiling sqlformat v0.2.2
   Compiling fuzzy v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/fuzzy)
   Compiling similar v1.3.0
   Compiling sqlez_macros v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/sqlez_macros)
   Compiling bindgen v0.64.0
   Compiling ascii v1.1.0
   Compiling chunked_transfer v1.4.1
   Compiling tiny_http v0.8.2
   Compiling sysinfo v0.29.10
   Compiling async-recursion v0.3.2
   Compiling base64 v0.21.4
   Compiling xattr v0.2.3
   Compiling filetime v0.2.22
   Compiling core-foundation-sys v0.6.2
   Compiling async-tar v0.4.2
   Compiling async-compression v0.4.5
   Compiling cfg-if v0.1.10
   Compiling net2 v0.2.39
   Compiling iovec v0.1.4
   Compiling vte_generate_state_changes v0.1.1
   Compiling cursor-icon v1.1.0
   Compiling utf8parse v0.2.1
   Compiling regex-syntax v0.8.2
   Compiling cpal v0.15.2
   Compiling coreaudio-sys v0.2.12
   Compiling vte v0.13.0
   Compiling mio v0.6.23
   Compiling regex-automata v0.4.5
   Compiling lsp v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/lsp)
   Compiling node_runtime v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/node_runtime)
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling coreaudio-rs v0.11.2
   Compiling dirs v4.0.0
   Compiling rustix-openpty v0.1.1
   Compiling polling v3.3.2
   Compiling mach2 v0.4.1
   Compiling dasp_sample v0.11.0
   Compiling unicode-width v0.1.11
   Compiling alacritty_terminal v0.22.0
   Compiling git2 v0.15.0
   Compiling mio-extras v2.0.6
   Compiling shellexpand v2.1.2
   Compiling menu v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/menu)
   Compiling live_kit_client v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/live_kit_client)
   Compiling procinfo v0.1.0 (https://github.com/zed-industries/wezterm?rev=0c13436f4fa8b126f46dd4a20106419b41666897#0c13436f)
   Compiling fs v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/fs)
   Compiling git v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/git)
   Compiling settings v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/settings)
   Compiling theme v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/theme)
   Compiling runnable v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/runnable)
   Compiling hound v3.5.0
   Compiling rodio v0.17.1
   Compiling copilot v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/copilot)
   Compiling ui v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/ui)
   Compiling ignore v0.4.20
   Compiling audio v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/audio)
   Compiling install_cli v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/install_cli)
   Compiling async-recursion v1.0.5
   Compiling linkify v0.10.0
   Compiling convert_case v0.6.0
   Compiling db v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/db)
   Compiling client v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/client)
   Compiling terminal v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/terminal)
   Compiling prettier v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/prettier)
   Compiling rich_text v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/rich_text)
   Compiling project v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/project)
   Compiling snippet v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/snippet)
   Compiling multi_buffer v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/multi_buffer)
   Compiling num-bigint v0.2.6
   Compiling num-complex v0.2.4
   Compiling num-rational v0.2.4
   Compiling matrixmultiply v0.3.8
   Compiling bit-vec v0.6.3
   Compiling bit-set v0.5.3
error: failed to run custom build command for `live_kit_client v0.1.0 (/Users/sfclub/IdeaProjects/zed/crates/live_kit_client)`

Caused by:
  process didn't exit successfully: `/Users/sfclub/IdeaProjects/zed/target/release/build/live_kit_client-aec318df0b530c85/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
  cargo:rerun-if-changed=LiveKitBridge/Sources
  cargo:rerun-if-changed=LiveKitBridge/Package.swift
  cargo:rerun-if-changed=LiveKitBridge/Package.resolved
  Fetching https://github.com/apple/swift-log.git
  Fetching https://github.com/google/promises.git
  Fetching https://github.com/webrtc-sdk/Specs.git
  Fetched https://github.com/webrtc-sdk/Specs.git (2.12s)
  Fetched https://github.com/google/promises.git (2.12s)
  Fetched https://github.com/apple/swift-log.git (2.12s)
  Fetching https://github.com/apple/swift-protobuf.git
  Fetching https://github.com/livekit/client-sdk-swift.git
  Creating working copy for https://github.com/apple/swift-log.git
  Fetched https://github.com/apple/swift-protobuf.git (19.07s)
  Fetched https://github.com/livekit/client-sdk-swift.git (19.07s)
  Working copy of https://github.com/apple/swift-log.git resolved at 1.5.2
  Creating working copy for https://github.com/google/promises.git
  Working copy of https://github.com/google/promises.git resolved at 2.2.0
  Creating working copy for https://github.com/webrtc-sdk/Specs.git
  Working copy of https://github.com/webrtc-sdk/Specs.git resolved at 104.5112.17
  Creating working copy for https://github.com/apple/swift-protobuf.git
  Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.22.1
  Creating working copy for https://github.com/livekit/client-sdk-swift.git
  Working copy of https://github.com/livekit/client-sdk-swift.git resolved at 1.0.12

  [18/21300] Downloading binary artifacts
  clang: error: invalid version number in '-target x86_64-apple-macosx10.15.710.10'
  clang: error: invalid version number in '-target x86_64-apple-macosx10.15.710.10'
  clang: error: invalid version number in '-target x86_64-apple-macosx10.15.710.10'
  [0/21] Compiling FBLPromises FBLPromise.m
  [0/21] Compiling FBLPromises FBLPromise+Then.m
  [0/21] Compiling FBLPromises FBLPromise+Testing.m
  [0/21] Compiling FBLPromises FBLPromiseError.m
  [0/21] Compiling FBLPromises FBLPromise+Wrap.m
  [0/21] Compiling FBLPromises FBLPromise+Timeout.m
  [0/21] Compiling FBLPromises FBLPromise+Validate.m

  --- stderr
  thread 'main' panicked at crates/live_kit_client/build.rs:80:9:
  Failed to compile swift package in /Users/sfclub/IdeaProjects/zed/crates/live_kit_client/LiveKitBridge
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

macos 11.7.10,
❯ /usr/bin/xcodebuild -version
Xcode 13.2.1
Build version 13C100
lhps commented 6 months ago

I am having this issue too

CurbaiCode commented 6 months ago

I accidentally found a strange behavior. Emojis are still rendered even when the text around it isn't.

Screen Shot

Zed: v0.123.2 (Zed)
OS: macOS 10.15.7
Memory: 8 GiB
Architecture: x86_64
daiyam commented 6 months ago

Same issue, here 😢

arpecop commented 6 months ago

I accidentally found a strange behavior. Emojis are still rendered even when the text around it isn't.

Screen Shot

Zed: v0.123.2 (Zed)
OS: macOS 10.15.7
Memory: 8 GiB
Architecture: x86_64

that makes me think that different font might solve this

Moshyfawn commented 6 months ago

Can any maintainer confirm or deny that #6853 is the same issue?

pronebird commented 6 months ago

Just tested today and it works great on my newer MBP with Radeon on Ventura, but doesn't work on older one with Intel Iris Pro, Nvidia GT 750M and Big Sur

CurbaiCode commented 5 months ago

With the latest Zed stable (v0.127.3), this bug has changed, and now also affects the project panel:

Screen Shot 2024-03-20 at 11 45 16 AM Screen Shot 2024-03-20 at 11 45 28 AM

daiyam commented 5 months ago

Same as @CurbaiCode, now, all the lines are displayed but not all the characters. Scrolling changes which characters being displayed... The panels are also affected.

tjarratt commented 5 months ago

I'm experiencing this as well on an older macbook pro with an Nvidia card. Based on some of the comments, I thought to try out an older build. Using the latest builds of zed.app, this issues reproduces even in some smaller markdown files that contain some 1500 characters.

I was not able to reproduce this using the v0.94.4 release from last summer. Given that there is a lot of builds, we could narrow down precisely when this began to break.

Kurt1968 commented 5 months ago

@tjarratt I had an issue opened after the 122.2 update, which I think was the one using the new GPUI2, before the update it was working properly. I also tried compiling a newer build as suggested by @mikayla-maki on this thread but had no luck with cargo reporting the feature not existing.

Labrium commented 5 months ago

Given that there is a lot of builds, we could narrow down precisely when this began to break.

@tjarratt I did this manually and the latest release that works for me is v0.118.1.

pronebird commented 4 months ago

We're getting closer to solving this. The new artifact now expands to the zed UI too and only obscures individual letters but there is no more weird clipping:

Screen Shot 2024-04-21 at 11 51 31 Screen Shot 2024-04-21 at 11 51 41
drumst0ck commented 4 months ago

I've the same problem with NVIDIA GeForce GTX 675MX (MacOSX)