Application crashes after the QQuickView has been destroyed and recreated
Bug #1221707 reported by
Alberto Mardegan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Undecided
|
Alberto Mardegan | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
QuickUtils assumes that the QQuickView is constant, and does not update its m_rootView member when it changes.
Therefore, in an application uses the Ubuntu toolkit on a QQuickView, then destroys it and creates a new one, m_rootView points to a destroyed object and will eventually lead to a crash.
I'm assigning this to myself since I can easily verify the fix.
Related branches
lp://staging/~mardy/ubuntu-ui-toolkit/lp1221707
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 275 lines (+140/-17)9 files modifiedmodules/Ubuntu/Components/plugin/listener.cpp (+1/-0)
modules/Ubuntu/Components/plugin/plugin.cpp (+14/-10)
modules/Ubuntu/Components/plugin/quickutils.h (+2/-1)
modules/Ubuntu/Components/plugin/shapeitem.cpp (+9/-3)
modules/Ubuntu/Components/plugin/uctheme.cpp (+3/-2)
tests/unit_x11/tst_recreateview/SimpleApp.qml (+35/-0)
tests/unit_x11/tst_recreateview/tst_recreateview.cpp (+70/-0)
tests/unit_x11/tst_recreateview/tst_recreateview.pro (+5/-0)
tests/unit_x11/unit_x11.pro (+1/-1)
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Can you include a simple test program that shows the bug that we can use to verify its fix?