plasma-applet-eventcalendar icon indicating copy to clipboard operation
plasma-applet-eventcalendar copied to clipboard

Plasma lockup on Debian 10 (stable)

Open EazyDefcon opened this issue 4 years ago • 26 comments

I have been forced to use v.64 because newer versions locks up the entire Plasma when I go to Event calendar settings. Need to ctr+alt+F2 and restart sddm (or reboot). The v.64 have been working for my needs, but since a couple of months ago syncing with google does not work. Tried the latest Event calendar (v.71) and it still locks up Plasma. Event calendar starts fine, it only locks up when I go to settings. Any help would be appreciated!

How can I provide a log?

EazyDefcon avatar Dec 02 '20 15:12 EazyDefcon

As long as you use v64 (or later) with the major fix, you should be able to use the following instructions. I wrote them for v68, but the client id will work for any version of the widget.

https://github.com/Zren/plasma-applet-eventcalendar/issues/153#issuecomment-730508702

Zren avatar Dec 02 '20 19:12 Zren

Thank you! That worked. Do you know why versions over v.64 locks up plasma on Debian (or maybe just for me)? Old QT or something?

EazyDefcon avatar Dec 02 '20 22:12 EazyDefcon

Having the same issue here. Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-56-generic

The comment on #153 fixes it, but I'm not sure how to upgrade to v71 now. The built-in plasma widget updater doesn't say an update is available.

AidanRB avatar Dec 03 '20 03:12 AidanRB

@AidanRB: Follow the instructions and change v68 to v71, or just run the command to uninstall the widget:

kpackagetool5 --type=Plasma/Applet -r org.kde.plasma.eventcalendar

Then install the widget via "Get New Widgets".

Also, v71 fixes this segfault when you open the widget config in Kubuntu 20.04:

Remove the final QtMultimedia use in ConfigSound to fix the config window crashing on Kubuntu and OpenSUSE (Issue #167)

Zren avatar Dec 03 '20 04:12 Zren

I uninstalled using the command and reinstalled from Get New Widgets, but now Plasma locks up a few seconds after I log in again.

AidanRB avatar Dec 03 '20 14:12 AidanRB

What do you mean it locks up @AidanRB? As in it is a black wallpaper with no panel? Does the panel load, then disappear?

You are using Kubuntu 20.04 and EventCalendar v71? The instructions to install v68 is supposed to be for Kubuntu 18.04 users. I don't know why EventCalendar is crashing Kubuntu 20.04. The only issue I know about was the QtMultimedia bug. I will need a stack trace from the segfault to diagnose the issue.

Zren avatar Dec 03 '20 23:12 Zren

As plasmashell started to use 70% CPU I thought Eventcalendar was the problem (don't know if it was) I uninstalled it. I then tried to following your guide, but now even v.46 did lock up Plasma after I enabled debugging as needed to when following your guide. I uninstalled again and did manage it to make it work and CPU consumption is back to normal.

I'm in the progress of translating Eventcalendar to Swedish. do i need to reinstall Eventcalendar or does the ./merge install my translation directly? And also, do you want the template.pot?

EazyDefcon avatar Dec 04 '20 13:12 EazyDefcon

It isn't crashing per se, but the panels freeze up as plasmashell goes up to 25% CPU (one core) and stays there. Everything is unusable until I run killall plasmashell; kstart5 plasmashell, and then I can use the panels for about 30 seconds until it caps the CPU again and I have to restart.

This happens with any version above v68 installed.

AidanRB avatar Dec 04 '20 15:12 AidanRB

That sounds like an infinite loop. It could be the agendaListItem.implicitHeight but that normally will show a warning when it detects that.

I'm not seeing a spike in errors in the Google Calendar API, so it's probably not the v63 bug. However just to be certain run this command:

grep Version ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop

Zren avatar Dec 04 '20 16:12 Zren

Starting with v68, Plasma is usable:

$ grep Version ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop
/home/aidan/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop:X-KDE-PluginInfo-Version=68
grep: /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop: No such file or directory
$ cd plasma-applet-eventcalendar-71/package
$ kpackagetool5 --type=Plasma/Applet -r org.kde.plasma.eventcalendar
Successfully uninstalled
$ kpackagetool5 --type=Plasma/Applet -i .
Successfully installed .../plasma-applet-eventcalendar-71/package
$ killall plasmashell; kstart5 plasmashell

Here Plasma restarts, is usable for about 20 seconds, then freezes with CPU at a full core. I'm omitting the logs that are printed to the terminal, although I can provide them if necessary.

$ grep Version ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop
/home/aidan/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop:X-KDE-PluginInfo-Version=71
grep: /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop: No such file or directory

AidanRB avatar Dec 04 '20 16:12 AidanRB

I'm working on translation to Swedish and I wonder if this is a misstake:

#:` ../contents/ui/config/ConfigGeneral.qml:166
msgid ""
"You can also use <b>'&lt;b&gt;'ddd'&lt;/b&gt;'</b> or <b>'&lt;font color=\"#77aaadd\"&gt;'ddd'&lt;/font&gt;'</b> to style a section. Note the single quotes around the tags are used to bypass the "
"time format."

Should it be?:

#: ../contents/ui/config/ConfigGeneral.qml:166
msgid "You can also use <b>'&lt;b&gt;'ddd'&lt;/b&gt;'</b> or <b>'&lt;font color=\"#77aaadd\"&gt;'ddd'&lt;/font&gt;'</b> to style a section. Note the single quotes around the tags are used to bypass the time format."

If it is a mistake in the .po-file, should i correct this in both the English and Swedish? There are more places in the file where the text is beneath msgid "". Should i correct those as well?

I use the .po-file from Eventcalendar v.64 because I use that version. i would be happy to translate the recent version of Eventcalendar if there are more lines to translate in the resent version even though I cannot use it.

EazyDefcon avatar Dec 04 '20 21:12 EazyDefcon

msgid ""
"blah blag"

is perfectly valid. The gettext scripts can wrap the text automatically sometimes as well.

Latest version of template.pot is: https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/translate/template.pot

I'm in the progress of translating Eventcalendar to Swedish. do i need to reinstall Eventcalendar or does the ./merge install my translation directly?

The ./merge script will only modify the files in the translate/ folder (and the widget doesn't need to be installed).

You will need to run ./build script in the translate folder to compile the .po files into the binary .mo files in contents/locale/... however for your translations to get applied. There's a ./plasmoidlocaletest script that'll do it for you too.

Edit: Also, the swedish translations should use the filename sv.po.

https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/translate/plasmoidlocaletest#L119

Zren avatar Dec 04 '20 21:12 Zren

@AidanRB are you using EventCalendar as a Panel or Desktop widget?

Zren avatar Dec 04 '20 21:12 Zren

@Zren Currently as a panel widget, I can try desktop tomorrow and see if there's any difference.

AidanRB avatar Dec 05 '20 04:12 AidanRB

@Zren It locks up whether running as a panel or desktop widget. Would logs be helpful? If so, what logs?

AidanRB avatar Dec 05 '20 22:12 AidanRB

@Zren I have completed the Swedish translation for the latest version of Eventcalendar, but i cannot try it to find errors of features that are not part of v.64. I cannot use the latest version due to my previous problem. You can download it from here if you want to add it.

EazyDefcon avatar Dec 06 '20 18:12 EazyDefcon

For kubuntu, I think plasma logs to ~/.xsession-errors. Thought if you run killall plasmashell; kstart5 plasmashell it'll log to the terminal. I assume there isn't anything repeating in the terminal or you'd have mentioned it.

If you edit /home/chris/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/config/main.xml and change debugging to <default>true</default> instead of false it'll print more stuff. Just be careful about copy pasting with it all debugging=true as it'll have your google login token and email.

If you'd like to email me it privately, my email can be found at the top of:
https://github.com/Zren/plasma-applet-eventcalendar/commit/3a8ee952756e5aaa0adfef885ccedde9b732d4d1.patch

Zren avatar Dec 06 '20 18:12 Zren

@EazyDefcon:

[merge] ./sv.po
./sv.po.new:447: duplicate message definition...
./sv.po.new:420: ...this is the location of the first definition

You had this twice:

#: ../contents/ui/config/ConfigGeneral.qml
msgid "Time Format"
msgstr "Tidsformat"

And this was missing:

#: ../contents/ui/config/ConfigGeneral.qml
msgid "Line 1:"
msgstr ""

I fixed it in https://github.com/Zren/plasma-applet-eventcalendar/commit/6adafaa5fd174df2bd37fb9c32d7cdbd2d4afd28

Zren avatar Dec 06 '20 19:12 Zren

@Zren I noticed that there was something strange there but could not figure out what it was... If you want to ad the missing translation, I translated the old v.64 like this: msgid "Line 1:" msgstr "Tidformat:" (where "Tidformat:" is the clock.)

Thought it would be easier to understand as Swedish translation for "Line 1" will sound weird. Think most people have the time above the date anyway.

If you want to change it:

"Line 1" would translate to "Linje 1:" and where I put "Datumformat:" should be "Linje 2:"

EazyDefcon avatar Dec 06 '20 20:12 EazyDefcon

Line 1 can also have date formatting and Line 2 can have time formatting though. There's a few presets that puts the date in the first line though so powerusers should still figure it out.

Zren avatar Dec 07 '20 00:12 Zren

I made corrections for Line 1 and Line 2 that will work better. sv.zip

EazyDefcon avatar Dec 07 '20 16:12 EazyDefcon

Not sure if I should open a new issue but I am running into a very similar problem with v74 although the reason might be different.

I am using event calendar as a panel widget and after a bunch of trial and error I've realized that plasma shell locks up if I hover over any agenda for more than 2-3 seconds or if I click on the agenda. By locks up I mean I can't do any plasma shell related tasks(event calendar doesn't hide, clicking anywhere on panel or desktop does nothing). Only works after doing killall plasmashell; kstart5 plasmashell similar to others.

Operating System: Debian GNU/Linux 10 KDE Plasma Version: 5.14.5 Qt Version: 5.11.3 KDE Frameworks Version: 5.54.0 Kernel Version: 4.19.0-16-amd64

akshat46 avatar May 16 '21 19:05 akshat46

Hmm. As if displaying the tooltip bugs out? Try deleting the tooltip lines in AgendaEventItem.qml, then restart plasma to confirm.

  • https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/contents/ui/AgendaEventItem.qml#L52-L97
  • ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaEventItem.qml

Zren avatar May 16 '21 20:05 Zren

That fixed it! Are the tooltips supposed to show description of the agendas? Almost all my agendas are massive automatically generated ms teams and zoom meeting events(one of them is an entire email chain), maybe that's the problem here. I am not sure where my logs are being saved but let me know where I can find the logs for event-calendar on debian10 if they are needed to fix this.

akshat46 avatar May 16 '21 23:05 akshat46

Ah, it's possible that the description is taller than the screen height. I remember some issues when testing in plasmoidviewer which has a tiny virtual screen height.

Zren avatar May 16 '21 23:05 Zren

Hi again! I still have problem with Event calendar locking up my entire plasma when I go to settings...

I had to install the latest version of Event calendar as I had problem with syncing with Google. I cannot install it as i did before with an earlier (v.64 ) version of Event calendar and the install the newer version over it (for obvious reason).

I used gdb so I could get some log when it locks up (and also not locking up Plasma) but there is not much error logs.

The only log I get from gdb when entering the settings in Event calendar is this:

file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/AppletConfiguration.qml:133:9: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
[New Thread 0x7fffce15b700 (LWP 2453)]

I tried to install and run Event calendar as root inside gdb and it worked!! No problem when entering settings. So can the problem be with rights?

EazyDefcon avatar Nov 09 '21 18:11 EazyDefcon