Bug 500010 - Night Light broken: eglSwapBuffer failed with 0x300d, screen black or cannot start plasma workspace if ICC used (Wayland)
Summary: Night Light broken: eglSwapBuffer failed with 0x300d, screen black or cannot ...
Status: RESOLVED DUPLICATE of bug 499789
Alias: None
Product: plasmashell
Classification: Plasma
Component: Brightness and Color widget (show other bugs)
Version: 6.3.0
Platform: Manjaro Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-13 17:12 UTC by whatifgodwasoneofus
Modified: 2025-02-17 09:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whatifgodwasoneofus 2025-02-13 17:12:58 UTC
SUMMARY
The Night Light widget in Plasma 6.3.0 breaks some egl compatibilty in Wayland

STEPS TO REPRODUCE
1. Open System Settings → Appearance & Style → Colors & Themes → Night Light.
2. Check any option other than "Always Off"
3. Move the slider of the the Night Light temperature

OBSERVED RESULT
1. The screen goes totally black for at least2 seconds at each cursor slide
2. journalctil shows these lines:
```
plasmashell[6552]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x655483ccdb80
kwin_wayland[6386]: kwin_scene_opengl: 0x505: GL_OUT_OF_MEMORY error generated. Failed to allocate memory for texture.
kwin_wayland[6386]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
...

EXPECTED RESULT
The color temperature preview should work as expected, not crash!

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7 CPU         950  @ 3.07GHz
Memory: 23.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650

ADDITIONAL INFORMATION

Another closely related consequence of this is that if you have Night Light mode active and you boot with Plasma 6.3 on Wayland during the “night color time”, then you won’t be able to start the desktop at all! You can fix this by disabling NightColor inside ~/.config/kwinrc:
```
[NightColor]
Active=false
```

and then you can log in again.
Comment 1 whatifgodwasoneofus 2025-02-14 16:43:41 UTC
**UPDATE**

This only happens if an ICC profile is used. If I set ICC to "None" or to "Built-in", then Night Light behaves correctly - but I loose colour correction...
Comment 2 David Edmundson 2025-02-17 09:47:56 UTC

*** This bug has been marked as a duplicate of bug 499789 ***