Skip to content

Ride crash when suggestion popup is shown #1967

Closed

Description

@2Eagle2

On my linux machine:
in grid editor click on empty cell (only select without activate editing)
hit ctrl + space (or ctrl + shift + space) to invoke keyword suggests
without start typing enything click on another cell (other that the one you have selected)
An recursive function call occure leading Ride to crash (stack overflow).

File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 238 in _execute
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 428 in cell_value_edited
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 993 in ApplyEdit
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 379 in _write_steps
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 372 in _data_changed
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 103 in call
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 56 in _sendMessage
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 34 in publish
File "/home/marian/Projects/RIDE/src/robotide/publish/messages3.py", line 77 in _publish
File "/home/marian/Projects/RIDE/src/robotide/publish/messages3.py", line 69 in publish
File "/home/marian/Projects/RIDE/src/robotide/controller/macrocontrollers.py", line 309 in _notify
File "/home/marian/Projects/RIDE/src/robotide/controller/macrocontrollers.py", line 305 in notify_steps_changed
File "/home/marian/Projects/RIDE/src/robotide/controller/ctrlcommands.py", line 260 in _execute
File "/home/marian/Projects/RIDE/src/robotide/controller/ctrlcommands.py", line 195 in _execute_without_redo_clear
File "/home/marian/Projects/RIDE/src/robotide/controller/ctrlcommands.py", line 190 in execute
File "/home/marian/Projects/RIDE/src/robotide/controller/basecontroller.py", line 27 in execute
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 238 in _execute
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 428 in cell_value_edited
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 993 in ApplyEdit
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 379 in _write_steps
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 372 in _data_changed
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 103 in call
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 56 in _sendMessage
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 34 in publish
File "/home/marian/Projects/RIDE/src/robotide/publish/messages3.py", line 77 in _publish
File "/home/marian/Projects/RIDE/src/robotide/publish/messages3.py", line 69 in publish
File "/home/marian/Projects/RIDE/src/robotide/controller/macrocontrollers.py", line 309 in _notify
File "/home/marian/Projects/RIDE/src/robotide/controller/macrocontrollers.py", line 305 in notify_steps_changed
File "/home/marian/Projects/RIDE/src/robotide/controller/ctrlcommands.py", line 260 in _execute
File "/home/marian/Projects/RIDE/src/robotide/controller/ctrlcommands.py", line 195 in _execute_without_redo_clear
File "/home/marian/Projects/RIDE/src/robotide/controller/ctrlcommands.py", line 190 in execute
File "/home/marian/Projects/RIDE/src/robotide/controller/basecontroller.py", line 27 in execute
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 238 in _execute
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 428 in cell_value_edited
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 993 in ApplyEdit
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 379 in _write_steps
File "/home/marian/Projects/RIDE/src/robotide/editor/kweditor.py", line 372 in _data_changed
File "/home/marian/Projects/RIDE/src/robotide/publish/publisher.py", line 103 in call
...

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Activity

  1. added
    bug
    os: linux
    prio-high
    on Jul 8, 2019
  2. 2Eagle2 commented on Jul 9, 2019

    @2Eagle2
    ContributorAuthor

    confirm that it affect windows version too, but not always lead to Ride crash (but stack overflow occur always)

  3. added this to the v1.7.4 milestone on Jul 10, 2019
  4. HelioGuilherme66 commented on Jul 20, 2019

    @HelioGuilherme66
    Member

    I reproduced on Windows 7, crash with python 3.7.1 but not with python 2.7.13 (there is some flickering on the cell). We can see in RIDE log:

    20190720 00:56:33.448 [INFO]: Started RIDE 1.7.4b1dev1 using python version 2.7.13 with wx version 4.0.4 in win32.
    
    20190720 00:57:03.195 [ERROR]: Error in listener: maximum recursion depth exceeded
    While handling <robotide.publish.messages2.RideItemStepsChanged object at 0x04BCC390>
    
    Traceback (most recent call last):
    maximum recursion depth exceeded
      File "C:\Python27\lib\site-packages\robotide\publish\publisher.py", line 103, in __call__
        self.listener(data)
      File "C:\Python27\lib\site-packages\robotide\ui\tree.py", line 889, in _item_changed
        self._test_selection_controller.send_selection_changed_message()
      File "C:\Python27\lib\site-packages\robotide\controller\ui\treecontroller.py", line 201, in send_selection_changed_message
        for t in self._tests.values()])).publish()
      File "C:\Python27\lib\site-packages\robotide\controller\filecontrollers.py", line 654, in longname
        return self.parent.longname + '.' + self.name
      File "C:\Python27\lib\site-packages\robotide\controller\filecontrollers.py", line 393, in longname
        return self.display_name
      File "C:\Python27\lib\site-packages\robotide\controller\filecontrollers.py", line 387, in display_name
        return self.data.name
      File "C:\Python27\lib\site-packages\robotide\lib\robot\parsing\model.py", line 123, in name
        return self._format_name(self._get_basename()) if self.source else None
      File "C:\Python27\lib\site-packages\robotide\lib\robot\parsing\model.py", line 260, in _get_basename
        return os.path.basename(self.source)
    
  5. Nyral commented on Jul 28, 2019

    @Nyral
    Contributor

    This crash has been introduced by this PR: https://github.com/robotframework/RIDE/pull/1901/files (to fix a windows 10 issue).

    If self._tc.SetFocus() is not called, then crash occurs. I suggest rolling back the changes for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugos: linuxprio-high

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions