← Back to team overview

touch-packages team mailing list archive

[Bug 1410506] Re: MTP looping between start and stopping causing constant ~10% cpu load

 

There was a crash and then mtp-server restarting in loop, which caused it to show on top:
phablet@ubuntu-phablet:~$ cat ./.cache/upstart/mtp-server.log 
I0114 20:04:11.081110  2914 server.cpp:419] MTP server starting...
E0114 20:04:11.103268  2914 server.cpp:440] Could not start the MTP server:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.UnityGreeter was not provided by any .service files
I0114 20:04:21.545111  3012 server.cpp:419] MTP server starting...
E0114 20:04:21.571146  3012 server.cpp:440] Could not start the MTP server:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.UnityGreeter was not provided by any .service files
I0114 20:04:32.033162  3334 server.cpp:419] MTP server starting...
E0114 20:55:23.626266  3334 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 20:55:27.263805  5108 server.cpp:419] MTP server starting...
I0114 20:56:21.600800  3143 server.cpp:419] MTP server starting...
E0114 21:02:16.476572  3143 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:16.623710  4157 server.cpp:419] MTP server starting...
E0114 21:02:16.651300  4157 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:17.229143  4175 server.cpp:419] MTP server starting...
E0114 21:02:17.250813  4175 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:17.651392  4196 server.cpp:419] MTP server starting...
E0114 21:02:17.668025  4196 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:17.769384  4212 server.cpp:419] MTP server starting...
E0114 21:02:17.790657  4212 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:18.251240  4226 server.cpp:419] MTP server starting...
E0114 21:02:18.267659  4226 MtpServer.cpp:174] request read returned -1: Input/output error [5]
*** Error in `/usr/bin/mtp-server': double free or corruption (!prev): 0x01d78008 ***
I0114 21:02:21.462715  4249 server.cpp:419] MTP server starting...
E0114 21:02:21.476754  4249 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:21.872237  4259 server.cpp:419] MTP server starting...
E0114 21:02:21.888077  4259 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:22.478128  4276 server.cpp:419] MTP server starting...
E0114 21:02:22.494457  4276 MtpServer.cpp:174] request read returned -1: Input/output error [5]
I0114 21:02:22.977716  4292 server.cpp:419] MTP server starting...

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mtp in Ubuntu.
https://bugs.launchpad.net/bugs/1410506

Title:
  MTP looping between start and stopping causing constant ~10% cpu load

Status in mtp package in Ubuntu:
  Confirmed

Bug description:
  When unplugged from USB, I notice when running $ top that init, dbus-
  daemon, mpdecision are constantly using in total ~10% CPU.

  The steps I have performed to cause this:
  1) Ensure the device is off
  2) Plug a USB cable into the device and a computer with MTP support
  3) Boot the device
  4) Unlock the device, run the terminal and the command $ top
  5) Wait until the CPU settles, then unplug the USB cable
  6) Now notice that init, dbus-daemon, mpdecision start using ~10% CPU

  This is the output from running dbus-monitor [0]

  Note that when I plugged my device into a PC the CPU usage reduced
  back to normal, but then when I unplugged it again it increased back
  to ~10% again.

  0 - http://pastebin.ubuntu.com/9734788/

  $ system-image-cli -i
  current build number: 161
  device name: mako
  channel: ubuntu-touch/ubuntu-rtm/devel-proposed
  alias: ubuntu-touch/ubuntu-rtm/14.09-proposed
  last update: 2015-01-13 18:37:40
  version version: 161
  version ubuntu: 20150113
  version device: 20141119
  version custom: mako-1.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtp/+bug/1410506/+subscriptions


References