July 8, 201015 yr I reinstalled my mac, and now I cannot find the log files of ScriptMaster anymore. Can someone give me the path? Another question: I have the feeling that if you do too many subsequent calls to ScriptMaster (for example in a loop or something like that), that after a while FileMaker freezes... This is also the reason why I want to see in the error log what is exactly going on. The function I am using is CheckIfFileExists. new File( pathToFile ).exists() I have the feeling that the first 20 are going fine and really fast, but after that it goes slower, until it freezes. System is: Mac OS X 10.6 // FM 11v2 I have the same experience with the ChooseFolder function. If you click only once it is fine, but if you keep on trying it freezes after a while.
July 8, 201015 yr logs can be found at: /Users/userName/Library/Logs/360Plugin Logs/ /Users/userName/Library/Logs/360Plugin Logs/360Works FM WPE /Users/userName/Library/Logs/360Plugin Logs/360Works FM Pro How are you calling your function? You should register the function with SMRegister and then call the function through the function which appears in your external function list. You should not call the function over and over using the SMEvaluateGroovy function.
July 9, 201015 yr Author Thanks for the reply ! I do register them with SMRegister. The crash I got due to CheckIfFileExists was caused by hidden spaces (never came across those in my life) in the URL (even simply pasting the URL inside FileMaker caused FileMaker to freeze). However the crashes I encounter when using ChooseFolder are still there. To reproduce I simply open the example file and run the function several times. After some runs it freezes FileMaker. However I didn't have the time to read the log file yet. Andris
July 10, 201015 yr Author Hi David, I reproduced the crash. This is the script I try to run: import javax.swing.JFileChooser; JFileChooser chooser = new JFileChooser(); chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY ); //You can switch this to JFileChooser.FILES_ONLY or JFileChooser.FILES_AND_DIRECTORIES if you want the user to be able to pick files if( startingPath != null ) chooser.setCurrentDirectory( new File(startingPath) ); if( prompt != null ) chooser.setDialogTitle( prompt ); if( chooser.showOpenDialog( null ) == JFileChooser.APPROVE_OPTION ) { return chooser.getSelectedFile().getAbsolutePath(); } else return ""; Everytime I run the script the following warning is logged three times: 11/07/10 00:54:09 [0x0-0x168168].com.filemaker.client.advanced[3363] WARNING: No result in main thread AWT-AppKit for PluginFunction{name='SMSetVariable', functionID=-3516, minArgs=null, maxArgs=2}. All plugin functions should always return a result!!! After several calls FileMaker crashes. I think it is the use of the AWT-AppKit that causes this crash. When FM crashes the following error is logged: 11/07/10 00:54:10 FileMaker Pro[3363] java.lang.NullPointerException at apple.awt.CToolkit.postEvent(CToolkit.java:1086) at apple.awt.EventFactoryProxy.forwardEvent(EventFactoryProxy.java:53) at com.prosc.fmkit.PluginBridge._startEventLoop(Native Method) at com.prosc.fmkit.PluginBridge.startEventLoop(PluginBridge.java:1288) at com.prosc.fmkit.PluginBridge.runTask(PluginBridge.java:980) at com.prosc.fmkit.PluginBridge.doFunction(PluginBridge.java:875) 11/07/10 00:54:10 [0x0-0x168168].com.filemaker.client.advanced[3363] Invalid memory access of location 0x20653 eip=0x16ddd198 In the error log of scriptmaster I find the same warnings as mentioned above. I attached the log of scriptmaster and the error report created by Mac OS X. I hope you can do something with it. ProblemReport.txt ErrorLogScriptMaster.txt Edited July 10, 201015 yr by Guest
July 13, 201015 yr Could you please post your full log file after you next run this script and have this issue?
July 14, 201015 yr Author I deleted the complete log, started up FileMaker, opened the scriptmaster file and ran the script several times, and it crashed again. here is the log of scriptmaster, however it only logs the warnings, not the crash... 360Works_ScriptMaster_FMAdvanced.txt
July 20, 201015 yr Author error remains with ScriptMaster 4. This error is also produced when using the function ColorPicker. I have the feeling that this crash is caused by AWT-kit as this is the common class used in the functions I am testing (and it throws a warning as well -) )
Create an account or sign in to comment