Current Position



  • I am using QML PositionSource with Mobility 1.1 on Symbian^3 (C7). I am using the Nokia Tech Preview SDK (and included Qt installs).

    I can view Maps (proved Mobility is working ok) but when I try to use PositionSource, the app exits with...

    Process 660, thread 661 stopped at 0x8044fe1b: Thread 0x295 has panicked. Category: Lbs Client Fault; Reason: 6

    @PositionSource {
        id: positionSource
        updateInterval: 1000
        active: true
    
        onPositionChanged: {
            console.log("Map onPositionChanged");
            if (position.longitudeValid && position.latitudeValid) {
                mapImageCurrentLocation.coordinate.latitude = position.coordinate.latitude
                mapImageCurrentLocation.coordinate.longitude = position.coordinate.longitude
                mapImageCurrentLocation.visible = true;
            }
        }
    }@
    

    Simon



  • That error is typically related to capabilities issues:
    http://doc.qt.nokia.com/qtmobility-1.1.1/quickstart.html

    Basically, you'll need to add the "Location" capability to your pro file.

    Because people keep asking about this we've added further documentation and have also added some code so that people will get invalid / null position sources if they don't have the capabilities instead of getting a panic.

    As an aside, googling for "Lbs Client Fault; Reason: 6" would have returned a multitude of answers, since the results are now mostly to do with Qt Location. This is partly my fault for not making the previously mentioned changes sooner, although I'm confident a decent fraction of those results would have just changed to "why is QGeoPositionInfoSource::createDefaultSource() returning 0?" :)



  • [quote author="david.laing" date="1300231803"]That error is typically related to capabilities issues:
    http://doc.qt.nokia.com/qtmobility-1.1.1/quickstart.html

    Basically, you'll need to add the "Location" capability to your pro file.

    Because people keep asking about this we've added further documentation and have also added some code so that people will get invalid / null position sources if they don't have the capabilities instead of getting a panic.

    As an aside, googling for "Lbs Client Fault; Reason: 6" would have returned a multitude of answers, since the results are now mostly to do with Qt Location. This is partly my fault for not making the previously mentioned changes sooner, although I'm confident a decent fraction of those results would have just changed to "why is QGeoPositionInfoSource::createDefaultSource() returning 0?" :) [/quote]
    I am sure they still will, probably. Perhaps a panic is a more clear sign that something is wrong than getting a 0 result, even. Better documentation should help though :)



  • Where you have downloaded Nokia Tech preview.
    Nokia Tech preview SDK is what ?

    Use this : "Qt SDK 1.1 Beta":http://labs.qt.nokia.com/2011/03/01/qt-sdk-1-1-beta-released/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.