OpenMV IDE always crashing

General discussion about topics related to OpenMV.
cgene
Posts: 2
Joined: Fri May 19, 2017 11:56 am

OpenMV IDE always crashing

Postby cgene » Fri May 19, 2017 12:05 pm

Hello, I don't understand why OpenMV IDE always crashes while editing a script.
I'm using Windows 10 or Windows Seven.
User avatar
kwagyeman
Posts: 1078
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV IDE always crashing

Postby kwagyeman » Sat May 20, 2017 10:01 am

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.
Nyamekye,
cgene
Posts: 2
Joined: Fri May 19, 2017 11:56 am

Re: OpenMV IDE always crashing

Postby cgene » Sun May 21, 2017 4:13 pm

Hi kwagyeman, thank you for that reply. It now perfectly works.
Best regards
User avatar
kwagyeman
Posts: 1078
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV IDE always crashing

Postby kwagyeman » Thu May 25, 2017 10:16 pm

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.
Nyamekye,
User avatar
kwagyeman
Posts: 1078
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV IDE always crashing

Postby kwagyeman » Thu May 25, 2017 10:17 pm

I'll put some more improvements into the text highlighter while I'm at this.
Nyamekye,
User avatar
kwagyeman
Posts: 1078
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV IDE always crashing

Postby kwagyeman » Fri May 26, 2017 2:26 am

Try this new file.
Attachments
python.xml
(30.14 KiB) Downloaded 19 times
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest