Skip to content

Potential crashes between source deletion and accessing source in the gui #906

@sssoleileraaa

Description

@sssoleileraaa

Description

If a sync comes back with deleted sources from the server we delete them locally and then call update_sources which will first remove all the source widgets then remove all the conversation widgets for those sources. If a message, reply, or file download job finishes before the source widget is destroyed then it will try to access source.uuid or source.collection in several places in the code and crash the app. I think there is also an issue with a user trying to open a file for the source at this time.

To prevent this type of crash we should only access the source db object when absolutely necessary. For instance, it's not necessary to store source on an object when we only need the uuid so we can find a source widget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsyncsync issues for future epic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions