[GH-ISSUE #1648] App may crash on wake from sleep or display connect/disconnect #915

Open
opened 2026-05-05 06:52:12 -06:00 by gitea-mirror · 41 comments
Owner

Originally created by @Anywhere-Music-Player on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/1648

Originally assigned to: @waydabber on GitHub.

Before opening the issue, have you...?

  • Searched for existing issues
  • Looked through the wiki
  • Updated MonitorControl to the latest version (if applicable)

Describe the bug

After sleep, then wake up when I press F1/F2 brightness just drops to like 0% and stopped to respond, no changes at all.
Have to restart app to make it work. Well, I mean any way of changing brightness is not working, with sliders for example.

Screenshot 2

Steps to reproduce

  1. Sleep
  2. Wake up
  3. F1/F2

Expected behavior

Brightness should always work.

Anything else?

No response

Environment Information (please complete the following information)

- macOS version: 15.0.1 (24A348)
- Mac model: MacBook Pro M1 14"
- MonitorControl version: 4.3.3
- Monitor(s): M28U
- Apple Silicon/M1 (yes or no): Yes
Originally created by @Anywhere-Music-Player on GitHub (Oct 7, 2024). Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/1648 Originally assigned to: @waydabber on GitHub. ### Before opening the issue, have you...? - [X] Searched for existing issues - [X] Looked through [the wiki](https://github.com/MonitorControl/MonitorControl/wiki) - [X] Updated MonitorControl to the latest version (if applicable) ### Describe the bug After sleep, then wake up when I press F1/F2 brightness just drops to like 0% and stopped to respond, no changes at all. Have to restart app to make it work. Well, I mean any way of changing brightness is not working, with sliders for example. ![Screenshot 2](https://github.com/user-attachments/assets/7e6187df-c930-4658-a0f7-fad9d05f6a19) ### Steps to reproduce 1. Sleep 2. Wake up 3. F1/F2 ### Expected behavior Brightness should always work. ### Anything else? _No response_ ### Environment Information (please complete the following information) ```markdown - macOS version: 15.0.1 (24A348) - Mac model: MacBook Pro M1 14" - MonitorControl version: 4.3.3 - Monitor(s): M28U - Apple Silicon/M1 (yes or no): Yes ```
gitea-mirror added the
bug
done
unreleased
labels 2026-05-05 06:52:12 -06:00
Author
Owner

@waydabber commented on GitHub (Oct 7, 2024):

Can't seem to reproduce this. Let's see if there are at least some other users reporting this issue, otherwise it might be a configuration specific problem or interference with some other app possibly difficult to track down.

<!-- gh-comment-id:2396803726 --> @waydabber commented on GitHub (Oct 7, 2024): Can't seem to reproduce this. Let's see if there are at least some other users reporting this issue, otherwise it might be a configuration specific problem or interference with some other app possibly difficult to track down.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 7, 2024):

Can't seem to reproduce this. Let's see if there are at least some other users reporting this issue, otherwise it might be a configuration specific problem or interference with some other app possibly difficult to track down.

Oh, sorry, forgot to mention, chance of this like happens only ~once per last 3 days so far.

This bug was also with previous version, but less often I'd say.. so I don't think it just something new.
Will update if this happens again, but I'm 100% sure that this is some bug. At the same time I've running my old app https://github.com/Volodymyr-13/NativeDisplayBrightness and when Monitor Control doesn't work, NativeDisplayBrightness works.

<!-- gh-comment-id:2396819677 --> @Anywhere-Music-Player commented on GitHub (Oct 7, 2024): > Can't seem to reproduce this. Let's see if there are at least some other users reporting this issue, otherwise it might be a configuration specific problem or interference with some other app possibly difficult to track down. Oh, sorry, forgot to mention, chance of this like happens only ~once per last 3 days so far. This bug was also with previous version, but less often I'd say.. so I don't think it just something new. Will update if this happens again, but I'm 100% sure that this is some bug. At the same time I've running my old app https://github.com/Volodymyr-13/NativeDisplayBrightness and when Monitor Control doesn't work, NativeDisplayBrightness works.
Author
Owner

@waydabber commented on GitHub (Oct 7, 2024):

No problem, thanks for the info. I did not make any changes in the app logic at all, just focused on compatibility updates. So it makes sense if this happened with previous versions as well.

<!-- gh-comment-id:2396888225 --> @waydabber commented on GitHub (Oct 7, 2024): No problem, thanks for the info. I did not make any changes in the app logic at all, just focused on compatibility updates. So it makes sense if this happened with previous versions as well.
Author
Owner

@lerschiboi commented on GitHub (Oct 9, 2024):

Not sure if it's the same problem, but since Sequoia, Monitor Control is always closed when I wake my computer from sleep. I have to start it again and then everything works fine again. 🤷

<!-- gh-comment-id:2401801356 --> @lerschiboi commented on GitHub (Oct 9, 2024): Not sure if it's the same problem, but since Sequoia, Monitor Control is always closed when I wake my computer from sleep. I have to start it again and then everything works fine again. 🤷
Author
Owner

@waydabber commented on GitHub (Oct 9, 2024):

Are you using the latest version @lerschiboi?

<!-- gh-comment-id:2401824092 --> @waydabber commented on GitHub (Oct 9, 2024): Are you using the latest version @lerschiboi?
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 9, 2024):

Not sure if it's the same problem, but since Sequoia, Monitor Control is always closed when I wake my computer from sleep. I have to start it again and then everything works fine again. 🤷

@waydabber Oh yeah, me too, it's not 100% chance, but I'd say it's like 30% of chance at least.
After wake - app crashed. Had to open it, yea.

<!-- gh-comment-id:2401906071 --> @Anywhere-Music-Player commented on GitHub (Oct 9, 2024): > Not sure if it's the same problem, but since Sequoia, Monitor Control is always closed when I wake my computer from sleep. I have to start it again and then everything works fine again. 🤷 @waydabber Oh yeah, me too, it's not 100% chance, but I'd say it's like 30% of chance at least. After wake - app crashed. Had to open it, yea.
Author
Owner

@lerschiboi commented on GitHub (Oct 9, 2024):

Version 4.2.0 7048

True, just noticed that it's not after every wake, but happens quite a lot

<!-- gh-comment-id:2401968686 --> @lerschiboi commented on GitHub (Oct 9, 2024): Version 4.2.0 7048 True, just noticed that it's not after every wake, but happens quite a lot
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 9, 2024):

Version 4.2.0 7048

True, just noticed that it's not after every wake, but happens quite a lot

And actually this happens to me for like at least 6+ months so this is an old bug.

<!-- gh-comment-id:2401971783 --> @Anywhere-Music-Player commented on GitHub (Oct 9, 2024): > Version 4.2.0 7048 > > True, just noticed that it's not after every wake, but happens quite a lot And actually this happens to me for like at least 6+ months so this is an old bug.
Author
Owner

@lerschiboi commented on GitHub (Oct 9, 2024):

Version 4.2.0 7048
True, just noticed that it's not after every wake, but happens quite a lot

And actually this happens to me for like at least 6+ months so this is an old bug.

Well, I was rocking MacOS 14.4 for quite a long time before updating to 15.0, and it was only then that I started noticing the crashes. But maybe they were introduced with an earlier MacOS version that I didn't update to

<!-- gh-comment-id:2401985621 --> @lerschiboi commented on GitHub (Oct 9, 2024): > > Version 4.2.0 7048 > > True, just noticed that it's not after every wake, but happens quite a lot > > And actually this happens to me for like at least 6+ months so this is an old bug. Well, I was rocking MacOS 14.4 for quite a long time before updating to 15.0, and it was only then that I started noticing the crashes. But maybe they were introduced with an earlier MacOS version that I didn't update to
Author
Owner

@waydabber commented on GitHub (Oct 9, 2024):

(note: 4.2.0 is not the latest version)

<!-- gh-comment-id:2402046903 --> @waydabber commented on GitHub (Oct 9, 2024): (note: 4.2.0 is not the latest version)
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 9, 2024):

(note: 4.2.0 is not the latest version)

And this and bug I reported is like the same, after wake was on any of those versions and I’m always updating to the very latest. So old version or new, situation remains the same…

<!-- gh-comment-id:2402051369 --> @Anywhere-Music-Player commented on GitHub (Oct 9, 2024): > (note: 4.2.0 is not the latest version) And this and bug I reported is like the same, after wake was on any of those versions and I’m always updating to the very latest. So old version or new, situation remains the same…
Author
Owner

@onekiloparsec commented on GitHub (Oct 12, 2024):

I confirm I have the same behavior. Back from sleep, the app is not running anymore, as far as I can tell, every time (or close). I'am running macOS Sequioa 15.0.1 and MonitorControl 4.2.0 Build 7048. With Spotlight, it's quite easy to relaunch, but it would be nice to not have to. :-)

<!-- gh-comment-id:2408428554 --> @onekiloparsec commented on GitHub (Oct 12, 2024): I confirm I have the same behavior. Back from sleep, the app is not running anymore, as far as I can tell, every time (or close). I'am running macOS Sequioa `15.0.1` and MonitorControl `4.2.0 Build 7048`. With Spotlight, it's quite easy to relaunch, but it would be nice to not have to. :-)
Author
Owner

@waydabber commented on GitHub (Oct 12, 2024):

Note: 4.2.0 is not properly compatible with Sequoia, make sure you use the latest version. But other than that the issue might be valid on some configs as others pointed out. If I can get an ips crash log (of 4.3.3), I can check where the app crashed and probably fix it.

<!-- gh-comment-id:2408437499 --> @waydabber commented on GitHub (Oct 12, 2024): Note: 4.2.0 is not properly compatible with Sequoia, make sure you use the latest version. But other than that the issue might be valid on some configs as others pointed out. If I can get an ips crash log (of 4.3.3), I can check where the app crashed and probably fix it.
Author
Owner

@onekiloparsec commented on GitHub (Oct 12, 2024):

Oh thanks, I will update. Note that I didn't know 4.3.3 was available, because it didn't appear when checking for updates...
Screenshot 2024-10-12 at 09 37 04

<!-- gh-comment-id:2408442120 --> @onekiloparsec commented on GitHub (Oct 12, 2024): Oh thanks, I will update. Note that I didn't know 4.3.3 was available, because it didn't appear when checking for updates... ![Screenshot 2024-10-12 at 09 37 04](https://github.com/user-attachments/assets/55732952-d751-4005-acd7-7e16665db921)
Author
Owner

@DarNattpi commented on GitHub (Oct 21, 2024):

I faced same issue, I use MC 4.3.3 and my macos is 15.0.1

<!-- gh-comment-id:2427149694 --> @DarNattpi commented on GitHub (Oct 21, 2024): I faced same issue, I use MC 4.3.3 and my macos is 15.0.1
Author
Owner

@waydabber commented on GitHub (Oct 22, 2024):

Again: if I can get an ips crash log (of 4.3.3), I can check where the app crashed and probably fix it. :)

<!-- gh-comment-id:2428481397 --> @waydabber commented on GitHub (Oct 22, 2024): Again: if I can get an ips crash log (of 4.3.3), I can check where the app crashed and probably fix it. :)
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 22, 2024):

Again: if I can get an ips crash log (of 4.3.3), I can check where the app crashed and probably fix it. :)

For me it’s not crashing in all last cases.. but just stopping to work.. so maybe need some debug log or so?

