Giter Club home page Giter Club logo

Comments (14)

Simon-Laux avatar Simon-Laux commented on July 23, 2024 1

It's even worse with 1.46, it fails immediately rather than after 20s

failing fast is way better than taking 20s to fail.

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

please try again with 1.46.0, should already be in the appstore:
Bildschirmfoto 2024-06-15 um 16 16 13

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

reopen / notify us if this issue if it still happens on the current/new 1.46 version.

from deltachat-desktop.

andrewgdotcom avatar andrewgdotcom commented on July 23, 2024

It's even worse with 1.46, it fails immediately rather than after 20s. Again nothing particularly informative in the logs:

error 16:27:19.298522+0100 DeltaChat <SKPaymentQueue: 0x12400064c00>: No observers found that respond to "paymentQueue:shouldAddStorePayment:forProduct:", will not check for purchase intents
default 16:27:19.298892+0100 storekitagent StoreKitServiceListener: Accepting new connection (DeltaChat) <NSXPCConnection: 0x13ab914e0> connection from pid 62913 on mach service named com.apple.storekitagent
default 16:27:19.299464+0100 DeltaChat NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 0
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x104002e5280
 (
    "<NSAquaAppearance: 0x104002e5200>",
    "<NSSystemAppearance: 0x104002e3b00>"
)>
default 16:27:19.315249+0100 storekitagent [Client] (DeltaChat) Initialized with server Production bundle ID chat.delta.desktop.electron and request bundle ID chat.delta.desktop.electron]
default 16:27:19.327752+0100 storekitagent [Client] (DeltaChat) Initialized with server Production bundle ID chat.delta.desktop.electron and request bundle ID chat.delta.desktop.electron]
default 16:27:19.328353+0100 DeltaChat sf changed: <private>
default 16:27:19.331094+0100 DeltaChat Entering exit handler.
default 16:27:19.331118+0100 DeltaChat Queueing exit procedure onto XPC queue. Any further messages sent will be discarded. activeSendTransactions=0
default 16:27:19.331162+0100 DeltaChat Cancelling XPC connection. Any further reply handler invocations will not retry messages
default 16:27:19.331182+0100 DeltaChat Exiting exit handler.
default 16:27:19.331197+0100 DeltaChat XPC connection invalidated (daemon unloaded/disabled)
error 16:27:19.331207+0100 DeltaChat No error handler for XPC error: <private>
default 16:27:19.389427+0100 storekitagent [Client] (DeltaChat) Initialized with server Production bundle ID chat.delta.desktop.electron and request bundle ID chat.delta.desktop.electron]
default 16:27:19.391736+0100 storekitagent StoreKitServiceListener: Connection to DeltaChat invalidated
default 16:27:19.409693+0100 loginwindow -[PersistentAppsSupport applicationQuit:] | for app:DeltaChat, _appTrackingState = 2
default 16:27:19.409729+0100 loginwindow -[PersistentAppsSupport applicationQuit:] | App: DeltaChat, quit, updating active tracking timer

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

Would be interesting to know if sth useful comes up if you start it from the terminal:

/Applications/DeltaChat.app/Contents/MacOS/DeltaChat -- --log-to-console

from deltachat-desktop.

andrewgdotcom avatar andrewgdotcom commented on July 23, 2024
[46167:0617/091904.726617:ERROR:process_singleton_posix.cc(1170)] Failed to bind() /var/folders/3z/tztp1x4d1h50t062180j3qd40000gn/T/chat.delta.desktop.electron/S/SingletonSocket: Operation not permitted (1)
Only one instance allowed. Quitting.

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

seems to be electron/electron#35540

solutions might be:
A. ignore single instance stuff on macOS entirely (might result in other bugs)
B. make our own implementation for a single instance lock (atleast on macOS)
C. remove com.apple.security.app-sandbox entitlement

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

For the record, it works fine on macOS Sonoma 14.3.1, just tested the version from appstore. So this only appears on some versions.

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

/me misclicked

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

C. remove com.apple.security.app-sandbox entitlement

To distribute a macOS app through the Mac App Store, you must enable the App Sandbox capability.
~ https://developer.apple.com/documentation/security/app_sandbox

So option C is not possible

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

@andrewgdotcom can you try to verify that it's a sandbox issue with these steps? https://developer.apple.com/documentation/security/app_sandbox/discovering_and_diagnosing_app_sandbox_violations#4116292

from deltachat-desktop.

andrewgdotcom avatar andrewgdotcom commented on July 23, 2024

@Simon-Laux no results 🀷

from deltachat-desktop.

andrewgdotcom avatar andrewgdotcom commented on July 23, 2024

Neither subsystem:com.apple.sandbox.reporting nor category:violation produce any results, even by themselves

from deltachat-desktop.

Simon-Laux avatar Simon-Laux commented on July 23, 2024

On macOS, the system enforces single instance automatically when users try to open a second instance of your app in Finder, and the open-file and open-url events will be emitted for that. However when users start your app in command line, the system's single instance mechanism will be bypassed, and you have to use this method to ensure single instance.
~ electron docs https://www.electronjs.org/docs/latest/api/app#apprequestsingleinstancelockadditionaldata

so I guess we can just skip that single instance lock on macOS appstore builds, it will probably fail on the account manager lockfile in core then, but only if users try to open it via the commandline

from deltachat-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.