Open fanquake opened 1 year ago
@ddykeman1 would you be able to compile bitcoin core on your own, enabling debug during the configure stage, that would greatly help to identify exactly what is going on.
I'd also suggest sanity checking your setup:
1) Is the data directory existing and available
2) Does the crash occur if you choose a different data directory? (You can run the gui on startup with -resetguisettings
to be able to choose a new data directory within the gui itself on startup, or pass -datadir
when running the gui from the command line
@hebasto
So the GUI ran for 3 hours, then a crash occurred. And now subsequent startups for the gui result in the above crash. So to begin we'd want to look at macOS && GUI specific init code. The current crash log does provide hints with 0x7ff8205329a4 -[NSApplication _createDockMenu:] + 165
. Looking at this patch, would it be reasonable to do a check on the delegate to make sure that it's even available in the first place?
So within the constructor for MacDockIconHandler
, we could do something like this before calling the setupDockClickHandler
:
MacDockIconHandler::MacDockIconHandler() : QObject()
{
id delegate = [[NSApplication sharedApplication] delegate];
if (delegate == nil) {
// delegate not set
} else {
//delegate is set
setupDockClickHandler();
}
}
Not sure how to do that at the moment
Moved from https://github.com/bitcoin/bitcoin/issues/27681.
What version of Bitcoin Core are you using?
V22.0.0 and 24.0.1.
Operating system and version
Mac osx 12.6.5
Machine specifications
2.8 dual core i5 8 gb ram high speed internet 1tb drive