August 9, 20169 yr I'm at a loss as to why I'm getting "ERROR" when: I have an image (JPG) 3648 x 5472 pixels at this location: $crop_location = /Volumes/Macintosh HD/Applications/Wolf Spring/Wolf Spring Lightroom/Originals/Anderson_Austin_RB6649233682XA-O9330018750AV-crop.JPG The file location is definitely correct. This function: CropImage( $crop_location ; 0 ; 300 ; 3648 ; 5172 ) Should simply crop 300 pixels off the top, right? I get "ERROR" Any ideas?
August 9, 20169 yr Without any more details I would surmise the original is not an RGB image, or has some other non-standard format..
August 9, 20169 yr Hi truelifeajf, If you call SMLastError after you get "ERROR" then you will get a more detailed error. You could also get the error and the entire stack trace from the plugin logs. See this page for log locations. Do a search for "Severe" and the error should be at the bottom of the file. Post the error here with the entire stack trace and it will be easier to diagnose what is going on.
August 9, 20169 yr Author Ah ok... the log says: java.lang.OutOfMemoryError: Java heap space There's more information after that but I'm guessing that may not be relevant right now. Image too large? Increase FM Memory allocation?
August 10, 20169 yr Author I tried on a smaller file and it "worked", this time this: $result = CropImage( $crop_location ; 0 ; 0 ; 10 ; 10 ) $result is "image.jpg". Why does it show "image.jpg" as a result?
August 10, 20169 yr Are you setting a container field to that result?? Win/ Mac? Again, guessing is a slow method to help out. Can you post that part of your script? Edited August 10, 20169 yr by john renfrew
August 10, 20169 yr To increase the memory size available for ScriptMaster: http://docs.360works.com/index.php/Heapspace_Out_of_Memory_Error.
August 10, 20169 yr 18 hours ago, truelifeajf said: Ah ok... the log says: java.lang.OutOfMemoryError: Java heap space There's more information after that but I'm guessing that may not be relevant right now. Image too large? Increase FM Memory allocation? Our plugins have 96MB of heap space memory by default so if you are doing something that involves larger files, it easy to run out of memory. Follow the link that David Wilkström posted and then restart FileMaker. If the memory file worked you should be able to look in logs and at around line 9 there should be a statement that says "found custom memory file -Xmx512m".
Create an account or sign in to comment