[SailfishOS/3.3] Registration fails with TypeError: reCAPTCHA does not render on SailfishOS 3.3
I am not able to register my number with Signal using Whisperfish: After setting a password and entering my number, the logo just keeps spinning 'forever'.
Launching harbour-whisperfish -v from the command line, I get the following output on startup:
[2021-08-20T07:56:57Z INFO harbour_whisperfish] Start main app (with autostart = false)
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z DEBUG harbour_whisperfish::qmlapp::tokio_qt] registerSocketNotifier: fd=10 for Read on thread ThreadId(1)
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[D] unknown:0 - Using Wayland-EGL
[2021-08-20T07:56:57Z INFO harbour_whisperfish::gui] QmlApp::application loaded - version v0.6.0-beta.5
[W] __cpp_closure_15099713892083399547_impl:281 - Failed to load translator for ("C") Searched "/usr/share/harbour-whisperfish/translations" for "harbour-whisperfish"
[2021-08-20T07:56:57Z INFO harbour_whisperfish::qmlapp::native] Default translator loaded.
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[D] unknown:0 - Starting favorites query at 219 ms
[2021-08-20T07:57:01Z INFO harbour_whisperfish::worker::setup] SetupWorker::run
[2021-08-20T07:57:01Z INFO harbour_whisperfish::worker::setup] identity_key not found
[2021-08-20T07:57:01Z INFO harbour_whisperfish::config::settings] Setting default settings.
[D] unknown:0 - Starting metadata query at 873 ms
[D] unknown:0 - Favorites queried in 878 ms
[D] unknown:0 - Starting online query at 1041 ms
[D] unknown:0 - All queried in 1057 ms
[D] unknown:0 - Online queried in 1092 ms
[2021-08-20T07:56:57Z INFO harbour_whisperfish] Start main app (with autostart = false)
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z DEBUG harbour_whisperfish::qmlapp::tokio_qt] registerSocketNotifier: fd=10 for Read on thread ThreadId(1)
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[D] unknown:0 - Using Wayland-EGL
[2021-08-20T07:56:57Z INFO harbour_whisperfish::gui] QmlApp::application loaded - version v0.6.0-beta.5
[W] __cpp_closure_15099713892083399547_impl:281 - Failed to load translator for ("C") Searched "/usr/share/harbour-whisperfish/translations" for "harbour-whisperfish"
[2021-08-20T07:56:57Z INFO harbour_whisperfish::qmlapp::native] Default translator loaded.
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:56:57Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[2021-08-20T07:57:01Z TRACE harbour_whisperfish::qmlapp::tokio_qt] Already awaken
[D] unknown:0 - Starting favorites query at 219 ms
[2021-08-20T07:57:01Z INFO harbour_whisperfish::worker::setup] SetupWorker::run
[2021-08-20T07:57:01Z INFO harbour_whisperfish::worker::setup] identity_key not found
[2021-08-20T07:57:01Z INFO harbour_whisperfish::config::settings] Setting default settings.
[D] unknown:0 - Starting metadata query at 873 ms
[D] unknown:0 - Favorites queried in 878 ms
[D] unknown:0 - Starting online query at 1041 ms
[D] unknown:0 - All queried in 1057 ms
[D] unknown:0 - Online queried in 1092 ms
There is no additional output moving from the password screen to the registration screen. Once I confirm my number to request the verification text, I get the following output before Whisperfish just hangs:
[2021-08-20T08:01:18Z INFO harbour_whisperfish::config::settings] Setting string country_code
[2021-08-20T08:01:18Z INFO harbour_whisperfish::worker::setup] Using phone number: +49XXXXXXXXXX
[2021-08-20T08:01:18Z DEBUG libsignal_service_actix::push_service] HTTP request GET https://textsecure-service.whispersystems.org/v1/accounts/sms/code/+49XXXXXXXXXX
[2021-08-20T08:01:21Z DEBUG libsignal_service_actix::push_service] AwcPushService::get response:
ClientResponse HTTP/1.1 402 Payment Required
headers:
"content-type": "text/html;charset=iso-8859-1"
"connection": "keep-alive"
"content-length": "412"
"cache-control": "must-revalidate,no-cache,no-store"
"x-signal-timestamp": "1629446480936"
"date": "Fri, 20 Aug 2021 08:01:20 GMT"
[2021-08-20T08:01:21Z TRACE libsignal_service_actix::push_service] Unhandled response with body: Ok(b"<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\"/>\n<title>Error 402 Payment Required</title>\n</head>\n<body><h2>HTTP ERROR 402 Payment Required</h2>\n<table>\n<tr><th>URI:</th><td>/v1/accounts/sms/code/+49XXXXXXXXXX</td></tr>\n<tr><th>STATUS:</th><td>402</td></tr>\n<tr><th>MESSAGE:</th><td>Payment Required</td></tr>\n<tr><th>SERVLET:</th><td>jersey</td></tr>\n</table>\n\n</body>\n</html>\n")
greHome from GRE_HOME:/usr/bin
libxul.so is not found, in /usr/bin/libxul.so
Created LOG for EmbedLiteTrace
[W] modifyPageStack:113 - Error while modifying page stack: Error: Error while loading page: file:///usr/share/harbour-whisperfish/qml/pages/RegistrationCaptcha.qml:24 Cannot assign to non-existent property "viewportHeight"
[W] unknown:483 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:483: Error: Error while loading page: file:///usr/share/harbour-whisperfish/qml/pages/RegistrationCaptcha.qml:24 Cannot assign to non-existent property "viewportHeight"
Loaded xulDir:/usr/lib/xulrunner-qt5-45.9.1/libxul.so, appDir:/usr/bin
Created LOG for EmbedLite
EmbedLiteExt virtual nsresult EmbedChromeManager::Observe(nsISupports*, const char*, const char16_t*):82: obj:(nil), top:app-startup
EmbedLiteExt virtual nsresult EmbedTouchManager::Observe(nsISupports*, const char*, const char16_t*):86: obj:(nil), top:app-startup
EmbedLiteGlobalHelper app-startup
EmbedLiteSyncService app-startup
PREFS SERVICE INITAILIZED
EmbedPrefService app-startup
EmbedliteDownloadManager initialized
UserAgentOverrideHelper app-startup
1629446483864 addons.manager DEBUG Application has been upgraded
1629446484602 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1629446484625 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1629446484756 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1629446484771 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1629446484777 addons.manager DEBUG Starting provider: XPIProvider
1629446484780 addons.xpi DEBUG startup
1629446484786 addons.xpi INFO SystemAddonInstallLocation directory is missing
1629446484794 addons.xpi DEBUG checkForChanges
1629446484802 addons.xpi DEBUG Loaded add-on state from prefs: {}
1629446484809 addons.xpi DEBUG getInstallState changed: false, state: {}
1629446484812 addons.xpi DEBUG Empty XPI database, setting schema version preference to 17
1629446484814 addons.xpi DEBUG No changes found
1629446484827 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1629446484830 addons.manager DEBUG Provider finished startup: XPIProvider
1629446484830 addons.manager DEBUG Starting provider: LightweightThemeManager
1629446484832 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1629446484846 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1629446484850 addons.manager DEBUG Starting provider: GMPProvider
1629446484884 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1629446484890 addons.manager DEBUG Provider finished startup: GMPProvider
1629446484892 addons.manager DEBUG Starting provider: PluginProvider
1629446484895 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1629446484899 addons.manager DEBUG Provider finished startup: PluginProvider
1629446484901 addons.manager DEBUG Completed startup sequence
1629446485461 addons.xpi-utils DEBUG Starting async load of XPI database /home/nemo/.cache/harbour-whisperfish/harbour-whisperfish/.mozilla/extensions.json
Created LOG for EmbedPrefs
1629446485761 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1629446485764 addons.xpi-utils DEBUG Finished async read of XPI database, parsing...
1629446485772 addons.xpi-utils DEBUG Successfully read XPI database
JavaScript error: jar:file:///usr/lib/xulrunner-qt5-45.9.1/omni.ja!/components/nsSearchService.js, line 4049: TypeError: this._defaultEngine is null
I am not sure if the actual error is in the JS script mentioned last or rather the warning/error earlier concerning the Captcha qml.
This is on a community port of Sailfish OS 3.3.0.16 (Rokua) (latest for my device, a Fairphone 2) using harbour-whisperfish-0.6.0-0.beta.5.src as provided by openrepos-rubdos.
Any advice to troubleshoot this further and/or known workarounds (downgrade, manual registration, ../?) would be highly appreciated.