"Placeholder" notification emits powerd notification event
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Michał Sawicz | ||
unity8 (Ubuntu) |
Fix Released
|
High
|
Alexandros Frantzis |
Bug Description
Steps to reproduce:
1. In Notification.qml add:
Component.
and a similar log message in Component.
2. Install dialer-
3. Restart unity8.
4. A notification is created for the voice mail, before unity8 is fully drawn. No bubble can be seen, only the green envelope on top. Note that in ~/.cache/
5. stop unity8. Note that ~/.cache/
Effectively the initial notification is somehow "leaked" and not destroyed until the end of the program. This presents a problem in the new power architecture model, where unity8 needs to report both when a notification is shown (it already does so) and when it is destroyed.
Notifications sent after unity8 has completed loading are properly destroyed when their bubble disappears.
Related branches
- Unity8 CI Bot: Approve (continuous-integration)
- Lukáš Tinkl (community): Approve
-
Diff: 33 lines (+16/-0)1 file modifiedqml/Notifications/Notification.qml (+16/-0)
no longer affects: | unity-notifications (Ubuntu) |
Changed in unity8 (Ubuntu): | |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
milestone: | none → 12 |
assignee: | nobody → Michał Sawicz (saviq) |
Changed in unity8 (Ubuntu): | |
status: | Triaged → In Progress |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
Are you sure that you're testing was actually observing the voice mail notification?
My *guess* is that the voice mail notification happened too early for unity8 to see it, so it just went to the void. And the notification you're seeing is actually the "placeholder" notification. Which unity-notification creates and is just an empty notification with the "placeholder" type.
"What the heck is a placeholder notification?" I hear you ask. Very good question. I'm not 100% sure. It *seems* to be a hack to move the notifications lower on the screen? But I don't know why that's not done in the UI layer instead of in the notification model... Honestly, I don't know if it has any good purpose. I didn't know about it until I looked into this bug.
So... it might be confusing your testing.
You can debug this a bit by adding more info into your onCompleted print: like "summary", "body", and "type". If type == 0, it's a placeholder (and summary and body will be empty). And you can ignore it if so.