[GRASS-dev] [GRASS GIS] #3402: g.gui.gmodeler: trying to add command pushes CPU to 100% and provokes freeze
GRASS GIS
trac at osgeo.org
Fri Aug 25 09:22:41 PDT 2017
#3402: g.gui.gmodeler: trying to add command pushes CPU to 100% and provokes
freeze
--------------------------+-----------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.2.2
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: gmodeler freeze
CPU: Unspecified | Platform: Unspecified
--------------------------+-----------------------------
Comment (by mlennert):
Replying to [comment:12 annakrat]:
> Try this if it helps:
>
> {{{
>
> Index: gui_core/widgets.py
> ===================================================================
> --- gui_core/widgets.py (revision 71422)
> +++ gui_core/widgets.py (working copy)
> @@ -1087,7 +1087,7 @@
> self._search.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
>
> if self._showTip:
> - self._searchTip = StaticWrapText(parent=self, id=wx.ID_ANY,
> + self._searchTip = wx.StaticText(parent=self, id=wx.ID_ANY,
> size=(-1, 35))
>
> if self._showChoice:
> @@ -1160,6 +1160,7 @@
> label = _("%d modules match") % len(commands)
> if self._showTip:
> self._searchTip.SetLabel(label)
> + self._searchTip.Wrap(self.GetSize()[0])
>
> self.showNotification.emit(message=label)
>
> @@ -1193,6 +1194,7 @@
> for module in self._results:
> if cmd == module.data['command']:
>
self._searchTip.SetLabel(module.data['description'])
> + self._searchTip.Wrap(self.GetSize()[0])
> break
> }}}
It does ! Everything seems to work fine with this patch applied.
Thanks, once again, Anna !
How much risk we break something in applying this, including to release72
?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3402#comment:13>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list