Forums | Admin

Discussion Forums: Hints and Tips

Start New Thread Start New Thread

 

By: shelly qi
RE: Tell RMagick to let Ruby manage image objects [ reply ]  
2012-09-12 02:30
http://minicar9900.deviantart.com/journal/Dark-chocolate-Prom-Gowns-Tend-to-be-Wealthy-As-we-325971469
http://www.domeactreview.com/node/56275
http://www.gather.com/viewArticle.action?articleId=281474981616498
http://minicar.inube.com/blog/1792306/brief-prom-gowns-are-extremely-well-liked/
http://minicar9900.lifeyo.com/post/121444/buying-custom-prom-gowns/
http://minicar9900.lifeyo.com/post/121443/brief-prom-gowns-tend-to-be-what-you-want/
http://virgilsutton11.onsugar.com/Celeb-prom-gowns-well-Fits-24819076
http://millycocktaildresses.tumblr.com/post/31110833458/choosing-the-corsage-for-the-prom-gowns-as-well-as
http://millycocktaildresses.tumblr.com/post/31110805174/choosing-prom-gowns-which-certainly-match-your-look
http://millybridalgown.verhalen.nl/271231/Choosing+The+most+effective+Associated+with+Prom+Gowns+2012+.html

By: John Chufar
RE: Tell RMagick to let Ruby manage image objects [ reply ]  
2010-11-05 16:34
I am attempting to use the mem mgt.

However I am getting a
/RubymineProjects/newtabs/lib/sheet.rb:336: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]

when generating a series of hires- pdf's.

(other Rmagick ops work fine)


In environment.rb (rails)
RMAGICK_ENABLE_MANAGED_MEMORY = true


SW Versions
Version: ImageMagick 6.6.3-10 2010-09-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]

rmagick (2.13.1)

Troubleshooting:
I have rem'd out all Image#destroy! calls

By: Tim Hunter
RE: Tell RMagick to let Ruby manage image obj [ reply ]  
2009-06-20 18:16
I should add that you must be using ImageMagick 6.5.3-10 or later for this to work. Using an earlier version of ImageMagick may (in rare cases) cause your program to hang.

By: Tim Hunter
Tell RMagick to let Ruby manage image objects [ reply ]  
2009-06-20 17:59
RMagick 2.10.0 has experimental support for using Ruby-managed memory for all objects. In this mode Ruby can automatically garbage-collect unused images just like any other object.

To enable this support, add the line

RMAGICK_ENABLE_MANAGED_MEMORY = true

before requiring RMagick. You can programatically determine when RMagick is using Ruby memory by testing the constant

Magick::MANAGED_MEMORY

When this constant is true then RMagick is using Ruby memory.

This support is experimental. If you decide to take it out for a spin please share your experiences. Thanks!