Skip to content

rails with spring gem and google/cloud/firestore thread fault #604

@davingee

Description

@davingee

if i install google/cloud/firestore i get a threading fault.

Environment details

  • OS: Mac OS Catalina 10.15
  • Ruby version: ruby-2.4.5
  • Gem name and version: google-cloud-firestore (1.1.0)

Steps to reproduce

  1. install rails (5.2.3)
  2. install spring (2.1.0)
  3. rails c

Code example

  require "google/cloud/firestore"
  
  firestore = Google::Cloud::Firestore.new(
    project_id: 'project_id',
    credentials: "/path.json"
  )

  city_ref = firestore.doc "cities/LA"

  data = {
    name:    "Los Angeles",
    state:   "CA",
    country: "USA"
  }

  city_ref.set data

Full backtrace

2.4.5 :019 >     city_ref.set data
objc[17615]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[17615]: +[__NSCFConstantString 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions