darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Darktable does not open on macOS (not related to gatekeeper)

Open xxyxxyxyx1 opened this issue 2 years ago • 5 comments

Describe the bug

When I try to open darktable, from the terminal or Finder, nothing happens. I see a darktable process running in activity monitor, but no GUI or error messages.

This is not the Gatekeeper/quarantine problem: I have disabled gatekeeper per the installation instructions.

I have killed the darktable process, re-installed darktable, restarted the computer, etc.

Steps to reproduce

attempt to open darktable, by any method

Expected behavior

open

Logfile | Screenshot | Screencast

If I start from the terminal with debugging, it runs until I kill it with ctrl-c, but no GUI is ever displayed:

./darktable -d all
[dt_detect_cpu_features] Not implemented for this architecture.
[dt_detect_cpu_features] Please contribute a patch.
     0.0000 [dt_init] SSE2 is unavailable, some functions will be noticeably slower.
     0.0001 application_directory: /Applications/darktable.app/Contents/MacOS
     0.0001 darktable.datadir: /Applications/darktable.app/Contents/Resources/share/darktable
     0.0002 darktable.plugindir: /Applications/darktable.app/Contents/Resources/lib/darktable
     0.0002 darktable.localedir: /Applications/darktable.app/Contents/Resources/share/locale
     0.0002 darktable.configdir: /Users/redacted/.config/darktable
     0.0002 darktable.cachedir: /Users/redacted/.cache/darktable
     0.0003 darktable.sharedir: /Applications/darktable.app/Contents/Resources/share
     0.0003 darktable.tmpdir: /private/var/folders/h4/5ssl80dx16x4fv9ypc76przr0000gp/T
     0.0003 [memory] at startup
     0.0003 [memory] max address space (vmpeak):         unknown
            [memory] cur address space (vmsize):    408814576 kB
            [memory] max used memory   (vmhwm ):         unknown
            [memory] cur used memory   (vmrss ):        22432 kB
     0.0004 new_xdg_data_dirs: (null) 

Commit

No response

Where did you install darktable from?

distro packaging

darktable version

4.4.2

What OS are you using?

Mac

What is the version of your OS?

macOS 13.6

Describe your system?

M1 Max computer installed darktable with brew install --cask --no-quarantine darktable

Are you using OpenCL GPU in darktable?

I dont know

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

xxyxxyxyx1 avatar Oct 18 '23 12:10 xxyxxyxyx1

Homebrew seems to provide the correct version but to be sure here can you please download the dmg from the darktable relase page, open it and drag the darktable.app to the Applications folder.

Then open terminal and execute xattr -c /Applications/darktable.app (needs to be done only once).

Then try again.

zisoft avatar Oct 18 '23 15:10 zisoft

Thank you for the response. I tried installing the github release directly, but the behavior is the same.

xxyxxyxyx1 avatar Oct 18 '23 16:10 xxyxxyxyx1

how long did you wait before shutting down? The initial start can take a while ….

MStraeten avatar Oct 20 '23 05:10 MStraeten

The last time, I let it run for about 6 hours before I remembered to kill it.

xxyxxyxyx1 avatar Oct 20 '23 08:10 xxyxxyxyx1

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Dec 20 '23 00:12 github-actions[bot]

Confirming this happens with v4.6.0, but the latest x86_64 nightly appears to load just fine.

gsora avatar Jan 29 '24 12:01 gsora

Just built a version from HEAD for arm64, darktable opens and runs fine, so i'm expecting it to be fixed by the next stable release.

gsora avatar Jan 29 '24 15:01 gsora

the official arm64 builds for 4.4.2 or 4.6.0 aren't known for not running with macOS - so the reported issue is specific for that custom install...

MStraeten avatar Jan 29 '24 16:01 MStraeten

Weird that it's happening though?

Is there something else I can do to help debug this issue?

gsora avatar Jan 29 '24 16:01 gsora

run darktable using a debugger: lldb <path to darktable executable> to see where exactly the start fails

MStraeten avatar Jan 29 '24 17:01 MStraeten

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Mar 31 '24 00:03 github-actions[bot]

Just built a version from HEAD for arm64, darktable opens and runs fine, so i'm expecting it to be fixed by the next stable release.

@gsora Can we close this issue then?

victoryforce avatar May 07 '24 13:05 victoryforce

I have installed darktable 4.6.1, and it opens properly. I will now close my issue, thank you for the reminder.

xxyxxyxyx1 avatar May 07 '24 13:05 xxyxxyxyx1