<!-- gh-comment-id:2428757222 --> @Anywhere-Music-Player commented on GitHub (Oct 22, 2024): > Again: if I can get an ips crash log (of 4.3.3), I can check where the app crashed and probably fix it. :) For me it’s not crashing in all last cases.. but just stopping to work.. so maybe need some debug log or so?
Author
Owner

@waydabber commented on GitHub (Oct 22, 2024):

Oh, I see. Two issues seem to be conflated here.

<!-- gh-comment-id:2428807160 --> @waydabber commented on GitHub (Oct 22, 2024): Oh, I see. Two issues seem to be conflated here.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 22, 2024):

Oh, I see. Two issues seem to be conflated here.

Oh sorry, I found it finally! it crashes for me too:
MonitorControl-2024-10-21-004416.ips.zip

<!-- gh-comment-id:2428816430 --> @Anywhere-Music-Player commented on GitHub (Oct 22, 2024): > Oh, I see. Two issues seem to be conflated here. Oh sorry, I found it finally! it crashes for me too: [MonitorControl-2024-10-21-004416.ips.zip](https://github.com/user-attachments/files/17474085/MonitorControl-2024-10-21-004416.ips.zip)
Author
Owner

@waydabber commented on GitHub (Oct 24, 2024):

Thanks @Volodymyr-13!

<!-- gh-comment-id:2435333644 --> @waydabber commented on GitHub (Oct 24, 2024): Thanks @Volodymyr-13!
Author
Owner

@waydabber commented on GitHub (Oct 24, 2024):

I analyzed the crash log, the crash occurs because of a rather unprofessional way of handling the contents of the percentage output when it is shown. The issue will probably go away showing percentages is turned off (unless there is an other crash hidden by this one). I fixed the issue so this should work better in the next release.

<!-- gh-comment-id:2435360822 --> @waydabber commented on GitHub (Oct 24, 2024): I analyzed the crash log, the crash occurs because of a rather unprofessional way of handling the contents of the percentage output when it is shown. The issue will probably go away showing percentages is turned off (unless there is an other crash hidden by this one). I fixed the issue so this should work better in the next release.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Oct 26, 2024):

@waydabber thanks, for now I'll try to disable % and test this until release.

<!-- gh-comment-id:2439607530 --> @Anywhere-Music-Player commented on GitHub (Oct 26, 2024): @waydabber thanks, for now I'll try to disable % and test this until release.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 13, 2024):

@waydabber @waydabber Hi, so all this time after I disabled % in the menu - the app worked well after sleep.
But today this happened again:

  • after waking from sleep
  • I tried to change brightness and it immediately went to 0%
  • after that I no longer can change brightness for my external monitor, it always stays 0%, sliders/hotkeys don't work for the external monitor
  • when I open app settings - it's like it opens and then disappears/goes out of focus, first I thought it's crashed but it's not
  • relaunch the app as usual - not fixed the problem, brightness stays 0% all the time
  • relaunch the app a second time, try opening settings - same problem like it opens/hides/out of focus in the background window under other Mac windows..
  • changed the brightness of the monitor manually and after that the app started to work
  • no crashes found in the Console afterwards

Screenshot 2 Medium
Screenshot 1 Medium
Screenshot Medium

