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

Parent-child function causes program to crash #50

Open
MicheleCD opened this issue Sep 3, 2018 · 9 comments
Open

Parent-child function causes program to crash #50

MicheleCD opened this issue Sep 3, 2018 · 9 comments

Comments

@MicheleCD
Copy link

MicheleCD commented Sep 3, 2018

This issue was reported by Charlene at the UCL Institute of Archaeology.

"We can't seem to get the parent-child function to work on any of our datasets. When we go to select the tab it crashes immediately. Any ideas or help would be much appreciated."

Aha! Link: https://dls1.aha.io/features/D-27

@srikanthnagella
Copy link
Collaborator

Which version of SurVos are you using and which operating system?

@f-silva-archaeo
Copy link

f-silva-archaeo commented Sep 3, 2018 via email

@f-silva-archaeo
Copy link

It happens when, in the Annotations pane, we click on the box to open the panel to select the parent label from a prior level.

And here's the traceback

Traceback (most recent call last):
File "/home/fabpsilva/anaconda3/lib/python3.6/site-packages/survos/plugins/annotations.py", line 653, in on_request_parent
current_index = self.levels.keys().index(level)
AttributeError: 'odict_keys' object has no attribute 'index'
Aborted (core dumped)

@srikanthnagella
Copy link
Collaborator

Why not try 1.1.2 Let me know if that solves the issue. I have tried in Redhat and it worked fine.

@f-silva-archaeo
Copy link

We've tried it on 1.1.2 last week, when we realised there was a new version. The same problem occurs.

@srikanthnagella
Copy link
Collaborator

srikanthnagella commented Sep 11, 2018

Is there anyway you can share your survos workspace? or recreate the problem with steps?

@imaluengo
Copy link
Contributor

This would be fixed for Python 3.x by replacing:

self.levels.keys().index(level)

With

list(self.levels.keys()).index(level)

In line 653.

Apologies I couldnt reply earlier.

@srikanthnagella
Copy link
Collaborator

Fixed this in the latest release.

@f-silva-archaeo
Copy link

I just tried it on 1.1.3 and the problem is still there. The traceback is also the same.

I can't send you any of the workspaces as they are several gigabytes in size.

The steps are simple: once segmentation is done for a single level (Level 0) with two labels. We then create a second level of two labels both of which are to be children of one of the labels in Level 0. When we click on the button that opens the dialog to select the parent label SuRVoS crashes to the terminal with the traceback reported above.

We are indeed using anaconda with python 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants