Bug 404144 - Error message: Could not find requested component
Summary: Error message: Could not find requested component
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Context View (show other bugs)
Version: 2.9.0
Platform: Other Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-09 19:12 UTC by Axel Braun
Modified: 2025-01-06 10:55 UTC (History)
3 users (show)

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


Attachments
Screenshot (27.65 KB, image/png)
2019-02-09 19:12 UTC, Axel Braun
Details
Debug output when starting amarok (54.83 KB, text/plain)
2019-02-09 19:13 UTC, Axel Braun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2019-02-09 19:12:43 UTC
Created attachment 117952 [details]
Screenshot

SUMMARY
After starting amarok, the error message
This object could not be created for the following reason:
Could not find requested component:
Message is persistent, can not be removed

STEPS TO REPRODUCE
1. Start amarok
2. 
3. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Tumbleweed 20190205
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
See debug output
Comment 1 Axel Braun 2019-02-09 19:13:19 UTC
Created attachment 117953 [details]
Debug output when starting amarok
Comment 2 Myriam Schweingruber 2019-02-12 02:01:50 UTC
I presume it didn't happen before, what did you change in between?
Comment 3 Axel Braun 2019-02-12 10:24:18 UTC
(In reply to Myriam Schweingruber from comment #2)
> I presume it didn't happen before, what did you change in between?

AFAIK, nothing. Have to admit that I dont use amarok on a daily basis, more every now and then.
I just see a tab with an 'unknown mini-program' in the middle section. Closing this removes the error message. 
There have been a couple of system upgrades (Tumbleweed=rolling Release) in between, maybe something was kicked out?
Comment 4 Myriam Schweingruber 2019-02-12 11:00:43 UTC
(In reply to Axel Braun from comment #3)
> (In reply to Myriam Schweingruber from comment #2)
> > I presume it didn't happen before, what did you change in between?
> 
> AFAIK, nothing. Have to admit that I dont use amarok on a daily basis, more
> every now and then.
> I just see a tab with an 'unknown mini-program' in the middle section.
> Closing this removes the error message. 
> There have been a couple of system upgrades (Tumbleweed=rolling Release) in
> between, maybe something was kicked out?

you should report this to your distribution, then, as we didn't change things on our side.
Comment 5 Heiko Becker 2019-02-12 11:11:33 UTC
From looking at the code I'd say you'll need whatever package provides libktexteditor.so.4 (probably already available because amarok links to it) *and* the katepart plugin (e.g. installed as /usr/lib/kde4/katepart.so)
Comment 6 Axel Braun 2019-02-12 11:27:00 UTC
(In reply to Heiko Becker from comment #5)
> From looking at the code I'd say you'll need whatever package provides
> libktexteditor.so.4 (probably already available because amarok links to it)
> *and* the katepart plugin (e.g. installed as /usr/lib/kde4/katepart.so)

docb@T520:~> zypper se --provides libktexteditor
S  | Name             | Zusammenfassung        | Typ  
---+------------------+------------------------+------
   | kate4-parts      | Kate parts for Dolphin | Paket
i+ | libkde4          | KDE Base Libraries     | Paket
   | libkde4-32bit    | KDE Base Libraries     | Paket
i+ | openSUSE-release | openSUSE Tumbleweed    | Paket

-> libktexteditor should be OK

docb@T520:~> zypper se --provides katepart
S | Name                             | Zusammenfassung                                      | Typ  
--+----------------------------------+------------------------------------------------------+------
  | libkatepartinterfaces4           | Library to interface with kateparts                  | Paket
  | libkatepartinterfaces4-debuginfo | Debug information for package libkatepartinterfaces4 | Paket

Installing this amarok starts as usual. So this seems to be a missing build dependency then
Comment 7 Myriam Schweingruber 2019-02-12 15:49:34 UTC
Indeed, this really needs to be reported downstream
Comment 8 Wolfgang Bauer 2019-02-13 18:13:21 UTC
Downstream here.

(In reply to Heiko Becker from comment #5)
> From looking at the code I'd say you'll need whatever package provides
> libktexteditor.so.4 (probably already available because amarok links to it)
> *and* the katepart plugin (e.g. installed as /usr/lib/kde4/katepart.so)

Could you please tell me what the katepart is used/needed for? Or at least point me to the corresponding place in the code.

I just tried uninstalling it (and libkatepartinterfaces4), and don't get an error message here...

(In reply to Axel Braun from comment #3)
> I just see a tab with an 'unknown mini-program' in the middle section.
> Closing this removes the error message. 

I think that's likely the Wikipedia applet which we don't build anymore because we dropped Qt4's WebKit completely (for obvious reasons).

And I'm sure we are not the only ones.

I suppose the error message "Could not find requested component" is caused by that too, and unrelated to whether libkatepartinterfaces4 or the katepart are installed.

The problem here is that if that applet is already listed in the user config file, it will be displayed in the context view, and loading it will fail of course if it's not available.

Maybe Amarok should just ignore this particular problem and *not* show an error message for that particular applet...
Another "solution" I can think of is include a kconf update script that would remove the Wikipedia applet, if Amarok is built without QtWebKit.
Comment 9 Wolfgang Bauer 2019-02-13 18:25:55 UTC
PS, @Axel Braun:
(In reply to Axel Braun from comment #6)
> Installing this amarok starts as usual.
I'm a bit confused about this.

You already wrote earlier that the error message disappeared after you removed that "unknown mini-program", or was that a different error message?

Does it still start as usual now if you uninstall libkatepartinterfaces4 again?
Comment 10 Wolfgang Bauer 2019-02-16 22:20:03 UTC
(In reply to Wolfgang Bauer from comment #8)
> Could you please tell me what the katepart is used/needed for? Or at least
> point me to the corresponding place in the code.
> 
> I just tried uninstalling it (and libkatepartinterfaces4), and don't get an
> error message here...

Ok, found it myself meanwhile.

It only seems to be necessary for the scripting console (that's disabled by default).

That cannot really be the problem here though, as that would show a dialog window with the error message "A KDE text-editor component could not be found. Please check your KDE installation. Exiting the console!"
And amarok would exit and crash.

So I really do think the problem is about the missing Wikipedia applet, and I do think we should do something about that upstream.

Reopening therefore.

I think my idea about a kconf update script is probably the best way to go about it, I'll try to come up with a proposal on phabricator in the next days, if nobody beats me to it... ;-)
Comment 11 Tuomas Nurmi 2025-01-06 10:55:31 UTC
Tested Amarok 3.2.0-git (Qt5 build, Plasma 6 desktop), non-existant context applets are ignored without user-facing error messages, so this one is pretty much resolved, I believe.