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.

ErrorLog + subsequent calls to scriptmaster

Featured Replies

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.

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.

  • 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

I'm not able to reproduce this issue. Please post your logs when you get a chance.

  • 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 by Guest

Could you please post your full log file after you next run this script and have this issue?

  • 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

  • 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

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.