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

OSX: sound/notificaiton dispatch suddenly crashes the application #62

Open
on3iro opened this issue Jul 17, 2023 · 0 comments
Open

OSX: sound/notificaiton dispatch suddenly crashes the application #62

on3iro opened this issue Jul 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@on3iro
Copy link
Owner

on3iro commented Jul 17, 2023

Somehow something major changed in how the app is compiled on OSX. Somehow it always crashes when the onTimerEnd() callback is called for an interval.

I already had a deeper look into this. I am not quite why it happens, but the issue seems to be caused by a weird interaction of three things:

  1. running the server as a daemon
  2. running the server code inside a tokio runtime
  3. making OS-calls (e.g. for sound playback or notification display)

None of these three things seems to cause issues on its own - they all seem to work fine, as soon as I leave one of the three out of the equation. (so no daemon -> tokio + sound works fine, no tokio -> daemon + sound works fine, no sound/notification -> no crash)

Maybe there is something inherently wrong with the way my server is structured. I will have to take a deeper look into server-side tokio code and how it handles blocking and threads.

@on3iro on3iro added the bug Something isn't working label Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant