Running Subsurface on Lollipop

Dirk Hohndel dirk at hohndel.org
Fri Sep 27 09:55:02 PDT 2019


This looks complete.
And it makes me wonder about a couple of things...

> On Sep 27, 2019, at 8:15 AM, John Smith <noseygit at hotmail.com> wrote:
> 09-27 16:10:07.097 538-577/? I/PackageManager: Running dexopt on: /data/app/org.subsurfacedivelog.mobile-1/base.apk pkg=org.subsurfacedivelog.mobile isa=x86 vmSafeMode=false with dexOptFlag=O2

isa=x86 ???

What device is this? And where are you getting an x86 build of Subsurface-mobile for Android (since I have stopped providing those several years ago)? This must be wrong.

> 09-27 16:10:08.409 5457-5457/? I/dex2oat: /system/bin/dex2oat --zip-fd=6 --zip-location=/data/app/org.subsurfacedivelog.mobile-1/base.apk --oat-fd=7 --oat-location=/data/dalvik-cache/x86/data at app@org.subsurfacedivelog.mobile <mailto:app at org.subsurfacedivelog.mobile>-1 at base.apk@classes.dex <mailto:base.apk at classes.dex> --instruction-set=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=O2 --swap-fd=8
[...]

But then the rest all seems to be ARM. So now I'm confused.

> 09-27 16:10:13.655 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libc++_shared.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.655 5567-5620/? I/Qt JAVA: Can't find '/data/app/org.subsurfacedivelog.mobile-1/lib/arm/lib.so'

I've seen this odd error in other logs as well. I'm wondering why we are trying to open lib.so...

> 09-27 16:10:13.725 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Core.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.765 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Gui.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.821 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Widgets.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.826 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Svg.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.829 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Positioning.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.838 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Network.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.862 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Qml.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.910 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Quick.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.918 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5QuickParticles.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.920 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5PositioningQuick.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.921 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Concurrent.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.950 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Location.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.973 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5QuickTemplates2.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.978 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5QuickControls2.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.979 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5AndroidExtras.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.983 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Bluetooth.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.986 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5Test.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.990 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5QuickTest.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.994 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5RemoteObjects.so for ClassLoader by Native Bridge.
> 09-27 16:10:13.996 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libQt5WebView.so for ClassLoader by Native Bridge.
> 09-27 16:10:14.003 3385-3592/? I/Finsky: [284] mfy.b(40): IQ: Notifying installation update. package=org.subsurfacedivelog.mobile, status=UNINSTALLED
> 09-27 16:10:14.034 5567-5620/? D/houdini: [5620] Added shared library /data/data/org.subsurfacedivelog.mobile/qt-reserved-files/plugins/platforms/android/libqtforandroid.so for ClassLoader by Native Bridge.
> 09-27 16:10:14.039 5567-5620/? D/houdini: [5620] Added shared library /data/data/org.subsurfacedivelog.mobile/qt-reserved-files/plugins/bearer/libqandroidbearer.so for ClassLoader by Native Bridge.
> 09-27 16:10:14.041 5567-5620/? D/houdini: [5620] Added shared library /data/data/org.subsurfacedivelog.mobile/qt-reserved-files/plugins/position/libqtposition_android.so for ClassLoader by Native Bridge.

This all looks right

> 09-27 16:10:14.041 5567-5620/? I/Qt JAVA: Can't find '/data/data/org.subsurfacedivelog.mobile/qt-reserved-files/lib/libQt5QuickParticles.so'

Yeah, we don't bundle this since we don't use it.

