Bug 510514

Summary: Discover crashes after use "Update All" due to: "Fatal error" about unmet dependencies
Product: [Applications] Discover Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED MOVED    
Severity: crash CC: aleixpol, nate, piotr.mierzwinski
Priority: NOR    
Version First Reported In: 6.5.80   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: discover coredump.01
discover coredump.02
discover coredump.03
discover coredump.04

Description Piotr Mierzwinski 2025-10-12 00:45:39 UTC
SUMMARY
Discover found updates, I raised it up (from task bar), and clicked "Update All", after that appeared message about issue with updates and Discover just crashes.
Seems the reason was "Fatal error: The following packages have unmet dependencies"
I suppose this was the reason, because after I tried to run update in terminal like below and got this:

$ sudo pkcon update
[sudo] password for piotr: 
Getting updates                         [=========================]         
Finished                                [=========================]         
Loading cache                           [=========================]         
Testing changes                         [=========================]         
Finished                                [=========================]         
Fatal error: The following packages have unmet dependencies:
  libexiv2-data: Breaks: libexiv2-27 (< 0.28~) but 0.27.6-1build1 is to be installed

After I fixed issue (removed package libexiv2-27, which was dependency for KRename), Discover didn't crash after I clicked button "Update All", and update passed well.

STEPS TO REPRODUCE
1. One needs to happen "Fatal error" about unmet dependencies (checked by "pkcon update")
2. Run Discover
3. Click "Update All"

OBSERVED RESULT
Crash after message about error - cannot update, or something like that.

EXPECTED RESULT
Discover should not crash after error in update, only just don't allow to run update.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: YES
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-10-13 19:34:26 UTC
This is mostly a distro problem, but Discover definitely shouldn't crash when it happens. Can you attach a backtrace of the crash? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
Comment 2 Nate Graham 2025-10-13 19:35:00 UTC
You might also want to report this to the Neon folks at https://bugs.kde.org/enter_bug.cgi?classification=KDE%20Neon; they'll want to know about the packaging dependency issue.
Comment 3 Piotr Mierzwinski 2025-10-14 20:10:42 UTC
(In reply to Nate Graham from comment #1)
> This is mostly a distro problem, but Discover definitely shouldn't crash
> when it happens. Can you attach a backtrace of the crash? See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl

Usually I send automatic report about crash. Next time I will add my account name to the message.
Anyway I meet crash of Discovery quite often and from time to time I send automatic report, but don't see any progress.
For example yesterday Discover crashes and didn't happen "Fatal error" about unmet dependencies, because I was able to update distro with command: "sudo pkcon update", and today Discover didn't crashes.

If you consider this is distro problem then please redirect this to Neon folks.
Comment 4 Piotr Mierzwinski 2025-10-14 20:14:16 UTC
(In reply to Nate Graham from comment #2)
> You might also want to report this to the Neon folks at
> https://bugs.kde.org/enter_bug.cgi?classification=KDE%20Neon; they'll want
> to know about the packaging dependency issue.

In the past I reported issues to Neon folks couple time, but I waited very, very long time (several months) for answer, and often I didn't get it never, so I stopped report anything to Neon.
Comment 5 Nate Graham 2025-10-14 20:16:54 UTC
Darn.

Well at the very least we can look into the issue from the Discover side. Can you attach a backtrace of the crash? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
Comment 6 Piotr Mierzwinski 2025-10-14 20:30:03 UTC
I will attach.

BTW. Today I made update of distro by Discover with success (got message and updates will be installed after restart), but when I click RMB onto icon present in tray I can see in menu option "Start Update". Isn't this a bug in Discover, or maybe is this distro problem?
If you confirm me this is bug in Discover I can report this as separate bug report.
Comment 7 Nate Graham 2025-10-14 20:39:58 UTC
Let's please focus on one issue at a time. Bug reports need to be about one issue, not many. Go ahead and move this out of the NEEDSINFO WAITINGFORINFO state when you've attached a backtrace of the crash. Thanks!
Comment 8 Piotr Mierzwinski 2025-10-14 20:41:19 UTC
Created attachment 185780 [details]
discover coredump.01
Comment 9 Piotr Mierzwinski 2025-10-14 20:41:45 UTC
Created attachment 185781 [details]
discover coredump.02
Comment 10 Piotr Mierzwinski 2025-10-14 20:42:10 UTC
Created attachment 185782 [details]
discover coredump.03
Comment 11 Piotr Mierzwinski 2025-10-14 20:42:33 UTC
Created attachment 185783 [details]
discover coredump.04
Comment 12 Piotr Mierzwinski 2025-10-14 20:43:20 UTC
(In reply to Nate Graham from comment #7)
> Let's please focus on one issue at a time. Bug reports need to be about one
> issue, not many. Go ahead and move this out of the NEEDSINFO WAITINGFORINFO
> state when you've attached a backtrace of the crash. Thanks!

Ok.
Comment 13 Nate Graham 2025-10-14 20:48:40 UTC
Please follow the instructions on that wiki page. We don't need a whole core, just the textual backtrace of the crashing thread. The instructions guide you through getting that.
Comment 14 Piotr Mierzwinski 2025-10-16 22:09:34 UTC
(In reply to Nate Graham from comment #13)
> Please follow the instructions on that wiki page. We don't need a whole
> core, just the textual backtrace of the crashing thread. The instructions
> guide you through getting that.

And what is sent in case of automatic crash report?
Comment 15 Nate Graham 2025-10-16 22:12:17 UTC
Usually something quite useful. If you've sent an automatic report, we don't need this one here. Have you?
Comment 16 Piotr Mierzwinski 2025-10-18 19:48:14 UTC
(In reply to Nate Graham from comment #15)
> Usually something quite useful. If you've sent an automatic report, we don't
> need this one here. Have you?

I think for described case I sent automatic report.
Comment 17 Nate Graham 2025-10-20 18:07:47 UTC
Then let's just track it in Sentry.