maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] WhoGo Maps (https://talk.maemo.org/showthread.php?t=100253)

pichlo 2018-07-07 16:40

Re: WhoGo Maps
 
Happened again today. Twice. WhoGo is currently closed, yet flashing GPS icon in the status bar and trying to start a new instance shuts it down instantly.

Code:

---
| Sailfish OS 2.2.0.29 (Mouhijoki)
'---
[nemo@Sailfish ~]$ ps aux | grep who*
nemo      1796  4.7  8.8 225536 73284 ?        Ssl  10:07  21:16 /usr/bin/sailfish-qml harbour-whogo-maps
nemo      1883  0.0  0.0  3968  564 ?        S    10:07  0:00 invoker --type=silica-qt5 --single-instance sailfish-qml harbour-whogo-maps
nemo    25916  0.0  0.0  4132  768 pts/0    S+  17:32  0:00 grep who*
[nemo@Sailfish ~]$

EDIT:
Killing processes 1796 and 1883 sorted it out, but the first time it happened today I did not have time for such experiments. Life is too short, a reboot was quicker.

jayki 2018-07-07 17:05

Re: WhoGo Maps
 
I have the same issue, but since many Versions. Even in Poor Maps i had this issue already.. :/

rinigus 2018-07-08 08:32

Re: WhoGo Maps
 
So, it looks like we need app killer for it. Or a one-liner to run from terminal / shellex

While I do wonder where does it lock itself.

pichlo 2018-07-08 10:48

Re: WhoGo Maps
 
I've been thinking about a one-liner too. Something along the lines of...
Code:

ps aux | grep whogo* | cut -d " " -f 2 | xargs kill -9
(Caveat: not tried yet.)

peterleinchen 2018-07-08 12:10

Re: WhoGo Maps
 
Quote:

Originally Posted by rinigus (Post 1546064)
So, it looks like we need app killer for it. Or a one-liner to run from terminal / shellex

As it is python why not add (for Jolla1 users only ;)) something like pichlos one-liner wrapped in an 'os.system(...)' call on closing the window of WhoGo?
(not the nice way of closing a program but hey ... :D)

Quote:

Originally Posted by rinigus (Post 1546064)
While I do wonder where does it lock itself.

Maybe you could try different positions in py code and narrow down that occurence? I am sure pichlo would be happy to be guinea pig :rolleyes:

rinigus 2018-07-08 12:58

Re: WhoGo Maps
 
Quote:

Originally Posted by peterleinchen (Post 1546067)
As it is python why not add (for Jolla1 users only ;)) something like pichlos one-liner wrapped in an 'os.system(...)' call on closing the window of WhoGo?
(not the nice way of closing a program but hey ... :D)

Maybe you could try different positions in py code and narrow down that occurence? I am sure pichlo would be happy to be guinea pig :rolleyes:

Yeah, kill as a way of ending the program is surely not the best. I would suggest to file it as an issue for now under https://github.com/otsaloma/whogo-maps/issues and fill in as much info as possible (update if you get anything extra). Then it will be possible to pick it up when time permits. (I started to work on a new aspect of navigation and will be focusing on that for some time => would prefer to focus on it).

otsaloma 2018-07-08 17:20

Re: WhoGo Maps
 
I don't expect to investigate these Jolla 1 problems, but if someone wishes to do so, look at Application.quit, e.g. add print statements to see if one of those lines hangs. Try "raise SystemExit(1)" if needed to force a quit.

https://github.com/otsaloma/whogo-ma...ication.py#L54

jayki 2018-07-08 19:57

Re: WhoGo Maps
 
Well for me and two other users from my family it's not only a J1 Problem, we have this issue on the Xperia X aswell. So i think it's a common issue not limited to a specific platform.

peterleinchen 2018-07-08 21:04

Re: WhoGo Maps
 
Thanks otsaloma.

If this is really just a J1 problem I can understand. I guess some race condition on older (bit slower) problem someshere?

I had a brief look at the quit(s) and I would start my simple plain ' print "Something" ' statement begore and after line
self._worker_thread.join()
in poor/voice.py even I do not see.why it should not join...
(not knowing how task_queues are handled in python)

Have fun, pichlo ;)

rinigus 2018-07-09 06:18

Re: WhoGo Maps
 
@pichlo and @jayki:

As a follow up: its Python 3, so you would have to use
Quote:

print('This is line ')
syntax. Add it in between each command in quit. To see the print outs, run it in the terminal:
Quote:

sailfish-qml harbour-whogo-maps
or, if you wish to clone it into your home dir (probably a better solution), you could run it by
Quote:

qmlscene qml/whogo-maps.qml
If its regular for you, should be easy to catch it. Good luck!


All times are GMT. The time now is 09:44.

vBulletin® Version 3.8.8