Comments (14)
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.
please try again with 1.46.0, should already be in the appstore:
from deltachat-desktop.
reopen / notify us if this issue if it still happens on the current/new 1.46 version.
from deltachat-desktop.
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.
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.
[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.
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.
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.
/me misclicked
from deltachat-desktop.
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.
@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.
@Simon-Laux no results π€·
from deltachat-desktop.
Neither subsystem:com.apple.sandbox.reporting nor category:violation produce any results, even by themselves
from deltachat-desktop.
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)
- Forward Message: Search shows many placeholders
- Clickable area of ββthe x-icon in the message details window is reduced and moved down HOT 2
- Release Progress 1.46.0 π« HOT 2
- DeltaChat desktop flatpak 1.46.0 suddenly fails to start HOT 9
- wrong aspect ratio for images shown in quotes HOT 2
- "search in chat" on small screens looks as if not working
- add "clone group"
- show device message only once as unread
- group memberlist: just tapping pills should not clear members HOT 1
- placement of "Paste" in "Scan QR code" not obvious
- notifications are sometimes not removed from notification center [needs step to reproduce] HOT 7
- Nicely view vCards in staging/draft HOT 1
- MacBook camera stays active if QR scanner is closed too quickly HOT 2
- Honor SOURCE_DATE_EPOCH for reproducibility
- React crash/error in message list: Rendered fewer hooks than expected. This may be caused by an accidental early return statement. HOT 2
- How to launch app without development mode HOT 1
- Release Progress 1.46.1 π«
- Upgrade to React 18 HOT 2
- Crash when trying to go back from "Add Account" or "Delete Account" on Microsoft Store version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deltachat-desktop.