Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Toooo slow to open (M2 chip)

Open namasikanam opened this issue 2 years ago • 20 comments

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

namasikanam avatar Aug 23 '22 03:08 namasikanam

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

alokedesai avatar Aug 23 '22 13:08 alokedesai

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.

namasikanam avatar Aug 23 '22 16:08 namasikanam

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?

alokedesai avatar Aug 23 '22 17:08 alokedesai

All right, @alokedesai

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

namasikanam avatar Aug 24 '22 02:08 namasikanam

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

qcjackman avatar Aug 25 '22 03:08 qcjackman

@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 [email protected]

config file locations by shell are:

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

dannyneira avatar Aug 25 '22 05:08 dannyneira

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.

songxianj avatar Aug 27 '22 04:08 songxianj

Me to. Very slow image

GankLi avatar Sep 09 '22 03:09 GankLi

@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?

dannyneira avatar Sep 09 '22 19:09 dannyneira

@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.

songxianj avatar Sep 10 '22 09:09 songxianj

Thanks @dannyneira

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

namasikanam avatar Sep 11 '22 18:09 namasikanam

@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

alokedesai avatar Sep 12 '22 12:09 alokedesai

@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.

songxianj avatar Sep 13 '22 02:09 songxianj

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

Songwaitter avatar Sep 19 '22 09:09 Songwaitter

Does this repro if you turn your wifi off?

alokedesai avatar Sep 19 '22 12:09 alokedesai

Does this repro if you turn your wifi off?

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

namasikanam avatar Sep 19 '22 12:09 namasikanam

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

namasikanam avatar Sep 19 '22 13:09 namasikanam

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".

alokedesai avatar Sep 19 '22 13:09 alokedesai

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!

GankLi avatar Sep 20 '22 02:09 GankLi

Thanks @GankLi! We'll get this fixed

alokedesai avatar Sep 20 '22 13:09 alokedesai

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 }

azouever avatar Sep 26 '22 01:09 azouever

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

Songwaitter avatar Oct 10 '22 04:10 Songwaitter

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.

vorporeal avatar Oct 13 '22 19:10 vorporeal

@namasikanam v0.2022.10.18.08.10.stable_01 is ok.

GankLi avatar Oct 24 '22 02:10 GankLi

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

alokedesai avatar Oct 24 '22 13:10 alokedesai

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)"

dimitur2204 avatar Feb 22 '23 19:02 dimitur2204

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.

songxianj avatar Feb 23 '23 02:02 songxianj

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?

dimitur2204 avatar Feb 23 '23 08:02 dimitur2204

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

gabrielccarvalho avatar Mar 02 '23 12:03 gabrielccarvalho

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

vorporeal avatar Mar 06 '23 19:03 vorporeal