<!-- gh-comment-id:2473489513 --> @Anywhere-Music-Player commented on GitHub (Nov 13, 2024): @waydabber @waydabber Hi, so all this time after I disabled % in the menu - the app worked well after sleep. But today this happened again: - after waking from sleep - I tried to change brightness and it immediately went to 0% - after that I no longer can change brightness for my external monitor, it always stays 0%, sliders/hotkeys don't work for the external monitor - when I open app settings - it's like it opens and then disappears/goes out of focus, first I thought it's crashed but it's not - relaunch the app as usual - not fixed the problem, brightness stays 0% all the time - relaunch the app a second time, try opening settings - same problem like it opens/hides/out of focus in the background window under other Mac windows.. - changed the brightness of the monitor manually and after that the app started to work - no crashes found in the Console afterwards ![Screenshot 2 Medium](https://github.com/user-attachments/assets/9a1c221b-0d73-40c1-b110-58936c9533ef) ![Screenshot 1 Medium](https://github.com/user-attachments/assets/c7d9e7b1-e9b2-4ed2-b914-dca122f82db9) ![Screenshot Medium](https://github.com/user-attachments/assets/75df0c68-42f8-4694-92e4-2c9b243047a0)
Author
Owner

@waydabber commented on GitHub (Nov 13, 2024):

I don't think this is the same issue as it is not an app crash.

<!-- gh-comment-id:2473655775 --> @waydabber commented on GitHub (Nov 13, 2024): I don't think this is the same issue as it is not an app crash.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 13, 2024):

I don't think this is the same issue as it is not an app crash.

I think the same, but these are like very related things, because they occur at this very moment, which was originally described in this bug. Now it is difficult to investigate this, maybe there is some log that the monitor keeps... to see what is happening there..?

Hmm, this now happens very often for me now.. looks like I need to reboot macOS to "fix" this... will not do that yet..

<!-- gh-comment-id:2473768095 --> @Anywhere-Music-Player commented on GitHub (Nov 13, 2024): > I don't think this is the same issue as it is not an app crash. I think the same, but these are like very related things, because they occur at this very moment, which was originally described in this bug. Now it is difficult to investigate this, maybe there is some log that the monitor keeps... to see what is happening there..? Hmm, this now happens very often for me now.. looks like I need to reboot macOS to "fix" this... will not do that yet..
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 21, 2024):

@waydabber, for the first time ever, this issue has occurred after a long time since I woke up my MacBook.

Randomly, whenever I adjust the brightness (which I used to do and it worked well), it drops to 0% and stops working immediately. Only restarting the app helps. Interestingly, if I close the app and immediately start it again, it won't run. I need to take a delay of about 2-3 seconds before starting it again, and then it starts and works.

<!-- gh-comment-id:2491454463 --> @Anywhere-Music-Player commented on GitHub (Nov 21, 2024): @waydabber, for the first time ever, this issue has occurred after a long time since I woke up my MacBook. Randomly, whenever I adjust the brightness (which I used to do and it worked well), it drops to 0% and stops working immediately. Only restarting the app helps. Interestingly, if I close the app and immediately start it again, it won't run. I need to take a delay of about 2-3 seconds before starting it again, and then it starts and works.
Author
Owner

@jmedina21 commented on GitHub (Nov 21, 2024):

I am experiencing a similar issue, when I mute and unmute it stays muted, I have to restart the app, and the monitor restarts automatically.
image

Steps to reproduce
Mute
Unmute

Expected behavior
It should unmute

Anything else?
No response

Environment Information (please complete the following information)

  • macOS version: 15.1.1 (24B2091)
  • Mac model: Mac Mini M4 Pro
  • MonitorControl version: 4.3.3
  • Monitor(s): Samsung Odyssey g5
  • Apple Silicon/M1 (yes or no): Yes
<!-- gh-comment-id:2491613860 --> @jmedina21 commented on GitHub (Nov 21, 2024): I am experiencing a similar issue, when I mute and unmute it stays muted, I have to restart the app, and the monitor restarts automatically. ![image](https://github.com/user-attachments/assets/b9458446-7d77-4add-bb56-5b000ef8d2f2) Steps to reproduce Mute Unmute Expected behavior It should unmute Anything else? No response Environment Information (please complete the following information) - macOS version: 15.1.1 (24B2091) - Mac model: Mac Mini M4 Pro - MonitorControl version: 4.3.3 - Monitor(s): Samsung Odyssey g5 - Apple Silicon/M1 (yes or no): Yes
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 21, 2024):

I am experiencing a similar issue, when I mute and unmute it stays muted, I have to restart the app, and the monitor restarts automatically. image

