media-hub gets stuck after recording/playing videos with camera-app

Bug #1438491 reported by Ricardo Salveti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Incomplete
Undecided
Unassigned
media-hub (Ubuntu)
Incomplete
Undecided
Jim Hodapp
media-hub (Ubuntu RTM)
Incomplete
Undecided
Unassigned

Bug Description

current build number: 260
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2015-03-30 18:17:44
version version: 260
version ubuntu: 20150330
version device: 20150327-f7072d0
version custom: 20150216-561-29-186

To reproduce the issue:
1. Open camera-app
2. Record a single video, then swipe to the camera-roll to preview it, then play it in mediaplayer-app by tapping on it in the camera-roll.
3. Do #2 again for another video.
4. Record several small videos in a row, without trying to view them after each recording. After a few, when this issue shows up, thumbnailer will fail to generate a thumbnail for the recorded video, and mediaplayer-app will not be able to play any video.

In my case media-hub was also consuming 100% of my cpu, and the other apps were also unable to start a new session with media-hub.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Strace shows it's busy in epoll_wait:
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\2\1\1\20\0\0\0T\5\0\0\37\0\0\0\6\1s\0\6\0\0\0:1.107\0\0"..., 48}, {"\1x\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 64
epoll_wait(6, {{EPOLLIN, {u32=33486680, u64=33486680}}}, 128, -1) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\1\0\0011\0\0\0\25\5\0\0\247\0\0\0\1\1o\0%\0\0\0/core/ub"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 233
recvmsg(4, 0xbe938130, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(6, EPOLL_CTL_MOD, 4, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET, {u32=33486680, u64=33486680}}) = 0
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\2\1\1\20\0\0\0U\5\0\0\37\0\0\0\6\1s\0\6\0\0\0:1.107\0\0"..., 48}, {"\1x\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 64
epoll_wait(6, {{EPOLLIN, {u32=33486680, u64=33486680}}}, 128, -1) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\1\0\0011\0\0\0\26\5\0\0\247\0\0\0\1\1o\0%\0\0\0/core/ub"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 233
recvmsg(4, 0xbe938130, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(6, EPOLL_CTL_MOD, 4, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET, {u32=33486680, u64=33486680}}) = 0
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\2\1\1\20\0\0\0V\5\0\0\37\0\0\0\6\1s\0\6\0\0\0:1.107\0\0"..., 48}, {"\1x\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 64
epoll_wait(6, {{EPOLLIN, {u32=33486680, u64=33486680}}}, 128, -1) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\1\0\0011\0\0\0\27\5\0\0\247\0\0\0\1\1o\0%\0\0\0/core/ub"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 233
recvmsg(4, 0xbe938130, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(6, EPOLL_CTL_MOD, 4, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET, {u32=33486680, u64=33486680}}) = 0
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\2

affects: media-hub → ubuntu
affects: ubuntu → media-hub (Ubuntu)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Download full text (11.7 KiB)

Backtrace when attaching with gdb:

#0 0xb62c9712 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0xb6ee93fa in boost::asio::detail::epoll_reactor::run (this=0x1fef6e8, block=block@entry=true, ops=...) at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:392
        timeout = <optimized out>
        events = {{events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 38 times>, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 141392522407575552}}, {events = 32920512, data = {ptr = 0x1f5a0d0, fd = 32874704, u32 = 32874704, u64 = 32874704}}, {
            events = 32872688, data = {ptr = 0x4, fd = 4, u32 = 4, u64 = 4}}, {events = 32920512, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 32920512, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 141392522407575552}}, {events = 32874704, data = {
              ptr = 0x1f598f0, fd = 32872688, u32 = 32872688, u64 = 13176978892729456880}}, {events = 3068944384, data = {ptr = 0xb6e459c5, fd = -1226548795, u32 = 3068418501, u64 = 13181015765591284165}}, {events = 0, data = {ptr = 0xaa903f48, fd = -1433387192,
              u32 = 2861580104, u64 = 13178762878944034632}}, {events = 0, data = {ptr = 0x1f5ef58, fd = 32894808, u32 = 32894808, u64 = 32894808}}, {events = 3197337120, data = {ptr = 0x1f5ef58, fd = 32894808, u32 = 32894808, u64 = 144299029888888664}}, {
            events = 33597384, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 13732458124168658944}}, {events = 33607216, data = {ptr = 0xbe937e20, fd = -1097630176, u32 = 3197337120, u64 = 13177003737984761376}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {
            events = 0, data = {ptr = 0x2, fd = 2, u32 = 2, u64 = 145269464831623170}}, {events = 2, data = {ptr = 0x22b0ddc, fd = 36376028, u32 = 36376028, u64 = 8626310620}}, {events = 36376028, data = {ptr = 0xbe937e4c, fd = -1097630132, u32 = 3197337164,
              u64 = 13123924874283417164}}, {events = 36376028, data = {ptr = 0x2c, fd = 44, u32 = 44, u64 = 193273528364}}, {events = 3069841168, data = {ptr = 0x2d, fd = 45, u32 = 45, u64 = 45}}, {events = 1, data = {ptr = 0x1, fd = 1, u32 = 1,
              u64 = 145246894778482689}}, {events = 2, data = {ptr = 0x3, fd = 3, u32 = 3, u64 = 18161629713510957059}}, {events = 36376028, data = {ptr = 0x6c, fd = 108, u32 = 108, u64 = 145246894778482796}}, {events = 36376028, data = {ptr = 0xbe937f38,
              fd = -1097629896, u32 = 3197337400, u64 = 13732460669986635576}}, {events = 103, data = {ptr = 0x1, fd = 1, u32 = 1, u64 = 463856467969}}, {events = 3197337416, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 13732459361119240192}}, {events = 0, data = {
              ptr = 0x76, fd = 118, u32 = 118, u64 = 13732459567277670518}}, {events = 103, data = {ptr = 0xbe937f38, fd = -1097629896, u32 = 3197337400, u64 = 13732459639194484536}}, {events = 3197337400, data = {ptr = 0x67, fd = 103, u32 = 103,
              u64 = 13123673752938217575}}, {events = 3197337368, data = {ptr = 0xb6fa0f10 <__stack_chk_guard>, fd = -1225126128, u32 = 3069841168, u64 = 13123673481130151696}}, {events = 43, data = {ptr = 0xbe937fec, fd = -1097629716, u32 = 3197337580,
              u64 = 131236...

Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Changed in canonical-devices-system-image:
assignee: nobody → Canonical Phone Foundations (canonical-phonedations-team)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

still valid?

Changed in canonical-devices-system-image:
assignee: Canonical Phone Foundations (canonical-phonedations-team) → John McAleely (john.mcaleely)
status: New → Incomplete
Changed in media-hub (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Revision history for this message
Jim Hodapp (jhodapp) wrote :

Yes I was able to reproduce this with the latest vivid image from 10-23-15.

Changed in canonical-devices-system-image:
status: Incomplete → Confirmed
Changed in media-hub (Ubuntu):
status: New → Triaged
Changed in media-hub (Ubuntu RTM):
status: New → Triaged
Jim Hodapp (jhodapp)
Changed in canonical-devices-system-image:
status: Confirmed → Incomplete
Changed in media-hub (Ubuntu):
status: Triaged → Incomplete
Changed in media-hub (Ubuntu RTM):
status: Triaged → Incomplete
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.