Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] App doesn’t start on Xperia 10 III #19

Open
Pohli opened this issue Jan 14, 2025 · 6 comments
Open

[Bug] App doesn’t start on Xperia 10 III #19

Pohli opened this issue Jan 14, 2025 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Pohli
Copy link

Pohli commented Jan 14, 2025

SailfishOS VERSION: 4.5.0.24

HARDWARE: Sony, Xperia 10 III

App VERSION: 0.3.1

BUG DESCRIPTION

Rainviewer app doesn’t start after tapping app drawer icon. There’s an active throbber on the app cover for a second and then nothing happens.

STEPS TO REPRODUCE

  1. Tap Rainviewer app in the app drawer.

ADDITIONAL INFORMATION

How can I get more information like console output?

@Pohli Pohli added the bug Something isn't working label Jan 14, 2025
@cnlpete
Copy link
Owner

cnlpete commented Jan 14, 2025

Hi, please run the app from cmdline using the command sailfish-qml harbour-rainviewer and paste the log here.
Do other mapping apps such as pure maps run on your device?

@cnlpete cnlpete self-assigned this Jan 14, 2025
@Pohli
Copy link
Author

Pohli commented Jan 14, 2025

The app runs successfully if started in CLI. Here is output:

[defaultuser@Xperia10III ~]$ sailfish-qml harbour-rainviewer
[D] unknown:0 - Using Wayland-EGL
library "libutils.so" not found
library "libcutils.so" not found
library "libhardware.so" not found
library "[email protected]" not found
library "[email protected]" not found
library "[email protected]" not found
library "[email protected]" not found
library "libc++.so" not found
library "libhidlbase.so" not found
library "libgralloctypes.so" not found
library "[email protected]" not found
library "libion.so" not found
library "libz.so" not found
library "libhidlmemory.so" not found
library "[email protected]" not found
library "[email protected]" not found
[D] onUrlPostFixChanged:39 - url-postfix changed
[D] expression for script:250 - Warning: Slider.maximumValue needs to be higher than Slider.minimumValue
[D] unknown:0 - Geoclue client path: "/org/freedesktop/Geoclue/Master/client25"
[I] unknown:0 - Using QSGMapboxGLTextureNode for map rendering. devicePixelRatio: 1
[W] unknown:0 - [ INFO ]  "{unknown}[General]: GPU Identifier: Adreno (TM) 619"
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[W] unknown:283 - file:///usr/share/harbour-rainviewer/qml/pages/StartPage.qml:283: TypeError: Cannot read property 'time' of undefined
[D] onIndexChanged:237 - add layer  tile_1736888400
[D] handleData:60 - model size is now  16
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.
[W] unknown:0 - Unable to update source: only GeoJSON and Image sources are mutable.

I got Pure Maps installed and it works fine.

@cnlpete
Copy link
Owner

cnlpete commented Jan 16, 2025

Well that is weird, i guess there must be some difference in the sailjail profiles then, otherwise i do not know...

can you try disabling the sandboxing? (you would need to edit /usr/share/applications/harbour-rainview
er.desktop /usr/share/harbour-rainviewer/qml/harbour-rainviewer.qml and put

[X-Sailjail]
Sandboxing=Disabled

instead of the current permission set?

[edit] corrected file to edit...

@cnlpete
Copy link
Owner

cnlpete commented Jan 16, 2025

You could also try and run the following:

/usr/bin/sailjail -p harbour-rainviewer /usr/bin/sailfish-qml harbour-rainviewer

and let me know what that does.

@Pohli
Copy link
Author

Pohli commented Jan 18, 2025

I don't understand what exactly to replace in the harbour-rainviewer.qml but I tested the second method but the app didn't start. I got the following output:

[defaultuser@Xperia10III ~]$ /usr/bin/sailjail -p harbour-rainviewer /usr/bin/sailfish-qml harbour-rainviewer
constructing /run/firejail/mnt/privileged:  ...
mounting /run/firejail/mnt/privileged @ /home/defaultuser/.local/share/system/privileged
hiding /run/firejail/mnt/privileged
[D] unknown:0 - Using Wayland-EGL
library "libutils.so" not found
library "libcutils.so" not found
library "libhardware.so" not found
library "[email protected]" not found
library "[email protected]" not found
library "[email protected]" not found
library "[email protected]" not found
library "libc++.so" not found
library "libhidlbase.so" not found
library "libgralloctypes.so" not found
library "[email protected]" not found
library "libion.so" not found
library "libz.so" not found
library "libhidlmemory.so" not found
library "[email protected]" not found
library "[email protected]" not found
[D] onUrlPostFixChanged:39 - url-postfix changed
[D] expression for script:250 - Warning: Slider.maximumValue needs to be higher than Slider.minimumValue
[D] unknown:0 - Geoclue client path: "/org/freedesktop/Geoclue/Master/client0"
[I] unknown:0 - Using QSGMapboxGLTextureNode for map rendering. devicePixelRatio: 1
[W] unknown:0 - [ INFO ]  "{unknown}[General]: GPU Identifier: Adreno (TM) 619"
sailfish-qml: /home/abuild/rpmbuild/BUILD/qmaplibregl-3.0.0+git1/maplibre-native-qt/vendor/maplibre-native/vendor/
mapbox-base/extras/rapidjson/include/rapidjson/document.h:1826: double rapidjson::GenericValue<Encoding, Allocator
>::GetDouble() const [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::CrtAllocator]: Assertion `IsNumber
()' failed.

@cnlpete
Copy link
Owner

cnlpete commented Jan 27, 2025

Sorry about the wrong file path, i corrected it above, disabling sailjail should/could make the app work for you... (as it seems to work when you start it directly).

however the issue is interesting... I am quite surprised as the code does work on the xperia 10 ii variants... I have heard that the xperia 10 iii variants do have a slightly slower/different gps behaviour, maybe there are some "NaN" values flying around where i do not expect them .... I will try to look into that again...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants