warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.44k stars 375 forks source link

Toooo slow to open (M2 chip) #1751

Closed namasikanam closed 2 years ago

namasikanam commented 2 years ago

Discord username (optional)

No response

Describe the bug

Tooooo slow to open (several minutes)...

To Reproduce

Just open Warp...

Expected behaviour

Stuck for several minutes.

Screenshots

image

Operating System

MacOS

OS Version

12.4

Shell Version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Warp Version

v0.2022.08.08.09.21.stable_00

Additional context

No response

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

alokedesai commented 2 years ago

Hey @namasikanam, thank you for filling! Is the delay you are seeing related to a window opening or with an actual session starting (e.g. the "starting zsh..." text appears for a while)?

If it's the latter, are you able to repro with your zshrc file commented out? It's possible something in your RC file could be causing the slowness

namasikanam commented 2 years ago

Thanks @alokedesai

Both the window opening and the actual session starting are slow, the former may cost less than 1min, the latter may cost several minutes.

This is my zshrc file.

alokedesai commented 2 years ago

Thanks @namasikanam! Would you also be able to provide a video from the moment you launch Warp to the moment the session has fully started to help us debug futher?

namasikanam commented 2 years ago

All right, @alokedesai

https://user-images.githubusercontent.com/22532925/186304247-9b899674-edb5-445f-914f-99b0be2796d8.mp4

qcjackman commented 2 years ago

image me too, this is my mac, slowly too! how to resolve?

dannyneira commented 2 years ago

@namasikanam @qcjackman

Our team is prioritizing fixing this. Would you be willing to share your dotfiles to help us reproduce the slowness? If so, please remove any personal information and email them to feedback@warp.dev

config file locations by shell are:

Bash = ~/.bashrc and ~/.bash_profile Zsh = ~/.zshrc and ~/.zprofile

songxianj commented 2 years ago

Experiencing the same thing on my M2 MacBook Air (also my first time using Warp). I added ZDOTDIR=/ in my ~/.zshenv as guided in the manual but still, every action from starting up the app is insanely slow and triggers the spinning wheel every time, notably in the preferences panel. The only exception is the terminal area, which runs fairly smoothly when I enter and execute commands.

GankLi commented 2 years ago

Me to. Very slow

image
dannyneira commented 2 years ago

@namasikanam recent update has resolved a lot of slow startup issues, are you still experiencing the same as of the new build v0.2022.09.07.14.56?

songxianj commented 2 years ago

@namasikanam recent update has resolved a lot of slow startup issues, are you still experiencing the same as of the new build v0.2022.09.07.14.56?

Thanks for your work. Personally, I'm still having the same issues as before. Could it possibly be a problem with Chinese language support? As far as I can tell, all the users who are reporting slowness in this issue are using Simplified Chinese as their OS's display language, me included.

namasikanam commented 2 years ago

Thanks @dannyneira

It starts a little quicklier for me (~1min), but still not at a tolerable speed.

alokedesai commented 2 years ago

@songxianj That's an interesting theory--as a followup what country are you (and other users who are experiencing this issue) based in? If it's all China, there also could be a network request hanging for some reason

songxianj commented 2 years ago

@songxianj That's an interesting theory--as a followup what country are you (and other users who are experiencing this issue) based in? If it's all China, there also could be a network request hanging for some reason

That could be a reason why. I am indeed based in China, for your information. I also have a VPN/proxy enabled at all times to connect faster to servers in other countries.

Songwaitter commented 2 years ago

Is it a regional problem? I also have the same problem in China

alokedesai commented 2 years ago

Does this repro if you turn your wifi off?

namasikanam commented 2 years ago

Does this repro if you turn your wifi off?

No! It is indeed because of Great Firewall in China!

namasikanam commented 2 years ago

@alokedesai Is it a way to close automatic network connecting in settings of Warp?

alokedesai commented 2 years ago

There isn't unfortunately. The fact that the Warp is hanging based on a network request hanging is definitely an issue on our end.

Do you see anything in the Mac console app for Warp when the hang occurs? See here for details on how to open the Console app. Once it's open, click on "Log reports" and then search for "warp.log".

GankLi commented 2 years ago

