Macbook crashes while sleeping

Are there any known issues where a MacBook crashes while sleeping? I'm using AlDente a battery manager (also part of Setapp) and I thought that caused some issues (and it maybe still does, interacting with BTT), but the developer isn't aware of anything MacBook can't sleep anymore · Issue #701 · davidwernhart/AlDente-Charge-Limiter · GitHub

Now I had it happend a few times that my MacBook didn't crash while sleeping, but somehow BTT was off. That made me think and I've now disabled BTT manually and my laptop sleept fine again (it deserved a good night sleep :sleeping:), I've only had a sample size of one night, but I'll be testing it again today.

Device information:
macOS Monterey
Version 12.6
MacBook Pro (15-inch, 2017)
Processor 3,1 GHz Quad-Core Intel Core i7
Memory 16 GB 2133 MHz LPDDR3
Graphics Radeon Pro 560 4 GB
Intel HD Graphics 630 1536 MB

BetterTouchTool Version: 3.962

What exactly do you mean by crashes? Does it restart?

Often such issues are caused by connected hardware (or worst case faulty internal hardware)

The message I get. "You shut down your computer because of a problem. Do you want to reopen all the programs." My laptop will be charged to what ever amount and at most 5% is lost in that time, but it did how ever restart.

It's an old MacBook, but I had my whole bottom part replaced due to a bad keyboard (that plagues this model), that included a whole new battery, so to my knowledge that isn't it.

Again I will be testing it some more, but at the moment I'm suspecting something in BTT. I've disabled the all the Touch Bar logic I had to see if that does something.

That message is pretty much always caused by some hardware issue, or alternatively some driver issue. It can not be caused by BTT as BTT works on a much higher level. (Possibly BTT could use some function that triggers a faulty hardware or driver though)

Ok. I've disabled BTT now for 4 days and no more crashes. I had it enabled for one day with the Touch Bar disabled and it crashed still (I thought maybe a widget in the Touch Bar caused it)

I've created an export of my BTT settings but I can't see what would cause an issue.

the settings won’t show anything because this can not be (directly) caused by BTT. These things are very hard to debug but pretty much always a bigger driver or hardware issue ;-(

You would need to check the logs macOS creates when it crashes like this, they might show some more info about the responsible subcomponents

I have no idea how to check the log while my laptop is sleeping or to check when it had crashed.

I think it’s somewhere in the macos console app, maybe check what reports match the time

I have this rapport that I can't make head or tails from rapport · GitHub

It's fine you say it can't be BTT, but I had it off for the past few days without any issue, turned it on now to get this rapport and again it crashes. So all I can see is that BTT is the culprit. I've removed most of my customizations from BTT and that didn't make a difference.

I have completely deleted BTT and did a fresh install. Still causes the same issue, so all I can see is that BTT results in my laptop restarting in my setup. Maybe it is an interaction with an other app, but I can't think of any.

most likely interaction with defect hardware or driver ;-( Apps in general can’t cause this. Most likely there is not much you can do about it.

(macOS reinstall might help, but if it’s hardest even that won’t solve the issue ;-()