Page 1 of 1

[BUG] scripts don't work on F16.2 on MacOS

PostPosted: Tue Mar 17, 2020 7:04 pm
by Millolab
As the title says, scripts do not work on F 16.2.
Not even Reactor.
I'm on a iMacPro running Mojave 10.14.6.

I had to go back to f 16.1
this is a big issue. VERY.

Re: [BUG] scripts don't work on F16.2 on MacOS

PostPosted: Fri Mar 20, 2020 10:23 pm
by movalex
I confirm that some Lua scripts won't work on Fusion 16.2 on Mac.

Here's an easily reproducible example:
Running this script from Scripts:Comp location will print in Console only 57 numbers of 100.

Code: Select all
for i = 1, 100 do print(i) end

Tested on MacOS 10.14.6, Fusion 16.2 build 22

Re: [BUG] scripts don't work on F16.2 on MacOS

PostPosted: Sat Mar 21, 2020 8:11 pm
by movalex
As mentioned by @AndrewHazelden, disabling Just-In-Time compiler will bring Lua scripts back to work on MacOS in 16.2
So you'll need to add this code to the beginning if your script:
Code: Select all
if fu.Version == 16.2 and FuPLATFORM_MAC == true then
    jit.off()
end

However, this is pretty rotten issue and I hope Fusion developers are already aware of it.

Re: [BUG] scripts don't work on F16.2 on MacOS

PostPosted: Wed Apr 01, 2020 4:49 pm
by Millolab
tried to do so.
But that didn't work...

Re: [BUG] scripts don't work on F16.2 on MacOS

PostPosted: Wed Apr 08, 2020 6:11 pm
by movalex
Dunno, at least this version of ArchiveScript with disabled JIT works on Mac with Fusion 16.2
https://share.getcloudapp.com/E0ubGAwY