I've been playing around with v 1.6.0 and it looks great!
As promised, I've been trying to implement a couple of the things I mentioned in the Feature Requests threads. When doing some small tests, RUBE has crashed unexpectedly a couple of times. I managed to isolate the issue. It seems that when I repeatedly access a custom property via the . operator within a script that's called using a system hook, there is a memory conflict of some sort.
Anyway:
- here is the rube scene I used
- here is the rube script that highlights the issue
- To reproduce the error with this scene, just associate the rubescript with the system hook and quickly and repeatedly translate body0
As far as I can tell, the crash only occurs when the script is run from a system hook (In this case 'Bodies manipulated'), and only when the access occurs within a user defined function. But I have produced the crash several times under those conditions, so I do think this is the issue.
If I manually run the script repeatedly from the scratch pad (tap F5) I get the error:
Code: Select all
00:45:27: Skipping compile script because mutex lock failed.
Code: Select all
string parentName = b.getCustomString('parentName');
All in all this is a pretty obscure issue with an easy fix (just use the getCustom<type> methods inside functions within scripts that are called via system hooks), but I thought I would report it just the same.
EDIT: When the program crashes I first see the 'Running script' pop-up, followed by the windows message: 'R.U.B.E. editor has stopped working'. Then I'm forced to close it.