02:06:52 [ERROR] Couldn't download & process file /Users/mac/Library/Application Support/dev.warp.Warp-Stable/AItbvmnKHwoKd73RYsI-gw_TnwEZDKzMKNTXZrKcQQZX=s96-c, error: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("lh3.googleusercontent.com")), port: None, path: "/a/AItbvmnKHwoKd73RYsI-gw_TnwEZDKzMKNTXZrKcQQZX=s96-c", query: None, fragment: None }, source: TimedOut } -- The Great Firewall in China!

alokedesai commented 2 years ago

Thanks @GankLi! We'll get this fixed

azouever commented 2 years ago

log detail 01:52:54 [INFO] window resized 01:52:54 [INFO] dispatching global action for workspace:save_app 01:52:54 [WARN] Expected to have session for session ID None, but doesn't exist 01:52:55 [WARN] Failed to record time "sample value too large" 01:53:24 [ERROR] Couldn't download & process file /Users/xukaixuan/Library/Application Support/dev.warp.Warp-Stable/AFdZucp_isGUeTYxFnkUmzapY_Fj9HOyTRXSIC05v-h0fw=s96-c, error: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("lh3.googleusercontent.com")), port: None, path: "/a-/AFdZucp_isGUeTYxFnkUmzapY_Fj9HOyTRXSIC05v-h0fw=s96-c", query: None, fragment: None }, source: TimedOut } 01:53:25 [INFO] Start to flush telemetry events to Segment 01:53:54 [ERROR] Couldn't download & process file /Users/xukaixuan/Library/Application Support/dev.warp.Warp-Stable/AFdZucp_isGUeTYxFnkUmzapY_Fj9HOyTRXSIC05v-h0fw=s96-c, error: reqwest::Error { kind : Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("lh3.googleusercontent.com")), port: None, path: "/a-/AFdZucp_isGUeTYxFnkUmzapY_Fj9HOyTRXSIC05v-h0fw=s96-c", query: None, fragment: None }, source: TimedOut }

Songwaitter commented 2 years ago

It is determined that the problem is GFW, and the previous issue is found. Resolvent(lanuch with proxy) `cd /Applications/Warp.app/Contents/MacOS;

export https proxy= http://127.0.0.1:7890 http proxy= http://127.0.0.1:7890 all_ proxy=socks5://127.0.0.1:7890; ./ stable`

quote: #1070

vorporeal commented 2 years ago

I've submitted a change that I believe should fix this issue (or at least fix part of it); the change will go out in next week's release.

GankLi commented 2 years ago

@namasikanam v0.2022.10.18.08.10.stable_01 is ok.

alokedesai commented 2 years ago

Great! We'll go ahead and close this issue, please reopen if you're still experiencing this

dimitur2204 commented 1 year ago

I am having the same problem on M1 Pro Macbook Pro 16", with the latest version. For me it's never even starting it just stays on Starting zsh... and I also get the Seems like your shell is taking a while to start....

It usually happens on the 2nd tab I open. This is my: .zshrc:

export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

export PATH="/Users/dimitar.nizamov/Library/Python/3.8/bin:$PATH"

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`

export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

.zshprofile:

eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

export PATH="$PATH:$(yarn global bin)"
songxianj commented 1 year ago

I am having the same problem on M1 Pro Macbook Pro 16", with the latest version. For me it's never even starting it just stays on Starting zsh... and I also get the Seems like your shell is taking a while to start....

It usually happens on the 2nd tab I open. This is my: .zshrc:

export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

export PATH="/Users/dimitar.nizamov/Library/Python/3.8/bin:$PATH"

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`

export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

.zshprofile:

eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

export PATH="$PATH:$(yarn global bin)"

This seems like a separate issue. What we experienced before was that the entire app felt sluggish and was not related to the number of tabs opened or the zsh shell starting.

dimitur2204 commented 1 year ago

This seems like a separate issue. What we experienced before was that the entire app felt sluggish and was not related to the number of tabs opened or the zsh shell starting

Should I create an issue then?

gabrielccarvalho commented 1 year ago

is this specific bug still happening or got fixed? because my warp don't even open on m2 macbook air... every time I have to force quit the app...

Screenshot 2023-03-02 at 09 51 51

vorporeal commented 1 year ago

@gabrielccarvalho Hey Gabriel, mind opening a separate GitHub issue with details about what you're experiencing?

abubakarasifmughal commented 1 year ago

I even tried updating and removing unnecessary env vars. But still it takes long to open up. In my case it opens up instantly but is very slow to start.

say8425 commented 1 year ago

same here very slow to start