Valgrind warning when theme is changed from MainViewStyle.qml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Zsombor Egri | ||
Vivid |
New
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
We are getting this warning in valgrind (with Qt 5.3)
==20334== Invalid read of size 8
==20334== at 0x581568A: QQmlObjectCreat
==20334== by 0x57A5A82: QQmlIncubatorPr
==20334== by 0x57A6215: QQmlEnginePriva
==20334== by 0x57A169C: QQmlComponent:
==20334== by 0x5DCE449: QQuickLoaderPri
==20334== by 0x5DCE5E7: QQuickLoaderPri
==20334== by 0x581564D: QQmlObjectCreat
==20334== by 0x57A1076: QQmlComponentPr
==20334== by 0x57A1108: QQmlComponentPr
==20334== by 0x57A0FCF: QQmlComponent:
==20334== by 0x5DD538E: QQuickView:
==20334== by 0x5DD5AB3: QQuickViewPriva
==20334== by 0x407045: startShell(int, char const**, void*) (main.cpp:162)
==20334== by 0x407A74: main (main.cpp:227)
==20334== Address 0x20df8968 is 104 bytes inside a block of size 112 free'd
==20334== at 0x4C2C2BC: operator delete(void*) (vg_replace_
==20334== by 0x5815FB0: QQmlObjectCreat
==20334== by 0x57A52AA: QQmlIncubatorPr
==20334== by 0x57A53C6: QQmlIncubator:
==20334== by 0x5DCD7CF: QQuickLoaderPri
==20334== by 0x5DCEB02: QQuickLoader:
Because MainViewStyle.qml is replacing the theme once it gets loaded (if it needs to go Dark) and we're basically changing the component in MainView.qml while the component is being loaded and it seems Qt doesn't like that.
Not sure if it could be argued this is a Qt 5.3 bug, haven't tried if the warning is there in Qt 5.2
Related branches
- Tim Peeters: Approve (quick look)
- Cris Dywan: Approve
-
Diff: 529 lines (+370/-21)16 files modifiedexamples/customtheme/customtheme.apparmor (+8/-0)
examples/customtheme/customtheme.desktop (+8/-0)
examples/customtheme/customtheme.qmlproject (+59/-0)
examples/customtheme/main.qml (+103/-0)
examples/customtheme/manifest.json (+15/-0)
examples/customtheme/theme/Palette.qml (+24/-0)
examples/customtheme/theme/parent_theme (+1/-0)
modules/Ubuntu/Components/MainView.qml (+16/-0)
modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml (+0/-17)
modules/Ubuntu/Components/plugin/uctheme.cpp (+4/-2)
tests/unit_x11/tst_components/tst_theming.qml (+60/-0)
tests/unit_x11/tst_theme_engine/AppTheme/Palette.qml (+24/-0)
tests/unit_x11/tst_theme_engine/AppTheme/parent_theme (+1/-0)
tests/unit_x11/tst_theme_engine/TestApp.qml (+29/-0)
tests/unit_x11/tst_theme_engine/tst_theme_engine.pro (+3/-1)
tests/unit_x11/tst_theme_engine/tst_theme_enginetest.cpp (+15/-1)
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 518 lines (+368/-20)16 files modifiedexamples/customtheme/customtheme.apparmor (+8/-0)
examples/customtheme/customtheme.desktop (+8/-0)
examples/customtheme/customtheme.qmlproject (+59/-0)
examples/customtheme/main.qml (+103/-0)
examples/customtheme/manifest.json (+15/-0)
examples/customtheme/theme/Palette.qml (+24/-0)
examples/customtheme/theme/parent_theme (+1/-0)
modules/Ubuntu/Components/MainView.qml (+16/-0)
modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml (+0/-17)
modules/Ubuntu/Components/plugin/uctheme.cpp (+3/-1)
tests/unit_x11/tst_components/tst_theming.qml (+60/-0)
tests/unit_x11/tst_theme_engine/AppTheme/Palette.qml (+24/-0)
tests/unit_x11/tst_theme_engine/AppTheme/parent_theme (+1/-0)
tests/unit_x11/tst_theme_engine/TestApp.qml (+29/-0)
tests/unit_x11/tst_theme_engine/tst_theme_engine.pro (+3/-1)
tests/unit_x11/tst_theme_engine/tst_theme_enginetest.cpp (+14/-1)
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Zsombor Egri (zsombi) |
importance: | Medium → Undecided |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
status: | New → Confirmed |
no longer affects: | ubuntu-ui-toolkit |
Just in case upstream actually may think it's an upstream bug i've reported https:/ /bugreports. qt-project. org/browse/ QTBUG-39775