[Qgis-developer] wrapped C/C++ object of type QgsMapRenderer has been deleted
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] Filter query definition doesn't update in tooltip over layer
Hi, When playing a lot with filter request on postgis layer, Tooltip content is no more in sync whith actual query. Another strange behaviour observed twice, on loading a project, filter query disappear from filter dialog, and is hard written in datasource definition. There is no other way to change it but manually cleaning qgs file. anybody confirms? Cheers Régis -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filter-query-definition-doesn-t-update-in-tooltip-over-layer-tp5094594.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] next Hackfest: Vienna
On 12/14/2013 04:37 PM, Richard Duivenvoorde wrote: Hi Devs, after last PSC meeting we decided to go to Vienna for the next QGIS Hackfest. This makes it possible for QGIS devs to spar a little with the Osgeo C-tribe devs, because Stephan is organizing an Osgeo Code sprint there. Because there is already an osgeo wiki page [0] we decided to not create one of our own, but reuse that resource. For most questions: please consult that page first: [0] So: if you want to join: please add your name to te participants list in the wiki page. Normally the QGIS hackfests are organized by some local organizer, often together with some (local/national) sponsors. Though we are joining the Code sprint, it will be VERY helpfull if people from our community would give a hand to Stephan for the organisation. Please email the PSC or Stephan for this. Regards, Richard Duivenvoorde [0] http://wiki.osgeo.org/wiki/Vienna_Code_Sprint_2014 Hi all, I wrote a brief post on the code sprint website [1] about the QGis Hackfest joining the Code Sprint. Let me know if you want me to add or change anything. Feel free to subscribe to the tosprint mailing list [2] if you're interested in sprint related communication. cu Stephan [1] http://vienna2014.sprint.osgeo.org/2013/12/17/qgis-hackfest-joins.html [2] http://lists.osgeo.org/mailman/listinfo/tosprint ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QT 5.2 is out
Hi no I m actually using Qt mobility abd it is not only working for android. It is just IFDEF qtmobility. ciao Marco Bernasocchi (mobile) http://opengis.ch On 13 Dec 2013 12:27, Luca Manganelli luc...@gmail.com wrote: On Fri, Dec 13, 2013 at 11:14 AM, Matthias Kuhn matthias.k...@gmx.chwrote: I think Marco already has access to the GPS on his Android port. I don't know how he did it, but I remember, that he has been showing it. Probabily he is using the native android functions. ___ 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 ?
D'oh! Messed up, got it partially right. I'll get another update out tonight. On Dec 17, 2013, at 3:31 PM, Geo DrinX wrote: Hello William, I installed now QGis 2.0.1-5 , but QtDBus is still missing. :( I had hoped … but :) Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com Ah, it's not that phonon is missing (it's not) but phonon needs QtDBus, and that is missing. Must be a recent link requirement I missed. Works for me because it finds it in my development environment. I'll have to package an update with the needed QtDBus... On Dec 16, 2013, at 9:04 PM, Geo DrinX wrote: William, Phonon should be in the package. I was able to install the plugin. Does this work in the QGIS python console: from PyQt4.phonon import Phonon From console, I had: from PyQt4.phonon import Phonon Traceback (most recent call last): File input, line 1, in module File /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/qgis/utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: dlopen(/Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so, 2): Library not loaded: QtDBus.framework/Versions/4/QtDBus Referenced from: /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so Reason: image not found In reality, I have the phonon.so in this other path: /Applications/QGIS-2.01.app/Contents/Resources/python/PyQt4/phonon.so I have QGis 2.0.1-4 . Misterious. What I need to do ? Thank you for any other info Roberto On Dec 16, 2013, at 2:54 PM, Geo DrinX 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 - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin ___ 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 ?
Well, it's possible that it was compiled right after I committed a fix to the source this morning. The package on my site is just a fix to the package without a rebuild, but the source fix should not break it like I did. On Dec 17, 2013, at 4:20 PM, Geo DrinX wrote: It goes better. I have some new: I installed QGis 2.1-dev and the plugin VideoUAVTracker starts. So, I selected the avi file, and I done the same actions as on Windows, but… the video window remains empty, as in attach tif. Misterious. No error message. Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com D'oh! Messed up, got it partially right. I'll get another update out tonight. On Dec 17, 2013, at 3:31 PM, Geo DrinX wrote: Hello William, I installed now QGis 2.0.1-5 , but QtDBus is still missing. :( I had hoped … but :) Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com Ah, it's not that phonon is missing (it's not) but phonon needs QtDBus, and that is missing. Must be a recent link requirement I missed. Works for me because it finds it in my development environment. I'll have to package an update with the needed QtDBus... On Dec 16, 2013, at 9:04 PM, Geo DrinX wrote: William, Phonon should be in the package. I was able to install the plugin. Does this work in the QGIS python console: from PyQt4.phonon import Phonon From console, I had: from PyQt4.phonon import Phonon Traceback (most recent call last): File input, line 1, in module File /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/qgis/utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: dlopen(/Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so, 2): Library not loaded: QtDBus.framework/Versions/4/QtDBus Referenced from: /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so Reason: image not found In reality, I have the phonon.so in this other path: /Applications/QGIS-2.01.app/Contents/Resources/python/PyQt4/phonon.so I have QGis 2.0.1-4 . Misterious. What I need to do ? Thank you for any other info Roberto On Dec 16, 2013, at 2:54 PM, Geo DrinX 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 - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin VUAVTrackerEmpty.tiff - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ All generalizations are dangerous, even this one. ___ 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 ?
William, also the QGis-2.0.1-6 has the same empty video box problem. :( BTW, here there is a link for the test video and gps data : https://www.dropbox.com/s/ugm7awhlwlt5yj3/Dati%20VUT.zip and this a short tutorial, from my blog: http://droneplanner.blogspot.it/2013/12/video-uav-tracker-plugin-per-qgis.html I know, it's an italian language blog… I am sorry; but, more than words, it's important the video shown. :) Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com Well, it's possible that it was compiled right after I committed a fix to the source this morning. The package on my site is just a fix to the package without a rebuild, but the source fix should not break it like I did. On Dec 17, 2013, at 4:20 PM, Geo DrinX wrote: It goes better. I have some new: I installed QGis 2.1-dev and the plugin VideoUAVTracker starts. So, I selected the avi file, and I done the same actions as on Windows, but… the video window remains empty, as in attach tif. Misterious. No error message. Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com D'oh! Messed up, got it partially right. I'll get another update out tonight. On Dec 17, 2013, at 3:31 PM, Geo DrinX wrote: Hello William, I installed now QGis 2.0.1-5 , but QtDBus is still missing. :( I had hoped … but :) Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com Ah, it's not that phonon is missing (it's not) but phonon needs QtDBus, and that is missing. Must be a recent link requirement I missed. Works for me because it finds it in my development environment. I'll have to package an update with the needed QtDBus... On Dec 16, 2013, at 9:04 PM, Geo DrinX wrote: William, Phonon should be in the package. I was able to install the plugin. Does this work in the QGIS python console: from PyQt4.phonon import Phonon From console, I had: from PyQt4.phonon import Phonon Traceback (most recent call last): File input, line 1, in module File /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/qgis/utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: dlopen(/Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so, 2): Library not loaded: QtDBus.framework/Versions/4/QtDBus Referenced from: /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so Reason: image not found In reality, I have the phonon.so in this other path: /Applications/QGIS-2.01.app/Contents/Resources/python/PyQt4/phonon.so I have QGis 2.0.1-4 . Misterious. What I need to do ? Thank you for any other info Roberto On Dec 16, 2013, at 2:54 PM, Geo DrinX 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 - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin VUAVTrackerEmpty.tiff - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ All generalizations are dangerous, even this one. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] wrapped C/C++ object of type QgsMapRenderer has been deleted
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
Re: [Qgis-developer] What about Phonon.so on MacOSX ?
Got it. Another missing bit in Qt - the phonon backend that actually does the video playback work. Another package update coming soon. (tested and works) On Dec 17, 2013, at 10:12 PM, William Kyngesburye wrote: Hmm, that blog video tutorial also has its own empty video problem - in Safari, in html mode (no flash), the video just disappears after loading the initial view. So, don't know how to test the plugin... On Dec 17, 2013, at 9:47 PM, Geo DrinX wrote: William, also the QGis-2.0.1-6 has the same empty video box problem. :( BTW, here there is a link for the test video and gps data : https://www.dropbox.com/s/ugm7awhlwlt5yj3/Dati%20VUT.zip and this a short tutorial, from my blog: http://droneplanner.blogspot.it/2013/12/video-uav-tracker-plugin-per-qgis.html I know, it's an italian language blog… I am sorry; but, more than words, it's important the video shown. :) Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com Well, it's possible that it was compiled right after I committed a fix to the source this morning. The package on my site is just a fix to the package without a rebuild, but the source fix should not break it like I did. On Dec 17, 2013, at 4:20 PM, Geo DrinX wrote: It goes better. I have some new: I installed QGis 2.1-dev and the plugin VideoUAVTracker starts. So, I selected the avi file, and I done the same actions as on Windows, but… the video window remains empty, as in attach tif. Misterious. No error message. Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com D'oh! Messed up, got it partially right. I'll get another update out tonight. On Dec 17, 2013, at 3:31 PM, Geo DrinX wrote: Hello William, I installed now QGis 2.0.1-5 , but QtDBus is still missing. :( I had hoped … but :) Roberto 2013/12/17 William Kyngesburye wokl...@kyngchaos.com Ah, it's not that phonon is missing (it's not) but phonon needs QtDBus, and that is missing. Must be a recent link requirement I missed. Works for me because it finds it in my development environment. I'll have to package an update with the needed QtDBus... On Dec 16, 2013, at 9:04 PM, Geo DrinX wrote: William, Phonon should be in the package. I was able to install the plugin. Does this work in the QGIS python console: from PyQt4.phonon import Phonon From console, I had: from PyQt4.phonon import Phonon Traceback (most recent call last): File input, line 1, in module File /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/qgis/utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: dlopen(/Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so, 2): Library not loaded: QtDBus.framework/Versions/4/QtDBus Referenced from: /Applications/QGIS-2.01.app/Contents/MacOS/../Resources/python/PyQt4/phonon.so Reason: image not found In reality, I have the phonon.so in this other path: /Applications/QGIS-2.01.app/Contents/Resources/python/PyQt4/phonon.so I have QGis 2.0.1-4 . Misterious. What I need to do ? Thank you for any other info Roberto On Dec 16, 2013, at 2:54 PM, Geo DrinX 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 - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ I ache, therefore I am. Or in my case - I am, therefore I ache. - Marvin VUAVTrackerEmpty.tiff - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ All generalizations are dangerous, even this one. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Time is an illusion - lunchtime