[GRASS-dev] [GRASS GIS] #2889: wxGUI: paste into modeller "Add GRASS coomand" dialog hangs it

#2889: wxGUI: paste into modeller "Add GRASS coomand" dialog hangs it
----------------------+-------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: svn-trunk
Keywords: modeller | CPU: Unspecified
Platform: Linux |
----------------------+-------------------------
Seems that wxGUI graphical modeller does not like pasting any values into
"Add GRASS command" dialog.

Steps to reproduce:
* open Graphical Modeller
* click on "Add command (GRASS module) to model"
* paste into "Command" following example text: r.mapcalc
expression='map=1'
* observe how python process is consuming 100% and wants moar! (use kill
to get rid of it)

Actual pasted text does not matter - any string will do.

GRASS GIS 7.1.svn (r67710M)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2889&gt;
GRASS GIS <https://grass.osgeo.org>

#2889: wxGUI: paste into modeller "Add GRASS coomand" dialog hangs it
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeller
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by hellik):

Replying to [ticket:2889 marisn]:
> Seems that wxGUI graphical modeller does not like pasting any values
into "Add GRASS command" dialog.
>
> Steps to reproduce:
> * open Graphical Modeller
> * click on "Add command (GRASS module) to model"
> * paste into "Command" following example text: r.mapcalc
expression='map=1'
> * observe how python process is consuming 100% and wants moar! (use kill
to get rid of it)
>
> Actual pasted text does not matter - any string will do.
>
> GRASS GIS 7.1.svn (r67710M)

tested with

{{{
GRASS version: 7.1.svn
GRASS SVN revision: 67699
Build date: 2016-01-29
Build platform: x86_64-w64-mingw32
GDAL: 1.11.3
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
}}}

not confirmed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2889#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2889: wxGUI: paste into modeller "Add GRASS coomand" dialog hangs it
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeller
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by marisn):

Then it could be related to wxpython 3.
I can paste into "label", "comments" but on "command" pane I even can not
do a right click - menu does not appear and I get instant runaway process.
{{{
GRASS version: 7.1.svn
GRASS SVN revision: 67711M
Build date: 2016-01-02
Build platform: x86_64-pc-linux-gnu
GDAL: 2.0.1
PROJ.4: 4.8.0
GEOS: 3.5.0
SQLite: 3.10.0
Python: 2.7.11
wxPython: 3.0.2.0
Platform: Linux-4.4.0-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9500_@_2
.53GHz-with-gentoo-2.2
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2889#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2889: wxGUI: paste into modeller "Add GRASS coomand" dialog hangs it
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.4
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeller
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by martinl):

* milestone: 7.1.0 => 7.0.4

Comment:

I can confirm this issue, it's mystery. The dialog is using same class as
Layer Manager's Command Console (`GPromptSTC`). Also valid for relbr70.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2889#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>