Bug 442136 - Latte fails to start in 5.22.80 Plasma environment
Summary: Latte fails to start in 5.22.80 Plasma environment
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-07 16:37 UTC by Vladimir Yerilov
Modified: 2021-09-08 12:21 UTC (History)
0 users

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 Vladimir Yerilov 2021-09-07 16:37:51 UTC
SUMMARY
Latte fails to start.

STEPS TO REPRODUCE
1. Build 5.22.80 and Latte from source
2. Start a dev session
3. Observe

OBSERVED RESULT
The following is shown when launching Latte via terminal:
latte-dock: symbol lookup error: ~/kdesrc/usr/lib/qml/org/kde/plasma/calendar/libcalendarplugin.so: undefined symbol: _ZN15KPluginMetaData11findPluginsERK7QStringSt8functionIFbRKS_EE

EXPECTED RESULT
No failure.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2021-09-07 16:47:01 UTC
That is an applet related to calendar... 

Nothing related to Latte
Comment 2 Vladimir Yerilov 2021-09-08 03:34:26 UTC
Yep, this is such kind of issues that always puzzle me. If I reported it to Plasma Calendar or whatever, they could say "our applet is fine, the problem is on the Latte side", right?
I reported it to draw your attention, maybe you guys will decide who should make changes to eliminate the issue, and which project should be changed to achieve this.
Comment 3 Michail Vourlakos 2021-09-08 05:04:38 UTC
applet crash applet responsibility to fix. Latte is not doing any calendar stuff on its own.

1. Have you found the applet in question?
2. Isnt that applet crashing plasma also?

Libcalendar is not used only from Plasma calendar, it is used also from event calendar also and other applets
Comment 4 Vladimir Yerilov 2021-09-08 05:48:00 UTC
Well I have only one calendar widget which is org.kde.plasma.calendar located on Latte dock. I tried to add all widgets I use on Latte to me Plasma desktop and panel and it had no negative effect on Plasma. Only Latte fails to start.
But there's another interesting thing:
I tried to remove lattedockrc and latte folder from my ~/.config to reset all Latte settings to defaults, then run Latte and had this:

file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:807:9: Type Layouts.LayoutsContainer unavailable

     file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/layouts/LayoutsContainer.qml:251:5: Type EnvironmentActions unavailable

     file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/layouts/EnvironmentActions.qml:169:9: Type Loaders.Tasks unavailable

     file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/layouts/loaders/Tasks.qml:8:1: plugin cannot be loaded for module "org.kde.taskmanager": Cannot load library /media/kdesrc/usr/lib/qml/org/kde/taskmanager/libtaskmanagerplugin.so: (/home/openm/kde/usr/lib/libtaskmanager.so.6: undefined symbol: _ZN8KWayland6Client16PlasmaActivation13applicationIdERK7QString)

Now it says that libtaskmanager.so.6 has undefined symbol.
Comment 5 Antonio Rojas 2021-09-08 06:45:11 UTC
This is an issue on your system, not a bug in any KDE component. You're mixing up incompatible versions of different KDE components.
Comment 6 Vladimir Yerilov 2021-09-08 07:05:26 UTC
Disregard my previous comment.
I have just discovered that Latte starts if launched from Kickoff, but if launched using command in Konsole or auto-generated systemd service, it fails with a message described in the first message. That's what happens.
Comment 7 Michail Vourlakos 2021-09-08 09:36:52 UTC
(In reply to Vladimir Yerilov from comment #4)
> Well I have only one calendar widget which is org.kde.plasma.calendar
> located on Latte dock. I tried to add all widgets I use on Latte to me
> Plasma desktop and panel and it had no negative effect on Plasma. Only Latte
> fails to start.
> But there's another interesting thing:
> I tried to remove lattedockrc and latte folder from my ~/.config to reset
> all Latte settings to defaults, then run Latte and had this:
> 
> file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/
> contents/ui/main.qml:807:9: Type Layouts.LayoutsContainer unavailable
> 
>     
> file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/
> contents/ui/layouts/LayoutsContainer.qml:251:5: Type EnvironmentActions
> unavailable
> 
>     
> file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/
> contents/ui/layouts/EnvironmentActions.qml:169:9: Type Loaders.Tasks
> unavailable
> 
>     
> file:///media/kdesrc/usr/share/plasma/plasmoids/org.kde.latte.containment/
> contents/ui/layouts/loaders/Tasks.qml:8:1: plugin cannot be loaded for
> module "org.kde.taskmanager": Cannot load library
> /media/kdesrc/usr/lib/qml/org/kde/taskmanager/libtaskmanagerplugin.so:
> (/home/openm/kde/usr/lib/libtaskmanager.so.6: undefined symbol:
> _ZN8KWayland6Client16PlasmaActivation13applicationIdERK7QString)
> 
> Now it says that libtaskmanager.so.6 has undefined symbol.

totally messed up installation...
I agree with that comment "This is an issue on your system, not a bug in any KDE component. You're mixing up incompatible versions of different KDE components."

this is totally on your side and nothing related to latte.
Comment 8 Vladimir Yerilov 2021-09-08 12:21:56 UTC
OK. Told you to disregard that message, remember?
You guys called my system mixed and messed up but in fact it is a usual installation based on Arch Plasma packages and dev Plasma version (+dev version of Latte) built according to KDE community wiki instructions, the only difference is that the dev version is located on separate partition /media/kdesrc symlinked to ~/kde...

Anyway, I sorted this out. Not an issue of Latte or Calendar or whatever. For some reason the command `latte-dock` tries to launch latte installed to /usr/bin instead of /media/kdesrc/usr/bin, and systemd service starting Latte during Plasma boot also refers to a regular Latte version (silly me), and that's it. I had to check it first, of course. Thanks for helping me to get at the root cause of this.