No sound notification for new SMS (Ubuntu Touch)

Bug #1544477 reported by Anupam
150
This bug affects 34 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
John McAleely
indicator-sound (Ubuntu)
Invalid
Undecided
Unassigned
media-hub (Ubuntu)
Invalid
Undecided
Alfonso Sanchez-Beato
pulseaudio (Ubuntu)
Invalid
High
Hui Wang
qtmultimedia-opensource-src (Ubuntu)
Invalid
High
Unassigned
telephony-service (Ubuntu)
Fix Released
High
Alfonso Sanchez-Beato
unity8 (Ubuntu)
Fix Released
High
Alfonso Sanchez-Beato

Bug Description

I noticed for last 2-3 days there is no sound notification for a new SMS, but there's a blinking green LED notification. Also in the indicator menu the envelope icon turns green and the new SMS is listed as usual. Things are working alright for Telegram, Gmail etc. (sound+LED+indicator menu).

Device: bq Aquaris E5 HD, Ubuntu 15.04 (OTA-9)

UPDATE: Screenshots get silent too.

Tags: audio

Related branches

Anupam (anupam207)
summary: - No sound and LED notification for new SMS Ubuntu Touch
+ No sound notification for new SMS (Ubuntu Touch)
description: updated
Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

On Meizu MX4 with OTA-9 installed, I have the green envelope OK, the vibration notification also works but there is no sound. Tried the following sounds; Amsterdam (Default), Mallet and Positive - all have the same outcome - no sound produced on a new SMS.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

When you are in this state please check if other audio plays, like with the music app. If not this is probably bug #1542947 and a reboot should fix it.

Changed in indicator-messages (Ubuntu):
assignee: nobody → Pat McGowan (pat-mcgowan)
status: New → Incomplete
Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

On my MX4, then this is a permanent issue, that is, a reboot or forced-reboot (power button held for 10 seconds) does not clear it - opening Music and playing tracks, incoming calls and going into System Settings | Sound and selecting different sounds (Amsterdam, Positive, etc) all cause playing of the tune (with the stop icon at the bottom of the screen when in the System Settings | Sound screen).

It's just that when you leave the phone and an SMS comes in, it just vibrates and doesn't give any sound - it gives sound and vibration when a call comes in still.

Revision history for this message
Anupam (anupam207) wrote :

Thanks Pat McGowan (pat-mcgowan), other sounds (incoming call, music player, youtube on browser, notification from telegram, gmail etc.) were playing fine except the incoming SMS notification. Then I restarted the device and now sound notification for incoming SMS works again!
But I found something a bit abnormal. During these sound alerts (I tried SMS and Telegram for now), a very mild crackling noise is heard for a second (or a fraction of a second) before and after the actual alert tune. Something like Bug #1479758 . I don't remember hearing this noise previously.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

The volume for notifications is currently separate from the ringtone (default) setting. I suspect yours is at the lowest setting. Try turning up the volume as soon as an incoming notification is on screen. And yes this is rather tricky to do and we will modify this behavior in the future

Alternately from the command line you can remove all the current settings and go back to defaults:
rm /home/phablet/.config/pulse/ubuntu-phablet-stream-volumes.tdb
and restart the phone.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Actually my comment previously is not correct, the alerts seems to be following the multimedia volume level used for music playback so at this point I am not sure why you have no audio for text messages.

Please attach the pulse config file from the previous comment to the bug.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

also please attach the log file from /home/phablet/.cache/upstart/media-hub.log

Revision history for this message
Anupam (anupam207) wrote :

As I mentioned in comment #4 sound alert for new SMS is working again after reboot. Nevertheless I deleted (from file browser, not using terminal) the ubuntu-phablet-stream-volumes.tdb file and rebooted as suggested in comment #5. Sound alert for text, call, Telegram - all working fine now. The new ubuntu-phablet-stream-volumes.tdb file is attached herewith.

Revision history for this message
Anupam (anupam207) wrote :

here's the media-hub.log file

Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

here's the ubuntu-phablet-stream-volumes.tdb file from my mx4

Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

and also the media-hub.log file (again from my mx4) as requested.

Many thanks for your help so far.

Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

ah, just deleted the ubuntu-phablet-stream-volumes.tdb file and rebooted the mx4 - sound is back - great, thanks for the suggestion.

Volume (in System Settings | Sound) never made a difference when I tried to adjust before.

thx again.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

While I am glad that fixed it for you I am not yet sure how it came to be in that state. Will keep the bug open for now.

Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

OK, thx, I also raised a question https://answers.launchpad.net/ubuntu/+source/ubuntu-settings/+question/285197 (but may have posted into the wrong place) asking if there's any apps or methods of changing the volumes independently as on Android as I hadn't found anything when searching the web, however there were no suggestions given.

Wonder if you could share some light - at present if this happens again is the only way forwards to delete the file again. As with any issue, it isn't a solution but a usable workaround currently.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Dump of the bad config

key 30 bytes
sink-input-by-media-role:phone
data 18 bytes
[000] 42 01 31 6D 01 00 76 01 00 00 F0 A0 30 30 30 4E B.1m..v. ....000N
[010] 30 4E 0N