Steps to reproduce Mute Unmute

Expected behavior It should unmute

Anything else? No response

Environment Information (please complete the following information)

  • macOS version: 15.1.1 (24B2091)
  • Mac model: Mac Mini M4 Pro
  • MonitorControl version: 4.3.3
  • Monitor(s): Samsung Odyssey g5
  • Apple Silicon/M1 (yes or no): Yes

Thats kind of different issue, I have it too, but forgot to report it, since I almost never used Mute, just accidentally pressing it).
I think you better to create a new bug report..

<!-- gh-comment-id:2491643690 --> @Anywhere-Music-Player commented on GitHub (Nov 21, 2024): > I am experiencing a similar issue, when I mute and unmute it stays muted, I have to restart the app, and the monitor restarts automatically. ![image](https://private-user-images.githubusercontent.com/22413563/388589606-b9458446-7d77-4add-bb56-5b000ef8d2f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzIyMDUyNDIsIm5iZiI6MTczMjIwNDk0MiwicGF0aCI6Ii8yMjQxMzU2My8zODg1ODk2MDYtYjk0NTg0NDYtN2Q3Ny00YWRkLWJiNTYtNWIwMDBlZjhkMmYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTIxVDE2MDIyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI2ZWRhMzhhNWRiMjNiZDcxYTczOGMzZGY1ZWY5NjA4OTExZGU2YjU1NGFhYTVjODQ0MzkzOTMwOWI0ZTBkM2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iLdBzuf9KOjKdcZGvc0LJp-MlDODor10UqLSrrQ4m5c) > > Steps to reproduce Mute Unmute > > Expected behavior It should unmute > > Anything else? No response > > Environment Information (please complete the following information) > > * macOS version: 15.1.1 (24B2091) > * Mac model: Mac Mini M4 Pro > * MonitorControl version: 4.3.3 > * Monitor(s): Samsung Odyssey g5 > * Apple Silicon/M1 (yes or no): Yes Thats kind of different issue, I have it too, but forgot to report it, since I almost never used Mute, just accidentally pressing it). I think you better to create a new bug report..
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 22, 2024):

@waydabber crashed today again(with disabled % all this time).

MonitorControl-2024-11-22-130821.ips.zip

