Skip to content
This repository

Carrierwave & Rmagick #185

Closed
djforth opened this Issue December 17, 2010 · 5 comments

5 participants

Adrian Stainforth Jonas Nicklas Michael Glass Rolando Murillo Cisco Riordan
Adrian Stainforth

Hi

I am trying to use Carrierwave in conjunction with Rmagick, but it seems to keep failing everytime I upload a file it crashes my local server. I have set it up to just install locally at the moment, if I use the same code with mini_magick it seems to work perfectly.

Error message:

/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/processing/rmagick.rb:247: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0]

-- control frame ----------
c:0098 p:---- s:0485 b:0485 l:000484 d:000484 CFUNC :read
c:0097 p:0033 s:0481 b:0481 l:000480 d:000480 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/processing/rmagick.rb:247
c:0096 p:0025 s:0472 b:0472 l:000471 d:000471 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/processing/rmagick.rb:185
c:0095 p:0015 s:0466 b:0466 l:000456 d:000465 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/processing.rb:78
c:0094 p:---- s:0462 b:0462 l:000461 d:000461 FINISH
c:0093 p:---- s:0460 b:0460 l:000459 d:000459 CFUNC :each
c:0092 p:0037 s:0457 b:0457 l:000456 d:000456 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/processing.rb:77
c:0091 p:0015 s:0453 b:0453 l:000444 d:000452 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15
c:0090 p:---- s:0450 b:0450 l:000449 d:000449 FINISH
c:0089 p:---- s:0448 b:0448 l:000447 d:000447 CFUNC :each
c:0088 p:0055 s:0445 b:0445 l:000444 d:000444 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15
c:0087 p:0089 s:0440 b:0440 l:000439 d:000439 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/cache.rb:93
c:0086 p:0035 s:0436 b:0436 l:000426 d:000435 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/versions.rb:135
c:0085 p:---- s:0432 b:0432 l:000431 d:000431 FINISH
c:0084 p:---- s:0430 b:0430 l:000429 d:000429 CFUNC :each
c:0083 p:0017 s:0427 b:0427 l:000426 d:000426 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/versions.rb:133
c:0082 p:0015 s:0423 b:0423 l:000414 d:000422 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15
c:0081 p:---- s:0420 b:0420 l:000419 d:000419 FINISH
c:0080 p:---- s:0418 b:0418 l:000417 d:000417 CFUNC :each
c:0079 p:0055 s:0415 b:0415 l:000414 d:000414 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15
c:0078 p:0089 s:0410 b:0410 l:000409 d:000409 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/cache.rb:93
c:0077 p:0019 s:0406 b:0406 l:000405 d:000405 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/mount.rb:291
c:0076 p:0021 s:0401 b:0401 l:000400 d:000400 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/mount.rb:170
c:0075 p:0012 s:0397 b:0397 l:000396 d:000396 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/mount.rb:155
c:0074 p:0081 s:0393 b:0393 l:000383 d:000392 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1548
c:0073 p:---- s:0389 b:0389 l:000388 d:000388 FINISH
c:0072 p:---- s:0387 b:0387 l:000386 d:000386 CFUNC :each
c:0071 p:0076 s:0384 b:0384 l:000383 d:000383 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1544
c:0070 p:0146 s:0377 b:0377 l:000376 d:000376 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1411
c:0069 p:---- s:0370 b:0370 l:000369 d:000369 FINISH
c:0068 p:---- s:0368 b:0368 l:000367 d:000367 CFUNC :new
c:0067 p:0028 s:0364 b:0364 l:000363 d:000363 METHOD /Users/adrianstainforth/webSites/portfolio/portfolio_new/app/controllers/assets_controller.rb:14
c:0066 p:0012 s:0361 b:0361 l:000360 d:000360 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/implicit_render.rb:4
c:0065 p:0015 s:0356 b:0356 l:000355 d:000355 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:150
c:0064 p:0041 s:0351 b:0351 l:000350 d:000350 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rendering.rb:11
c:0063 p:0010 s:0347 b:0347 l:001950 d:000346 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:18
c:0062 p:0063 s:0345 b:0345 l:000344 d:000344 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:435
c:0061 p:0113 s:0339 b:0339 l:000338 d:000338 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:409
c:0060 p:0024 s:0330 b:0330 l:000329 d:000329 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:93
c:0059 p:0015 s:0324 b:0324 l:001950 d:001950 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:17
c:0058 p:0012 s:0320 b:0320 l:000301 d:000319 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:30
c:0057 p:0017 s:0316 b:0316 l:000306 d:000315 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52
c:0056 p:0032 s:0314 b:0314 l:000313 d:000313 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications/instrumenter.rb:21
c:0055 p:0036 s:0307 b:0307 l:000306 d:000306 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52
c:0054 p:0152 s:0302 b:0302 l:000301 d:000301 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:29
c:0053 p:0012 s:0296 b:0296 l:000295 d:000295 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rescue.rb:17
c:0052 p:0093 s:0291 b:0291 l:000290 d:000290 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:119
c:0051 p:0084 s:0285 b:0285 l:000284 d:000284 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/rendering.rb:40
c:0050 p:0048 s:0280 b:0280 l:000279 d:000279 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:133
c:0049 p:0086 s:0275 b:0275 l:000274 d:000274 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rack_delegation.rb:14
c:0048 p:0030 s:0269 b:0269 l:0002d8 d:000268 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:173
c:0047 p:---- s:0266 b:0266 l:000265 d:000265 FINISH
c:0046 p:---- s:0264 b:0264 l:000263 d:000263 CFUNC :call
c:0045 p:0022 s:0260 b:0260 l:000259 d:000259 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:62
c:0044 p:0094 s:0254 b:0254 l:000253 d:000253 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:27
c:0043 p:0097 s:0248 b:0248 l:000220 d:000247 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:148
c:0042 p:0014 s:0242 b:0242 l:000226 d:000241 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:93
c:0041 p:0377 s:0237 b:0237 l:000236 d:000236 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:75
c:0040 p:0137 s:0227 b:0227 l:000226 d:000226 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:92
c:0039 p:0092 s:0221 b:0221 l:000220 d:000220 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:139
c:0038 p:0025 s:0215 b:0215 l:000214 d:000214 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:492
c:0037 p:0033 s:0211 b:0211 l:000210 d:000210 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.24/lib/sass/plugin/rack.rb:41
c:0036 p:0015 s:0207 b:0207 l:000206 d:000206 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/best_standards_support.rb:
c:0035 p:0093 s:0200 b:0200 l:000199 d:000199 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/head.rb:14
c:0034 p:0155 s:0193 b:0193 l:000192 d:000192 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/methodoverride.rb:24
c:0033 p:0046 s:0187 b:0187 l:000186 d:000186 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/params_parser.rb:21
c:0032 p:0054 s:0182 b:0182 l:000181 d:000181 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/flash.rb:182
c:0031 p:0027 s:0175 b:0175 l:000174 d:000174 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/session/abstract_store.rb:
c:0030 p:0015 s:0164 b:0164 l:000163 d:000163 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/cookies.rb:287
c:0029 p:0014 s:0156 b:0156 l:001690 d:000155 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:32
c:0028 p:0019 s:0154 b:0154 l:000153 d:000153 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/query_ca
c:0027 p:0051 s:0150 b:0150 l:000149 d:000149 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:12
c:0026 p:0019 s:0146 b:0146 l:001690 d:001690 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:31
c:0025 p:0015 s:0142 b:0142 l:000141 d:000141 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/connecti
c:0024 p:0029 s:0138 b:0138 l:001960 d:000137 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:46
c:0023 p:0155 s:0136 b:0136 l:000135 d:000135 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:415
c:0022 p:0011 s:0126 b:0126 l:001960 d:001960 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:44
c:0021 p:0015 s:0122 b:0122 l:000121 d:000121 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/sendfile.rb:107
c:0020 p:0049 s:0112 b:0112 l:000111 d:000111 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/remote_ip.rb:48
c:0019 p:0015 s:0108 b:0108 l:000107 d:000107 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/show_exceptions.rb:46
c:0018 p:0027 s:0100 b:0100 l:000099 d:000099 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/logger.rb:13
c:0017 p:0032 s:0096 b:0096 l:000095 d:000095 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/runtime.rb:17
c:0016 p:0052 s:0087 b:0087 l:000086 d:000086 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/cache/strategy/local_cache.rb:72
c:0015 p:0014 s:0083 b:0083 l:000077 d:000082 BLOCK /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11
c:0014 p:0019 s:0081 b:0081 l:000080 d:000080 METHOD internal:prelude:10
c:0013 p:0054 s:0078 b:0078 l:000077 d:000077 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11
c:0012 p:0193 s:0073 b:0073 l:000072 d:000072 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/static.rb:30
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:168
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:77
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/log_tailer.rb:14
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/content_length.rb:13
c:0006 p:0338 s:0042 b:0042 l:000041 d:000041 METHOD /Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/adrianstainforth/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/adrianstainforth/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:002198 d:000008 BLOCK /Users/adrianstainforth/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH

c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

-- Ruby level backtrace information ----------------------------------------
/Users/adrianstainforth/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
/Users/adrianstainforth/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/Users/adrianstainforth/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
service'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/content_length.rb:13:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/log_tailer.rb:14:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:77:in method_missing'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:168:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/static.rb:30:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11:in
call'
internal:prelude:10:in synchronize'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11:in
block in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/cache/strategy/local_cache.rb:72:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/runtime.rb:17:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/logger.rb:13:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/show_exceptions.rb:46:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/remote_ip.rb:48:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/sendfile.rb:107:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:44:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:415:in
_run_call_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:46:in block in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:31:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:12:in
cache'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in cache'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:32:in
block in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/cookies.rb:287:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/session/abstract_store.rb:149:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/flash.rb:182:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/params_parser.rb:21:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/head.rb:14:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/best_standards_support.rb:17:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.24/lib/sass/plugin/rack.rb:41:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:492:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:139:in
call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:92:in recognize'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:75:in
optimized_each'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:93:in block in recognize'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:148:in
block in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:27:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:62:in
dispatch'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:62:in call'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:173:in
block in action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rack_delegation.rb:14:in dispatch'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:133:in
dispatch'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/rendering.rb:40:in process'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:119:in
process'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rescue.rb:17:in process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:29:in
process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52:in instrument'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications/instrumenter.rb:21:in
instrument'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52:in block in instrument'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:17:in process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:93:in
run_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:409:in _run_process_action_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:435:in
_run__3148347996397321010__process_action__4273701981902286269__callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:18:in block in process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rendering.rb:11:in
process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:150:in process_action'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/implicit_render.rb:4:in
send_action'
/Users/adrianstainforth/webSites/portfolio/portfolio_new/app/controllers/assets_controller.rb:14:in create'
/Users/adrianstainforth/webSites/portfolio/portfolio_new/app/controllers/assets_controller.rb:14:in
new'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1411:in initialize'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1544:in
attributes='
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1544:in each'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1548:in
block in attributes='
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/mount.rb:155:in file='
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/mount.rb:170:in
file='
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/mount.rb:291:in cache'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/cache.rb:93:in
cache!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15:in with_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15:in
each'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15:in block in with_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/versions.rb:133:in
cache_versions!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/versions.rb:133:in each'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/versions.rb:135:in
block in cache_versions!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/cache.rb:93:in cache!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15:in
with_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15:in each'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/callbacks.rb:15:in
block in with_callbacks'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/processing.rb:77:in process!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/processing.rb:77:in
each'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/uploader/processing.rb:78:in block in process!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/processing/rmagick.rb:185:in
resize_to_fill'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/processing/rmagick.rb:247:in manipulate!'
/Users/adrianstainforth/.rvm/gems/ruby-1.9.2-p0/gems/carrierwave-0.5.1/lib/carrierwave/processing/rmagick.rb:247:in
read'

Jonas Nicklas
Owner

This is an issue with RMagick, not CarrierWave. IIRC RMagick and Ruby 1.9.2 aren't best friends.

Adrian Stainforth

Ah ok that explains a lot thanks... guess I'll stick to mini_magick then! :)

Michael Glass

this fixed it for me:
http://stackoverflow.com/questions/2838307/why-is-this-rmagick-call-generating-a-segmentation-fault

for homebrew users:
brew install -f imagemagick --disable-openmp

I had to uninstall the old one and delete my cache as well before the above command would work.

brew remove imagemagick

rm -rf `brew --cache imagemagick`

brew install -f imagemagick --disable-openmp

Rolando Murillo
rnmp commented May 26, 2011

Thanks @michaelglass. It worked!

Cisco Riordan

Same fix, if you use Macports:

sudo port uninstall ImageMagick
sudo port edit ImageMagick

Add --disable-openmp to configure.args (near line 120)

sudo port install ImageMagick

Uninstall/reinstall rmagick

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.