Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please improve the error handling (catch possible coredumps) #383

Open
Photon89 opened this issue Dec 1, 2024 · 1 comment
Open

Please improve the error handling (catch possible coredumps) #383

Photon89 opened this issue Dec 1, 2024 · 1 comment

Comments

@Photon89
Copy link

Photon89 commented Dec 1, 2024

Hi guys,

yesterday I spent almost the whole day trying to figure out what caused a LightDM crash. The crash put the system into an unusable state (a loop of black screens with no TTY access). There are several components to it:

  1. When LightDM crashes, it is not obvious that it is LightDM that is crashed. It could be a video driver problem as well.
  2. When the system is not accessible, it is hard to track down the issue.
  3. LightDM doesn't provide a useful error output, only a rather cryptic stack trace in the journal.

In my case, the original issue was that libpixbufloader-svg.so hasn't been found. Instead of dying, LightDM could

  • Offer limited functionality (without fancy graphics) and/or
  • Show some error message (graphically or at least in CLI output) which helps to find the issue

In the end I could only solve the issue by installing SDDM, logging into Xfce, seeing that other apps crash as well and finding meaningful error messages in their output.

Here is what was in the journal: https://pastebin.com/i6QgFkBg As you can see, no mention of the missing .so file at all. This made things really tough to investigate!

@richarddribeiro
Copy link

Hi,

I was one those that have spent hours trying to discover what was causing the loop. I only could see a few messages in the terminal showing that LightDM had started and finished. After that I began chasing the problem, trying things in TLP and several different kernels.

Thanks to @Photon89 I could fix the problem, that it was in a completely different library.

So, if we could have better information, we could help to fix the problem faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants