Bug 436696 - Database locked error message disappears before I can see it
Summary: Database locked error message disappears before I can see it
Status: RESOLVED DUPLICATE of bug 403791
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (show other bugs)
Version: 5.21.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-05-06 17:09 UTC by Christopher Yeleighton
Modified: 2021-05-08 17:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Here's what I see (294.64 KB, image/png)
2021-05-07 19:56 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2021-05-06 17:09:14 UTC
SUMMARY
When the package database is locked, Discover cannot find anything and leaves me clueless.

STEPS TO REPRODUCE
1. Tell YaST2 to open Software Management.
2. Tell Discover to find memtest86+.

OBSERVED RESULT
Nothing found.

EXPECTED RESULT
Package database locked by process pid …

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.12.0-1-default
(available in About System)
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION
pkcon issues a diagnostic all right
Comment 1 Nate Graham 2021-05-07 19:50:39 UTC
The error message is accurate in this case; there's nothing Discover can do while other package-management software is running. Perhaps we can improve the message though.
Comment 2 Nate Graham 2021-05-07 19:51:37 UTC
What *exactly* did the error message say?
Comment 3 Christopher Yeleighton 2021-05-07 19:53:54 UTC
The error message says "Nothing found".  Saying that without having searched is technically true but imagine your grandma asking you to find her glasses.  How would it make her feel?
Comment 4 Nate Graham 2021-05-07 19:56:11 UTC
Created attachment 138219 [details]
Here's what I see

Here's what I see. It seems fairly clear and does indeed mention the pid. The app name us ugly, but that's YaST's software module fault for being implemented as a ruby script rather than a proper application.
Comment 5 Nate Graham 2021-05-07 19:56:29 UTC
Do you see something different? Could you take a screenshot of it?
Comment 6 Christopher Yeleighton 2021-05-07 20:31:35 UTC
Here is the problem: the error message does say about the lock but it is a toast disappears by itself.  Searching for packages takes a long time so I just launch it without looking at it.  When I return after some time, the results for "bash" and "quux" are exactly the same.
Comment 7 Nate Graham 2021-05-07 20:58:42 UTC
Can you please attach a screenshot of the error message in question so I can be sure we're talking about the same thing?
Comment 8 Christopher Yeleighton 2021-05-08 07:41:52 UTC
(In reply to Nate Graham from comment #7)
> Can you please attach a screenshot of the error message in question so I can
> be sure we're talking about the same thing?

Please confirm that you want me to attach a screen shot of an invisible error message.
Comment 9 Nate Graham 2021-05-08 16:12:00 UTC
See, this is why a screenshot is helpful. Because you initially said:

> OBSERVED RESULT
> Nothing found.
Which made me think that Discover showed you a "Nothing Found" message because it has such a message. You later said:

> The error message says "Nothing found".
Which made me think that my initial guess was correct.

Now you're telling me that I was wrong and there is in fact no error message shown at all?

Perhaps a screen recording of you reproducing the problem would be helpful. I'm feeling confused, and it's working for me on the same distro.
Comment 10 Christopher Yeleighton 2021-05-08 16:55:51 UTC
The error message "locked" was shown (even 3 identical toasts stacked) but they all disappeared before I could see it.  I was not looking at the window while this happened.  When I looked at the window, it was too late.
Comment 11 Nate Graham 2021-05-08 17:00:47 UTC
I don't know what a toast is in this context. Can you please attach a screen recording that shows the issue?
Comment 12 Nate Graham 2021-05-08 17:12:50 UTC
OK so I found out that "toast" is the nonsense Android term for those annoying little self-erasing notification messages that we're inappropriately using in Discover for. Marking as a duplicate of the bug report that tracks turning them into something less annoying.

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