Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Now views can exist even they are not attached which means their model() pointer can be a nullptr.
Often the views are used to create QML UIs which then often call functions which then calling the model.
QML means these calls can be delayed calls.
Also, some views need to update their UIs via QTimers where we have the similar problematic delayed calls into the model.
One way would be to forbit own QML UIs and QTimers and the model somehow provide specialized version of them.
For example, the model()->generateTimer() would create a timer which is stoppped if it is not attached anymore.
And for example, model()->generateQuickWidet() which is disabled if the model is not attached.
Maybe there are better ideas, but I like to see a brainstorm round about this, because it generated a lot of crashes in the past.
Attachments
Issue Links
- resulted in
-
QDS-7191 DS crashes when switching modes quickly
- Closed
-
QDS-7194 DS sometimes crashes when opening test project
- Closed
-
QDS-8129 DS crashes when switching modes quickly
- Closed
-
QDS-8246 Crash when restarting after changing theme
- Closed
-
QDS-7984 Qt5 and Qt6 projects: DS crashes when switching modes quickly
- Closed
-
QDS-8599 Linux: QDS can crash when switching modes
- Closed