Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

Without any more details I would surmise the original is not an RGB image, or has some other non-standard format..

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.

  • 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?

  • 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?

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 by john renfrew

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.