{"action":"closed","issue":{"url":"https://api.github.com/repos/csquared/IMGKit/issues/84","labels_url":"https://api.github.com/repos/csquared/IMGKit/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/csquared/IMGKit/issues/84/comments","events_url":"https://api.github.com/repos/csquared/IMGKit/issues/84/events","html_url":"https://github.com/csquared/IMGKit/issues/84","id":93730975,"number":84,"title":"IMGKit hangs when calling to_img(:jpg) method with rails s","user":{"login":"liqites","id":5523883,"avatar_url":"https://avatars.githubusercontent.com/u/5523883?v=3","gravatar_id":"","url":"https://api.github.com/users/liqites","html_url":"https://github.com/liqites","followers_url":"https://api.github.com/users/liqites/followers","following_url":"https://api.github.com/users/liqites/following{/other_user}","gists_url":"https://api.github.com/users/liqites/gists{/gist_id}","starred_url":"https://api.github.com/users/liqites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liqites/subscriptions","organizations_url":"https://api.github.com/users/liqites/orgs","repos_url":"https://api.github.com/users/liqites/repos","events_url":"https://api.github.com/users/liqites/events{/privacy}","received_events_url":"https://api.github.com/users/liqites/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T08:26:46Z","updated_at":"2015-07-09T11:07:01Z","closed_at":"2015-07-09T11:07:01Z","body":"## Environment\r\n```\r\nruby -> 2.0.0-p247\r\nrails -> 4.0.13\r\nOS X -> 10.10.4\r\nimgkit -> 1.6.1\r\nwkhtmltoimage -> 0.12.2.1\r\n```\r\n**Start server with `rails s`**\r\n## Using in Controller\r\n```ruby\r\ndef to_image\r\n  html_string = render_to_string(\"images/index.html.erb\") # a very simple page with a <p></p>\r\n  kit = IMGKit.new(html_string)\r\n  kit.to_file(\"tmp/xxx.kpg\") #hangs here!!!\r\n  ...\r\nend\r\n```\r\n\r\n## Additional Information\r\n- Working if putting the code into Sidekiq job.\r\n- Working if starting server using Unicorn with multiple workers. But single worker hangs!\r\n- Working in Rails Console."}}