key 38 bytes
sink-input-by-media-role:feedbacksound
data 23 bytes
[000] 42 01 31 6D 02 01 02 76 02 00 01 00 00 00 01 00 B.1m...v .......
[010] 00 31 30 30 4E 30 4E .100N0N

key 30 bytes
sink-input-by-media-role:alert
data 18 bytes
[000] 42 01 31 6D 01 00 76 01 00 00 19 99 30 30 30 4E B.1m..v. ....000N
[010] 30 4E 0N

key 35 bytes
sink-input-by-media-role:multimedia
data 18 bytes
[000] 42 01 31 6D 01 00 76 01 00 00 2E 14 31 30 30 4E B.1m..v. ....100N
[010] 30 4E 0N

key 38 bytes
source-output-by-media-role:multimedia
data 13 bytes
[000] 42 01 30 6D 00 76 00 30 30 30 4E 30 4E B.0m.v.0 00N0N

key 30 bytes
sink-input-by-media-role:alarm
data 18 bytes
[000] 42 01 31 6D 01 00 76 01 00 00 BC 53 30 30 30 4E B.1m..v. ...S000N
[010] 30 4E 0N
tdb>

no longer affects: indicator-messages (Ubuntu)
tags: added: audio
Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
importance: Undecided → Medium
milestone: none → backlog
status: New → Confirmed
Changed in media-hub (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

I believe that it is inconsistent (more than just putting into silent and back out).
I had my MX4 in silent on Friday evening then back to normal
Saturday seemed OK
Sunday morning I thought the SMS sound notification wasn't working (vibration still good) - I had to hard reset my phone 2-3 times to get bluetooth working again to my headset and phone app crashed as locked up the screen (bluetooth kept connecting but no voice transferred, then after 2-3 hard resets (power button for 10 secs) all came good again).
Sunday evening SMS notifications all ok for multiple texts from multiple people, sent various SMS's and a single MMS, again OK
received SMS after this, sound still good
Something happened (unknown what though)
now sound failed again on SMS...

Would you like a copy of the ubuntu-phablet-stream-volumes.tdb file again or anything else I can provide to assist?

Revision history for this message
Jim Hodapp (jhodapp) wrote :

Anupam: I don't see anything wrong from the media-hub.log, at least with this portion of the media stack. I'm thinking it may be an issue with pulseaudio but this bug will require deeper investigation to really know for sure. Anupam, which of the .ogg files listed in your media-hub.log do you currently have set for playing for SMS notifications?

Geoff: Can you please attach your media-hub.log file right after this occurs for you as well? I'd like to double check.

Changed in media-hub (Ubuntu):
status: New → Incomplete
Changed in pulseaudio (Ubuntu):
assignee: nobody → David Henningsson (diwic)
Revision history for this message
Anupam (anupam207) wrote :

Hello Jim. the log file I attached before was from the time when every sound notification was working fine right after a reboot. But I'm seeing this issue every now and then. Usually deleting ubuntu-phablet-stream-volumes.tdb file, rebooting device for once (sometimes twice) etc. make things normal again. I'll try to get the log file when there's no SMS sound next time.

Meanwhile, I'm not sure whether it's a mere coincidence or the causality, but I noticed the issue after these steps for the last 2-3 times:
1. Toggle the "Silent Mode" on from the indicator menu
2. Keep the device in "Silent Mode" for 2-3 hours
3. Deactivate "Silent Mode" from the indicator menu

I mostly use Mallet.ogg files as SMS tone, sometimes switch to Positive.ogg

Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

here's a zip of the media hub files before and after it going wrong (I'm assuming that this is what the .gz files are). I don't recall changing the volume or silent status until after it went wrong yesterday apart from on Friday evening when it was on silent for around 1-2 hours. Media-hub-7.gz should show when it was in silent mode (Friday evening). Hope this info is useful - if not and you need something else please holla.

Revision history for this message
Geoff Lowther (r-ubuntuone-b) wrote :

I did change the sounds from the default to positive the other week as I thought I was missing text messages due to not hearing them - then I did the tests and found it was due to only the vibration working - before it was left on the Amsterdam default.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

Thanks for the info and logs Geoff and Anupam. The first step will be to try and reproduce this issue locally and see if we can identify the root cause.

Revision history for this message
Anupam (anupam207) wrote :

Here's the media-hub.log file when there's no sound alert for new SMS. Sound alert for new Telegram message is working fine. Also I wanted to mention another fact in case it turns out helpful. Even when the sound alert is working for SMSs, new Telegram message alert is significantly louder than new SMS alert although both play the same tone (chosen in System Settings > Sound > Message received).

Revision history for this message
Anupam (anupam207) wrote :

also the aforementioned tdb file when there's no sound alert

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
Anupam (anupam207) wrote :

Just noticed something, when this issue appears, taking screenshots also doesn't produce any sound.

Revision history for this message
SB (emehntehtt) wrote :

I noticed this bug for a while now, SMS sounds get muted for no apparent reason (while other sounds work) and they arent back unless I reboot the phone. This persists for a long time now, so far after OTA-11 I didnt experience the issue, but I didnt receive many SMS messages since OTA-11 so it may not mean anything, as most people send me a Telegram message. I will monitor the situation further.

Revision history for this message
SB (emehntehtt) wrote :

Then probably I just didnt encounter it yet, strange that all other sounds continue working normally but SMS does not. I hope developers will be able to discover what is causing this issue.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

Continue to see if you can find a definite pattern to what's causing this. It's indeed a tricky issue and your patience on this is greatly appreciated.

Revision history for this message
SB (emehntehtt) wrote :

@Anupam I will see next time sound gets muted, didnt try screenshots before when it happened.

Revision history for this message
SB (emehntehtt) wrote :

It happened again and neither SMS nor screenshot sound is heard.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

Seems to me like that audio role's volume is getting set to 0%. If I remember right, SMS alerts and the screenshot sound both use the same audio role. One way to check this is to watch the media-hub log from a shell by doing "tail -f /home/phablet/.cache/upstart/media-hub.log" You'll be looking for a line that details the audio role and match the filename to the one you're expecting (SMS being one, screenshot sound being another). If you then validate that they're listed as the same roles that will be a first step. Next step would be to try other things that might be the same role type and verify again in the media-hub.log that they are the same role. Lastly, begin to verify that only this audio role type sounds are the ones that aren't playing.

Revision history for this message
Anupam (anupam207) wrote :

@Jim could you please have a look at my media-hub log file:
https://launchpadlibrarian.net/243178199/media-hub.log
(This is an old log from a time when the issue was present. Alert tone for SMS was Mallet.ogg)
Also ubuntu-phablet-stream-volumes.tdb file from the same time is here:
https://bugs.launchpad.net/ubuntu/+source/media-hub/+bug/1544477/comments/24

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: can you get a latest media-hub.log when this bug happens to you again? I want to trace that knowing that you have the latest stable code.

Revision history for this message
Anupam (anupam207) wrote :

@Jim I'm experiencing the issue again. Here's the latest media-hub.log file (June 12, '16). Do you want me to upload the ubuntu-phablet-stream-volumes.tdb file too?

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: sure that certainly couldn't hurt to have.

Revision history for this message
Anupam (anupam207) wrote :

@Jim here you are

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: thanks

Changed in pulseaudio (Ubuntu):
importance: Undecided → Medium
assignee: David Henningsson (diwic) → Anthony Wong (anthonywong)
Changed in media-hub (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Ren (ubuntech) wrote :

I'm experiencing the same issue than Anupam's one.
and also for Calendar notifications, and for me
it is since OTA-11.
After one day less or more there is no sound notifications.
I cannot know what is the reason.

Revision history for this message
Anupam (anupam207) wrote :

@Ren Calendar is a separate issue I believe: bug #1584102

Changed in pulseaudio (Ubuntu):
assignee: Anthony Wong (anthonywong) → Hui Wang (hui.wang)
Revision history for this message
Piotr Mitana (pmitana) wrote :

On Meizu Pro 5 I experience problems with SMS notification sound too. Usually after a reboot the SMS sound is played properly, but after some time (seems to be random) it stops working.

Anupam (anupam207)
description: updated
Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: it's possible - if you could keep an eye on this and see if you see a direct correlation here between running out of memory and losing the notification sound for SMS messages.

Revision history for this message
SB (emehntehtt) wrote :

I never noticed any correlation between memory usage and SMS notifications dying, but you never know.

Revision history for this message
Fly (nclauzel) wrote :

I don't have sound notification on new SMS at the moment on my Nexus 4. It was working properly before (before OTA-11 ?). From parameters it should sound and vibrate, none is done. And I am not in silent mode.

It's a serious issue for my daily use.

Revision history for this message
Anupam (anupam207) wrote :

Probably not related to the running-out-memory issue... incoming texts and screenshots become silent even when there is no such low memory problem

Revision history for this message
Buzea Bogdan (bogdanke8) wrote :

I dont understand why this bug is MEDIUM when is critical for every phone user???
Yesterday I had the same problem, and a reboot solved this issue. But until when?? I work with clients and it's important to answer to sms ASAP.

Revision history for this message
GTriderXC (gtriderxc) wrote :

Hi Bogdan! I'm the same opinion as You but even if this bug is fixed, the problem doesn't disappear because of another bug i reported here:
https://bugs.launchpad.net/ubuntu-ux/+bug/1579570

Until the bug 1579570 hangs over our heads (and it doesn't even have an importance set) it is all the same if the phone tries to ring or not cause we hardly hear it anyway. Join the bug report 1579570 if You think it makes sense and I think it is perhaps not technically but a bigger problem.

Jim Hodapp (jhodapp)
Changed in canonical-devices-system-image:
importance: Medium → High
Changed in pulseaudio (Ubuntu):
importance: Medium → High
Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: can you try doing the top portion of comment #5 where you try and turn up the volume. Like Pat said this can be tricky, but see if you're able to do that. This will help confirm if it's indeed a volume issue or some other PulseAudio configuration issue.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This is most likely a symptom of bug #1506953 (mediahub crashes) or bug #1596329 (mediahub hangs). It can be recreated by killing the media-hub-server process, in most cases neither SMS or screenshot sounds are played.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: no worries, refer to Pat's comment in #53. We're pretty confident we've tracked down the source of the problem and how to fix it.

Revision history for this message
Ren (ubuntech) wrote :

Sorry Anupam : I did not want to pollute this complex bug-id
but I wished to point out that the problem may be an
interaction between several applications that use the system
sound notifications. I believe it...
I decided to create notifications at the same time for
several applications (sms/calendar/and clock alarm)
at 19:30 every day...
Soon, the sound becomes mute after first notification...
or after a while...

Revision history for this message
Hui Wang (hui.wang) wrote :

I did not reproduce this problem yet.

But according to the comment #48, when problem happens, neither sound notification nor vibration work. So it does not look like a pulseaudio problem since the vibration does not work too.

When problem happens, to check if media-hub-server sends playing request to pulseaudio or not, we can do test as below:

1) Problem happens

2) Use adb shell to connect the phone with computer

3) set environment variable according to /usr/share/upstart/sessions/pulseaudio.conf
e.g.:
$export PULSE_SCRIPT=/etc/pulse/touch.pa
$export PULSE_CLIENTCONFIG=/etc/pulse/touch-client.conf
$export PULSE_PROP='media.role=multimedia'
$export PULSE_PLAYBACK_CORK_STALLED=1

