Bailey Kessing Posted November 13, 2018 Posted November 13, 2018 (edited) 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 November 13, 2018 by Bailey Kessing
ryan360Works Posted November 13, 2018 Posted November 13, 2018 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?
Bailey Kessing Posted November 13, 2018 Author Posted November 13, 2018 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?
ryan360Works Posted November 13, 2018 Posted November 13, 2018 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.
Bailey Kessing Posted November 13, 2018 Author Posted November 13, 2018 (edited) 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 November 13, 2018 by Bailey Kessing
ryan360Works Posted November 13, 2018 Posted November 13, 2018 ok, I'll keep a look out for your logs.
Bailey Kessing Posted November 13, 2018 Author Posted November 13, 2018 Where so I find the logs? Sorry
ryan360Works Posted November 13, 2018 Posted November 13, 2018 Apologies, forgot to add that link in previous post. Log locations can be found here.
Bailey Kessing Posted November 13, 2018 Author Posted November 13, 2018 Thank you so much. I sent two. Really sorry for the hassles!!! my email was [email protected]
john renfrew Posted November 13, 2018 Posted November 13, 2018 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...
ryan360Works Posted November 13, 2018 Posted November 13, 2018 John, do you have a default memory allocation?
Bailey Kessing Posted November 14, 2018 Author Posted November 14, 2018 John, same with me. But checking memory for Ryan. Sorry was busy today
ryan360Works Posted November 14, 2018 Posted November 14, 2018 Bailey and John, Just to cover any possibility, have you made sure the file chooser window isn't going behind other windows?
john renfrew Posted November 14, 2018 Posted November 14, 2018 Ryan changed the default memory size to 512 and it has worked 3 times and then crashed on the 4th....
ryan360Works Posted November 14, 2018 Posted November 14, 2018 John, can you put an SMReset at the beginning of the script and see if you get a different result?
john renfrew Posted November 14, 2018 Posted November 14, 2018 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
Bailey Kessing Posted November 15, 2018 Author Posted November 15, 2018 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
Bailey Kessing Posted November 15, 2018 Author Posted November 15, 2018 OK. It wasn't working. Just had re-installed 4.43. My bad. Sorry
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now