You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking on a source after source deletion, the client crashes with w sqlalchemy.orm.exc.ObjectDeletedError: Instance '<Source at 0x7f0f51ed7b10>' has been deleted, or its row is otherwise not present.
LOGLEVEL=debug ./run.sh --sdc-home ~/.securedrop_client (just in case you need to share logs later)
Login
Log out in offline mode
Stop the server and run NUM_SOURCES=10 make dev
Sign back in
Select an old source widget (you can click around as much as you like)
Expected
For the client to keep running
Actual
Crash with the following output:
Traceback (most recent call last):
File "/home/kdas/code/securedrop-client/securedrop_client/gui/widgets.py", line 705, in on_source_changed
source = self.source_list.get_current_source()
File "/home/kdas/code/securedrop-client/securedrop_client/gui/widgets.py", line 886, in get_current_source
if source_widget and source_exists(self.controller.session, source_widget.source.uuid):
File "/home/kdas/code/securedrop-client/venv/lib/python3.7/site-packages/sqlalchemy/orm/attributes.py", line 276, in __get__
return self.impl.get(instance_state(instance), dict_)
File "/home/kdas/code/securedrop-client/venv/lib/python3.7/site-packages/sqlalchemy/orm/attributes.py", line 677, in get
value = state._load_expired(state, passive)
File "/home/kdas/code/securedrop-client/venv/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 660, in _load_expired
self.manager.deferred_scalar_loader(self, toload)
File "/home/kdas/code/securedrop-client/venv/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 985, in load_scalar_attributes
raise orm_exc.ObjectDeletedError(state)
sqlalchemy.orm.exc.ObjectDeletedError: Instance '<Source at 0x7f2bd80abba8>' has been deleted, or its row is otherwise not present.
The text was updated successfully, but these errors were encountered:
Description
When clicking on a source after source deletion, the client crashes with w
sqlalchemy.orm.exc.ObjectDeletedError: Instance '<Source at 0x7f0f51ed7b10>' has been deleted, or its row is otherwise not present.
Related to #906
STR
NUM_SOURCES=10 make dev
LOGLEVEL=debug ./run.sh --sdc-home ~/.securedrop_client
(just in case you need to share logs later)NUM_SOURCES=10 make dev
Expected
For the client to keep running
Actual
Crash with the following output:
The text was updated successfully, but these errors were encountered: