Bug 423898 - Plasma crashes when resumed from suspension
Summary: Plasma crashes when resumed from suspension
Status: CLOSED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-07-05 12:08 UTC by Samarth Hawaldar
Modified: 2020-07-06 10:27 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (78.00 KB, patch)
2020-07-05 12:08 UTC, Samarth Hawaldar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samarth Hawaldar 2020-07-05 12:08:26 UTC
Application: plasmashell (5.18.5)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.4.0-40-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Firefox (the latest update) was being used with some pdf files open in it. Then, the laptop suspended due to inactivity. On resuming, the crash had happened.
- Custom settings of the application:
The following custom script was being run.

Contents of /etc/systemd/system/plasma-restart@.service follow:

#Start of file
[Unit]
Description=Plasma Restart Service 
After=suspend.target 
StopWhenUnneeded=yes

[Service]
User=%i
WorkingDirectory=/home/%i
Type=oneshot
Slice=user-%i.slice
RemainAfterExit=yes
ExecStart=/bin/bash -alc "sudo -Hiu %i pkill -ABRT plasmashell"

[Install]
WantedBy=suspend.target 
Alias=plasma-restart@%i.service

#End of file

After this the following command had been run :

sudo systemctl enable plasma-restart@$USER.service

Also, Network Monitor and Application dashboard widgets were on the desktop.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#6  0x00007f9b8e8e2374 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556f844ad680) at ../sysdeps/nptl/futex-internal.h:183
#7  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556f844ad630, cond=0x556f844ad658) at pthread_cond_wait.c:508
#8  __pthread_cond_wait (cond=0x556f844ad658, mutex=0x556f844ad630) at pthread_cond_wait.c:638
#9  0x00007f9b8f43bb0f in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x556f844ad630) at thread/qwaitcondition_unix.cpp:146
#10 QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=<optimized out>, mutex=0x556f838ebe28, deadline=...) at thread/qwaitcondition_unix.cpp:225


The reporter indicates this bug may be a duplicate of or related to bug 423865.

Possible duplicates by query: bug 423865, bug 423713, bug 423330, bug 423228, bug 423109.

Reported using DrKonqi
Comment 1 Samarth Hawaldar 2020-07-05 12:08:27 UTC
Created attachment 129917 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 David Edmundson 2020-07-06 10:27:07 UTC
>ExecStart=/bin/bash -alc "sudo -Hiu %i pkill -ABRT plasmashell"


Application: Plasma (plasmashell), signal: Aborted
Which isn't surprising given you literally just sent it an abort signal!!

Please fix your script.