Announcement

Collapse
No announcement yet.

plasmashell Memory leak?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] plasmashell Memory leak?

    I was away from my Linux machine for three weeks (work, not play unfortunately) so I powered it up last night. I didn't do anything special, just browsed the forum a bit. This afternoon I was using my browser, ran updates, and all-of-a-sudden like things got rrrrreeeeallll ssslllllooooowwwww.

    A quick check revealed all 16GB of my RAM was full and 4.3GB of swap was in use! plasmashell was occupying 65.4% of my RAM. Not something I've encountered before. I hadn't rebooted since updating anyway, so I did that. I haven't been back at it long enough to see it return. I was using kernel 4.10.0-27, now updated to -29.

    Anyone else see this?
    Last edited by oshunluvr; Jul 30, 2017, 02:31 PM.

    Please Read Me

    #2
    Actually the process looks like it's /usr/bin/plasmashell - computer sat idle for about 45 minutes and memory use is up to 10GB for that one process.

    Please Read Me

    Comment


      #3
      For what it's worth:

      Code:
      don@Hibiscus:~$ ps aux | grep plasmashell
      don      13165  0.1  1.0 4168532 340952 ? Sl   Jul29   2:40 /usr/bin/plasmashell --shut-up
      don      22872  0.0  0.0  15556  1020 pts/1    S+   17:37   0:00 grep plasmashell
      don@Hibiscus:~$ apt policy plasma-desktop
      plasma-desktop:
       Installed: 4:5.8.7.1-1
       Candidate: 4:5.8.7.1-1
       Version table:
      *** 4:5.8.7.1-1 500
             500 http://deb.debian.org/debian unstable/main amd64 Packages
             100 /var/lib/dpkg/status
      don@Hibiscus:~$ uptime
      17:37:51 up 2 days, 10:21,  2 users,  load average: 5.92, 1.92, 0.89
      don@Hibiscus:~$ uname -a
      Linux Hibiscus 4.12.4-towo.1-siduction-amd64 #1 SMP PREEMPT siduction 4.12-5 (2017-07-28) x86_64 GNU/Linux
      don@Hibiscus:~$ free
                   total        used        free      shared  buff/cache   available
      Mem:       32888896     3222400    19400200      496416    10266296    28839424
      Swap:       1048572           0     1048572
      don@Hibiscus:~$

      Comment


        #4
        And my Neon User Edition installation:
        Code:
        [FONT=monospace][COLOR=#000000]$ ps aux | grep plasmashell[/COLOR]
        jerry     2075  0.7  5.4 4600408 322412 ?      Sl   12:12   3:00 /usr/bin/[COLOR=#FF5454][B]plasmashell[/B][/COLOR][COLOR=#000000][/COLOR]
        jerry    23612  0.0  0.0  14228   948 pts/1    S+   19:20   0:00 grep --color=auto [COLOR=#FF5454][B]plasmashell[/B][/COLOR][COLOR=#000000][/COLOR]
        [COLOR=#000000]
        $ apt policy plasma-desktop[/COLOR]
        plasma-desktop:
          Installed: 4:5.10.4-0neon+16.04+xenial+build64
          Candidate: 4:5.10.4-0neon+16.04+xenial+build64
          Version table:
         *** 4:5.10.4-0neon+16.04+xenial+build64 500
                500 http://archive.neon.kde.org/user xenial/main amd64 Packages
                100 /var/lib/dpkg/status
             4:5.10.3-0neon+16.04+xenial+build63 500
                500 http://archive.neon.kde.org/user xenial/main amd64 Packages
             4:5.10.2-0neon+16.04+xenial+build62 500
                500 http://archive.neon.kde.org/user xenial/main amd64 Packages
             4:5.10.1-0neon+16.04+xenial+build61 500
                500 http://archive.neon.kde.org/user xenial/main amd64 Packages
             4:5.5.5-0ubuntu1 500
                500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        [COLOR=#000000]
        $ free[/COLOR]
                      total        used        free      shared  buff/cache   available
        Mem:        5946632     1685824      641148       33288     3619660     3880156
        Swap:             0           0           0
        
        [/FONT]
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          So I removed all my desktop widgets and let it run all night. Here's where I'm at right now;
          Code:
          [FONT=monospace][COLOR=#000000]stuart    1771  0.3  2.6 4543448 437240 ?      Sl   Jul30   3:05 /usr/bin/[/COLOR][COLOR=#FF5454][B]plasmashell[/B][/COLOR]
          [COLOR=#000000][/COLOR]
          [/FONT][FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ apt policy plasma-desktop[/COLOR]
          plasma-desktop:
            Installed: 4:5.10.4-0neon+16.04+xenial+build64
            Candidate: 4:5.10.4-0neon+16.04+xenial+build64
            Version table:
           *** 4:5.10.4-0neon+16.04+xenial+build64 500
                  500 http://archive.neon.kde.org/user xenial/main amd64 Packages
                  100 /var/lib/dpkg/status
               4:5.10.3-0neon+16.04+xenial+build63 500
                  500 http://archive.neon.kde.org/user xenial/main amd64 Packages
               4:5.10.2-0neon+16.04+xenial+build62 500
                  500 http://archive.neon.kde.org/user xenial/main amd64 Packages
               4:5.10.1-0neon+16.04+xenial+build61 500
                  500 http://archive.neon.kde.org/user xenial/main amd64 Packages
               4:5.5.5-0ubuntu1 500
                  500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
          [/FONT][FONT=monospace][COLOR=#54FF54][B]
          stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ free[/COLOR]
                        total        used        free      shared  buff/cache   available
          Mem:          16005        3742        8724         195        3538       11645
          Swap:         16383           0       16383
          
          [/FONT]

          Please Read Me

          Comment


            #6
            I added back Folder View widget, and now:
            Code:
            [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ ps aux |grep plasmashell  [/COLOR]
            stuart    1771  0.3  3.0 4557928 492900 ?      Sl   Jul30   3:15 /usr/bin/[COLOR=#FF5454][B]plasmashell[/B][/COLOR][COLOR=#000000][/COLOR]
            stuart   31960  0.0  0.0  14224  1016 pts/0    S+   09:44   0:00 grep --color=auto [COLOR=#FF5454][B]plasmashell[/B][/COLOR][COLOR=#000000][/COLOR]
            [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ free[/COLOR]
                          total        used        free      shared  buff/cache   available
            Mem:          16005        3980        8178         196        3846       11405
            Swap:         16383           0       16383
            [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ [/COLOR]
            
            [/FONT]

            Please Read Me

            Comment


              #7
              Piling on

              Code:
              wizard@wizard-laptop:~$ ps aux | grep plasmashell
              wizard     847  0.2  1.8 3605476 152104 ? Sl   16:10   0:06 /usr/bin/plasmashell
              wizard    2070  0.0  0.0  12788   956 pts/1    S+   16:52   0:00 grep plasmashell
              
              wizard@wizard-laptop:~$ free
                          total        used        free      shared  buff/cache   available
              Mem:        8116744      413688     6984740       10064      718316     7446972
              Swap:       4198396           0     4198396
              
              wizard@wizard-laptop:~$ apt policy plasma-desktop
              plasma-desktop:
              Installed: 4:5.8.7.1-1
              Candidate: 4:5.8.7.1-1
              Version table:
              *** 4:5.8.7.1-1 500
                    500 http://cdn-fastly.deb.debian.org/debian unstable/main amd64 Packages
                    100 /var/lib/dpkg/status
              wizard@wizard-laptop:~$
              we see things not as they are, but as we are.
              -- anais nin

              Comment


                #8
                and some more

                Code:
                vinny@vinny-Bonobo-Extreme:~$ ps aux | grep plasmashell
                vinny    14803  0.0  0.0  14224   976 pts/2    S+   17:02   0:00 grep --color=auto plasmashell
                vinny    16474  0.1  2.2 4860316 372328 ? Sl   Jul30   2:03 /usr/bin/plasmashell
                
                vinny@vinny-Bonobo-Extreme:~$ apt policy plasma-desktop
                plasma-desktop:
                Installed: 4:5.10.4+p16.04+git20170729.0152-0
                Candidate: 4:5.10.4+p16.04+git20170729.0152-0
                Version table:
                *** 4:5.10.4+p16.04+git20170729.0152-0 500
                      500 http://archive.neon.kde.org/stable xenial/main amd64 Packages
                      100 /var/lib/dpkg/status
                   4:5.5.5-0ubuntu1 500
                      500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
                
                vinny@vinny-Bonobo-Extreme:~$ uptime
                17:03:31 up 2 days, 23 min,  4 users,  load average: 0.02, 0.06, 0.08
                
                vinny@vinny-Bonobo-Extreme:~$ uname -a
                Linux vinny-Bonobo-Extreme 4.10.0-26-generic #30~16.04.1-Ubuntu SMP Tue Jun 27 09:40:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
                
                vinny@vinny-Bonobo-Extreme:~$ free -h
                            total        used        free      shared  buff/cache   available
                Mem:            15G        1.6G        8.8G         48M        5.2G         13G
                Swap:          4.0G          0B        4.0G
                vinny@vinny-Bonobo-Extreme:~$
                VINNY
                i7 4core HT 8MB L3 2.9GHz
                16GB RAM
                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                Comment


                  #9
                  So about 9 hours later, it seems to be stable:
                  Code:
                  [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ ps aux |grep plasmashell[/COLOR]
                  stuart    1771  0.3  3.0 4562136 500460 ?      Sl   Jul30   5:10 /usr/bin/[COLOR=#FF5454][B]plasmashell[/B][/COLOR]
                  stuart   15732  0.0  0.0  14224  1024 pts/0    S+   18:37   0:00 grep --color=auto [COLOR=#FF5454][B]plasmashell[/B][/COLOR]
                  [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ free[/COLOR]
                                total        used        free      shared  buff/cache   available
                  Mem:          16005        3608        8306         276        4090       11694
                  Swap:         16383           0       16383
                  [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ [/COLOR]
                  
                  [/FONT]
                  It's going up and down small amounts as one would expect. I will now add back the clock widget...

                  Please Read Me

                  Comment


                    #10
                    Definitely growing:
                    Code:
                    [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ ps aux |grep plasmashell     [/COLOR]
                    stuart    1771  0.3  3.2 5089936 527524 ?      Sl   Jul30   9:35 /usr/bin/[COLOR=#FF5454][B]plasmashell[/B][/COLOR][COLOR=#000000][/COLOR]
                    stuart   15067  0.0  0.0  14224   976 pts/0    S+   12:36   0:00 grep --color=auto [COLOR=#FF5454][B]plasmashell[/B][/COLOR][COLOR=#000000][/COLOR]
                    [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ free[/COLOR]
                                  total        used        free      shared  buff/cache   available
                    Mem:          16005        7325        3345          83        5333        8158
                    Swap:         16383           0       16383
                    
                    [/FONT]

                    Please Read Me

                    Comment


                      #11
                      Any other widgets besides the clock widget adding to the memory leak?
                      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                      – John F. Kennedy, February 26, 1962.

                      Comment


                        #12
                        Yeah, I added back the Media Frame widget and Event Calendar widget and it went to over 12GB. Then the screen flashed black and it dropped back to 7.1GB. It appears something restarted plasmashell on it's own.

                        Please Read Me

                        Comment


                          #13
                          apport.log
                          Code:
                          [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]/var/log[/B][/COLOR][COLOR=#000000]$ cat apport.log   [/COLOR]
                          ERROR: apport (pid 15490) Tue Aug  1 12:43:08 2017: called for pid 1771, signal 11, core limit 0
                          ERROR: apport (pid 15490) Tue Aug  1 12:43:09 2017: executable: /usr/bin/plasmashell (command line "/usr/bin/plasmashell")
                          ERROR: apport (pid 15490) Tue Aug  1 12:43:09 2017: gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
                          
                          ERROR: apport (pid 15490) Tue Aug  1 12:43:09 2017: debug: session gdbus call:  
                          ERROR: apport (pid 15490) Tue Aug  1 12:44:21 2017: wrote report /var/crash/_usr_bin_plasmashell.1000.crash
                          ERROR: apport (pid 19429) Tue Aug  1 14:04:56 2017: called for pid 15394, signal 11, core limit 0
                          ERROR: apport (pid 19429) Tue Aug  1 14:04:56 2017: executable: /usr/bin/plasmashell (command line "/usr/bin/plasmashell")
                          ERROR: apport (pid 19429) Tue Aug  1 14:04:56 2017: gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
                          
                          ERROR: apport (pid 19429) Tue Aug  1 14:04:56 2017: debug: session gdbus call:  
                          ERROR: apport (pid 19429) Tue Aug  1 14:04:56 2017: apport: report /var/crash/_usr_bin_plasmashell.1000.crash already exists and unseen, doing nothing to avoid disk usage DoS
                          [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]/var/log[/B][/COLOR][COLOR=#000000]$ [/COLOR]
                          
                          [/FONT]

                          Please Read Me

                          Comment


                            #14
                            This bug might also be related: https://bugs.kde.org/show_bug.cgi?id=381280

                            Comment


                              #15
                              Originally posted by uvarvu View Post
                              This bug might also be related: https://bugs.kde.org/show_bug.cgi?id=381280
                              Yeah, thanks for that. It does look related. I'll keep an <O> on it...

                              Please Read Me

                              Comment

                              Working...
                              X