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
20.37k stars 337 forks source link

The application 'Warp' can't be opened. #4746

Open romica228 opened 3 months ago

romica228 commented 3 months ago

Discord username (optional)

No response

Describe the bug

Warp app wont open after being installed on the mac for the first time. Tryied reinstalling it and no luck, still same error.

To reproduce

Just install the app via dmg or brew and try to open it. The Apple prompt telling that this is an app from the Internet and so on appears and then nothing happens.

Expected behavior

The app to launch.

Screenshots

Screenshot 2024-04-13 at 07 22 35

Operating system

MacOS

Operating system and version

macOS Big Sur 11.7.10

Shell Version

zsh 5.8

Current Warp version

Not open it to give the version, but its the most recent one.

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

27 March

Additional context

I updated the macOS version from 11.5 to 11.7.10 and maybe it has something to do with it. Was working well on 11.5

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 3 months ago

Hi @romica228 sorry to hear about this. Make sure your Mac hardware that supports Metal. That's the API we use to render Warp on Mac.

If it does support Metal, make sure that Warp is in the application folder. If the issue persist, please provide the logs so that we can investigate the issue further. https://docs.warp.dev/help/sending-us-feedback#gathering-warp-logs

romica228 commented 3 months ago

Hello, @dannyneira

Thank you for your response, my Mac supports Metal but I can't provide you with the logs because there are no files created related to warp in the logs folder. After today's update the app wont prompt even the message reported earlier.

dannyneira commented 3 months ago

Heard, Sorry about this. I'll let the team know and see if there is a possible workaround.

vorporeal commented 2 months ago

Hey @romica228 - can you try deleting Warp.app and reinstalling it (in case something got screwy when you updated your OS)?

romica228 commented 2 months ago

Hello @vorporeal,

Done that and still no response from the app at all. Tried both .dmg and brew.

mysticfalconvt commented 2 months ago

Ive been having a really similar issue for the last couple of weeks. Trying to start Warp and the icon flashes and goes away. I also have no warp files in the logs. I have tried uninstalling and removing anything warp related then reinstalling via the DMG or brew. Really hard to troubleshoot with no logs. Works fine on my other identical mac. (M1 Pro)

vorporeal commented 2 months ago

Hey, sorry you're all experiencing this. I've done some research and can't find any good information as to why this occurs or what to do about it.

@mysticfalconvt The reason there are no Warp logs is that macOS is preventing you from even running Warp - the application never even starts.

Can you check in Console.app to see if launchd.log has any relevant information?

mysticfalconvt commented 2 months ago

Can you check in Console.app to see if launchd.log has any relevant information?

results related to Warp in `launchd.log`
2024-04-29 11:01:36.339908 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: internal event: WILL_SPAWN, code = 0
2024-04-29 11:01:36.339910 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: service state: spawn scheduled
2024-04-29 11:01:36.339910 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: service state: spawning
2024-04-29 11:01:36.340209 <Notice>: Coalition Cache Hit: app<application.dev.warp.Warp-Stable.118903577.118903687(501)> [255819]
2024-04-29 11:01:36.340223 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: launching: launch job demand
2024-04-29 11:01:36.344477 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: xpcproxy spawned with pid 61506
2024-04-29 11:01:36.344522 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: internal event: SPAWNED, code = 0
2024-04-29 11:01:36.344525 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: service state: xpcproxy
2024-04-29 11:01:36.344595 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: internal event: SOURCE_ATTACH, code = 0
2024-04-29 11:01:36.362196 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: service state: running
2024-04-29 11:01:36.362241 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: internal event: INIT, code = 0
2024-04-29 11:01:36.362244 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: job state = running
2024-04-29 11:01:36.362274 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: Successfully spawned stable[61506] because launch job demand
2024-04-29 11:01:36.439889 (pid/61506 [stable]) <Notice>: uncorking exec source upfront
2024-04-29 11:01:36.439907 (pid/61506 [stable]) <Notice>: created
2024-04-29 11:01:36.457354 (pid/61506 [stable]) <Notice>: shutting down
2024-04-29 11:01:36.457392 (pid/61506 [stable]) <Notice>: cleaning up
2024-04-29 11:01:36.457497 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: exited due to exit(1)
2024-04-29 11:01:36.457503 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: service state: exited
2024-04-29 11:01:36.457536 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: internal event: EXITED, code = 0
2024-04-29 11:01:36.457541 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: job state = exited
2024-04-29 11:01:36.457795 (gui/501 [100011]) <Notice>: service inactive: application.dev.warp.Warp-Stable.118903577.118903687
2024-04-29 11:01:36.457800 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687 [61506]) <Notice>: service state: not running
2024-04-29 11:01:36.457807 (system) <Notice>: removing child: pid/61506
2024-04-29 11:01:36.459177 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: removing job: caller = runningboardd
2024-04-29 11:01:36.459180 (gui/501 [100011]) <Notice>: removing service: application.dev.warp.Warp-Stable.118903577.118903687
2024-04-29 11:01:36.459212 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: internal event: PETRIFIED, code = 0
2024-04-29 11:01:36.459215 (gui/501/application.dev.warp.Warp-Stable.118903577.118903687) <Notice>: job state = removed

vorporeal commented 2 months ago

Hm. If you run the app from Terminal.app or iTerm using /Applications/Warp.app/Contents/MacOS/stable (assuming you've installed Warp by copying it into the Applications folder), do you get any log output there?

mysticfalconvt commented 2 months ago

That actually works. Opens right up. Still doesn't open when trying outside of that command in the terminal.

results from running Warp.app/Contents/MacOS/stable ``` % Warp.app/Contents/MacOS/stable 12:17:00 [INFO] Spawning terminal server process... 12:17:00 [INFO] Running terminal server... 12:17:00 [INFO] application will finish launching 12:17:00 [INFO] Removing old executable dir... 12:17:00 [INFO] Removing old executable file... 12:17:00 [INFO] Initializing crash reporting Some("mac_stable_release") with tag "v0.2024.04.23.08.01.stable_03"... 12:17:00 [INFO] Initializing Sentry for cocoa app with endpoint https://0195a81da0714f55a93ee4624825f9ec@o540343.ingest.sentry.io/5658526 12:17:00 [INFO] Initial open file descriptor limit is 2560, with a hard limit of 9223372036854775807 12:17:00 [INFO] Starting warp with channel state ChannelState { channel: Stable, app_id: AppId { qualifier: "dev", organization: "warp", application_name: "Warp-Stable" }, additional_features: {}, firebase_api_key: "AIzaSyBdy3O3S9hrdayLJxJ7mriBR4qgUaUygAs", server_root_url: "https://app.warp.dev", ws_server_url: "wss://rtc.app.warp.dev/graphql", session_sharing_server_url: Some("wss://session-sharing-server-o3mgmiurkq-uk.a.run.app"), segment_write_key: "sTT9ZajzIaQ0phzLFOnqZ6VOqplJTlaJ", segment_root_url: "https://api.segment.io", releases_base_url: "https://releases.warp.dev", sentry_url: "https://0195a81da0714f55a93ee4624825f9ec@o540343.ingest.sentry.io/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true, skip_login: false } and version Some("v0.2024.04.23.08.01.stable_03") 12:17:01 [INFO] Performance metrics collector started 12:17:01 [INFO] Start to flush telemetry events to Segment 12:17:01 [INFO] Dropping empty telemetry batch 12:17:01 [INFO] Flushed telemetry events. 12:17:01 [INFO] Initializing app services 12:17:01 [WARN] SQLite error 283 (A WAL mode database file was recovered): recovered 381 frames from WAL file /Users/robertboskind/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite-wal 12:17:01 [INFO] Connecting to SQLite database 12:17:01 [INFO] fetching team tester status 12:17:01 [INFO] Checking for update on channel stable_release. Update id is lGH0DuP 12:17:01 [INFO] Fetching channel versions (without changelogs) from Warp server 12:17:01 [INFO] dispatching global action for root_view:open_from_restored 12:17:01 [INFO] Computing available system fonts 12:17:01 [INFO] Starting shell /opt/homebrew/bin/zsh 12:17:01 [INFO] Successfully spawned child zsh process with pid 66775 12:17:01 [INFO] Successfully spawned tty with pid: 66775 12:17:01 [INFO] Opening window with id 0 12:17:01 [INFO] Fetching channel versions and changelogs from Warp server 12:17:01 [INFO] Using discrete GPU for rendering new window. 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Tried to update block filter query without active_filter_editor_block_index set 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] No alert dialog was set for the native modal 12:17:01 [WARN] Tried to render share modal without a model 12:17:01 [INFO] Received InitShell hook 2024-04-29 12:17:01.185 stable[66771:20580990] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:. 12:17:01 [INFO] application can reach internet 12:17:01 [WARN] redraw_frame was called 6 times before the frame was drawn 12:17:01 [INFO] application did become active 12:17:01 [INFO] Received CommandFinished hook 12:17:01 [INFO] Block finished with new state DoneWithNoExecution 12:17:01 [INFO] Incrementing stage from WarpInput to ScriptExecution 12:17:01 [INFO] Received Precmd hook 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [INFO] window resized 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Expected to have session for session ID SessionId(17144074215657), but doesn't exist 12:17:01 [INFO] window resized 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Expected to have session for session ID SessionId(17144074215657), but doesn't exist 12:17:01 [INFO] window resized 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Expected to have session for session ID SessionId(17144074215657), but doesn't exist 12:17:01 [INFO] window resized 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Expected to have session for session ID SessionId(17144074215657), but doesn't exist 12:17:01 [INFO] active window changed: Some(WindowId(0)) 12:17:01 [INFO] dispatching global action for root_view:update_quake_mode_state 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Expected to have session for session ID SessionId(17144074215657), but doesn't exist 12:17:01 [INFO] window resized 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [WARN] Expected to have session for session ID SessionId(17144074215657), but doesn't exist 12:17:01 [INFO] fetching teams metadata 12:17:01 [INFO] fetching updated cloud objects, including generic string objects 12:17:01 [WARN] redraw_frame was called 4 times before the frame was drawn 12:17:01 [INFO] Received Bootstrapped hook 12:17:01 [INFO] Configured typeahead mode as ShellReported 12:17:01 [INFO] Parsed shell version string: Some([Number(5), Number(9)]) 12:17:01 [INFO] Shell is bootstrapped with session_id SessionId(17144074215657) 12:17:01 [INFO] Loading history from file /Users/robertboskind/.zsh_history for shell zsh 12:17:01 [INFO] Received CommandFinished hook 12:17:01 [INFO] Block finished with new state DoneWithNoExecution 12:17:01 [INFO] Incrementing stage from Bootstrapped to PostBootstrapPrecmd 12:17:01 [INFO] dispatching global action for workspace:save_app 12:17:01 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.29.08.02.dev_00", update_by: None, soft_cutoff: Some("v0.2023.05.12.08.03.dev_00") }, overrides: [] }; preview: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.29.08.02.preview_00", update_by: None, soft_cutoff: None }, overrides: [] }; canary: ChannelVersion { version_info: VersionInfo { version: "v0.2022.09.29.08.08.canary_00", update_by: None, soft_cutoff: None }, overrides: [] }; beta: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.23.08.01.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.23.08.01.stable_03", update_by: None, soft_cutoff: Some("v0.2024.03.05.08.02.stable_00") }, overrides: [] } 12:17:01 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.29.08.02.dev_00", update_by: None, soft_cutoff: Some("v0.2023.05.12.08.03.dev_00") }, overrides: [] }; preview: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.29.08.02.preview_00", update_by: None, soft_cutoff: None }, overrides: [] }; canary: ChannelVersion { version_info: VersionInfo { version: "v0.2022.09.29.08.08.canary_00", update_by: None, soft_cutoff: None }, overrides: [] }; beta: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.23.08.01.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.23.08.01.stable_03", update_by: None, soft_cutoff: Some("v0.2024.03.05.08.02.stable_00") }, overrides: [] } 12:17:01 [WARN] redraw_frame was called 4 times before the frame was drawn 12:17:01 [INFO] No update available 12:17:01 [WARN] redraw_frame was called 6 times before the frame was drawn 12:17:01 [INFO] Received Precmd hook 12:17:01 [WARN] redraw_frame was called 4 times before the frame was drawn 12:17:01 [INFO] Received InputBuffer hook 12:17:01 [WARN] redraw_frame was called 2 times before the frame was drawn 12:17:01 [INFO] Finished loading 219 fonts 12:17:02 [INFO] dispatching global action for root_view:update_quake_mode_state 12:17:02 [INFO] active window changed: None 12:17:02 [INFO] dispatching global action for root_view:update_quake_mode_state 12:17:02 [INFO] dispatching global action for workspace:save_app ```
vorporeal commented 2 months ago

Ok, I wonder if perhaps the app is quarantined or something like that.

What's the output of ls -l@ /Applications/Warp*?

mysticfalconvt commented 2 months ago

% ls -l@ /Applications/Warp*
total 0 drwxr-xr-x 7 robertboskind admin 224 Apr 25 10:40 Contents

vorporeal commented 2 months ago

No dice. Maybe the output of open /Applications/Warp.app might have something useful? (context on that guess is this Apple forum thread: https://developer.apple.com/forums/thread/740689)

mysticfalconvt commented 2 months ago

Nada, nothing shows up there. Although if I have it started already with /Applications/Warp.app/Contents/MacOS/stable then it does focus it.

Thanks for trying. Crazy wild goose chase. I may just decide to wipe the laptop and try again.