Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
App is not responding most of the time, mouse is spinning. It is totally unusable. And also there is no stable active peers - there is almost no progress for 2 weeks.
Seems that “connecting to peers” and the beginning of “synchronizing with network” operation block UI thread.
If start loading from the beginning, progress is going but also pretty slow, and slows down with time.
Expected behaviour
- App never freezes UI and is always responsive.
- There are active working peers without the need of manually adding them.
Steps to reproduce
Run the app while having 80.78% progress, on HDD.
Relevant log output
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v26.0.0
Operating system and version
MacOS 13.6 (22G120)
Machine specifications
Macbook Air M1 16Gb External HDD 2Tb
Advice for developers
Never block threads in the app’s code, it is an antipattern, especially the main thread when doing IO operations. It shows a very low level of competence.
- Use non-blocking synchronization when needed - like serial queues, instead of mutexes. Check Grand Central Dispatch (GCD) lib (not sure if it can be used in C++, or what is its analog).
- Use non-blocking apis for IO operations.