4) $pulseaudio --kill && pulseaudio --start -vvvv --log-target=file:/tmp/a.txt

5) check /tmp/a.txt, make sure the pulseaudio starts successfully

6) $cp /tmp/a.txt /tmp/before-sms.txt

7) send a text message to your phone, trigger a sms event

8) $cp /tmp/b.txt /tmp/after-sms.txt

9) comparing before-sms.txt and after-sms.txt (or upload them to LP)

If this problem does not happen, the diff should be like the attached file, we can see the media-hub-server really sent playing request to pulseaudio when receiving text message.

Hui Wang (hui.wang)
Changed in pulseaudio (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jim Hodapp (jhodapp) wrote :

@hui.wang: When it's happened to me vibration still does work but I just don't hear any notification sound. I'll run through those steps that you listed above the next time it happens.

Revision history for this message
Anupam (anupam207) wrote :

I second Jim. Vibration works alright, only sound alert is not working.

Revision history for this message
Daniel Frost (danfro) wrote :

Recently I was taking some photos with my BQ E5.
On the first couple of photos I did get the normal shutter sound.
After I think maybe 3 or 4 photos there was no shutter sound any more.
I am not sure if this goes along with loosing the sound on incoming SMS.

BUT I did find that - at least at this last occasion - loosing the shutter sound did go along with a sudden akku drainage. I did experience this akku drainage before (see screenshots), but this time I could tell when it started.
Maybe that helps. If you do need any logs let me know.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@jim that kinda sounds like media-hub or some service got into a loop
would be interesting to run top command when tat happens, we could check the media-hub log also.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Pat: Tough to say, I've only had this happen to me once myself and it didn't seem like media-hub as I was still able to play music and do other things with media-hub. My theory is still that the volume for the particular audio role is getting set to a very low volume.

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

Hello, I proposed a merge in indicator-sound (lp:~d.filoni/indicator-sound/pulse_fix_set_volume_role) that could fix this however I'm not sure the issue is the same.

@Anupam and anyone else affected:

1 - is there any chance volume buttons get pressed accidentally while phone is in your pocket? Alert role volume is changed also when phone is locked.
2 - can you describe volume icon at the top of the screen when you miss a notification? Is it mute? Does it show two gray waves?
3 - do you often play music on phone or video content?
4 - could you try (close all apps before this) to adjust volume after typing a number in dialer-app? You should hear a sound when typing a digit (dialer keypad tones should be enabled in sound settings), maybe you'll hear the sound only after you increase the volume. This should adjust alert role (used by sms) volume and as result fix the issue (without having to remove /home/phablet/.config/pulse/ubuntu-phablet-stream-volumes.tdb file). This test could also confirm Jim's theory about a roles issue.

Thank you

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Devid: those are excellent things to try and a very good theory as well. We really need to figure out how to reliably reproduce this issue before really being able to say where and what to fix.

Revision history for this message
Anupam (anupam207) wrote :

@Devid Thanks for your suggestions. To answer your queries:
1. I don't think so.
2. If I remember correctly, the sound icon doesn't change. I'll check again.
3. No, I seldom play music and videos on the phone.
4. I'll check this once the issue reappears. I already tried the top portion of comment #5 (try to turn up the volume as soon as an SMS arrives), but didn't seem helpful. It only changed the speaker volume which was already high.

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

@Anupam: interesting, once the issue reappears could you also try to post the output of the command (as user) 'pactl list sink-inputs':
- as soon as you unlock the phone
- as soon as you type few digits in dialer-app (step 4 of my previous comment)
This could tell us if the issue is about roles switch (maybe the muted feedbacksound role gets wrongly used, it should be active only when not-playing audio)

3 (again) - Do you play any mobile game (or any other app installed from store which uses audio)? (sorry, I forgot to mention this in my original question). An app using multimedia role constantly in background could cause the issue I found in indicator-sound.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@anupam the two issues mentioned in comment #53 have landed in proposed so interested to see if you still have the problem

@david I asked one of the devs to review your MR next week

Revision history for this message
Anupam (anupam207) wrote :

@Pat I'm on stable channel (this is my daily driver). So I guess I'll have to wait till OTA-13.

Revision history for this message
Vincas Dargis (talkless) wrote :

I have same problem on OTA-12, BQ E5.

Attaching tailed unity8 and syslog.

Note that there are lot's of these lines:

"""
Failed to get current playback position: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
"""

...which do disssapear after reboot, and after reboot, sms notification sound start working again (for some time...).

Revision history for this message
Anupam (anupam207) wrote :

@Devid The issue reappeared and I tried everything you suggested. Here are the observations/outputs:
- Sound icon doesn't change while receiving an SMS
- I tried step 4 of your original suggestion (adjust volume after typing a number in dialer-app). While typing numbers dialer-app produced dialpad-tone as usual. But pressing volume buttons after that only changed the "speaker volume" which was already high.
- I seldom use apps which use audio.
- Output of 'pactl list sink-inputs' are attached herewith.

Revision history for this message
Anupam (anupam207) wrote :

@Devid also please have look at comment #69 by Vincas, it looks interesting.

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

@Vincas: your issue looks similar to bug #1506953 (fixed in OTA-13) so looks like media-hub is crashed for you, do you have any crash log in /var/crash?

@Anupam: thank you for your answers, I don't think this is a role volume issue anymore, can you check if you have the same "Failed to get current playback position" error as reported by Vincas in your ~/.cache/upstart/unity8.log file?
Another question: after step 4 of my original suggestion, have you tried if incoming SMS were working again?

Revision history for this message
GTriderXC (gtriderxc) wrote :

This bug came to me back today so I can help now as well.

@Devid: I do not see any "Failed to get current playback position" in my logs.

And Your last question: the one and >only< way I found to get sms sounds back is to reboot the phone. And there is many things like this that cease to function unless we reboot. That's what I noticed in case of screen rotation and music player: the longer we hear+use other function/apps the sooner a Music Player will crash (like here: Bug #1611249).

>>>SMS notifications seem to go off always after some >count< of received messages<<< (or after uptime but I can't confirm-I receive to many messages)

I noticed no other influence. It has nothing to do with games/Music players etc. but rather if with anything than with memory consumption (is there no system monitor for this phone?) I think the Bug #1611249 is pretty interesting that at first we are unable to launch any app and then suddenly after some time notification area repairs, Music player starts somehow if it doesn't have to load a playlist (when we open a file with the app, not start the app itself cause then it crashes). When my music player crashes, for some time I'm unable to open any app in the system. I have to wait a few minutes or reboot. Sms issue is quite opposite: it never started to play sounds again.

Revision history for this message
GTriderXC (gtriderxc) wrote :

Ps.
Sorry that path with a memory was wrong. I just reminded myself that as I was unable to start any app, I still got a sound notification with a message. The uptime of the phone was however big. So it has rather more to do with an amount of the messages we already received. After some certain count, perhaps by some certain unknown conditions, something goes always wrong.

Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu):
assignee: Jim Hodapp (jhodapp) → Alfonso Sanchez-Beato (alfonsosanchezbeato)
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I have tested the screenshot case in turbo, where I heard no sound, and in frieza, where sound is working (see attached logs). In turbo I saw in unity8.log:

[2016-08-16:15:21:08.524] [PERFORMANCE]: Last frame took 32 ms to render.
[2016-08-16:15:21:09.087] virtual void AalMediaPlayerControl::stop()
...
[2016-08-16:15:21:09.090] virtual void AalMediaPlayerControl::play()
[2016-08-16:15:21:09.091] void AalMediaPlayerService::play()
...
[2016-08-16:15:21:09.689] qml: ItemGrabber: Saving image to /home/phablet/Pictures/Screenshots/screenshot20160816_152109689.png

While in frieza we have:

[2016-08-16:15:46:01.447] virtual void AalMediaPlayerControl::play()
[2016-08-16:15:46:01.447] void AalMediaPlayerService::play()
[2016-08-16:15:46:01.450] Actually calling m_hubPlayerSession->play()
...
[2016-08-16:15:46:02.102] virtual void AalMediaPlayerControl::stop()
...
[2016-08-16:15:46:02.378] qml: ItemGrabber: Saving image to /home/phablet/Pictures/Screenshots/screenshot20160816_154602378.png

It seems that unity8 is doing something weird here, as it is stopping audio before it has called the "play" method in turbo. Looking at media-hub log, the stop command is received, but there is no play command.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-sound (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Hmm, it looks like the screenshot issue is happening because file

"/system/media/audio/ui/camera_click.ogg"

does not exist. So it is a different bug.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@alfonso does that come from the device tarball? certainly works on other devices
anything else missing there?

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Alfonso, @Pat: that's the issue I mentioned yesterday. Sounds like something that might be a hole in QA testing that we should bring up with that team.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@Pat, @Jim, I have sent an e-mail about this.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I have been trying to reproduce the bug in most of the devices in different ways (screenshot, sms, telegram), but no luck.

@all, is there anybody still experiencing this in OTA-12? If that is the case, and you can reproduce easily, please do in your phone:

rm ~/.cache/upstart/*
sudo sh -c '> /var/log/syslog'

-> reproduce now the bug. Then gather the logs with

tar cvzf log.tar.gz ~/.cache/upstart/* /var/log/syslog

and upload log.tar.gz to launchpad.

Revision history for this message
Michal Predotka (mpredotka) wrote :

Just to let you know I've not experienced this bug in OTA-12 yet. In OTA-11 it happened very often.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

It's possible that a fix that I landed in OTA-12 that took care of a nasty thread deadlock issue took care of this issue, or at least once trigger of it.

Changed in canonical-devices-system-image:
status: In Progress → Incomplete
Changed in indicator-sound (Ubuntu):
status: Confirmed → Incomplete
Changed in media-hub (Ubuntu):
status: Invalid → Incomplete
Changed in unity8 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jim Hodapp (jhodapp) wrote :

Marked this bug as incomplete. If anybody sees this issue with OTA-12 and can reliably reproduce the issue, we'll reopen this bug.

Revision history for this message
John (john-a-barnes) wrote : Re: [Bug 1544477] Re: No sound notification for new SMS (Ubuntu Touch)

It is still broken on my BQ E4.5 with OTA-12 but I don't know how to
make it break.
The only reliable sms sound alert is the first one after a restart so if
I think I am going to get more sms I need to know about I now restart
phone after receiving each one.

On 18/08/16 14:46, Jim Hodapp wrote:
> Marked this bug as incomplete. If anybody sees this issue with OTA-12
> and can reliably reproduce the issue, we'll reopen this bug.
>

Revision history for this message
Anupam (anupam207) wrote :

I'm having this issue as frequently as before even after OTA-12, but I couldn't find steps to reproduce the issue reliably. What happens is usually after 1-2 days after a reboot, this issue appears out of nowhere. Also deleting ubuntu-phablet-stream-volumes.tdb file is redundant, a reboot only makes things normal again.

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

@John, @Anupam: could you try to follow steps described by Alfonso in comment #82? I would also try to enable pulseaudio logging.

How to enable pulseaudio logging (looks like wiki instructions don't work for Ubuntu Touch, IIRC these are the right steps):
- set device to writable mode
As root:
- create backup file: cp /usr/share/upstart/sessions/pulseaudio.conf /usr/share/upstart/sessions/pulseaudio.conf.bkp
- edit in file /usr/share/upstart/sessions/pulseaudio.conf
  line:
      exec pulseaudio --start
  to:
      exec pulseaudio -vvvv --start --log-target=newfile:/tmp/pulseverbose.log --log-time=1
- restart device

Please do not restart your phone after you reproduce the issue or log files will be lost (copy them in another directory first so you can upload them later)

(from wiki) The log files are in the /tmp directory. You might see more than one file (pulseverbose.log, pulseverbose.log.1, pulseverbose.log.2, etc). In case you don't know which file is the right one, please attach all files to the launchpad bug.

Revision history for this message
John (john-a-barnes) wrote :

I'd like to help but I really don't know anything about delving into the
phone software at present I am just using it as a phone with browser
access.

I have not dared set it to writeable mode (which I assume is Developer
Mode) I don't know how to access root on it, also the chances of me
typing those strings accurately on the touch keyboard are not high. Or
can I access it via my computer if I go to Developer Mode? I can't see
the directories you mention. Wrong place for these questions. Is there
an idiots guide somewhere?

On 18/08/16 17:46, Devid Antonio Filoni wrote:
> @John, @Anupam: could you try to follow steps described by Alfonso in
> comment #82? I would also try to enable pulseaudio logging.
>
>
> How to enable pulseaudio logging (looks like wiki instructions don't work for Ubuntu Touch, IIRC these are the right steps):
> - set device to writable mode
> As root:
> - create backup file: cp /usr/share/upstart/sessions/pulseaudio.conf /usr/share/upstart/sessions/pulseaudio.conf.bkp
> - edit in file /usr/share/upstart/sessions/pulseaudio.conf
> line:
> exec pulseaudio --start
> to:
> exec pulseaudio -vvvv --start --log-target=newfile:/tmp/pulseverbose.log --log-time=1
> - restart device
>
> Please do not restart your phone after you reproduce the issue or log
> files will be lost (copy them in another directory first so you can
> upload them later)
>
> (from wiki) The log files are in the /tmp directory. You might see more
> than one file (pulseverbose.log, pulseverbose.log.1, pulseverbose.log.2,
> etc). In case you don't know which file is the right one, please attach
> all files to the launchpad bug.
>

Revision history for this message
Michal Predotka (mpredotka) wrote :

I was happy to early 😊 The bug just happened to me. Log as instructed in comment #82 attached

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Michal: can you reproduce it reliably? What were you doing when you noticed it wasn't working? Are Telegram notifications working for you right now? How about alarms in the clock app? Can you play music from the music-app?

Revision history for this message
Michal Predotka (mpredotka) wrote :

I've noticed the green led when I took the phone out of my pocket. I didn't hear the sound but wasn't sure if that's due to the bug or because I was in noisy surroundings. I asked someone to send me a message to check if this is due to the bug and the message arrived without the sound notification.
Few hours before I was listening to a podcast using Podbird app. Not sure if that could be related as I every day without issues since OTA-12.

Telegram notifications work fine with the sound. Music app plays songs fine. I can hear alarms in the clock app too. Screenshots, on the other hand, _do not_ make a sound.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Michal: which device are you using?

Revision history for this message
Michal Predotka (mpredotka) wrote :

bq e4.5 OTA-12

Revision history for this message
Anupam (anupam207) wrote :

@Michal Looks like you just jinxed it (by your comment #83)! 😉

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@mpredotka thanks for the logs, will be useful.

Revision history for this message
GTriderXC (gtriderxc) wrote :

I haven't rebooted my bq 4.5 yet if anyone has any more questions so the bug is still active on my phone with OTA-12. As I wrote several times this bug has nothing to do with anything: not a music player, not a game, it just comes out of the sky as many things in this phone. You will not reproduce it after reboot. The only possibility that comes to my mind is that sound disappears after becoming some count of messages or after a certain uptime of the device.

As I wrote above the phone can be as overloaded that You won't be able to start any app but the sms sound work. On the other way, You can leave Your phone untouched after reboot for a several days and suddenly the green lamp starts to blink with no sound.

Revision history for this message
Anupam (anupam207) wrote :

I concur with @GTriderXC. Exactly the same behaviour! Many times I leave my phone untouched except a few calls, Telegram messages, and casual web-browsing sessions (can't avoid these, as I mentioned before this phone is my daily driver), but then 1-2 days later again the same no-SMS-sound-issue. I really hope fixes for bug #1506953 and bug #1596329 get rid of this nuisance.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Anupam: with OTA-12 you already have the fix for bug #1596329. The other one will come with OTA-13. Until we know what the cause is though, which many people have been trying to identify, it'll be very difficult to make sure that it's fixed. I appreciate your patience as we try and figure this out though.

Revision history for this message
GTriderXC (gtriderxc) wrote :

Since a few days a Clock app (which I open everyday to set an alarm clock) needed to open itself something like 15 seconds so I decided to reboot the phone today. It helped. Also Sms sounds >were< :-) back. I killed them in something like 5-10 minutes. How: I used the phone with intensity of a whole week: received many messages, answered a phone call, listened to the radio, launched a movie, played a game, opened as many apps as possible and suddenly a sms message came without a sound. I reboot the phone again and perhaps it happens again. I attached a log file but I'm not sure if it is the one You need. The operation described in #82 perhaps succeeded but I can't find a tar file on the phone. Is there any possibility to browse root catalogues from a pc?

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I was able to reproduce this finally. It is a matter of killing media-hub-server:

pkill -9 media-hub

(this has the same effect as a media-hub-server crash).

media-hub-server re-starts, but it looks like not all the system recovers and re-connects to dbus-interface. Voice calls ringing, telegram notifications and videos/music still sound, but SMS notifications and screenshots do not emit sound anymore.

So we have here:

* A media-hub-server crash (could somebody please check if they have crash files for media-hub-server in /var/crash?)

* An issue with reconnections to media-hub, for:
1. SMS notifications. telephony-service-indicator is the responsible for them
2. Screenshot sound. unity8 is the one emitting it

Recently there was an effort to make media-hub *client library* resilient to media-hub-server crashes, but it looks like that has not been enough for this case. However, I am not sure if we can completely restore transparently from the library or we need that indicator/unity8 to be ready for media-hub crashes and be able to re-connect.

Changed in media-hub (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Note on comment #101: I have checked that the issue happens for both OTA12 and rc-proposed/bq-aquaris.en image #412, for BQ Aquaris 4.5

Revision history for this message
Jim Hodapp (jhodapp) wrote :

@Alfonso: well it is *a* cause but not necessarily all causes. I knew that this was reproducible if you killed media-hub-server or it crashed on its own and I did take care of several cases of unhandled exceptions that would cause media-hub-server to crash. Having said that, ahayzen is working on a QML wrapper that will automatically restore a new Player connection to media-hub-server after it has restarted along with some basic state such as the Playlist items. We might be able to create a similar thing in C++ that wraps QMediaPlayer so that it could be used by all platform supported playback sessions. Doing the restoration from qtubuntu-media just wasn't really possible given how QtMultimedia is written.

Revision history for this message
GTriderXC (gtriderxc) wrote :

@Alfonso, i have a media-hub-server crash file.

http://paste.ubuntu.com/23079628/

Revision history for this message
GTriderXC (gtriderxc) wrote :

I pasted a wrong link sorry but at the moment i have no time to find out how to copy the crash file not through a terminal. I asked for help in my last post but no response. I can provide you more info if You want if you help me to do it through a pc.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@GTriderXC, the easiest thing would be to enable developer mode and grab the crash file from a PC:

adb pull /var/crash/<media-hub crash file>

then you can upload to the bug.

Revision history for this message
GTriderXC (gtriderxc) wrote :
Changed in telephony-service (Ubuntu):
status: New → Confirmed
Changed in media-hub (Ubuntu):
status: Confirmed → Incomplete
Changed in unity8 (Ubuntu):
status: Incomplete → Confirmed
Changed in telephony-service (Ubuntu):
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Incomplete → In Progress
milestone: backlog → 13
Changed in telephony-service (Ubuntu):
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Branchs linked for telephony-service and unity8, which will solve this in case media-hub restarts.

@gtriderxc, thanks for the crash file, but unfortunately it misses the CoreDump field for some reason, not sure why yet.

Changed in unity8 (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
Revision history for this message
Jim Hodapp (jhodapp) wrote :

Added qtmultimedia to the affected list to capture future effort to more permanently fix this bug. Recovery after a media-hub-server crash really belongs in qtmultimedia so that every supported client is able to continue playback even after a media-hub-server crash.

Changed in telephony-service (Ubuntu):
status: In Progress → Fix Committed
Changed in unity8 (Ubuntu):
status: In Progress → Fix Committed
Changed in qtmultimedia-opensource-src (Ubuntu):
status: New → Confirmed
Changed in telephony-service (Ubuntu):
importance: Undecided → High
Changed in unity8 (Ubuntu):
importance: Undecided → High
Changed in qtmultimedia-opensource-src (Ubuntu):
importance: Undecided → High
Changed in indicator-sound (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity8 - 8.14+16.10.20160826-0ubuntu1

---------------
unity8 (8.14+16.10.20160826-0ubuntu1) yakkety; urgency=medium

  * Make sure we emit sounds when taking a screenshot even after media-
    hub (LP: #1544477)

 -- Alfonso Sanchez-Beato <email address hidden> Fri, 26 Aug 2016 08:14:14 +0000

Changed in unity8 (Ubuntu):
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → In Progress
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@jibel we are fighting in the status :)
I think this is stuck in https://requests.ci-train.ubuntu.com/#/silo/098
The fix is not released to telephony service

Changed in canonical-devices-system-image:
status: Fix Committed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package telephony-service - 0.1+16.10.20160909.1-0ubuntu1

---------------
telephony-service (0.1+16.10.20160909.1-0ubuntu1) yakkety; urgency=medium

  [ Tiago Salem Herrmann ]
  * Fix test failure with new libphonenumber release.
  * Move telepathy-ofono from "Depends" to "Suggests".

 -- Gustavo Pichorim Boiko <email address hidden> Fri, 09 Sep 2016 14:54:02 +0000

Changed in telephony-service (Ubuntu):
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
GTriderXC (gtriderxc) wrote :

So... the first step made. Now the second one please cause without fixing this bug:

https://bugs.launchpad.net/canonical-devices-system-image/+bug/1579570

all effort is in vain. I still can't hear anything.

Revision history for this message
GTriderXC (gtriderxc) wrote :

Sorry to say that guys, but... my phone (E4.5 under OTA13) doesn't give a sound any more. Do You want to see any logs before I reboot it?

Revision history for this message
GTriderXC (gtriderxc) wrote :
Revision history for this message
GTriderXC (gtriderxc) wrote :
Revision history for this message
Marek Greško (mgresko8) wrote :

Not sure whether it is same bug, but today there was no ringing on incoming call. Just only seen incoming call on a display. BQ E4.5 with OTA13.

Revision history for this message
Anupam (anupam207) wrote :

@Marek that's bug #1612367

Revision history for this message
Jimbo G (jamespgilbert) wrote :

This bug still very much exists for me (E4.5, OTA 13) - with the added problem that I don't even get a vibration alert or the flashing green LED to let me know that an SMS has been received.

The phone remains totally silent until I press a button to unlock it, at which point it vibrates, plays the sound alert and the green LED starts flashing.

This happens even if I received the SMS several hours earlier and is making my life difficult.

Revision history for this message
Anupam (anupam207) wrote :

@Jimbo That's a separate issue I believe. See bug #1516696, a fix should arrive with OTA-14.

Revision history for this message
Anupam (anupam207) wrote :

I haven't experienced this issue after OTA-13 for a single time (Although I usually reboot my phone after 3-4 days for other things).

Revision history for this message
GTriderXC (gtriderxc) wrote :

@ Anupam
What I complained about at #114 happened to me only once or twice under OTA-13. I almost do not reboot my phone at all: for example my uptime at the moment is 9 days. I think the essence of this bug was fixed in OTA-13 and the whole bug can be closed and marked as fixed. If it happens that someone doesn't get a notification it seems to be a single time issue as many in Ubuntu that happen from time to time.

Revision history for this message
Jim Hodapp (jhodapp) wrote :

Reply back here if anything like this comes up again and we can discuss re-opening this bug.

Changed in media-hub (Ubuntu):
status: Incomplete → Invalid
Changed in pulseaudio (Ubuntu):
status: Incomplete → Invalid
Changed in qtmultimedia-opensource-src (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
GTriderXC (gtriderxc) wrote :

Now this one please, cause we still can't hear anything:

https://bugs.launchpad.net/canonical-devices-system-image/+bug/1579570

To post a comment you must log in.