nuCarve / laserpost

Fusion 360 / HSMWorks / Inventor CAM post-processor for laser cutting and engraving that creates perfect vector projects (LightBurn and SVG), eliminating the headaches of projecting sketches, exporting DXF files, etc. Visit https://nucarve.com/laserpost for release downloads, and tutorials, tips and tricks.
MIT License
9 stars 1 forks source link

Post Processing in LaserPost 1.1 : "Error: Failed to invoke function 'onOpen'." #2

Open dbs995 opened 11 months ago

dbs995 commented 11 months ago

Hi everyone, I've tried to follow the intro videos very carefully, went trough them twice but every time I'm bumping into the following error while trying to post-process. Can you help out me, the newbie of laser post? Background: I'm running Fusion 360, the up-to-date version, on a Mac M1 with Sonoma. Fusion says this: Fusion 360 2.0.17457 arm64 [Native] macOS 14.0 (23A344) on MacBookPro17,1

The Error log looks (always) like this:

Information: Configuration: LaserPost for LightBurn (1.1.0) Information: Vendor: nuCarve Information: Posting intermediate data to '/Users/XXX/Documents/Freizeit/Laser/Project Files/Weihnachten/house.lbrn' Information: Total number of warnings: 3 Error: Failed to post process. See below for details. ... Start time: Mon Oct 30 17:34:44 2023 Warning: (/Users/XXX/Library/Application Support/Autodesk/Autodesk Fusion 360/C5SQQ35TNEDH/W.login/M/D20190926218999781/CAMPosts/laserpost-lightburn.cps:1981) vector is read-only Warning: (/Users/XXX/Library/Application Support/Autodesk/Autodesk Fusion 360/C5SQQ35TNEDH/W.login/M/D20190926218999781/CAMPosts/laserpost-lightburn.cps:3082) text is read-only Warning: (/Users/XXX/Library/Application Support/Autodesk/Autodesk Fusion 360/C5SQQ35TNEDH/W.login/M/D20190926218999781/CAMPosts/laserpost-lightburn.cps:4416) text is read-only Post processor engine: 4.5991.0 Configuration path: /Users/XXX/Library/Application Support/Autodesk/Autodesk Fusion 360/C5SQQ35TNEDH/W.login/M/D20190926218999781/CAMPosts/laserpost-lightburn.cps Include paths: /Users/XXX/Library/Application Support/Autodesk/Autodesk Fusion 360/C5SQQ35TNEDH/W.login/M/D20190926218999781/CAMPosts Configuration modification date: Mon Oct 30 13:28:31 2023 Output path: /Users/XXX/Documents/Freizeit/Laser/Project Files/Weihnachten/house.lbrn Checksum of intermediate NC data: 58d6b719164e36d70dfbcefd8e1e091c Checksum of configuration: 7eec1d2dd0c14441ae9d8e8cc2b2ccb2 Vendor url: https://nucarve.com/laserpost Legal: Copyright (C) 2023 by nuCarve Generated by: Fusion 360 CAM 2.0.17457 ... Error: Failed to invoke function 'onOpen'. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: Failed to invoke 'onOpen' in the post configuration. Error: Failed to execute configuration. Stop time: Mon Oct 30 17:34:44 2023 Post processing failed.

My setup looks roughly this way:

image image image image

If you could help me out, that would be greatly appreciated! Cheers, Daniel

dbs995 commented 11 months ago

I "solved" the problem by downgrading to LaserPost 1.0 (stable version), instead of using the 1.1 (stable). All settings were the same, just the LP Version is different. Of course not really a fix for the problem, but for me it works now...

tbbooher commented 5 months ago

I had the exact same problem. But downgrading didn't work either.

Information: Vendor: nuCarve
Information: Posting intermediate data to 'C:\Users\tim\Downloads\tray.lbrn'
Information: Total number of warnings: 1
Error: Failed to post process. See below for details.
...
Code page changed to '1252  (ANSI - Latin I)'
Start time: Saturday, April 27, 2024 3:27:56 PM
Code page changed to '20127 (US-ASCII)'
Post processor engine: 5.131.1
Configuration path: C:/Users/tim/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts/laserpost-lightburn stable.cps
Security level: 1000
Include paths: C:/Users/tim/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts
Configuration modification date: Saturday, April 27, 2024 3:23:41 PM
Output path: C:\Users\tim\Downloads\tray.lbrn
Checksum of intermediate NC data: 3b1ee0aa7b2de294bcba46110fc574b9
Checksum of configuration: 6f25b63a3d0bd424ccd00b445ac40fba
Vendor url: https://nucarve.com/laserpost
Legal: Copyright (C) 2022 by nuCarve
Generated by: Fusion CAM 2.0.18719
...
Warning: LaserPost requires your permission to check for updates.

ALLOW: Select "Yes" on the following dialog (and optionally check the "Remember" box).

DECLINE: You must disable update checking.  Select "No" on the following dialog then change the "LaserPost: Automatic update" option on the post properties page to "Never".

Visit https://nucarve.com/laserpost-permissions for more information.

###############################################################################
Error: Failed to invoke method of class 'PostProcessor'.
Error at line: 3071 (laserpost-lightburn stable.cps)
Failed while processing onOpen().
###############################################################################

Error: Failed to invoke function 'onOpen'.
Error: Failed to invoke 'onOpen' in the post configuration.
Error: Failed to execute configuration.
Stop time: Saturday, April 27, 2024 3:27:56 PM
Post processing failed.
cmidgley commented 2 weeks ago

Sorry about very long silence! The notifications from GitHub were not coming to my inbox, and I missed this.

There was a change in Fusion's implementation of the JavaScript engine (a few times since this issue was open) that caused this. They improved their compliance to the JavaScript standards and that exposed some bugs in the process. Version 1.2 fixes most of those, but somebody just sent in a PR for another one (which caused me to visit the github repo to see these unanswered / outstanding issues) so there will likely be a 1.2.1 soon.