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.

ChooseFolder…freezing and causing FM to quit in SM 5.X

Featured Replies

When I register and run just the ChooseFolder( startingPath ; prompt ) function…all is good. But if I register a "few" more functions, the choosefolder freezes and quits FM. This is with FM 15, 16, 17 and Mac or PC. SM4.43 doesn't not have any problem. Seems a memory issue. Anyone else seeing this?

I've loaded up a file that you can edit and test. Thanks. 

directory test.fmp12

Edited by Bailey Kessing

Hi Bailey,

    I am not able to reproduce this issue with your example file in Mac High Sierra with FileMaker 17 and ScriptMaster 5.1. I ran the "Register ScriptMaster and Java functions" script after I uncommented a bunch of modules. I then ran the "Choose Folder" script and the file chooser window opened and I was able to select a folder and it's path showed in the Folder text field. What versions of Mac OS/Windows did you test on?

  • Author

Thanks Ryan. It is strange. Alot of my users are seeing this. I am using the exact same set up as you seemingly but also see it with 15, 16 too. If I register JUST that function all is OK. I did notice that at one point it was only a problem after the first call. Could it be a memory issue? Could it be what Java we have installed? Java 8 191. 

I should also mention that we work for the fed. gov. and there are all sorts of virus scanning programs on our computer etc. Maybe a confounding variable?

ScriptMaster 5.X will not use system Java. On its first init it will download a sandboxed JRE that only runs when the plugin is enabled. Could be a memory issue, I just checked and I didn't realize it but I do have 512 MB memory allocated over the default 96. Try allocating more memory and see if it clears the issue (instructions here). If it doesn't, please email your logs to our support system at [email protected] and reference this thread. When sending the logs, make sure to reproduce and then send the logs before restarting FileMaker as restarting will overwrite the logs.

  • Author

OK. I created the directory (under user) and used the 512 file. Restarted FM and it didn't help. Was hopeful. 

 

Where so I find he logs you want?

Edited by Bailey Kessing

  • Author

yes

  • Author

Where so I find the logs? Sorry

Apologies, forgot to add that link in previous post. Log locations can be found here.

  • Author

Thank you so much. I sent two. Really sorry for the hassles!!! my email was [email protected]

Bailey...

beachballs straight away on mine

MBP17" 10.12.6 FMP 17.0.2 and latest SM

 

 

Over the years the Swing stuff has given the most problems, apart from some of the really edge case stuff I have done...

  • Author

John, same with me. But checking memory for Ryan. Sorry was busy today

Bailey and John,

Just to cover any possibility, have you made sure the file chooser window isn't going behind other windows?

Ryan

changed the default memory size to 512 and it has worked 3 times and then crashed on the 4th....

John, can you put an SMReset at the beginning of the script and see if you get a different result?

Pseudo code::

SM Reset

Register Groovy

Set $var to ChooseFolder

 

Ran once, behind the FM window - I think I reported this previously - and then beachballed next time

  • Author

I have no ideal why but it is suddenly working for me. Very confused. It has never worked before this many times. UGH. I have attached the log file

360Plugins_FMAdvanced.log

  • Author

OK. It wasn't working. Just had re-installed 4.43. My bad. Sorry

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.