-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
try to fix notifications #1969
try to fix notifications #1969
Conversation
great to push this forward and to have a fresh look at the current state. thanks a lot! i know, this is a draft, but still: for easier review, merging and more on point discussions, please do not put unrelated and many things into one pull requests. small pull requests, fixing a precisely formulated issues are easier to review are much more probable to get in soon (eg. the logging could be one pr) also, please do not shift blocks around, this also makes it very hard to find the gist of the change. this whole area is very sensible and complicated already, and one does not always is in the correct mindset, so keep it simple |
yeah would have made more sense to split the changes over multiple commits. Edit: made an issue for the logging discussion: #1973 Edit2: made two prs about reducing context dependence in the event loop: #1978, #1976 (after those are merged I can rebase this pr to make it simpler, but the biggest impact in simplification would be a pr that deals with #1973) |
4c76c58
to
5db309f
Compare
5db309f
to
a10e2a5
Compare
796da09
to
237bfed
Compare
it did not, just got it again (now event handler is false though) |
since last commit resume works reliable for me. |
e5cb84f
to
4695142
Compare
Does not crash as often anymore, but: - [ ] delay after waking up / unsuspeding, link2xt said probably because of missing cache - [ ] events are not received by the UI anymore, althrough I sucessfully restarted the handler that the events are printed to the console. - [ ] there is a performance warning because I wait in the main thread for the event thread to finish: "Thread Performance Checker: Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_BACKGROUND. Investigate ways to avoid priority inversions" add more logging and add a startio statement but this didn't fix the issue of the broken state on resume add reloadDcContext, seems like this fixed the resume issue do not close db if app is in foreground after fetch
dec5c9f
to
5d72c11
Compare
- add 'private' where possible - remove superfluous 'self' - remove trailing semicolon - embrace existing startup / shutdown logging style - log encrypted accounts on point (errors are anways logged always)
This reverts commit 30f983f.
this PR in its current form leads to issues when the app is restarted after being suspended to memory before (so if in this case, the whole app stays in memory - later in the account suspend/resume idea from before would have avoided that situation. otoh, suspend/resume would introduce another state in core, which will have issues on its own, so i tend to follow the approach starting in this PR of calling so, this PR is necessary, but not sufficient: additionally, we need to invalidate all context objects returned by |
after some chatting with core devs deep into things, this PR does basically two things:
other than i have thought initially, this PR does not change anything on todo:
|
DcCore
andDcShare
#1994Does not crash as often anymore, but:
Also See
closes #1979
closes #1830
closes #1202 (basically the same as #1979)
if crashes still continue, we should open new, on-point issues