Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread christopher . lamb

Hi All

In an attempt to track down the source of this problem, and possibly  
even solve it, I have created a throwaway demo posted to Github under:


https://github.com/sailfishapps/ThrowawayDemos/tree/master/Kaputt/PositionSourceDemo

The demo is basically a standard Sailfish new project, with a QML  
PositionSource element added to FirstPage, and the start() method  
called in a Component.onCompleted on that Page.


To actually get into the nitty-gritty of the code where the problem is  
likely to be, I have also copied in C++ code from QtPositioning. I am  
not sure if this identical to the code used in the Sailfish build of  
Positioning, but it is probably close enough. This in-line  
PositionSource element is imported by import PositionSource 5.2


Switching between the standard import and the in-line import is by  
comment in / out the import statement(s).


Of course, the problem may not be in the code at all, maybe I am  
missing some essential package or plugin on my Jolla ..


Grüsse

Chris




Zitat von christopher.l...@thurweb.ch:


Hi Alejandro

My understanding is that although the version is quotes as 5.1, it  
is actually a not quite finished 5.2


In the target there is a 5.2.0 subdirectory:

/Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/qt5/QtPositioning/5.2.0


import QtPositioning 5.2, import QtPositioning 5.1, and import  
QtPositioning 5.0 all give me the same error.


Whereas something like import QtPositioning 5.7 gives module  
QtPositioning version 5.7 is not installed


Chris


Zitat von Alejandro Exojo s...@badopi.org:


El Saturday 11 January 2014, christopher.l...@thurweb.ch escribió:

import QtPositioning 5.2


Isn't 5.1 the newest available?

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread christopher . lamb

Hi All

The plot thickens!

Marcel very kindly posted his code using PositionSource in QML.

https://github.com/balta3/sailfish-gpsinfo

So I loaded up Marcel's app, and it worked!

Then I scanned the application output, and found:

QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

Exactly the same error that my app was giving

So it looks like this error is a bit or a red herring in that it does  
not stop the PositionSource from working. But the error had stopped me  
from further integrating the PositionSource element.


Chris


Zitat von christopher.l...@thurweb.ch:


Hi All

In an attempt to track down the source of this problem, and possibly  
even solve it, I have created a throwaway demo posted to Github under:


https://github.com/sailfishapps/ThrowawayDemos/tree/master/Kaputt/PositionSourceDemo

The demo is basically a standard Sailfish new project, with a QML  
PositionSource element added to FirstPage, and the start() method  
called in a Component.onCompleted on that Page.


To actually get into the nitty-gritty of the code where the problem  
is likely to be, I have also copied in C++ code from QtPositioning.  
I am not sure if this identical to the code used in the Sailfish  
build of Positioning, but it is probably close enough. This  
in-line PositionSource element is imported by import  
PositionSource 5.2


Switching between the standard import and the in-line import is by  
comment in / out the import statement(s).


Of course, the problem may not be in the code at all, maybe I am  
missing some essential package or plugin on my Jolla ..


Grüsse

Chris




Zitat von christopher.l...@thurweb.ch:


Hi Alejandro

My understanding is that although the version is quotes as 5.1, it  
is actually a not quite finished 5.2


In the target there is a 5.2.0 subdirectory:

/Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/qt5/QtPositioning/5.2.0


import QtPositioning 5.2, import QtPositioning 5.1, and import  
QtPositioning 5.0 all give me the same error.


Whereas something like import QtPositioning 5.7 gives module  
QtPositioning version 5.7 is not installed


Chris


Zitat von Alejandro Exojo s...@badopi.org:


El Saturday 11 January 2014, christopher.l...@thurweb.ch escribió:

import QtPositioning 5.2


Isn't 5.1 the newest available?

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread Bob Jelica
I get the same error/warning in my app, without it affecting the app. At least 
not enough for me to dig into the error.
I still get the GPS fix, location etc, so my app is usable.

Would love to find out if it’s a real problem or just a ”ghost” problem, but 
thus far it seems like it’s not going to give me too much problems :)

//bob

