Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby SDK (v1.1.0) is not compatible with Puma #274

Closed
serggl opened this issue Mar 13, 2023 · 2 comments
Closed

Ruby SDK (v1.1.0) is not compatible with Puma #274

serggl opened this issue Mar 13, 2023 · 2 comments
Labels
bug Something isn't working SDK - Ruby Affects the Ruby SDK

Comments

@serggl
Copy link

serggl commented Mar 13, 2023

I was trying to switch my app from using hellosign-ruby-sdk to dropbox-sign-ruby and got a crash in Dropbox::Sign::UnclaimedDraftApi#unclaimed_draft_create_embedded when running it with the puma app server:

ETHON: Libcurl initialized
objc[44340]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[44340]: +[__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.
[44324] - Worker 1 (PID: 44403) booted in 0.0s, phase: 0

My setup is:
Rails - 7.0.4.2
Puma - 6.1.1
Bootsnap - 1.16.0
Spring - not used

@jtreminio-dropbox
Copy link
Contributor

jtreminio-dropbox commented Mar 17, 2023

Howdy! Can you provide us a bare-bones setup so we can reproduce?

Can you also confirm if the fix shown here helps?

@jtreminio-dropbox jtreminio-dropbox added bug Something isn't working SDK - Ruby Affects the Ruby SDK labels Mar 17, 2023
@serggl
Copy link
Author

serggl commented Mar 27, 2023

@jtreminio-dropbox I did some little more investigation and found that export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES fixes the issue entirely.

This looks like a bug in typhoeus / ethon.

It would be good to have it documented somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SDK - Ruby Affects the Ruby SDK
Projects
None yet
Development

No branches or pull requests

2 participants