-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/20/11 9:29 PM, Daniel Johnson wrote: > > On Sep 20, 2011, at 6:23 PM, Alexander Hansen wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> On 9/19/11 9:10 PM, Alexander Hansen wrote: >>> On 9/19/11 5:40 PM, Alan Rakes wrote: >>> >>>> I need to have the unstable tree enabled in order to install >>>> some of the packages I need. However, I am having a problem >>>> with crashes in Octave. My research on this implies it is >>>> related to the version of graphicsmagick in the unstable >>>> tree, but may not be a problem with the version in the stable >>>> tree. >>> >>>> Is there a way I can reinstall Octave using just stable tree >>>> version of graphicsmagick? >>> >>> >>>> If anyone is interested, here is the crash report I am >>>> getting which seems to be related to the combo of Octave >>>> 3.2.4 and graphicsmagic 1.3.12-1. More importantly, I want >>>> to try it with the latest version that is supposed to work >>>> which is graphicsmagick 1.3.7-2. >>> >>> >>>> Here is the crash report. >>> >>>> Alan-Rakess-Pro:~ alanrakes$ octave GNU Octave, version 3.2.4 >>>> Copyright (C) 2009 John W. Eaton and others. This is free >>>> software; see the source code for copying conditions. There >>>> is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or >>>> FITNESS FOR A PARTICULAR PURPOSE. For details, type >>>> `warranty'. >>> >>>> Octave was configured for "i386-apple-darwin". >>> >>>> Additional information about Octave is available at >>>> http://www.octave.org. >>> >>>> Please contribute if you find this software useful. For more >>>> information, visit http://www.octave.org/help-wanted.html >>> >>>> Report bugs to <b...@octave.org> (but first, please read >>>> http://www.octave.org/bugs.html to learn how to write a >>>> helpful report). >>> >>>> For information about changes from previous versions, type >>>> `news'. >>> >>>> octave:1> cd desktop octave:2> img=imread('scorpion.jpg') >>>> Assertion failed: (semaphore_info != (SemaphoreInfo *) >>>> NULL), function LockSemaphoreInfo, file magick/semaphore.c, >>>> line 525. panic: Abort trap -- stopping myself... Abort trap >>>> Alan-Rakess-Pro:~ alanrakes$ >>> >>> >>>> Thanks. >>> >>> >>> In general, you can use "fink dumpinfo -fallversons >>> <packagename>" to access all of the known versions of >>> <packagename> >>> >>> $ fink dumpinfo -fallversions graphicsmagick Information about >>> 10617 packages read in 1 seconds. allversions: 1.3.7-2 bi >>> 1.3.12-1 >>> >>> To roll graphicsmagick back, you can use "fink install >>> graphicsmagick-1.3.7-2" >>> >>> My recollection is that I saw a similar error in the drawtiming >>> package with graphicsmagick 1.3.12 but not 1.3.7-2, so I may >>> need to apply a similar patch to octave-3.2.4 . >> >> (cc'ing the graphicsmagick maintainer) >> >> Interestingly enough, when I googled around about this issue, it >> looks like other folks (cygwin, at least) have decided to patch >> graphicsmagick-1.3.12 rather than octave-3.2.4: >> >> http://savannah.gnu.org/bugs/?29474 >> >> A report from Macports: >> http://octave.1599824.n4.nabble.com/Cannot-read-an-image-with-imread-on-Mac-td3339046.html >> >> >> >> >> I'm trying to figure out how to patch Octave-3.2.4 instead, but it >> hasn't quite worked yet. > > According to GraphicsMagick upstream, this is a bug in the client > code: > http://sourceforge.net/tracker/?func=detail&aid=3104518&group_id=73485&atid=537937 > > > > Clients are supposed to call InitializeMagick() before using any > GM calls. In the past it would work anyway so people got lazy and > left it out, but now it's strictly enforced because it's used to > ensure multithreaded safety. I'd suspect that patching GM to not > need to do this would be impractical and likely dangerous. > > Daniel > > >
Kicking this over to devel because I need some programming help here. InitializeMagick apparently has to be called as InitializeMagick(const *char) , at least by clang. Unfortunately, I'm not sure what to use as an argument. I tried the following, knowing that args(0).string_value is a filename in all cases: DEFUN_DLD (__magick_finfo__, args, , "-*- texinfo -*-\n\ @deftypefn {Loadable File} {} __magick_finfo__(@var{fname})\n\ Read image information with GraphicsMagick++. In general you should\n\ not be using this function. Instead you should use @code{imfinfo}.\n\ @seealso{imfinfo, imread}\n\ @end deftypefn") { octave_value_list output; #ifdef HAVE_MAGICK //My stuff to initialize GraphicsMagick const char* fn = args (0).string_value (); InitializeMagick(fn); ... But unfortunately that doesn't suffice. ./DLD-FUNCTIONS/__magick_read__.cc:361:15: error: no viable conversion from 'std::string' (aka 'basic_string<char>') to 'const char *' const char* fn = args (0).string_value (); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ - --- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk56DeEACgkQB8UpO3rKjQ+VQQCfTuJw5eRCZNyA9gG/kyVCrYsW 0A0An2OQSmUOR/mvH//EWa8KZxAcCunT =C4m5 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel