Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(rqt_msg, rqt_srv, rqt_action) IndexError: list index out of range #26

Closed
130s opened this issue Jan 30, 2013 · 1 comment
Closed

(rqt_msg, rqt_srv, rqt_action) IndexError: list index out of range #26

130s opened this issue Jan 30, 2013 · 1 comment
Labels

Comments

@130s
Copy link
Member

130s commented Jan 30, 2013

Traceback (most recent call last):
  File "~/ROS/groovy_quantal/catkinws_sandb/src/rqt_common_plugins/rqt_msg/src/rqt_msg/messages_widget.py",
line 110, in _handle_mouse_press
    self._rightclick_menu(event)
  File "~/ROS/groovy_quantal/catkinws_sandb/src/rqt_common_plugins/rqt_msg/src/rqt_msg/messages_widget.py",
line 125, in _rightclick_menu
    selected_type = selected[1].data()
IndexError: list index out of range

To reproduce,

  1. On rqt_msg for example, choose actionlib/TestAction and press "+"
  2. Traverse the tree to the leaf on action_goal --> header
  3. Right click and choose either "View Text" or "View Raw".

1 & 2 could be other msg / attribute. Same thing happens on rqt_srv, rqt_action.

Sometimes at unknown timing, this stops happening. But the period until then ranges from 10 secs to a few minutes.

Machines

  • 2 Quantal 64b machines
  • 1 Precise 64b (virtual machine, no src installed)

pkg

  • debian pkg 0.2.10
  • source rqt_msg a367d16
130s added a commit that referenced this issue Jan 30, 2013
…_action although the source of the issue is the same.
130s added a commit that referenced this issue Jan 31, 2013
…dget can be used from rqt_srv and rqt_action too.
@130s
Copy link
Member Author

130s commented Jan 31, 2013

Fixed by ff0ed19

Problem was, when user right-clicks on QTreeview BEFORE her/his first left-click, selectionIndex stays 0 but the code wasn't handling that situation.

@130s 130s closed this as completed Jan 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant