Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New install of Zed will not Launch #9805

Open
1 task done
AurorahHarmony opened this issue Mar 26, 2024 · 29 comments
Open
1 task done

New install of Zed will not Launch #9805

AurorahHarmony opened this issue Mar 26, 2024 · 29 comments
Labels
defect [core label] needs info / awaiting response Issue that needs more information from the user panic / crash [core label]

Comments

@AurorahHarmony
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Download any version of Zed and install it by dragging it to the application folder. Then try to launch it. It will not start.

I have tried multiple versions, as well as launching it from the DMG directly.

Environment

Zed: v0.127.4 (Zed)
OS: macOS 14.4.0
Memory: 36 GiB
Architecture: aarch64 (Apple M3 Pro)

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

Screen.Recording2.2024-03-26.at.10.09.04.PM.mov

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

This file does not exist

@AurorahHarmony AurorahHarmony added admin read Pending admin review defect [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Mar 26, 2024
@AurorahHarmony AurorahHarmony changed the title New insall of Zed will not Launch New install of Zed will not Launch Mar 26, 2024
@osiewicz
Copy link
Contributor

osiewicz commented Mar 26, 2024

When you launch it from .dmg directly, do you see anything in the terminal?

@AurorahHarmony
Copy link
Author

Nothing happens whatsoever. I get the warning that “Zed.app” is an app downloaded from the internet. Are you sure you want to open it?" and after I accept, nothing happens.

The only thing i'm able see is that it fails notarization in Console

assessment denied for Zed.dmg
com.apple.message.domain: com.apple.security.assessment.outcome2
com.apple.message.signature2: bundle:UNBUNDLED
com.apple.message.signature3: Zed.dmg
com.apple.message.signature5: UNKNOWN
com.apple.message.signature4: 3
com.apple.message.signature: denied:no usable signature
SenderMachUUID: AA2BD873-44F4-3A09-B79B-A77DE1E9D490

@osiewicz
Copy link
Contributor

Could you try to run a Preview release instead? E.g. from https://zed.dev/api/releases/preview/0.128.3/Zed.dmg

@JosephTLyons JosephTLyons added needs info / awaiting response Issue that needs more information from the user and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Mar 26, 2024
@AurorahHarmony
Copy link
Author

I have tried the Preview Release located here: https://zed.dev/api/releases/preview/0.128.3/Zed-aarch64.dmg as well as the one linked above (https://zed.dev/api/releases/preview/0.128.3/Zed.dmg). Unfortunately the same thing occurs for both, with neither opening.

Screen.Recording.720p.2024-03-27.at.11.42.09.AM.mov
Screen.Recording.720p.2024-03-27.at.11.44.01.AM.mov

@mitiko
Copy link

mitiko commented Mar 27, 2024

Hi, experiencing the same for:
Zed: v0.128.3
OS: macOS 14.4
Memory: 16 GiB
Architecture: aarch64 (Apple M1)

@2577873863
Copy link

I also have the same problem,
Zed: v0.128.3
OS: macOS 13.1
Memory: 16 GB
Architecture: aarch64 (Apple M1)

@osiewicz
Copy link
Contributor

What about older releases like: https://zed.dev/api/releases/stable/0.124.7/Zed.dmg ? Can you run that successfully?

@2577873863
Copy link

What about older releases like: https://zed.dev/api/releases/stable/0.124.7/Zed.dmg ? Can you run that successfully?

I can successfully run using the old version of 0.124.7 😄

@osiewicz
Copy link
Contributor

Thanks @2577873863,
so this looks to be a relatively recent problem, though given that it happens with a build that's not a single-architecture build (and CI was not modified for single-arch at the time it was built), we'd need to bisect to the exact point at which this started failing for y'all. Would anyone be willing to hop onto a Google/Slack call sometime next week and try to bisect it together? I can't repro it myself, so I'd need some help with that.

@semeneleven

This comment was marked as resolved.

@osiewicz

This comment was marked as resolved.

@semeneleven

This comment was marked as resolved.

@AurorahHarmony
Copy link
Author

What about older releases like: https://zed.dev/api/releases/stable/0.124.7/Zed.dmg ? Can you run that successfully?

This version doesn't work for me either

@semeneleven this looks like a duplicate of #9623 , can you try to follow the steps there?

I followed the steps to open Zed here from within the Applications folder using RUST_BACKTRACE=full ./Zed.app/Contents/MacOS/zed and got the following output:

thread 'main' panicked at crates/zed/src/main.rs:480:56:
could not create config path: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
stack backtrace:
   0:        0x106c3ff1c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb478ebbfb46e27ce
   1:        0x105687964 - core::fmt::write::he4d5fa2daff1f531
   2:        0x106c3bf5c - std::io::Write::write_fmt::hc5a47a68eba63d9f
   3:        0x106c3fd14 - std::sys_common::backtrace::print::h79bd952cc5812e7a
   4:        0x106c41684 - std::panicking::default_hook::{{closure}}::h82301f6222887737
   5:        0x106c41380 - std::panicking::default_hook::h1e49abbb3f1d7dbf
   6:        0x106c41c88 - std::panicking::rust_panic_with_hook::h1e70c5d905e30e9d
   7:        0x106c41a64 - std::panicking::begin_panic_handler::{{closure}}::h399e32952efd26a4
   8:        0x106c403b4 - std::sys_common::backtrace::__rust_end_short_backtrace::h2ab87f841a2323e7
   9:        0x106c417f8 - _rust_begin_unwind
  10:        0x1082de4b8 - core::panicking::panic_fmt::h33e40d2a93cab78f
  11:        0x1082de86c - core::result::unwrap_failed::h79c2cb9e4fc28c72
  12:        0x104f19c34 - Zed[d2fc7e5771acb442]::main
  13:        0x104ec09fc - std[fcd23fca98dce159]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  14:        0x104ee9874 - std[fcd23fca98dce159]::rt::lang_start::<()>::{closure#0}
  15:        0x106c350bc - std::rt::lang_start_internal::hf4f3eb1e51305b96
  16:        0x104f2d310 - _main

Running Zed once with sudo ./Zed.app/Contents/MacOS/zed successfully launches it with the following dumped to the terminal:

[2024-03-30T12:17:34+13:00 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-03-30T12:17:34+13:00 ERROR util] crates/client/src/telemetry.rs:109: Custom { kind: PermissionDenied, error: PathError { path: "/Users/aurorah/.config/zed/.tmpWbBdiR", err: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } } }
[2024-03-30T12:17:34+13:00 ERROR util] crates/zed/src/zed.rs:555: EOF while parsing a value at line 1 column 0
2024-03-30 12:17:36.213 zed[1619:25783] 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:.
[2024-03-30T12:17:40+13:00 ERROR auto_update] auto-update failed: error:failed to copy app: "rsync: failed to set times on \"/Applications/Zed.app/.\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Headers\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Modules\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/WebRTC\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/.CodeResources.DTxyzY\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/Current\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/.Info.plist.MI6qWJ\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/.embedded.provisionprofile.lnvckH\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Modules\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/_CodeSignature\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/MacOS\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/_CodeSignature\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/.WebRTC.kifNzF\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioDevice.h.Ye7UFM\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioDeviceModule.h.VtyOh9\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioSource.h.w6q0yE\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioTrack.h.zIuATM\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCVPixelBuffer.h.qrrhny\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCallbackLogger.h.indJhO\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCameraVideoCapturer.h.qWWFy9\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCertificate.h.B2o907\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCodecSpecificInfo.h.Yp9BVQ\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCodecSpecificInfoH264.h.UJmEMq\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCConfiguration.h.fcS1Cf\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCryptoOptions.h.TOZaCw\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDataChannel.h.jB2hzV\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDataChannelConfiguration.h.IeGCGM\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDefaultVideoDecoderFactory.h.3wTa0e\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDefaultVideoEncoderFactory.h.0e6otE\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDesktopCapturer.h.gP98kt\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDesktopMediaList.h.GvMxcl\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDesktopSource.h.utM3pV\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDispatcher.h.CX5R61\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDtmfSender.h.bMQZe8\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCEncodedImage.h.RM8yNp\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFieldTrials.h.g72E2w\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFileLogger.h.28Jutv\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFileVideoCapturer.h.9qIAFe\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFrameCryptor.h.MnKve3\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFrameCryptorKeyProvider.h.mUXxFL\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCH264ProfileLevelId.h.saaFxc\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCI420Buffer.h.WtUUEg\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIODevice.h.IzLFaK\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIceCandidate.h.P5ZYhi\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIceCandidateErrorEvent.h.YZJp8P\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIceServer.h.LdQsfC\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCLegacyStatsReport.h.yqrGVD\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCLogging.h.AyHNUX\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMTLNSVideoView.h.c2njZA\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMTLVideoView.h.NJI7P1\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMacros.h.QrXnW9\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaConstraints.h.XgVPZE\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaSource.h.ZNM645\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaStream.h.yT5Das\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaStreamTrack.h.9HJfZM\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMetrics.h.XfNIWS\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMetricsSampleInfo.h.8VCIoQ\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMutableI420Buffer.h.4JJq7B\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMutableYUVPlanarBuffer.h.M8eMJ7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCNSGLVideoView.h.mu4u7j\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCNativeI420Buffer.h.l2TUTO\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCNativeMutableI420Buffer.h.TrjpOB\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCPeerConnection.h.mItPL7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCPeerConnectionFactory.h.OLURba\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCPeerConnectionFactoryOptions.h.W6oa6E\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtcpParameters.h.QqDZHC\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpCapabilities.h.iEPRiO\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpCodecCapability.h.eerkII\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpCodecParameters.h.KU0E4R\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpEncodingParameters.h.lBddjf\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpHeaderExtension.h.kL50w7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpParameters.h.tg3VeF\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpReceiver.h.xYwyF7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpSender.h.ebMsi2\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpTransceiver.h.7Zt6aH\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCSSLAdapter.h.xn4xhU\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCSSLCertificateVerifier.h.vWTbvW\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCSessionDescription.h.CYAH9d\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCStatisticsReport.h.KuOg9u\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCTracing.h.0A3zxh\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoCapturer.h.rsOEds\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoCodecInfo.h.zTJfTI\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoder.h.492pbC\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderAV1.h.FyOrVu\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderFactory.h.FNql3X\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderFactoryH264.h.n3AWZG\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderH264.h.eUXbnh\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderVP8.h.9SbyX1\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderVP9.h.K5idXs\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoder.h.hN6kRI\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderAV1.h.iYHLDK\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderFactory.h.4i3esd\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderFactoryH264.h.o7nBDq\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderFactorySimulcast.h.dNTNCZ\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderH264.h.yvMzlF\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderQpThresholds.h.nki4sk\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderSettings.h.RobHuu\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderSimulcast.h.FBKcMK\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderVP8.h.4AGNqq\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderVP9.h.NVNuXr\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoFrame.h.MLA1bH\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoFrameBuffer.h.GqJWKn\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoRenderer.h.32iUWe\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoSource.h.gKmACG\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoTrack.h.XSFM1G\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoViewShading.h.JTCR7G\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCYUVHelper.h.DKru1E\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCYUVPlanarBuffer.h.GRiWhb\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.WebRTC.h.LRxrjo\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Modules/.module.modulemap.DXU5zG\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Resources/.Info.plist.ow8MZw\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/_CodeSignature/.CodeResources.2qa9Qx\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/MacOS/.cli.qXkRfN\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/MacOS/.zed.J0GSH9\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Resources/.Zed.icns.7yNgVl\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/_CodeSignature/.CodeResources.pyjgeo\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/.\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Modules\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/_CodeSignature\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/MacOS\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/_CodeSignature\": Operation not permitted (1)\nrsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]\n"

I'm using a fresh out of the box MacBook. It might be good looking into why Zed doesn't always launch the first time, and gets stuck with permission issues after that.

@osiewicz
Copy link
Contributor

osiewicz commented Apr 2, 2024

I'm gonna keep this open as a tracking issue. We know that using sudo works, but why do we get permission denied in the first place?

@AurorahHarmony thank you for a thorough report! Is that backtrace from 0.127.4 or did you download a different version prior to trying with sudo?

@osiewicz osiewicz reopened this Apr 2, 2024
@AurorahHarmony
Copy link
Author

@osiewicz Unfortunately I forgot to capture the specific version number when I managed to get Zed to launch using sudo. After doing that once, multiple versions seem to launch just fine.

Through process of deduction, I can tell you the only two versions I downloaded on that date are v0.124.7 (fed2c96d6b742fb8740d31ef76528475ddcb6d70) and v0.128.3-aarch64 (7380ab8a1ad6bc67a99b94b5f67c54bd45ddb942).


Running RUST_BACKTRACE=full ./Zed.app/Contents/MacOS/zed on 0.124.7 now that it's working yields the same output as shown in the second portion of my previous comment

[2024-04-02T22:08:15+13:00 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-04-02T22:08:15+13:00 ERROR util] crates/client/src/telemetry.rs:109: Custom { kind: PermissionDenied, error: PathError { path: "/Users/aurorah/.config/zed/.tmpYEoqhC", err: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } } }
[2024-04-02T22:08:15+13:00 ERROR util] crates/extension/src/extension_store.rs:181: No such file or directory (os error 2)
[2024-04-02T22:08:15+13:00 ERROR util] crates/zed/src/zed.rs:555: EOF while parsing a value at line 1 column 0
2024-04-02 22:08:18.170 zed[79214:927075] 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:.
[2024-04-02T22:08:21+13:00 ERROR auto_update] auto-update failed: error:failed to copy app: "rsync: failed to set times on \"/Applications/Zed.app/.\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Headers\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Modules\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/WebRTC\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/.CodeResources.CueWW6\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/Current\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/.Info.plist.gpcNh5\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/.embedded.provisionprofile.Iq58O5\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Modules\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/_CodeSignature\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/MacOS\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/_CodeSignature\": Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/.WebRTC.Kkf9Cl\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioDevice.h.adpi8R\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioDeviceModule.h.9EEfGh\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioSource.h.35k21w\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCAudioTrack.h.mygriA\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCVPixelBuffer.h.29Y0gf\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCallbackLogger.h.Z6OOh0\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCameraVideoCapturer.h.HsIuUU\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCertificate.h.XQIkYV\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCodecSpecificInfo.h.2ic6rK\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCodecSpecificInfoH264.h.GXy6sX\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCConfiguration.h.sOzro5\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCCryptoOptions.h.1yOTpD\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDataChannel.h.4trLOf\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDataChannelConfiguration.h.VtV5Mq\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDefaultVideoDecoderFactory.h.Ll9mUn\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDefaultVideoEncoderFactory.h.rf5hkX\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDesktopCapturer.h.BjF8vy\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDesktopMediaList.h.O5TjO1\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDesktopSource.h.nKAjBU\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDispatcher.h.nPRnMO\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCDtmfSender.h.UDA6IW\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCEncodedImage.h.hR6SRv\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFieldTrials.h.7qOHKm\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFileLogger.h.ob0scb\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFileVideoCapturer.h.3IXu72\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFrameCryptor.h.FSZEmk\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCFrameCryptorKeyProvider.h.207qU4\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCH264ProfileLevelId.h.nKUIig\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCI420Buffer.h.AZ4IWN\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIODevice.h.Ymc2F7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIceCandidate.h.njkmJu\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIceCandidateErrorEvent.h.FE99DU\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCIceServer.h.gXM6hB\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCLegacyStatsReport.h.coDSSt\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCLogging.h.76nZZN\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMTLNSVideoView.h.eB4TLJ\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMTLVideoView.h.n8Lj4i\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMacros.h.kU1phB\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaConstraints.h.crXXRY\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaSource.h.YGlE9W\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaStream.h.x0S2Bp\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMediaStreamTrack.h.2oVXIl\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMetrics.h.aG9Mqr\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMetricsSampleInfo.h.VuPROT\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMutableI420Buffer.h.QrQbWs\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCMutableYUVPlanarBuffer.h.IXF3gf\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCNSGLVideoView.h.RfIT9A\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCNativeI420Buffer.h.FpU13H\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCNativeMutableI420Buffer.h.XM5KQK\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCPeerConnection.h.tvD33c\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCPeerConnectionFactory.h.wGi7Qm\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCPeerConnectionFactoryOptions.h.W57oEK\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtcpParameters.h.l9WTDG\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpCapabilities.h.urxdw6\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpCodecCapability.h.0gmud7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpCodecParameters.h.pViWzw\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpEncodingParameters.h.SruJvd\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpHeaderExtension.h.nRcTPS\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpParameters.h.VLRbiF\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpReceiver.h.QRnMq7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpSender.h.qvozjW\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCRtpTransceiver.h.IXoc5m\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCSSLAdapter.h.0rQ2aA\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCSSLCertificateVerifier.h.6yHCfi\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCSessionDescription.h.BzBdqw\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCStatisticsReport.h.QBx8IP\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCTracing.h.LjzeeW\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoCapturer.h.lFFnv5\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoCodecInfo.h.VEb0Iz\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoder.h.RfZ4cM\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderAV1.h.Av8c5p\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderFactory.h.AKYCIP\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderFactoryH264.h.SeEkgr\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderH264.h.Q2Pr6h\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderVP8.h.xYyhra\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoDecoderVP9.h.4n8sZq\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoder.h.mKMMfk\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderAV1.h.5hMOYd\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderFactory.h.bDbk86\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderFactoryH264.h.yPrt71\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderFactorySimulcast.h.p7MFS6\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderH264.h.wNM1jt\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderQpThresholds.h.RJ1pf6\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderSettings.h.WRj7ff\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderSimulcast.h.F8feer\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderVP8.h.5v8G62\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoEncoderVP9.h.IsvoMS\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoFrame.h.3PBAE7\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoFrameBuffer.h.MX1bMM\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoRenderer.h.ATzhFy\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoSource.h.KQJDXy\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoTrack.h.SJARjx\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCVideoViewShading.h.YzFNYU\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCYUVHelper.h.dXWYQm\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.RTCYUVPlanarBuffer.h.XOGfmf\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers/.WebRTC.h.UdgD15\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Modules/.module.modulemap.o2dIUF\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Resources/.Info.plist.Aa074V\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/_CodeSignature/.CodeResources.FaMVBv\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/MacOS/.cli.wMfcpo\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/MacOS/.zed.y1Ekhv\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/Resources/.Zed.icns.zd8yrO\" failed: Operation not permitted (1)\nrsync: mkstemp \"/Applications/Zed.app/Contents/_CodeSignature/.CodeResources.7SfXHO\" failed: Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/.\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Headers\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Modules\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Frameworks/WebRTC.framework/Versions/A/_CodeSignature\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/MacOS\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/Resources\": Operation not permitted (1)\nrsync: failed to set times on \"/Applications/Zed.app/Contents/_CodeSignature\": Operation not permitted (1)\nrsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]\n"

while running the same command on 0.128.3 yields a different output:

[2024-04-02T22:13:54+13:00 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-04-02T22:13:54+13:00 ERROR util] crates/settings/src/keymap_file.rs:89: invalid binding value for keystroke backspace, context Some("ProjectPanel")

Caused by:
    0: Attempting to build action project_panel::Delete
    1: missing field `skip_prompt`
[2024-04-02T22:13:54+13:00 ERROR util] crates/settings/src/keymap_file.rs:89: invalid binding value for keystroke delete, context Some("ProjectPanel")

Caused by:
    0: Attempting to build action project_panel::Delete
    1: missing field `skip_prompt`
[2024-04-02T22:13:54+13:00 ERROR util] crates/client/src/telemetry.rs:107: Custom { kind: PermissionDenied, error: PathError { path: "/Users/aurorah/.config/zed/.tmpY8eaM0", err: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } } }
[2024-04-02T22:13:54+13:00 ERROR util] crates/zed/src/zed.rs:622: EOF while parsing a value at line 1 column 0
[2024-04-02T22:13:54+13:00 ERROR util] crates/workspace/src/workspace.rs:910: Error in last_window, select_row_bound expected single row result but found none for: SELECT
  display,
  window_state,
  window_x,
  window_y,
  window_width,
  window_height,
  fullscreen
FROM
  workspaces
WHERE
  workspace_location IS NOT NULL
ORDER BY
  timestamp DESC
LIMIT
  1
2024-04-02 22:13:57.200 zed[79939:935118] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

TLDR, i'm 99% sure the exact version for the traces in my previous comment was 0.124.7

@AurorahHarmony
Copy link
Author

After having a quick look at the stack trace, and the code it refers to I've been able to get the same permission error again by doing the following things on version 0.128.3-aarch64 (7380ab8a1ad6bc67a99b94b5f67c54bd45ddb942)

  1. In a terminal, run sudo rm -R ~/.config/zed
  2. From within the /Applications folder, try to run RUST_BACKTRACE=full ./Zed.app/Contents/MacOS/zed . The following trace is printed and the app doesn't launch.
RUST_BACKTRACE=full ./Zed.app/Contents/MacOS/zed
thread 'main' panicked at crates/zed/src/main.rs:467:56:
could not create config path: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
stack backtrace:
   0:        0x102e258bc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb478ebbfb46e27ce
   1:        0x10164eec8 - core::fmt::write::he4d5fa2daff1f531
   2:        0x102e20e74 - std::io::Write::write_fmt::hc5a47a68eba63d9f
   3:        0x102e256b4 - std::sys_common::backtrace::print::h79bd952cc5812e7a
   4:        0x102e27024 - std::panicking::default_hook::{{closure}}::h82301f6222887737
   5:        0x102e26d20 - std::panicking::default_hook::h1e49abbb3f1d7dbf
   6:        0x102e27628 - std::panicking::rust_panic_with_hook::h1e70c5d905e30e9d
   7:        0x102e27404 - std::panicking::begin_panic_handler::{{closure}}::h399e32952efd26a4
   8:        0x102e25d54 - std::sys_common::backtrace::__rust_end_short_backtrace::h2ab87f841a2323e7
   9:        0x102e27198 - _rust_begin_unwind
  10:        0x10450ffc4 - core::panicking::panic_fmt::h33e40d2a93cab78f
  11:        0x104510378 - core::result::unwrap_failed::h79c2cb9e4fc28c72
  12:        0x100e38fec - Zed[8b29355a234dd462]::main
  13:        0x100e28084 - std[fcd23fca98dce159]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  14:        0x100ebcc4c - std[fcd23fca98dce159]::rt::lang_start::<()>::{closure#0}
  15:        0x102e18af0 - std::rt::lang_start_internal::hf4f3eb1e51305b96
  16:        0x100e3b63c - _main

To fix, launch with Sudo.

I'm wondering if there may need to be something that requests elevation if this fails due to a permission error. https:/zed-industries/zed/blob/v0.128.3/crates/zed/src/main.rs#L467

@osiewicz
Copy link
Contributor

osiewicz commented Apr 2, 2024

Yeah, that sounds like a permission problem then @AurorahHarmony ; thank you so much for the stack traces and thorough investigation, I'll take look at it as soon as possible.

@AurorahHarmony
Copy link
Author

Any updates?

@ConradIrwin
Copy link
Member

As of #10326 we should show these errors on boot. Is that working for you?

We don’t yet have a way to automatically fix the permissions, but in the meantime the suggestions from #9036 (comment) should work.

@AurorahHarmony
Copy link
Author

As of #10326 we should show these errors on boot. Is that working for you?

Yes, thank you. After updating and manually removing the permissions to get it back to its original state, it no longer silently fails to launch, and I get the expected visual feedback

image

We don’t yet have a way to automatically fix the permissions, but in the meantime the suggestions from #9036 (comment) should work.

Unfortunately the fix you linked does not fix the issue in my circumstance:

(base) aurorah@AurorahZephyrus ~ % ls -la .cache
total 0
drwxr-xr-x@  4 aurorah  staff   128 30 Mar 12:13 .
drwxr-x---+ 51 aurorah  staff  1632  2 May 19:05 ..
drwxr-xr-x@  3 aurorah  staff    96 22 Mar 23:00 cycles
drwx------   2 aurorah  staff    64 30 Mar 12:13 zed
(base) aurorah@AurorahZephyrus ~ % sudo chown -R $(whoami):staff ~/.cache
(base) aurorah@AurorahZephyrus ~ % ls -la .cache                         
total 0
drwxr-xr-x@  4 aurorah  staff   128 30 Mar 12:13 .
drwxr-x---+ 51 aurorah  staff  1632  2 May 19:05 ..
drwxr-xr-x@  3 aurorah  staff    96 22 Mar 23:00 cycles
drwx------   2 aurorah  staff    64 30 Mar 12:13 zed

But my initial fix of running sudo /Applications/Zed.app/Contents/MacOS/Zed in a terminal still works in the meantime.

@ConradIrwin
Copy link
Member

Looks like your .config directory also has the wrong permissions, so you may need sudo chown -R $(whoami):staff ~/.config too.

@shaoyanji
Copy link

for me, the sudo /Application//zed launched it and then install on CLI got things to run smooth onwards

@hello1101n
Copy link

For me this works - #9805 (comment). Thank you
Current app from website - doesn't

@ConradIrwin
Copy link
Member

@hello1101n What version of macOS are you running? Currently we only support Catalina and above

@seantiz
Copy link

seantiz commented Jun 18, 2024

For what it's worth, this is the output I received in terminal when running it by sudo

ERROR util] crates/zed/src/main.rs:897: Is a directory (os error 21)
[2024-06-18T12:42:05+01:00 ERROR util] crates/zed/src/main.rs:897: Is a directory (os error 21)
2024-06-18 12:42:10.013 zed[10040:706599] 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:.

@ConradIrwin
Copy link
Member

@seantiz You should probably not run Zed as root, but instead fix the permission errors we're encountering.

It looks like that error is probably an error loading themes - can you post the output of ls -l ~/.config/zed/themes (both as your user and as root).

@seantiz
Copy link

seantiz commented Jun 18, 2024

@seantiz You should probably not run Zed as root, but instead fix the permission errors we're encountering.

It looks like that error is probably an error loading themes - can you post the output of ls -l ~/.config/zed/themes (both as your user and as root).

I'm not sure I understand what you mean by both as user and root but I assumed that means run the ls command with and without sudo and in either case I get the same output

drwxr-xr-x 2 root staff 64 18 Jun 12:42 /Users/localusername/.config/zed/themes

please let me know if there's anymore feedback I can post

@ConradIrwin
Copy link
Member

It looks like the problem here is that you have a bunch of files owned by root in your home directory.

You should be able to fix this with sudo chown -R $(whoami):staff ~/.config ~/.cache

And then Zed should boot fine without sudo again.

@seantiz
Copy link

seantiz commented Jun 19, 2024

It looks like the problem here is that you have a bunch of files owned by root in your home directory.

You should be able to fix this with sudo chown -R $(whoami):staff ~/.config ~/.cache

And then Zed should boot fine without sudo again.

Ok yes, thanks for that. I'd already gotten around the issue of installing it, but at least now i've fixed the problem of every directory being open to root access. Thanks again.

my copy of Zed is still unable to install extensions so either that saves to another directory outside of config or cache, or it it's a connection problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] needs info / awaiting response Issue that needs more information from the user panic / crash [core label]
Projects
None yet
Development

No branches or pull requests

10 participants