Forum Archive

Beta - crashing bug

userista

Weird bug - the second time I run this script Pythonista freezes and hangs until it crashes. (Try to run it twice in a row.)

# coding: utf-8
import dialogs
import location
def foo():
    return 'foo'

def foot():
    return 'foot'

def food():
    return 'food'

location.start_updates()

#choose an item
func = dialogs.list_dialog(title='Choose a datasource', items=[{'title':'foo', 'func':foo},{'title':'foot', 'func':foot},{'title':'food', 'func':food}])

location.stop_updates()
omz

Thanks, I'll look into it. Definitely reproducible here.

userista

Thanks for the fix @omz :)

Just curious, where was the issue?

omz

A deadlock basically. Only happened the second time because it occurred when the table view was deleted from memory.