`gdk run` fails with `__NSPlaceholderDictionary` errors on High Sierra
This might not be 100% related to the gdk run
command. Just tried to run GitLab locally and got many of the following messages after starting gdk run
0:51:49 rails-web.1 | objc[31061]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called.
20:51:49 rails-web.1 | objc[31060]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called.
20:51:49 rails-web.1 | objc[31061]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
The issue itself is already discussed here: https://github.com/puma/puma/issues/1421
Both workarounds (either setting OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
or using before_fork
in unicorn.rb
) make gdk run
to continue. But only until it fails with DB error messages.
FATAL: database "gitlabhq_development" does not exist
Looks like ActiveRecord cannot connect to the DB with my current setup.
/Users/dweinand/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in `rescue in connect'
I'm on High Sierra (10.13) and installed the gdk for the first time on this installation.
Am I missing something or is the connection issue as well related to High Sierra?