[JW Lua] Crashes on MAC,2

Jan Angermüller jan at angermueller.com
Wed Dec 4 10:38:52 CET 2019


Do they get a crash or an error message?
Did you have a chance to check yourself with the Finale document where 
the crash occured?

I have just quickly browsed through your script to see if I find any 
classes/methods that I remember to be able to cause crashes.
I would recommend to put a nil check after 
smartshape=mark:CreateSmartShape()  (i.e. add "if smartshape then" ...)
This can return nil in some cases and would AFAIK produce an error 
message on Windows (but probably not a crash - I am not sure).

I noticed that "staves" in the function apply are not used.

In one of the first messages that I exchanged with Jari he recommended 
to more or less check everything for nil.
And a few years later I can say ... yes, that was a very good 
recommendation. Especially if you deal with slightly corrupted or older 
Finale documents.

I like your preview button :-)

Jan

Am 03.12.2019 um 16:28 schrieb Chris:
> Here is the information :
>
> The 2 users have version 0.54
> User with a lot of crashes -> Finale 26.0.1 fr / OSX Mojave 10.14.5
> User with few crashes -> Finale 26.2.1  /  OS 10.14.6
>
> Chris
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20191204/8d11d35e/attachment.htm>


More information about the JWLua mailing list