Bug 493644 - KDE / Plasma hangs with black screen after login when .profile contains source statement to a missing file
Summary: KDE / Plasma hangs with black screen after login when .profile contains sourc...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 6.1.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-25 16:47 UTC by hwmrocker
Modified: 2024-09-27 13:55 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hwmrocker 2024-09-25 16:47:25 UTC
SUMMARY

KDE / Plasma hangs with black screen after login when .profile contains source statement to a missing file

STEPS TO REPRODUCE
1. add `source /does_not_exist` to .profile
2. log out
3. log in again

OBSERVED RESULT

screen goes black and nothing happens anymore


EXPECTED RESULT

login should still work, and the desktop environment should show up
at least show a sensible error message 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 61.9 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B650 AORUS ELITE AX

ADDITIONAL INFORMATION

you can switch with CTRL + ALT + F* to another TTY login and restart the display-manager with:

systemctl restart display-manager

I set up my PC / Laptop already twice and this error appeared after a while again. It took a while to connect it to my dotfiles and a missing file on some of my systems. I have it replicated in a fedora vm.

Sorry I am new to the bugtracker and the KDE ecosystem and don't know where to file the bug exactly. I am happy to help if you need more info.
Comment 1 hwmrocker 2024-09-25 17:12:15 UTC
I just remember, I noticed this bug when I was "forced" to use Wayland, when I start a X server session everything is fine.
Comment 2 cwo 2024-09-25 17:13:20 UTC
Hm, I can't test on my Fedora VM right now, but using Tuxedo OS and master (with Wayland) I can't reproduce this - Plasma starts up while .profile sources a non-existing file, no black screen or anything.
Comment 3 Nate Graham 2024-09-25 20:00:21 UTC
I can't reproduce this on master either, with Fedora 40 as a base and the Wayland session.
Comment 4 hwmrocker 2024-09-27 06:27:36 UTC
I downloaded yesterday the fedora 41 KDE spin iso and tried to reproduce it unsuccessful.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.11.0-0.rc5.43.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 3.8 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-8.2

Looks like this was already fixed, sorry for the trouble.
Comment 5 Nate Graham 2024-09-27 13:55:38 UTC
Thanks for testing!