MirSurfaceItem::dropPendingBuffers contains a potentially infinite loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtmir (Ubuntu) |
Fix Released
|
Medium
|
Daniel van Vugt |
Bug Description
MirSurfaceItem:
void MirSurfaceItem:
{
QMutexLocker locker(&m_mutex);
const void* const userId = (void*)123; // TODO: Multimonitor support
while (m_surface-
// The line below looks like an innocent, effect-less, getter. But as this
// method returns a unique_pointer, not holding its reference causes the
// buffer to be destroyed/released straight away.
<< "surface =" << this
<< "buffer dropped."
<< m_surface-
<< "left.";
}
}
The issue is the value of buffers_
The simple solution is to check buffers_
Related branches
- Gerry Boland (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 53 lines (+7/-6)2 files modifiedsrc/modules/Unity/Application/mirsurfaceitem.cpp (+6/-5)
src/modules/Unity/Application/mirsurfaceitem.h (+1/-1)
description: | updated |
description: | updated |
Changed in qtmir: | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
status: | New → In Progress |
Changed in qtmir: | |
importance: | Undecided → Medium |
Changed in qtmir (Ubuntu): | |
importance: | Undecided → Medium |
Changed in qtmir: | |
status: | In Progress → Fix Committed |
Changed in qtmir: | |
status: | Fix Committed → Fix Released |
Changed in qtmir (Ubuntu): | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
no longer affects: | qtmir |
This bug was fixed in the package qtmir - 0.4.5+15. 10.20150817- 0ubuntu1
--------------- 15.10.20150817- 0ubuntu1) wily; urgency=medium
qtmir (0.4.5+
*
qtmir (0.4.5+ 15.10.20150812. 1-0ubuntu1) vivid; urgency=medium
[ Daniel van Vugt ]
* MirSurfaceItem: Remove an unnecessary and potentially infinite loop
(LP: #1477430) (LP: #1477430)
[ Gerry Boland ] file_hint (LP: #1483225)
* Standardize licences to LGPLv3, update years, remove authors (LP:
#1483664)
* authorizeSession incorrectly edits desktopFilePath supplied by
desktop_
-- CI Train Bot <email address hidden> Mon, 17 Aug 2015 19:28:26 +0000