Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze upon wake from suspend #186

Open
plum opened this issue Feb 12, 2022 · 4 comments
Open

Freeze upon wake from suspend #186

plum opened this issue Feb 12, 2022 · 4 comments

Comments

@plum
Copy link

plum commented Feb 12, 2022

Castero freezes when I wake from suspend.

I do at times fall asleep in evenings when listening. So suspend is important to keep active.

When I resume the computer, Castro window is unresponsive, and I have to quit the window to relaunch Castero.
Upon relaunching, no changes to the queue (episodes added or played) are kept, nor are new feeds which are added before suspend kicks in, saved.


Running arch on linux-lts 5.15.19-1, operating wayland with Sway.

This is my swayidle config:

timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'  
timeout 1800 'systemctl suspend'

Thanks for reading this issue, and your kind consideration.
John

@xgi
Copy link
Owner

xgi commented Feb 12, 2022

I can try and take a look at the cause, but something you can do to avoid queue & feed changes not being saved after this happens is to enable restrict_memory_usage in the config. That will cause changes to be written to disk immediately.

@plum
Copy link
Author

plum commented Feb 13, 2022

Thanks.
I have now changed the restrict_memory_usage to True, as advised.

@plum plum changed the title Freeze upon wake form suspend Freeze upon wake from suspend Feb 14, 2022
@plum
Copy link
Author

plum commented Feb 14, 2022

I have additional information on the issue:
When Castero freezes upon wake form suspend, and I relaunch Castero, the queue is cleared, and all queued items vanish.
This is true, after since changing restrict_memory_ usage to TRUE.

On the other hand, if I simply press 'q' to quite without a freeze, and relaunch Castero, the queue items are preserved.

Regards,
John

@xgi
Copy link
Owner

xgi commented Feb 14, 2022

Ah, I reviewed the code and found that option doesn't apply to the queue, which is always only saved in memory until normal termination. Sorry for the incorrect guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants