subsurface/mobile-widgets
Jan Mulder 59417342c7 mobile: the infamous enumerate problem
This fix seems to fix the enumerate problem: the problem that on a
seemingly non-determinstic way, all the profiles get enumerated
and rendered, causing freeze of the app, or even crash due
to out of memory.

Only 3 lines of code change, but this fix did not come easy. The
enumerate problem seems some kind of race condition between QML,
Kiragami and most definitely, the Subsurface QML code itself.
The breakthrough in my debugging was the setting of
highlightRangeMode: ListView.StrictlyEnforceRange based on
the QML documentation on snapMode: enumeration.

This fix deserves proper testing in multiple environments. As
could be seen on the developpers mailing list, I was (easily)
able to reproduce the enumerate problem, but Rick was not. So
I definitely do not claim to understand why this fix solves
the issue for me.

And as a sidenote: fixes #263 for me as well.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-03-24 09:27:23 -07:00
..
qml mobile: the infamous enumerate problem 2017-03-24 09:27:23 -07:00
qmlmanager.cpp Sync unit system to Subsurface-mobile (part 2) 2017-03-11 16:09:06 -08:00
qmlmanager.h QML UI: Enable cylinder edit 2016-09-04 07:36:13 -07:00
qmlprofile.cpp QML UI: make profile drawing less verbose 2017-03-18 17:05:45 -07:00
qmlprofile.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00