Bug 444671 - icon-only taskmanager fails to load due to tooltip delegate unavailable
Summary: icon-only taskmanager fails to load due to tooltip delegate unavailable
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: master
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-30 16:23 UTC by Edward Kigwana
Modified: 2021-11-03 17:03 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Kigwana 2021-10-30 16:23:16 UTC
SUMMARY

no-icons-only task manager and not switcher either

STEPS TO REPRODUCE
1. Start plasma on x11

OBSERVED RESULT

Small block on task bar indicating failure to load with message copy cause

file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:400:5: Type ToolTipDelegate unavailable

file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ToolTipDelegate.qml:80:9: Type ToolTipInstance unavailable

file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ToolTipInstance.qml:184:17: TaskManager.PipeWireSourceItem is not a type


If I comment out just the pipewire section from plasma-desktop/applets/taskmanager/package/contents/ui/ToolTipInstance.qml on X11 I get an Icons-only task manager again

The change that caused the breakage for me was https://invent.kde.org/plasma/plasma-desktop/-/commit/238a076c8d9d80f874f3cbef7ba857db7efda7ac



EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-11-01 15:50:09 UTC
I assume you're compiling from source or using git master packages? I am as well, and I don't see this. Can you update the system or recompile and try again?
Comment 2 Fushan Wen 2021-11-01 15:58:50 UTC
in plasma-workspace/libtaskmanager/declarative/taskmanagerplugin.cpp

#ifdef WITH_PIPEWIRE
    qmlRegisterType<PipeWireSourceItem>(uri, 0, 1, "PipeWireSourceItem");
    qmlRegisterType<ScreencastingRequest>(uri, 0, 1, "ScreencastingRequest");
    qmlRegisterUncreatableType<Screencasting>(uri, 0, 1, "Screencasting", "Use ScreencastingItem");
#endif

I misunderstood that. PipeWire could be still unavailable. Will push a fix to restore the file.
Comment 3 Bug Janitor Service 2021-11-01 16:27:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/673
Comment 4 Fushan Wen 2021-11-01 16:34:53 UTC
Dear reporter, next time if you find some regression caused by a commit, please add the author's email directly to  CC List.
Comment 5 Edward Kigwana 2021-11-02 17:02:55 UTC
(In reply to Nate Graham from comment #1)
> I assume you're compiling from source or using git master packages? I am as
> well, and I don't see this. Can you update the system or recompile and try
> again?

I did with the same results. I think I am missing pipewire runtime dependency or something
Comment 6 Nate Graham 2021-11-03 17:03:12 UTC
Git commit 88915758897b4ceb4f9054f8b4a4a206081de9e5 by Nate Graham, on behalf of Fushan Wen.
Committed on 03/11/2021 at 17:02.
Pushed by ngraham into branch 'master'.

taskmanager: Move back PipeWireThumbnail to an individual file

WITH_PIPEWIRE could be undefined in
plasma-workspace/libtaskmanager/declarative/taskmanagerplugin.cpp.

A  +20   -0    applets/taskmanager/package/contents/ui/PipeWireThumbnail.qml     [License: LGPL(v2.0+)]
M  +17   -21   applets/taskmanager/package/contents/ui/ToolTipInstance.qml

https://invent.kde.org/plasma/plasma-desktop/commit/88915758897b4ceb4f9054f8b4a4a206081de9e5