Mr Jos Posted July 19, 2020 Posted July 19, 2020 (edited) Hey, While adding some more code to my program I ran into this problem. It pops up directly after launching the program. Even when putting a 100sec wait block at the start of the program. Anyone ever had this error pop up? I can't seem to find anything about this one. Greetings Mr Jos Edited July 19, 2020 by Mr Jos Quote
Coder Shah Posted July 19, 2020 Posted July 19, 2020 Possible related issue: https://ev3lessons.com/en/ProgrammingLessons/beyond/BranchingError.pdf Try updating your Mindstorms software to the latest version if you have not yet done so. Failing that, contact LEGO Customer Support. Quote
Mr Jos Posted July 19, 2020 Author Posted July 19, 2020 (edited) Thanks for the fast response, I found that but it seems to be a different problem. That link is about "instruction break", it used to occur mid program when running in an error going to the middle of a loop. This is "Validation error" and happens right at launch, no branching done yet in the program. Will try to update the firmware, but it seems to be a different error. Edit: Current firmware is V1.09H Updated firmware to V1.09E. Error stays the same; "VM Program Validation". Edited July 19, 2020 by Mr Jos Quote
Coder Shah Posted July 19, 2020 Posted July 19, 2020 v1.09h is for Home software, v1.09e is for Education software. Either should be fine though. The only other thing I can think of is that there is some sort of problem with the brick itself. Try resetting the brick. Failing that, contact LEGO customer support. Quote
Mr Jos Posted July 19, 2020 Author Posted July 19, 2020 I tracked down the code part that is giving the error. It appears to be a myblock drawing 24 squares on the screen white/black based on a logic array. That myblock worked well until now.. When I delete that myblock, all the rest works perfect. Allready send a mail to LEGO customer support asking the meaning of the errorcode. Hope it isn't because there are to many variables/arrays, because I need loads more for my program. Quote
Mr Jos Posted July 19, 2020 Author Posted July 19, 2020 (edited) Another update, when adding a new loop, instead of getting name "01" it gets the name from another loop allready in the program. When clicking it, it does show 01, but when I run the program there is the same VM error. So there are to many loops/switches. So it actually isn't that myblock but some memory issue or something. Edit: I counted the loops in the program. The error giving one Loop number 30. So maximum 29 different loops allowed I guess.. Edited July 19, 2020 by Mr Jos Quote
Mr Jos Posted July 19, 2020 Author Posted July 19, 2020 And last update as the problem is solved, if anyone in the future gets this error here is the answer. Rename your loops. I had 19loops making my arrays all with a different name. Then the main program and some myblocks had 11more loops all different names. Giving the "VM Program Validation Error". I renamed all 19 loops making the arrays to the same name "Arraybuilder" instead of usefull names, added the 'faulty' myblock to the program again and it works, even when adding more loops, just give them the same name if you don't need to close them with a loop end block. Hope this helps someone in the future building a big program. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.