technoweenie / attachment_fu

Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
http://weblog.techno-weenie.net
MIT License
1.02k stars 339 forks source link

Core Image Processor causes segmentation faults on OS X 10.6.x - 64bit. #27

Open AaronRustad opened 14 years ago

AaronRustad commented 14 years ago

Using core_image on 10.6.x 32bit dev machines works fine. Moving it to the production Xserve causes a segmentation fault related to core imaging...I'm guessing an API difference between 32bit and 64bit?

I was able to solve the problem by changing the default Processor from core_image to mini_magick.

Error Log:

[Mon Oct 04 17:07:34 2010] [notice] mod_pushdaemon: Starting handler 'pushd', max_conns= 1, pid=3305 [Mon Oct 04 17:07:35 2010] [notice] mod_pushdaemon: Sending Heartbeat to 9788408:unknown (16 bytes). /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50: [BUG] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

[Mon Oct 04 17:07:53 2010] [error] [client 192.168.20.138] Premature end of script headers: admin, referer: http://panoptes1.private/admin/fibre_lines/1/section_calibrate [ pid=3250 file=ext/apache2/Hooks.cpp:706 time=2010-10-04 17:07:53.361 ]: The backend application (process 3281) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. [Mon Oct 04 17:07:53 2010] [error] [client 192.168.20.138] mod_auth_digest_apple: Unable to authenticate for URI "/error/HTTP_INTERNAL_SERVER_ERROR.html.var" which fails to match original request URI "/admin/fibre_lines/1/section_image" from user "fotechadmin" for realm "Panoptes1" at location "/Local/Default" from the directory (error = -14090)., referer: http://panoptes1.private/admin/fibre_lines/1/section_calibrate [Mon Oct 04 17:08:05 2010] [notice] mod_pushdaemon: Sending Heartbeat to 9788408:unknown (16 bytes).