Hello,
I'm using 3.1.2.
I'm using revolute joints with custom control loop.
I also have a main lua script which sets a couple joint angles.
Scenario- simulation is working as expected. I edit the design and move a few parts around.
Every once in a while (e.g. twice in 2 days), the simulation stops working, and I find that both the main .lua script and the control lua script have been corrupted. (I did not have a script editor open at the time.)
This has happened on two different computers, (but with the same scene).
Basically it looks like the internal lua buffer area got overwritten by some buffer overflow.
(My design is small, with only 2 four-bar linkages.)
Example corruption:
-- Make sure you read the section aD*HJc@ssing gener2l-type objects programmatically"
-- For instance, if you wish to retrieve the handle of a scene obj+1©, uÖe folloÒóng=Ä!struc…ion:
-°Ø
-- høEdlec)VmGetObjectHanªle('sceneObjectName')
Current workaround is to periodically save the used .lua files and reload them.
Thanks in advance!
Ron
Lua scripts corrupted
Re: Lua scripts corrupted
Hello Ron,
thanks for reporting this problem.
Are you using the built-in script editor, or an external editor? On what platform are you working?
Cheers
thanks for reporting this problem.
Are you using the built-in script editor, or an external editor? On what platform are you working?
Cheers
Re: Lua scripts corrupted
Hello,
Windows 7 on both computers.
External script editor Notepad++.
But of course the joint control is edited using ``Edit custom control loop'' which uses the built in Lua editor.
The joint control lua script editor was closed, as I was running the simulation.
I believe the external Notepad++ may have been closed in one of the instances.
Thanks
Ron
Windows 7 on both computers.
External script editor Notepad++.
But of course the joint control is edited using ``Edit custom control loop'' which uses the built in Lua editor.
The joint control lua script editor was closed, as I was running the simulation.
I believe the external Notepad++ may have been closed in one of the instances.
Thanks
Ron
Re: Lua scripts corrupted
Thanks Ron for the clarification. We unfortunately cannot reproduce the problem. Could it be that you do something special when that happens (or just before that happens)?
Cheers
Cheers
Re: Lua scripts corrupted
Hello,
The behavior has not repeated, so I don't know if there is anything special I did.
If it happens again, I will note exactly what I did before it happened.
Thanks
Ron
The behavior has not repeated, so I don't know if there is anything special I did.
If it happens again, I will note exactly what I did before it happened.
Thanks
Ron