costales / unav

GPS Navigator for Ubuntu Touch
GNU General Public License v3.0
25 stars 8 forks source link

App freezes after search #56

Open Schlicki2808 opened 1 year ago

Schlicki2808 commented 1 year ago

I'm using uNav under Ubuntu Touch 20.04 and I have the following problem:

  1. Starting the app and pressing the "locate" button on the bottom right.
  2. When it has GPS, I search for a location by using the search button.
  3. I am tapping the found search result.
  4. The search page closes, the map appears and the app isn't responding anymore - it freezes.

If I perform the above steps but WITHOUT GPS, the app does NOT freeze. So I search my location, press "navigate" button and then wait for GPS, it works.

This is what I got from the log file:

[14.03.23 18:54] Creating a QMirClientScreen now [14.03.23 18:54] [30806:30817:0314/185455.980488:ERROR:file_path_watcher_linux.cc(71)] Failed to read /proc/sys/fs/inotify/max_user_watches [14.03.23 18:54] [30806:30832:0314/185456.271521:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 30833: Permission denied (13) [14.03.23 18:54] qml: [JS] (file:///opt/click.ubuntu.com/navigator.costales/3.19/nav/index.html:52) Trying locales: de and de [14.03.23 18:54] qml: [JS] (file:///opt/click.ubuntu.com/navigator.costales/3.19/nav/index.html:43) Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. [14.03.23 18:54] qml: [JS] (file:///opt/click.ubuntu.com/navigator.costales/3.19/nav/index.html:55) Loaded locale 1: de [14.03.23 18:54] qml: [JS] (file:///opt/click.ubuntu.com/navigator.costales/3.19/nav/index.html:646) Loaded custom voices [14.03.23 18:54] [30806:30819:0314/185457.702804:ERROR:nss_util.cc(166)] Error initializing NSS with a persistent database (sql:/home/phablet/.pki/nssdb): NSS error code: -8126 [14.03.23 18:54] qml: [JS] (file:///opt/click.ubuntu.com/navigator.costales/3.19/nav/index.html:211) Starting GPS... [14.03.23 18:54] qml: grantFeaturePermission 3 [14.03.23 18:55] [30806:30832:0314/185540.633565:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 30863: Permission denied (13) [14.03.23 18:55] dbus[30806]: Attempted to unregister path (path[0] = com path[1] = lomiri) which isn't registered [14.03.23 18:55] propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.266\" (uid=32011 pid=30806 comm=\"/usr/lib/qt5/bin/qmlscene --scaling qml/Main.qml \" label=\"navigator.costales_navigator_3.19 (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1242 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" [14.03.23 18:55] nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.266\" (uid=32011 pid=30806 comm=\"/usr/lib/qt5/bin/qmlscene --scaling qml/Main.qml \" label=\"navigator.costales_navigator_3.19 (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1242 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" [14.03.23 18:55] "Object path cannot be empty" [14.03.23 18:55] qml: grantFeaturePermission 3

costales commented 1 year ago

Hi, Could you put here the term you are looking for? Thank you!

Costales.

On Tue, Mar 14, 2023 at 7:09 PM Schlicki2808 @.***> wrote:

I'm using uNav under Ubuntu Touch 20.04 and I have the following problem:

  1. Starting the app and pressing the "locate" button on the bottom right.
  2. When it has GPS, I search for a location by using the search button.
  3. I am tapping the found search result.
  4. The search page closes, the map appears and the app isn't responding anymore - it freezes.

If I perform the above steps but WITHOUT GPS, the app does NOT freeze. So I search my location, press "navigate" button and then wait for GPS, it works.

This is what I got from the log file:

[14.03.23 18:54] Creating a QMirClientScreen now [14.03.23 18:54] [30806:30817:0314/185455.980488:ERROR:file_path_watcher_linux.cc(71)] Failed to read /proc/sys/fs/inotify/max_user_watches [14.03.23 18:54] [30806:30832:0314/185456.271521:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 30833: Permission denied (13) [14.03.23 18:54] qml: [JS] (file:///opt/ click.ubuntu.com/navigator.costales/3.19/nav/index.html:52) Trying locales: de and de [14.03.23 18:54] qml: [JS] (file:///opt/ click.ubuntu.com/navigator.costales/3.19/nav/index.html:43) Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. [14.03.23 18:54] qml: [JS] (file:///opt/ click.ubuntu.com/navigator.costales/3.19/nav/index.html:55) Loaded locale 1: de [14.03.23 18:54] qml: [JS] (file:///opt/ click.ubuntu.com/navigator.costales/3.19/nav/index.html:646) Loaded custom voices [14.03.23 18:54] [30806:30819:0314/185457.702804:ERROR:nss_util.cc(166)] Error initializing NSS with a persistent database (sql:/home/phablet/.pki/nssdb): NSS error code: -8126 [14.03.23 18:54] qml: [JS] (file:///opt/ click.ubuntu.com/navigator.costales/3.19/nav/index.html:211) Starting GPS... [14.03.23 18:54] qml: grantFeaturePermission 3 [14.03.23 18:55] [30806:30832:0314/185540.633565:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 30863: Permission denied (13) [14.03.23 18:55] dbus[30806]: Attempted to unregister path (path[0] = com path[1] = lomiri) which isn't registered [14.03.23 18:55] propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.266" (uid=32011 pid=30806 comm="/usr/lib/qt5/bin/qmlscene --scaling qml/Main.qml " label="navigator.costales_navigator_3.19 (enforce)") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1242 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")" [14.03.23 18:55] nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.266" (uid=32011 pid=30806 comm="/usr/lib/qt5/bin/qmlscene --scaling qml/Main.qml " label="navigator.costales_navigator_3.19 (enforce)") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1242 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")" [14.03.23 18:55] "Object path cannot be empty" [14.03.23 18:55] qml: grantFeaturePermission 3

— Reply to this email directly, view it on GitHub https://github.com/costales/unav/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM5GQSN7Z5QZET4ZTUUO63W4CX5VANCNFSM6AAAAAAV2ZKKTY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Schlicki2808 commented 1 year ago

Hi, thanks for the fast reply. I tried with the following terms: "Wunderino arena" (it finds the stadium in Kiel, Germany) "Lütter Kamp 2" (another street in Germany)

Kind regards

Daniel

costales commented 1 year ago

Hi, thank you for the feedback! 20.04 was not released yet, then I'll leave this bug open for the future. Best regards!

costales commented 1 year ago

Relevant log:

Apr 28 18:22:17 ubuntu-phablet aa-exec[8687]: [8687:8711:0428/182217.435307:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 8757: Permission denied (13)
Apr 28 18:22:17 ubuntu-phablet aa-exec[8687]: dbus[8687]: Attempted to unregister path (path[0] = com path[1] = lomiri) which isn't registered
Apr 28 18:22:21 ubuntu-phablet aa-exec[8687]: propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.457\" (uid=32011 pid=8687 comm=\"/usr/lib/qt5/bin/qmlscene --scaling qml/Main.qml \" label=\"navigator.costales_navigator_3.17 (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1608 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
Apr 28 18:22:21 ubuntu-phablet aa-exec[8687]: nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.457\" (uid=32011 pid=8687 comm=\"/usr/lib/qt5/bin/qmlscene --scaling qml/Main.qml \" label=\"navigator.costales_navigator_3.17 (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1608 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
Apr 28 18:22:21 ubuntu-phablet aa-exec[8687]: "Object path cannot be empty"
costales commented 1 year ago

Behavior: After activate the GPS, coming back from QML (search/setting pages) freezes everything. Click on dark mode (QML) doesn't freeze it.

costales commented 1 year ago

Different log with GPS enabled:

Apr 29 18:20:46 ubuntu-phablet aa-exec[4550]: dbus[4550]: Attempted to unregister path (path[0] = com path[1] = lomiri) which isn't registered
costales commented 1 year ago

Where is the issue: https://github.com/costales/unav/blob/migrated-20.04/qml/Settings.qml#L30

Shauns2 commented 1 year ago

Is there an update to this issue? I see the same freeze issues with unav.

cibersheep commented 1 year ago

Could it be related to the gps itself? I need to test more but it seamed that gps from the indicator was «freezing» and turned off. I had to reboot the device for it to switch on again

costales commented 1 year ago

The UI should work with GPS or not... I would say is the upgrade of UT OS...

cibersheep commented 11 months ago

https://forums.ubports.com/topic/8930/20-04-focal-unav-freezes-with-gps-enabled/3

ruedigerkupper commented 6 months ago

I can confirm it happens with pure maps just alike. So this is not specific to the app, it appears GPS (or compass?) access triggers it.