<!-- gh-comment-id:2493572314 --> @Anywhere-Music-Player commented on GitHub (Nov 22, 2024): @waydabber crashed today again(with disabled % all this time). [MonitorControl-2024-11-22-130821.ips.zip](https://github.com/user-attachments/files/17869579/MonitorControl-2024-11-22-130821.ips.zip)
Author
Owner

@waydabber commented on GitHub (Nov 22, 2024):

This is a different issue. The crash log comes from a place where the system tries to convert a value (probably brightness) to a DDC output based on the scaling curve and min/max DDC values. Is there any special configuration/change made in the Advanced section for the display? I can add some sanitization and safety checks to the variables involved in general but without the exact circumstances I have no way of knowing what exactly is the root cause.

For future reference, here is the symbolicated ips. MonitorControl-2024-11-22-130821_symbolicated.ips.zip

<!-- gh-comment-id:2493600520 --> @waydabber commented on GitHub (Nov 22, 2024): This is a different issue. The crash log comes from a place where the system tries to convert a value (probably brightness) to a DDC output based on the scaling curve and min/max DDC values. Is there any special configuration/change made in the Advanced section for the display? I can add some sanitization and safety checks to the variables involved in general but without the exact circumstances I have no way of knowing what exactly is the root cause. For future reference, here is the symbolicated ips. [MonitorControl-2024-11-22-130821_symbolicated.ips.zip](https://github.com/user-attachments/files/17869802/MonitorControl-2024-11-22-130821_symbolicated.ips.zip)
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 22, 2024):

This is a different issue. The crash log comes from a place where the system tries to convert a value (probably brightness) to a DDC output based on the scaling curve and min/max DDC values. Is there any special configuration/change made in the Advanced section for the display? I can add some sanitization and safety checks to the variables involved in general but without the exact circumstances I have no way of knowing what exactly is the root cause.

For future reference, here is the symbolicated ips. MonitorControl-2024-11-22-130821_symbolicated.ips.zip

Nope, I never opened advanced settings until now, and this bug just randomly occurred after waking the system from sleep. Only one thing changed recently: due to the russian orcs attacking my country with ballistic rockets a couple of days ago, we now have blackouts. This left the monitor without power while the MacBook continued on battery. Maybe the system couldn’t read the monitor’s values properly then.

Screenshot 2 Medium
Screenshot 3 Medium

<!-- gh-comment-id:2493615169 --> @Anywhere-Music-Player commented on GitHub (Nov 22, 2024): > This is a different issue. The crash log comes from a place where the system tries to convert a value (probably brightness) to a DDC output based on the scaling curve and min/max DDC values. Is there any special configuration/change made in the Advanced section for the display? I can add some sanitization and safety checks to the variables involved in general but without the exact circumstances I have no way of knowing what exactly is the root cause. > > For future reference, here is the symbolicated ips. [MonitorControl-2024-11-22-130821_symbolicated.ips.zip](https://github.com/user-attachments/files/17869802/MonitorControl-2024-11-22-130821_symbolicated.ips.zip) Nope, I never opened advanced settings until now, and this bug just randomly occurred after waking the system from sleep. Only one thing changed recently: due to the russian orcs attacking my country with ballistic rockets a couple of days ago, we now have blackouts. This left the monitor without power while the MacBook continued on battery. Maybe the system couldn’t read the monitor’s values properly then. ![Screenshot 2 Medium](https://github.com/user-attachments/assets/c368c8d3-2588-4da3-b97f-ce46d7afa59a) ![Screenshot 3 Medium](https://github.com/user-attachments/assets/bf49e5d9-43b5-4f06-b3c7-6d5b3b9d6a2e)
Author
Owner

@Anywhere-Music-Player commented on GitHub (Dec 5, 2024):

@waydabber I think this bug should be renamed, since I've disabled percentages at all and still got the same crash after wake. This is just crash when like monitor connect/disconnect for sure, but it's not due to % enabled/disabled.

MonitorControl-2024-12-05-144909.ips.zip

<!-- gh-comment-id:2520260797 --> @Anywhere-Music-Player commented on GitHub (Dec 5, 2024): @waydabber I think this bug should be renamed, since I've disabled percentages at all and still got the same crash after wake. This is just crash when like monitor connect/disconnect for sure, but it's not due to % enabled/disabled. [MonitorControl-2024-12-05-144909.ips.zip](https://github.com/user-attachments/files/18023574/MonitorControl-2024-12-05-144909.ips.zip)
Author
Owner

@waydabber commented on GitHub (Dec 5, 2024):

Indeed, this is a different crash (apparently a wrong value was saved to preferences and the app has trouble converting it to a DDC value. Not sure why and how though.

<!-- gh-comment-id:2520482321 --> @waydabber commented on GitHub (Dec 5, 2024): Indeed, this is a different crash (apparently a wrong value was saved to preferences and the app has trouble converting it to a DDC value. Not sure why and how though.
Author
Owner

@waydabber commented on GitHub (Dec 5, 2024):

(note: the symbolicated IPS crashes exactly the same way as this https://github.com/MonitorControl/MonitorControl/issues/1648#issuecomment-2493600520).

You should open a different issue for this as this is a different problem which is not yet fixed.

<!-- gh-comment-id:2520488919 --> @waydabber commented on GitHub (Dec 5, 2024): (note: the symbolicated IPS crashes exactly the same way as this https://github.com/MonitorControl/MonitorControl/issues/1648#issuecomment-2493600520). You should open a different issue for this as this is a different problem which is not yet fixed.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Dec 5, 2024):

Indeed, this is a different crash (apparently a wrong value was saved to preferences and the app has trouble converting it to a DDC value. Not sure why and how though.

Situation was - MacBook was on power and monitor too, the power down, MacBook awake(just show Lock Screen) then when power came back, only after that I unlocked MacBook so to continue working with external monitor on power.

<!-- gh-comment-id:2520490343 --> @Anywhere-Music-Player commented on GitHub (Dec 5, 2024): > Indeed, this is a different crash (apparently a wrong value was saved to preferences and the app has trouble converting it to a DDC value. Not sure why and how though. Situation was - MacBook was on power and monitor too, the power down, MacBook awake(just show Lock Screen) then when power came back, only after that I unlocked MacBook so to continue working with external monitor on power.
Author
Owner

@waydabber commented on GitHub (Dec 5, 2024):

No problem, I am not sure exactly why the situation arises, but clearly a wrong value is being used. I just need to add some protections and clamping to make sure that particular line does not fail.

<!-- gh-comment-id:2520513070 --> @waydabber commented on GitHub (Dec 5, 2024): No problem, I am not sure exactly why the situation arises, but clearly a wrong value is being used. I just need to add some protections and clamping to make sure that particular line does not fail.
Author
Owner

@waydabber commented on GitHub (Dec 18, 2024):

https://github.com/MonitorControl/MonitorControl/issues/1706

<!-- gh-comment-id:2550924873 --> @waydabber commented on GitHub (Dec 18, 2024): https://github.com/MonitorControl/MonitorControl/issues/1706
Author
Owner

@Anywhere-Music-Player commented on GitHub (Jan 24, 2025):

@waydabber so the issue continues, awake from sleep = crash.
Try start app again - crash, start again - changing brightness doesn't work, start again - crash, start again - now all works.

% of brightness never enabled now for all this time.

MonitorControl-2025-01-24-115914.zip

Image

<!-- gh-comment-id:2612126135 --> @Anywhere-Music-Player commented on GitHub (Jan 24, 2025): @waydabber so the issue continues, awake from sleep = crash. Try start app again - crash, start again - changing brightness doesn't work, start again - crash, start again - now all works. % of brightness never enabled now for all this time. [MonitorControl-2025-01-24-115914.zip](https://github.com/user-attachments/files/18533759/MonitorControl-2025-01-24-115914.zip) ![Image](https://github.com/user-attachments/assets/99dccf70-9cb4-446c-aaba-3733f36acb7c)
Author
Owner

@waydabber commented on GitHub (Jan 24, 2025):

Yep, this seems to be the same (not % related) crash as above.

<!-- gh-comment-id:2612296033 --> @waydabber commented on GitHub (Jan 24, 2025): Yep, this seems to be the same (not % related) crash as above.
Author
Owner

@mateusz-plociennik commented on GitHub (Aug 31, 2025):

I have built 4.3.3 from sources and caught a fatal error:
MonitorControl/MenuHandler.swift:50: Fatal error: Unexpectedly found nil while unwrapping an Optional value
Image

<!-- gh-comment-id:3239943625 --> @mateusz-plociennik commented on GitHub (Aug 31, 2025): I have built `4.3.3` from sources and caught a fatal error: `MonitorControl/MenuHandler.swift:50: Fatal error: Unexpectedly found nil while unwrapping an Optional value` <img width="2560" height="1415" alt="Image" src="https://github.com/user-attachments/assets/1c6be7ad-e72f-406c-a010-621c5366fe38" />
Author
Owner

@waydabber commented on GitHub (Sep 2, 2025):

Yeah, that currentDisplay! there is not nice at all, this should be fixed. The code is a bit outdated.

<!-- gh-comment-id:3246032354 --> @waydabber commented on GitHub (Sep 2, 2025): Yeah, that `currentDisplay!` there is not nice at all, this should be fixed. The code is a bit outdated.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/MonitorControl#915
No description provided.