<p>It looks like <code>BallotListService</code> passes in an unsafe object to the storage code:</p>
<p><code>BallotList</code> contains <code>List<T></code></p>
<p>The <code>onChanged()</code> handler persists to a file after every new object which on a fresh install means a lot of changes quickly in sequence. If the <code>List</code> changes out from underneath the <code>FileManager</code> I believe this error will occur.</p>
<p>Here is the offending code that updates while iterating:</p>
<pre><code>    public protobuf.BallotList.Builder getBuilder() {
        return protobuf.BallotList.newBuilder()
                .addAllBallot(getList().stream()
                        .map(Ballot::toProtoMessage)
                        .collect(Collectors.toList()));
    }
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/3752?email_source=notifications&email_token=AJFFTNWNU65AJDE3MWJHKKLQXF6JJA5CNFSM4JWCNEH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCL6UI#issuecomment-562347857">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNSAVTANUIRZMSPIXZ3QXF6JJANCNFSM4JWCNEHQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNS6YHUCN6HO6CKFTKTQXF6JJA5CNFSM4JWCNEH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCL6UI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/3752?email_source=notifications\u0026email_token=AJFFTNWNU65AJDE3MWJHKKLQXF6JJA5CNFSM4JWCNEH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCL6UI#issuecomment-562347857",
"url": "https://github.com/bisq-network/bisq/issues/3752?email_source=notifications\u0026email_token=AJFFTNWNU65AJDE3MWJHKKLQXF6JJA5CNFSM4JWCNEH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCL6UI#issuecomment-562347857",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>