virtualcell / vcell

Virtual Cell Framework
http://vcell.org/
Other
66 stars 20 forks source link

Opening VCell brings prompt to save previously exported sim results. #304

Open ACowan0105 opened 1 year ago

ACowan0105 commented 1 year ago

Problem with alpha, not sure about release.

Occurs when simulation results exported in previous VCell session. Exports were saved, VCell closed. When open VCell again, prompt to save the exported sim results appears.

ACowan0105 commented 1 year ago

This issue did not occur for a while, but now when I downloaded the latest alpha (Build 109) it happened again. I had been actively exporting spatial sims as nrrd files, and when the new build was opened, I had to hit "cancel" at least 20 times because VCell kept prompting to save previously exported files.

jcschaff commented 1 year ago

The server stores in memory a queue of all events, each with a timestamp and an intended user.

The client (the user interface) asks the server for all events later than a specified timestamp - and after the client receives the events, it updates its local last-event-timestamp (in memory). The server does not remove these events to accommodate multiple clients.

When the vcell client first starts, it has to initialize the last-event-timestamp to something (e.g. current time minus an offset). So either there is a mismatch of timestamps between client and server, or the clients timestamp is inappropriately initialized.