flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Flameshot Crashes on start in MacOS

Open whnr opened this issue 1 year ago • 2 comments

Flameshot Version

12.1.0

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

MacOS 14.4.1 (23E224)

Description

Flameshot does not start anymore. The console log (full excerpt below) shows this:

error	11:20:05.156830-0400	flameshot	SingleApplication: Unable to create block.
error	11:20:05.157023-0400	flameshot	SingleApplication:  7 "QSharedMemory::create: out of resources"

I tried reinstalling with homebrew but it failed.

Steps to reproduce

Try to start flameshot.

Here's the system console log of the whole thread. There are two errors at the bottom.

default	11:20:04.965243-0400	flameshot	[0x600002eac000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon
default	11:20:05.010761-0400	flameshot	[0x600002ea81e0] activating connection: mach=true listener=false peer=false name=com.apple.distributed_notifications@Uv3
default	11:20:05.012188-0400	flameshot	No persisted cache on this platform.
default	11:20:05.014791-0400	flameshot	[0x600002ea83c0] activating connection: mach=true listener=false peer=false name=com.apple.tccd.system
default	11:20:05.026776-0400	flameshot	[0x600002ea83c0] invalidated after the last release of the connection object
default	11:20:05.026985-0400	flameshot	server port 0x00002d0f, session port 0x00002d0f
default	11:20:05.037270-0400	flameshot	[0x600002ea83c0] activating connection: mach=true listener=false peer=false name=com.apple.coreservices.launchservicesd
default	11:20:05.037812-0400	flameshot	[0x600002ea85a0] activating connection: mach=true listener=false peer=false name=com.apple.analyticsd
default	11:20:05.039612-0400	flameshot	New connection 0x111c8f main
default	11:20:05.039764-0400	flameshot	Current system appearance, (HLTB: 1), (SLS: 0)
default	11:20:05.039839-0400	flameshot	Current system appearance, (HLTB: 1), (SLS: 0)
default	11:20:05.040739-0400	flameshot	Post-registration system appearance: (HLTB: 1)
default	11:20:05.044190-0400	flameshot	[0x600002ea00f0] activating connection: mach=true listener=false peer=false name=com.apple.pasteboard.1
default	11:20:05.050770-0400	flameshot	[0x7fda838098f0] activating connection: mach=true listener=false peer=false name=com.apple.lsd.mapdb
default	11:20:05.067222-0400	flameshot	CHECKIN: pid=99240
default	11:20:05.072366-0400	flameshot	CHECKEDIN: pid=99240 asn=0x0-0x2d08d06 foreground=0
default	11:20:05.072541-0400	flameshot	[0x7fda82723490] activating connection: mach=false listener=true peer=false name=(anonymous)
default	11:20:05.072554-0400	flameshot	[0x7fda82723490] Channel could not return listener port.
default	11:20:05.075566-0400	flameshot	FRONTLOGGING: version 1
default	11:20:05.075598-0400	flameshot	Registered, pid=99240 ASN=0x0,0x2d08d06
default	11:20:05.077363-0400	flameshot	[0x7fda82723490] Channel could not return listener port.
default	11:20:05.081120-0400	flameshot	BringForward: pid=99240 asn=0x0-0x2d08d06 bringForward=0 foreground=0 uiElement=1 launchedByLS=1 modifiersCount=1 allDisabled=0
default	11:20:05.081326-0400	flameshot	BringFrontModifier: pid=99240 asn=0x0-0x2d08d06 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default	11:20:05.098491-0400	flameshot	[0x7fda82723490] Channel could not return listener port.
default	11:20:05.103842-0400	flameshot	[0x7fda82723490] Channel could not return listener port.
default	11:20:05.121901-0400	flameshot	[0x7fda8380d3a0] activating connection: mach=false listener=false peer=false name=com.apple.carboncore.csnameddata
default	11:20:05.126967-0400	flameshot	[0x600002dac000] activating connection: mach=true listener=false peer=false name=com.apple.fonts
error	11:20:05.156830-0400	flameshot	SingleApplication: Unable to create block.
error	11:20:05.157023-0400	flameshot	SingleApplication:  7 "QSharedMemory::create: out of resources"
default	11:20:05.157341-0400	flameshot	Entering exit handler.
default	11:20:05.157356-0400	flameshot	Queueing exit procedure onto XPC queue. Any further messages sent will be discarded. activeSendTransactions=0
default	11:20:05.157429-0400	flameshot	Exiting exit handler.

Screenshots or screen recordings

No response

System Information

Darwin username 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 arm64

whnr avatar Jul 18 '24 15:07 whnr

I also face this issue. This problem goes away after rebooting, but if Flameshot is exited, you cannot relaunch it.

hhsnow avatar Aug 27 '24 16:08 hhsnow

There is a bug in later versions of our external dependency "SingleApplication" https://github.com/itay-grudev/SingleApplication/issues/198

@mmahmoudian we can consider rolling back the version of SingleApplication. Unfortunately that blocks a port to Qt6.

borgmanJeremy avatar Apr 28 '25 11:04 borgmanJeremy