Re: [Qgis-developer] wrapped C/C++ object of type QgsMapRenderer has been deleted

2013-12-18 Thread Radim Blazek
Thanks for the explanation. Keeping reference to the object returned
by canvas.mapRenderer() helps.

Are you going to fix those problems?

Note: in my case, the error happens on QGIS 2.0.1 64 (Qt 4.8.5) / Win7
64 bit but it is working  on QGIS 2.0.1 32 (Qt 4.7.1) / Win7 64 and XP
32, but that only question of more frequent garbage collector, I
think.

Radim

On Wed, Dec 18, 2013 at 5:27 AM, Martin Dobias wonder...@gmail.com wrote:
 Hi Radim

 I have encountered this problem recently by chance when working on
 multi-threaded rendering. In SIP file for QgsMapCanvas, the
 mapRenderer() has /Transfer/ annotation (see commit 0246816e). The
 annotation has been obviously added to fix some other problem with
 canvas.mapRenderer().hasCrsTransformEnabled() idiom. I think the
 root of all evil is the fact that hasCrsTransformEnabled is both a
 signal (with one argument) and an ordinary function (no arguments). My
 guess is that SIP probably interprets that combination wrong, it seems
 that this is not a problem with other functions/signals.

 In any case, /Transfer/ annotation does not seem right. Maybe
 /KeepReference/ function annotation would solve the problem (I assume
 the python wrapper was getting destroyed too early). Also, having a
 signal and a normal function with the same name also does not feel
 right - but I guess we need to live with it until 3.0.

 Regards
 Martin


 On Tue, Dec 17, 2013 at 3:28 PM, Radim Blazek radim.bla...@gmail.com wrote:
 I have got strange bug report for python plugin, when calling from initGui()
iface.mapCanvas().mapRenderer().hasCrsTransformEnabled()
 it gives
RuntimeError: wrapped C/C++ object of type QgsMapRenderer has been deleted

 From C++ code I see that QgisApp mMapCanvas is created in QgisApp
 constructor and never deleted and QgsMapCanvas mMapRenderer is created
 in QgsMapCanvas constructor and deleted in QgsMapCanvas destructor. I
 don't see how it can happen that QgsMapRenderer is deleted.

 Any clue?

 Radim
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QGIS master now renders much slower?

2013-12-18 Thread Andreas Neumann
Hi,

With the most recent build QGIS master now renders much slower than QGIS
2.0. Things get worse when I zoom in in my project.

Compared to QGIS 2.0 it now renders 5-10 times slower.

Any idea what would cause the issue?

Thanks,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS master now renders much slower?

2013-12-18 Thread A Huarte
Hi Andreas, the pull request #8725 has been merged with a bug, We are working 
in fix it!
Can you say me the format of your data ?

shapefiles, postgis ?

thanks
Alvaro 



 De: Andreas Neumann a.neum...@carto.net
Para: qgis-developer qgis-developer@lists.osgeo.org 
Enviado: Miércoles 18 de diciembre de 2013 23:03
Asunto: [Qgis-developer] QGIS master now renders much slower?
 

Hi,

With the most recent build QGIS master now renders much slower than QGIS
2.0. Things get worse when I zoom in in my project.

Compared to QGIS 2.0 it now renders 5-10 times slower.

Any idea what would cause the issue?

Thanks,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS master now renders much slower?

2013-12-18 Thread Andreas Neumann
Hi Alvaro,

I recompiled with Release mode instead of Debug and it seems back to
normal speed or maybe even faster. Maybe too many debug messages on the
console that slowed down QGIS. My projects have many layers (50-70) and
many labels.

Strange - I will have to do further tests. Sorry for the noise.

Andreas

Am 18.12.2013 23:20, schrieb A Huarte:
 Hi Andreas, the pull request #8725 has been merged with a bug, We are working 
 in fix it!
 Can you say me the format of your data ?
 
 shapefiles, postgis ?
 
 thanks
 Alvaro 
 
 
 
 De: Andreas Neumann a.neum...@carto.net
 Para: qgis-developer qgis-developer@lists.osgeo.org 
 Enviado: Miércoles 18 de diciembre de 2013 23:03
 Asunto: [Qgis-developer] QGIS master now renders much slower?


 Hi,

 With the most recent build QGIS master now renders much slower than QGIS
 2.0. Things get worse when I zoom in in my project.

 Compared to QGIS 2.0 it now renders 5-10 times slower.

 Any idea what would cause the issue?

 Thanks,
 Andreas
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS master now renders much slower?

2013-12-18 Thread A Huarte
Thanks Andreas! 
I am studing recent changes in postgre driver, I think that the PR-980 #8725 is 
not the problem.

Alvaro



 De: Andreas Neumann a.neum...@carto.net
Para: A Huarte ahuart...@yahoo.es; qgis-developer 
qgis-developer@lists.osgeo.org 
Enviado: Miércoles 18 de diciembre de 2013 23:30
Asunto: Re: [Qgis-developer] QGIS master now renders much slower?
 

Hi Alvaro,

I recompiled with Release mode instead of Debug and it seems back to
normal speed or maybe even faster. Maybe too many debug messages on the
console that slowed down QGIS. My projects have many layers (50-70) and
many labels.

Strange - I will have to do further tests. Sorry for the noise.

Andreas


Am 18.12.2013 23:20, schrieb A Huarte:
 Hi Andreas, the pull request #8725 has been merged with a bug, We are 
 working in fix it!
 Can you say me the format of your data ?
 
 shapefiles, postgis ?
 
 thanks
 Alvaro 
 
 
 
 De: Andreas Neumann a.neum...@carto.net
 Para: qgis-developer qgis-developer@lists.osgeo.org 
 Enviado: Miércoles 18 de diciembre de 2013 23:03
 Asunto: [Qgis-developer] QGIS master now renders much slower?


 Hi,

 With the most recent build QGIS master now renders much slower than QGIS
 2.0. Things get worse when I zoom in in my project.

 Compared to QGIS 2.0 it now renders 5-10 times slower.

 Any idea what would cause the issue?

 Thanks,
 Andreas
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer






___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS master now renders much slower?

2013-12-18 Thread A Huarte
Hi, same thing happened to me, strange but then I did not add a big error in my 
patch :-) ufff!

Kind Regards
Alvaro



 De: Andreas Neumann a.neum...@carto.net
Para: A Huarte ahuart...@yahoo.es; qgis-developer 
qgis-developer@lists.osgeo.org 
Enviado: Miércoles 18 de diciembre de 2013 23:30
Asunto: Re: [Qgis-developer] QGIS master now renders much slower?
 

Hi Alvaro,

I recompiled with Release mode instead of Debug and it seems back to
normal speed or maybe even faster. Maybe too many debug messages on the
console that slowed down QGIS. My projects have many layers (50-70) and
many labels.

Strange - I will have to do further tests. Sorry for the noise.

Andreas


Am 18.12.2013 23:20, schrieb A Huarte:
 Hi Andreas, the pull request #8725 has been merged with a bug, We are 
 working in fix it!
 Can you say me the format of your data ?
 
 shapefiles, postgis ?
 
 thanks
 Alvaro 
 
 
 
 De: Andreas Neumann a.neum...@carto.net
 Para: qgis-developer qgis-developer@lists.osgeo.org 
 Enviado: Miércoles 18 de diciembre de 2013 23:03
 Asunto: [Qgis-developer] QGIS master now renders much slower?


 Hi,

 With the most recent build QGIS master now renders much slower than QGIS
 2.0. Things get worse when I zoom in in my project.

 Compared to QGIS 2.0 it now renders 5-10 times slower.

 Any idea what would cause the issue?

 Thanks,
 Andreas
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer






___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] What about Phonon.so on MacOSX ?

2013-12-18 Thread KAMAL deep
Hello all,

i hav been trying to execute globe plugin in qgis 2.0 on windows7 using
OSGEO4W,but it is throwing bad allocation error .anyone pls help out to
resolve this.

regards


On Mon, Dec 16, 2013 at 12:54 PM, Geo DrinX geodr...@gmail.com wrote:

 Hello all,


 installing  Video UAV Tracker  plugin for QGis 2.0.1  on MacOSX  I had
 an error message referring to phonon.so, that seems not installed.


 Someone knows how to solve it ?


 Thank you in advance

 Roberto

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS master now renders much slower?

2013-12-18 Thread Marco Bernasocchi
yes many debug messages to the message logger will decrease responsiveness
a lot. I experience that with InaSAFE where we were logging in a 2000
feature loop. the loop would block while using normal print statements it
works in 10sec

Marco Bernasocchi (mobile)
http://opengis.ch
On 18 Dec 2013 23:30, Andreas Neumann a.neum...@carto.net wrote:

 Hi Alvaro,

 I recompiled with Release mode instead of Debug and it seems back to
 normal speed or maybe even faster. Maybe too many debug messages on the
 console that slowed down QGIS. My projects have many layers (50-70) and
 many labels.

 Strange - I will have to do further tests. Sorry for the noise.

 Andreas

 Am 18.12.2013 23:20, schrieb A Huarte:
  Hi Andreas, the pull request #8725 has been merged with a bug, We are
 working in fix it!
  Can you say me the format of your data ?
 
  shapefiles, postgis ?
 
  thanks
  Alvaro
 
 
  
  De: Andreas Neumann a.neum...@carto.net
  Para: qgis-developer qgis-developer@lists.osgeo.org
  Enviado: Miércoles 18 de diciembre de 2013 23:03
  Asunto: [Qgis-developer] QGIS master now renders much slower?
 
 
  Hi,
 
  With the most recent build QGIS master now renders much slower than QGIS
  2.0. Things get worse when I zoom in in my project.
 
  Compared to QGIS 2.0 it now renders 5-10 times slower.
 
  Any idea what would cause the issue?
 
  Thanks,
  Andreas
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 
 

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] What about Phonon.so on MacOSX ?

2013-12-18 Thread Gino Pirelli
http://hub.qgis.org/issues/9213


On 19 December 2013 06:16, KAMAL deep kamaldeepchi...@gmail.com wrote:

 Hello all,

 i hav been trying to execute globe plugin in qgis 2.0 on windows7 using
 OSGEO4W,but it is throwing bad allocation error .anyone pls help out to
 resolve this.

 regards


 On Mon, Dec 16, 2013 at 12:54 PM, Geo DrinX geodr...@gmail.com wrote:

 Hello all,


 installing  Video UAV Tracker  plugin for QGis 2.0.1  on MacOSX  I had
 an error message referring to phonon.so, that seems not installed.


 Someone knows how to solve it ?


 Thank you in advance

 Roberto

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer