Good to know you found the problem.
I could have been a bit more explicit, your solution is basically what
I had to do as well. It is better to check for pointers being valid
before using anyway!
I suppose the user can disable GPS to save battery, and not all
positionInfoSources may be available o
Ciao Luciano
I have cracked it!
I should have read the QtCreator Debug output more closely.
Using a constructor based on yours, I get:
[D] SatInfoSource::SatInfoSource:18 - No satellite info source available
as the demo starts up.
The problem occurs when myGeoSatelliteInfoSource->startUpd
Ciao Luciano
Thanks for the ideas. I agree this is most likely down to a missing
"real gps" on the emulator. If that is the case then it would be
fantastic if the emulator shipped with a GPS emulator (like the one on
the Nokia simulator).
My constructor now looks like this:
SatInfoSource:
I had crashes as well...
My code looks similar to yours, and I experienced the crash as well
(in the emulator, I suspected because there is no GPS on it, but...)
I found out that I needed to check for the positionInfoSource being valid:
Relevant snippets here:
StationListProxyModel::StationList
Curiouser and curiouser. Today the app still exits on GPS Startup, but
the Signal 11 error is not being reported, even though this was
repeatedly the case last night.
In the meantime I have created a throwaway demo SatInfoSourceDemo
illustrating the problem. (Basically the standard Sailfish
use gdb, bro 8)
On 28.12.2013 22:45, christopher.l...@thurweb.ch wrote:
Hi All
My application quits unexpectedly during startup, apparently due to
"signal 11".
This seems to be caused by turning the GPS on, as the error occurs
immediately after the app does that.
I experience this on the
Hi All
My application quits unexpectedly during startup, apparently due to
"signal 11".
This seems to be caused by turning the GPS on, as the error occurs
immediately after the app does that.
I experience this on the Emulator, so it maybe down to the Emulator
not having a real GPS. (my