On 12 Jan 2014, at 20:19, christopher.l...@thurweb.ch wrote:

 Hi All
 
 The plot thickens!
 
 Marcel very kindly posted his code using PositionSource in QML.
 
 https://github.com/balta3/sailfish-gpsinfo
 
 So I loaded up Marcel's app, and it worked!
 
 Then I scanned the application output, and found:
 
 QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'
 
 Exactly the same error that my app was giving
 
 So it looks like this error is a bit or a red herring in that it does not 
 stop the PositionSource from working. But the error had stopped me from 
 further integrating the PositionSource element.
 
 Chris
 
 
 Zitat von christopher.l...@thurweb.ch:
 
 Hi All
 
 In an attempt to track down the source of this problem, and possibly even 
 solve it, I have created a throwaway demo posted to Github under:
 
 https://github.com/sailfishapps/ThrowawayDemos/tree/master/Kaputt/PositionSourceDemo
 
 The demo is basically a standard Sailfish new project, with a QML 
 PositionSource element added to FirstPage, and the start() method called in 
 a Component.onCompleted on that Page.
 
 To actually get into the nitty-gritty of the code where the problem is 
 likely to be, I have also copied in C++ code from QtPositioning. I am not 
 sure if this identical to the code used in the Sailfish build of 
 Positioning, but it is probably close enough. This in-line PositionSource 
 element is imported by import PositionSource 5.2
 
 Switching between the standard import and the in-line import is by comment 
 in / out the import statement(s).
 
 Of course, the problem may not be in the code at all, maybe I am missing 
 some essential package or plugin on my Jolla ..
 
 Grüsse
 
 Chris
 
 
 
 
 Zitat von christopher.l...@thurweb.ch:
 
 Hi Alejandro
 
 My understanding is that although the version is quotes as 5.1, it is 
 actually a not quite finished 5.2
 
 In the target there is a 5.2.0 subdirectory:
 
 /Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/qt5/QtPositioning/5.2.0
 
 
 import QtPositioning 5.2, import QtPositioning 5.1, and import 
 QtPositioning 5.0 all give me the same error.
 
 Whereas something like import QtPositioning 5.7 gives module 
 QtPositioning version 5.7 is not installed
 
 Chris
 
 
 Zitat von Alejandro Exojo s...@badopi.org:
 
 El Saturday 11 January 2014, christopher.l...@thurweb.ch escribió:
 import QtPositioning 5.2
 
 Isn't 5.1 the newest available?
 
 --
 Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
 http://barnacity.net/ | http://disperso.net
 ___
 SailfishOS.org Devel mailing list
 
 
 
 
 ___
 SailfishOS.org Devel mailing list
 
 
 
 
 ___
 SailfishOS.org Devel mailing list
 
 
 
 
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread christopher . lamb

Hi Bob

Thanks for the confirmation that things work for you.

I too now suspect that it is a ghost problem. The trouble is, as soon  
as I saw the error I just assumed that it was a real problem and did  
not even bother to try and display Position info. To mix metaphors it  
led me up the garden path on a wild goose chase ...


Chris

Zitat von Bob Jelica sailf...@jelica.se:

I get the same error/warning in my app, without it affecting the  
app. At least not enough for me to dig into the error.

I still get the GPS fix, location etc, so my app is usable.

Would love to find out if it’s a real problem or just a ”ghost”  
problem, but thus far it seems like it’s not going to give me too  
much problems :)


//bob

On 12 Jan 2014, at 20:19, christopher.l...@thurweb.ch wrote:


Hi All

The plot thickens!

Marcel very kindly posted his code using PositionSource in QML.

https://github.com/balta3/sailfish-gpsinfo

So I loaded up Marcel's app, and it worked!

Then I scanned the application output, and found:

QMetaMethod::invoke: Unable to handle unregistered datatype  
'QGeoPositionInfo'


Exactly the same error that my app was giving

So it looks like this error is a bit or a red herring in that it  
does not stop the PositionSource from working. But the error had  
stopped me from further integrating the PositionSource element.


Chris


Zitat von christopher.l...@thurweb.ch:


Hi All

In an attempt to track down the source of this problem, and  
possibly even solve it, I have created a throwaway demo posted to  
Github under:


https://github.com/sailfishapps/ThrowawayDemos/tree/master/Kaputt/PositionSourceDemo

The demo is basically a standard Sailfish new project, with a QML  
PositionSource element added to FirstPage, and the start() method  
called in a Component.onCompleted on that Page.


To actually get into the nitty-gritty of the code where the  
problem is likely to be, I have also copied in C++ code from  
QtPositioning. I am not sure if this identical to the code used in  
the Sailfish build of Positioning, but it is probably close  
enough. This in-line PositionSource element is imported by  
import PositionSource 5.2


Switching between the standard import and the in-line import is by  
comment in / out the import statement(s).


Of course, the problem may not be in the code at all, maybe I am  
missing some essential package or plugin on my Jolla ..


Grüsse

Chris




Zitat von christopher.l...@thurweb.ch:


Hi Alejandro

My understanding is that although the version is quotes as 5.1,  
it is actually a not quite finished 5.2


In the target there is a 5.2.0 subdirectory:

/Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/qt5/QtPositioning/5.2.0


import QtPositioning 5.2, import QtPositioning 5.1, and import  
QtPositioning 5.0 all give me the same error.


Whereas something like import QtPositioning 5.7 gives module  
QtPositioning version 5.7 is not installed


Chris


Zitat von Alejandro Exojo s...@badopi.org:


El Saturday 11 January 2014, christopher.l...@thurweb.ch escribió:

import QtPositioning 5.2


Isn't 5.1 the newest available?

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread Aaron McCarthy
Hi,

On Sat, 11 Jan 2014 18:08:25 christopher.l...@thurweb.ch wrote:
 I have added a QML PositionSource element to the FirstPage of the  
 default HelloSailors new project, and call the start() method from  
 Component.onCompleted (see code snippet below mail).
 
 When running on the Emulator I get no error:
 
 When running on a real Jolla I get the following error:
 
 QMetaMethod::invoke: Unable to handle unregistered datatype
 'QGeoPositionInfo'

 I have the GPS enabled, I have used the maps app and agreed to the  
 licence there.

This is a problem with the Qt Geoclue positioning plugin, it fails to register 
the data type. I have submitted a fix upstream [1]. In the meantime you can 
work around it in you application by calling

qRegisterMetaTypeQGeoPositionInfo();

prior to creating a position info source.

[1] https://codereview.qt-project.org/75256

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread christopher . lamb

HI Aaron

Thanks for this. I am glad to hear a fix is underway.

I was about to play around with solution like the one you suggest  
until others in this mailing list provided me with demo code that  
indicates that despite the error, the PositionSource element seems to  
work!


If so, is this actually a ghost error that we can ignore for the moment?

Grüsse

Chris



Zitat von Aaron McCarthy aaron.mccar...@jolla.com:


Hi,

On Sat, 11 Jan 2014 18:08:25 christopher.l...@thurweb.ch wrote:

I have added a QML PositionSource element to the FirstPage of the
default HelloSailors new project, and call the start() method from
Component.onCompleted (see code snippet below mail).

When running on the Emulator I get no error:

When running on a real Jolla I get the following error:

QMetaMethod::invoke: Unable to handle unregistered datatype
'QGeoPositionInfo'

I have the GPS enabled, I have used the maps app and agreed to the
licence there.


This is a problem with the Qt Geoclue positioning plugin, it fails  
to register

the data type. I have submitted a fix upstream [1]. In the meantime you can
work around it in you application by calling

qRegisterMetaTypeQGeoPositionInfo();

prior to creating a position info source.

[1] https://codereview.qt-project.org/75256

Cheers,

--
Aaron McCarthy
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread Aaron McCarthy
Hi,

On Mon, 13 Jan 2014 07:55:32 christopher.l...@thurweb.ch wrote:
 Thanks for this. I am glad to hear a fix is underway.
 
 I was about to play around with solution like the one you suggest
 until others in this mailing list provided me with demo code that
 indicates that despite the error, the PositionSource element seems to
 work!
 
 If so, is this actually a ghost error that we can ignore for the moment?

It is a real error, but it does not affect the core functionality of the 
PositionSource. It can be ignored for the moment.

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list