t-oster / VisiCut

A userfriendly tool to prepare, save and send Jobs to Lasercutters
https://visicut.org
Other
228 stars 114 forks source link

New builds don't seem to work with LAOS Lasercutters #629

Closed thinkl33t closed 2 years ago

thinkl33t commented 2 years ago

I have access to two LAOS lasercutters, one at Hackspace Manchester, and one at home. Both running the latest version of laos.

We've noticed that on new versions of visicut (those from the visicut downloads page), what looks like completely blank files are being sent through to the laser cutter. Symptoms are that when asked to run, the laser will start up the fans, extraction etc, then immediately end the job.

I have inspected the simplecode files visicut is generating (by exporting them) and they seem to be correct. Some files seem to be generated and sent through correctly - notably the finger-box example works fine.

We have triaged all the visicut versions we could get our hands on, on debian and macos, and found the following:

mgmax commented 2 years ago

Is this the issue? https://github.com/t-oster/LibLaserCut/issues/131 Then the expected symptom would be that it does not work for all files.

You could try with network sniffing software (e.g., wireshark) to check what's sent to the cutter and check if the length roughly matches the simplecode file.

thinkl33t commented 2 years ago

Screenshot from 2021-12-15 15-23-14

Screenshot from 2021-12-15 15-23-43

thinkl33t commented 2 years ago

Attached is a zip of the pcapng file if you want to look - this is using visicut 1.9-135

visicut-1.9-135.zip

thinkl33t commented 2 years ago

Same file, 1.9-41 - worked fine

Screenshot from 2021-12-15 15-48-18

visicut-1.9-41.zip

t-oster commented 2 years ago

Can you set up a dev environment and do a git bisect in LibLaserCut in order to find the commit, which introduced that problem?

mgmax commented 2 years ago

Does it make a difference if you restart VisiCut before every laser job? We sometimes had bugs regarding the initialization, where the laser driver only worked correctly for the first job.

thinkl33t commented 2 years ago

Just tried -135 again with wireshark doing its thing, same behaviour on the first attempt as subsequent attempts.

mgmax commented 2 years ago

should be fixed in the next release, same issue as https://github.com/t-oster/VisiCut/issues/647 - files only work if they are big enough (and/or if you have random luck with the Java garbage collector timing)