Bug 8859 - Setting Phone for location setup swaps orientation and closes program
: Setting Phone for location setup swaps orientation and closes program
Status: RESOLVED FIXED
Product: Orrery
General
: unspecified
: N900 Maemo
: High major (vote)
: ---
Assigned To: Ken Young
: general
:
:
:
:
  Show dependency tree
 
Reported: 2010-02-06 00:04 UTC by Rüdiger Schiller
Modified: 2010-02-06 03:49 UTC (History)
0 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Rüdiger Schiller (reporter) 2010-02-06 00:04:33 UTC
SOFTWARE VERSION: 3.0.9-1 (fremantle extras)


EXACT STEPS LEADING TO PROBLEM: 
1. tap Main menu -> tap Location
2. tap 'Phone' checkbox (Menuentry 'Save in Private Menu' disappears)
3. tap on OK
4. Main menu closes, program orientation swaps to landscape
5. Orrery shuts down
6. start Orrery
7. Orrery shows up with Menu only, in landscape mode, load indicator next to
'Orrery' (Menu does not respond to taps)
8. Orrery shuts down after 5-10s

EXPECTED OUTCOME:
select the current position as derived by the phone (either from cell tower
coordinates or GPS)

ACTUAL OUTCOME:
program closes on first try, restarting it keeps it in landscape with the
loading symbol for 5-10s then it shuts down on me again

REPRODUCIBILITY:
always (10/10)

EXTRA SOFTWARE INSTALLED:
(only gpsd relevant software listed)
OSM2Go
Maep
ForecaWeather
Location Widget

OTHER COMMENTS:
Resetting '...gpsd 0' in /usr/share/orrery/config recovers.
First time this happened I didnt have a SIM plugged in so I tried again.. and
again.

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.16)
Gecko/2009121609 Iceweasel/3.0.6 (Debian-3.0.6-3)
Comment 1 Ken Young 2010-02-06 00:47:24 UTC
This does not happen on my phone, but I do not doubt it's a legitimate bug.
When you select "phone" for the position info (save to private catalog *should
disappear then, BTW), the program trys to parse the file 

/var/lib/gconf/system/nokia/location/lastknown/%gconf.xml

Can you check to see if that file exists on your phone?  If it does, could you
mail it to me at orrery.moko@gmail.com ?   Perhaps my program can't parse every
possible instance of that file.   Also, could you try running orrery from
xterm, using the command

/usr/bin/orrery -d /usr/share/orrery

Then select the phone location option, and tell me what is printed in xterm
when it exits?

THanks for taking the time to report this bug.   It's a bad one.
Comment 2 Rüdiger Schiller (reporter) 2010-02-06 01:28:50 UTC
> /var/lib/gconf/system/nokia/location/lastknown/%gconf.xml

does not exist, I am trying to get an unassisted gps lock, what did not work
yet either

> /usr/bin/orrery -d /usr/share/orrery
> 
> Then select the phone location option, and tell me what is printed in xterm
> when it exits?

it does start in portrait mode, menu slides in and orrery shuts down (nothing
changed yet, just because cli start), xterm output is:
"Wrong number (1) of numbers found on line 1 of
/usr/share/orrery/orbitalElements/mercuryElements"

~ $  cat /usr/share/orrery/orbitalElements/mercuryElements
0.38709927 0.20563593  7.00497902    252.25032350 77.45779628 48.33076593
0.00000037 0.00001906 -0.00594749 149472.67411175  0.16047689 -0.12534081
0.38709843 0.20563661  7.00559432    252.25166724 77.45771895 48.33961819
0.00000000 0.00002123 -0.00590158 149472.67486623  0.15940013 -0.12214182
0.00000000 0.00000000  0.00000000      0.00000000
Comment 3 Ken Young 2010-02-06 01:35:23 UTC
(In reply to comment #2)
> > /var/lib/gconf/system/nokia/location/lastknown/%gconf.xml
> 
> does not exist, I am trying to get an unassisted gps lock, what did not work
> yet either

OK, the lack of that gconf.xml file is undoubtably the problem.   I had thought
that file was guaranteed to exist.   I will modify the program to pop up an
error message if the phone has not yet written that locations file, and prevent
the
program from writing a config file that says to use the phone's location info.

Thanks for tracking this down.
Comment 4 Ken Young 2010-02-06 03:49:05 UTC
I have fixed this bug by making the phone use the last position info,
and display "(No phone position)" when the gconf.xml file which should
contain the phone-derived position does not exist, or cannot be parsed
successfully.  The program will no longer crash.

It will take a while for this fix to percolate its way up to the Extras
catalog.   In the mean time, the fixed .deb package may be downloaded from
here:

https://garage.maemo.org/frs/download.php/7441/orrery_3.1.0-1_armel.deb