Subsurface-mobile status

Dirk Hohndel dirk at hohndel.org
Sat Apr 1 00:58:24 PDT 2017


Thanks to Marco, we are making great progress.

On the desktop (Arch Linux using Qt 5.8), Subsurface-mobile seems to work
well.  I wouldn't call my testing exhaustive, but I couldn't reproduce any
of the bugs that have plagued us in the past (there are some issues with
some of the icons missing, but that has been the case for me for a while
and I never bothered to figure out what causes that as it's not a problem
on iOS or Android).

I also created an Android APK that is slowly, slowly making its way to
downloads/daily. That one shows two oddities:

a) the profiles aren't drawn (empty boxes)
b) I get these odd errors in logcat:

04-01 09:51:58.116 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object 10.0 l is not a function
04-01 09:51:58.116 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object Alex is not a function
04-01 09:51:58.116 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object Alex is not a function
04-01 09:51:58.116 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object dry, Whites Fusion, Weezle is not a function
04-01 09:52:10.254 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object wet, 5mm is not a function
04-01 09:52:10.255 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object Linus is not a function
04-01 09:52:10.256 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object Ricardo is not a function
04-01 09:52:10.257 13155 13171 W Subsurface: qrc:///qml/HintsTextEdit.qml:31 ((null)): qrc:///qml/HintsTextEdit.qml:31: TypeError: Property 'startsWith' of object AL80 is not a function

The offending line is 

	       for (var i = 0; i < hintsView.count; ++i) {
			var m = model[i].match(root.text);
--->			if (m !== null && model[i].startsWith(root.text)) {
				hintsView.currentIndex = i;

So somehow it happily runs "match()" on model[i], but not "startsWith()".
I'm rather puzzled by this.

The only difference I can think of is that I apparently have forgotten to
update the Qt build I use on Android to 5.8, so that APK is still built
against 5.7.1 (and the place I'm at right now has rather slow internet, so
downloading the Qt 5.8 package from here doesn't look promising).

/D


More information about the subsurface mailing list