Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5258 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted (edited)

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
Posted

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 :)-) )

This topic is 5258 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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