Project

General

Profile

Bug #5756

crashs when Twitter.update_with_media with rails

Added by paranoiase (SungHee Kang) over 5 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin10.6.0]
[ruby-core:41626]

Description

I'm using the Ruby 1.9.3dev and Ruby on Rails 3.1.3
When I use twitter gem and call 'Twitter.update_with_media', the interpreter crashs.

~~ ruby
class WelcomeController < ApplicationController
def upload
Twitter.update_with_media("I'm tweeting with gem!", File.new('screenshot.png'))
end
~~

it doesn't crash when I use 1.9.2. or 1.9.3dev without rails.
You can reproduse this situation to

  1. create new rails 3.1.3 projects
  2. add gem 'twitter' in your Gemfile
  3. configure twitter consumer key, secret and oauth token, secret in your config/initializers
  4. make the action WelcomeController#upload and route it to POST /upload
  5. run the server and access POST /upload

crashog.txt View - The crash log (61.3 KB) paranoiase (SungHee Kang), 12/13/2011 03:55 PM

crash.log View (129 KB) paranoiase (SungHee Kang), 12/14/2011 04:59 PM

crash_macos.log View (15.1 KB) paranoiase (SungHee Kang), 12/14/2011 08:56 PM

History

#1 [ruby-core:41627] Updated by sorah (sorah Shota Fukumori) over 5 years ago

  • Status changed from Open to Feedback
  • please upload full of log; your uploaded "crashog.txt" seems partial.
  • "ruby -v" is not output of ruby -v; please paste exact output of "ruby -v" like this: ruby 2.0.0dev (2011-11-25 trunk 33837) [x86_64-darwin11.2.0]

thanks.

#2 [ruby-core:41637] Updated by paranoiase (SungHee Kang) over 5 years ago

I can't upload full logs because it's too long. It was rendered only 600 lines.
'ruby -v' is ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin10.6.0]

best regards.

#3 [ruby-core:41638] Updated by sorah (sorah Shota Fukumori) over 5 years ago

  • ruby -v changed from 1.9.3.dev to ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin10.6.0]

take a log doing like this: ruby aaa.rb|&tee crash.log or ruby aaa.rb 2>&1 >crash.log

#4 [ruby-core:41639] Updated by paranoiase (SungHee Kang) over 5 years ago

Thanks. But how can I do this on rails?

#5 [ruby-core:41640] Updated by paranoiase (SungHee Kang) over 5 years ago

Got It! I changed the iTerm scrollback status to unlimited then I should take a full log.

Best regards.

#6 [ruby-core:41649] Updated by sorah (sorah Shota Fukumori) over 5 years ago

SungHee Kang wrote:

Thanks. But how can I do this on rails?

Simply do `rails something|&teeā€¦ :-)

If you're using OSX, please upload a crash log generated by OS X
See: http://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport#Simple-steps

If Ruby crashed on OS X, you should have a crashlog under ~/Library/Logs/CrashReporter or /Library/Logs/CrashReporter. You should paste or attach it if available.

#7 [ruby-core:41652] Updated by paranoiase (SungHee Kang) over 5 years ago

Thanks for the response. I will attach the crash log for MacOS.

#8 Updated by mame (Yusuke Endoh) over 4 years ago

  • Status changed from Feedback to Assigned
  • Assignee set to sorah (sorah Shota Fukumori)

OP provided a feedback. Sorah, please check it.

--
Yusuke Endoh mame@tsg.ne.jp

#9 [ruby-core:48636] Updated by sorah (sorah Shota Fukumori) over 4 years ago

  • Status changed from Assigned to Feedback

seems crashing on openssl. please try building ruby again with openssl NOT COMES WITH OS X (building by your hand, including using homebrew or macports or some)

#10 [ruby-core:51683] Updated by drbrain (Eric Hodel) over 4 years ago

  • Status changed from Feedback to Rejected

No response from the submitter after a feedback request so I am rejecting this.

Also available in: Atom PDF