Jump to content

Recommended Posts

Posted (edited)

Hey,

While adding some more code to my program I ran into this problem.

50128587598_7c8ecc77f0_c.jpg

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 by Mr Jos
Posted (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 by Mr Jos
Posted

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.

 

 

 

Posted

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.

Posted (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 by Mr Jos
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...