> 09-27 16:10:14.043 5567-5620/? D/houdini: [5620] Added shared library /data/data/org.subsurfacedivelog.mobile/qt-reserved-files/plugins/webview/libqtwebview_android.so for ClassLoader by Native Bridge.
> 09-27 16:10:14.261 932-932/? D/SDKInstallBroadcastReceiver: ACTION_PACKAGE_REMOVED:org.subsurfacedivelog.mobile
> 09-27 16:10:14.345 932-1524/? W/PackageManager: Failure retrieving resources for org.subsurfacedivelog.mobile: Resource ID #0x0
> 09-27 16:10:15.233 5567-5620/? D/houdini: [5620] Added shared library /data/app/org.subsurfacedivelog.mobile-1/lib/arm/libsubsurface-mobile.so for ClassLoader by Native Bridge.
> 09-27 16:10:15.296 5567-5567/? I/subsurfacedivelog.mobile onCreate: android.intent.action.MAIN
> 09-27 16:10:15.424 3385-3385/? I/Finsky: [1] ptp.d(7): Invalidating cached PackageState for org.subsurfacedivelog.mobile
> 09-27 16:10:15.457 538-2597/? V/WindowManager: Adding window Window{8aecde2 u0 org.subsurfacedivelog.mobile/org.subsurfacedivelog.mobile.SubsurfaceMobileActivity} at 2 of 8 (before Window{1c7091e3 u0 Starting org.subsurfacedivelog.mobile})
> 09-27 16:10:15.562 1282-5599/? I/ChromeSync: [Sync,SyncIntentOperation] Handling the intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.subsurfacedivelog.mobile flg=0x4000010 cmp=com.google.android.gms/.chimera.GmsIntentOperationService (has extras) }.
> 09-27 16:10:15.993 1282-5599/? I/FontsPackageChangeOp: Package org.subsurfacedivelog.mobile has no metadata
> 09-27 16:10:16.267 538-566/? I/ActivityManager: Displayed org.subsurfacedivelog.mobile/.SubsurfaceMobileActivity: +5s292ms
> 09-27 16:10:16.900 5567-5620/? W/Subsurface: QFont::setPointSizeF: Point size <= 0 (-1.000000), must be greater than 0
> 09-27 16:10:16.914 5567-5620/? W/Subsurface: QFont::setPointSizeF: Point size <= 0 (-1.000000), must be greater than 0
> 09-27 16:10:16.929 5567-5620/? W/Subsurface: QFont::setPointSizeF: Point size <= 0 (-1.000000), must be greater than 0

Another long standing bug I want to track down.

> 09-27 16:10:22.693 196-214/? E/Vold: Failed to find mounted volume for /storage/sdcard1/Android/data/org.subsurfacedivelog.mobile/files/Documents/
> 09-27 16:10:22.694 5567-5620/? W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/org.subsurfacedivelog.mobile/files/Documents
> 09-27 16:10:22.698 196-214/? E/Vold: Failed to find mounted volume for /storage/sdcard1/Android/data/org.subsurfacedivelog.mobile/files/Download/
> 09-27 16:10:22.699 5567-5620/? W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/org.subsurfacedivelog.mobile/files/Download
> 09-27 16:10:22.708 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.030: Successfully opened logfile /storage/emulated/0/subsurface.log at Fri Sep 27 16:10:22 2019"
> 09-27 16:10:22.715 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.039: Starting Subsurface-mobile:2.2.1(4.9.3.30):Android Lollipop (5.1):arm:en-GB"

OK, so it is 5.1 - same as I am testing locally. And it is on ARM. So it's exactly what I'm successfully testing on my Nexus 10
And you are not running the latest beta which has a couple of bug fixes (and which I am comparing to - not that I expect this to be any different with respect to ssl)

> 09-27 16:10:22.717 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.040: built with libdivecomputer v0.7.0-devel-Subsurface-NG (ce6d9896a79afaa82641132e338f8744714c8593)"
> 09-27 16:10:22.718 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.042: built with Qt Version 5.12.4, runtime from Qt Version 5.12.4"
> 09-27 16:10:22.720 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.044: built with libgit2 0.26.0"
> 09-27 16:10:22.723 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.047: Running on Android Lollipop (5.1)"
> 09-27 16:10:22.728 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "0.051: Hudl 2/Hudl/HTF8A4XX"
[...]
> 09-27 16:10:30.319 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "7.642: Synchronising data file"
> 09-27 16:10:30.388 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "7.711: Load dives from local cache"
> 09-27 16:10:30.685 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "8.009: AppState changed to active with save ongoing and no unsaved changes"
> 09-27 16:10:31.459 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "8.783: Successfully opened dive data"
> 09-27 16:10:31.520 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "8.844: 134 dives loaded from cache"
> 09-27 16:10:31.536 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "8.859: incorrect password for cloud credentials"
> 09-27 16:10:31.544 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "8.867: have cloud credentials, trying to connect"
> 09-27 16:10:31.546 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: "8.870: Have credentials, let's see if they are valid"
> 09-27 16:10:31.613 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: QSslSocket: cannot resolve OPENSSL_init_ssl
> 09-27 16:10:31.615 5567-5620/? D//android/subsurface/qt-models/messagehandlermodel.cpp: INFO: QSslSocket: cannot resolve OPENSSL_init_crypto

And then the dlopen() clearly gets us the wrong libssl.so :-(


I wish I understood what was different between your device and my Nexus 10 running Android 5.1

/D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20190927/fbe76c61/attachment-0001.html>


More information about the subsurface mailing list