You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a 10 GB text file into ZED and then scrolling down the file, at some point the text lines start to overlap visually. First it's two lines, than the number of overlapping lines increases.
Steps to trigger the problem:
Create a large text file filled with random text.
Load that file.
Scroll down.
Actual Behavior:
Text lines overlap visually.
Expected Behavior:
Text is displayed normally.
# %%importosimportrandomimportstringimportsysdefgenerate_random_text(length):
"""Generate a random string of specified length."""return''.join(random.choices(string.ascii_letters+string.digits+string.punctuation+' ', k=length))
defwrite_large_file(file_path, size_in_gb):
"""Write a large text file with random text, line-breaking after 120 characters."""chunk_size=1024*1024# 1 MB chunkstotal_size=size_in_gb*1024*1024*1024# Convert GB to byteswritten_size=0withopen(file_path, 'w') asf:
whilewritten_size<total_size:
remaining_size=total_size-written_sizecurrent_chunk_size=min(chunk_size, remaining_size)
# Generate random text for the current chunkchunk_text=generate_random_text(current_chunk_size)
# Insert line breaks after every 120 charactersformatted_text='\n'.join(chunk_text[i:i+120] foriinrange(0, len(chunk_text), 120))
# Write the formatted text to the filef.write(formatted_text)
# Update the written sizewritten_size+=current_chunk_size# Print progressprogress= (written_size/total_size) *100sys.stdout.write(f"\rProgress: {progress:.2f}%")
sys.stdout.flush()
print("\nFile writing complete.")
# %%file_path="large_random_text_file.txt"size_in_gb=1# Change this value to write a file of the desired size in GBwrite_large_file(file_path, size_in_gb)
# %%#file_path="large_random_text_file_10GB.txt"size_in_gb=10# Change this value to write a file of the desired size in GBwrite_large_file(file_path, size_in_gb)
<!--Failedtoupload"Bildschirmaufnahme 2025-03-20 um 12.53.05.mov"-->
Summary
When loading a 10 GB text file into ZED and then scrolling down the file, at some point the text lines start to overlap visually. First it's two lines, than the number of overlapping lines increases.
Steps to trigger the problem:
Actual Behavior:
Text lines overlap visually.
Expected Behavior:
Text is displayed normally.
Zed Version and System Specs
Zed: v0.178.5 (Zed)
OS: macOS 15.3.2
Memory: 32 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: