Page 1 of 1

OpenMV IDE always crashing

Posted: Fri May 19, 2017 12:05 pm
by cgene
Hello, I don't understand why OpenMV IDE always crashes while editing a script.
I'm using Windows 10 or Windows Seven.

Re: OpenMV IDE always crashing

Posted: Sat May 20, 2017 10:01 am
by kwagyeman
Hi, this is a bug we've noticed when inputting keyword arguments.

It should have been fixed with v 1.5.1 but still survived somehow.

It will be fixed... again... With the next IDE release. Until then, I can tell you how disable keyword arguments highlighting.

Go to the IDE install dir, share/QtCreator/generic-highlighter/python.xml file.

Comment out line this line.

<DetectChar attribute="Normal Text" char="(" context="ArgumentHighlight"/>

This will disable argument highlighting which causes an infinite loop.

I fixed this script previously to stop the infinite loop from happening but something else is going on that I have to debug.

Re: OpenMV IDE always crashing

Posted: Sun May 21, 2017 4:13 pm
by cgene
Hi kwagyeman, thank you for that reply. It now perfectly works.
Best regards

Re: OpenMV IDE always crashing

Posted: Thu May 25, 2017 10:16 pm
by kwagyeman
Found the problem...

Code: Select all

<RegExpr attribute="OpenMVArguments" String="[a-zA-Z_][a-zA-Z_0-9]" context="#pop"/>
Should be:

Code: Select all

<RegExpr attribute="OpenMVArguments" String="[a-zA-Z_][a-zA-Z_0-9]*" context="#pop"/>
...

Why this fixes it is hard to explain. But, basically it boils down to the parser being okay with even length keyword string and not odd length ones. I thought I fixed the issue since the test case string was even in length.

Re: OpenMV IDE always crashing

Posted: Thu May 25, 2017 10:17 pm
by kwagyeman
I'll put some more improvements into the text highlighter while I'm at this.

Re: OpenMV IDE always crashing

Posted: Fri May 26, 2017 2:26 am
by kwagyeman
Try this new file.