tari-project / universe

Other
7 stars 21 forks source link

[0.3.3 MacBook Air M1 2020] CPU/GPU/tXTM calculations fail to restart following boot up from sleep mode on laptop #525

Open SolfataraEmit opened 1 week ago

SolfataraEmit commented 1 week ago

Description After the laptop has gone into sleep mode and a user resumes, if Tari Universe was running, it demonstrates the following behaviours on the interface:

This appears to be a result of xmrig terminating once the machine enters its sleep mode, given the xmrig logs terminating in the evening and resumption of the device was in the morning. Attached log, please let me know if you would require any other logs.

To Reproduce Steps to reproduce the behavior:

  1. Run Tari Universe and confirm calculations are being presented on interface and blocks are being worked on.
  2. Lock your laptop and leave it overnight (or a reasonable period of inactivity to have the machine enter its sleep mode)
  3. Log back in and note the described behaviours

Expected behavior Unsure. My assumption would be that it should either continue to work or, if the sleep mode does halt running services, that Universe would check for these and resume/restart them gracefully.

Desktop (please complete the following information):

xmrig.log

stringhandler commented 6 days ago

@SolfataraEmit can we retest this in 0.4.3 please?

SolfataraEmit commented 4 days ago

A cursory test of putting the machine to sleep and then restarting does not result in the original bug, but I would like to test this by running it overnight. Currently checked with 0.4.5.