<div><div>sorry, looks like I should have stuck with Rich Text format for this, here goes again (hopefully more readable this time)<br><br><font face="'PrimaSans BT,Verdana,sans-serif'">Previously I had posted the message shown below to the QGIS&nbsp;User List. I have not received any response from that group but hopefully someone here who is a developer will help....<br><br>Since the time that I posted this message I set up my own Python Plugin&nbsp;Repository and added it to the list. I received messages about this error from people who tried to use this plugin.<br><br>I have done further research today and have found that this error does not occur for the standalone&nbsp;Windows installers for QGIS&nbsp;that I downloaded&nbsp;from the QGIS.org&nbsp;website&nbsp;(both 1.1 and 1.2 work fine). This error only happens with the OSGEO4W installers and only for the more recent installers. I suspect that it is some component that I am downloading&nbsp;that is causing it. I wonder if it could be the Qt&nbsp;libraries that are available that I am selecting?<br><br>Can you help unravel this problem?<br><br>thanks,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bob Bruce</font><br><br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cbbruce%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:WordDocument>  <w:View>Normal</w:View>  <w:Zoom>0</w:Zoom>  <w:PunctuationKerning/>  <w:ValidateAgainstSchemas/>  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>  <w:Compatibility>   <w:BreakWrappedTables/>   <w:SnapToGridInCell/>   <w:WrapTextWithPunct/>   <w:UseAsianBreakRules/>   <w:DontGrowAutofit/>  </w:Compatibility>  <w:DoNotOptimizeForBrowser/> </w:WordDocument></xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles></xml><![endif]--><style><!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal        {mso-style-parent:"";        margin:0in;        margin-bottom:.0001pt;        mso-pagination:widow-orphan;        font-size:12.0pt;        font-family:"Times New Roman";        mso-fareast-font-family:"Times New Roman";}p.MsoPlainText, li.MsoPlainText, div.MsoPlainText        {margin:0in;        margin-bottom:.0001pt;        mso-pagination:widow-orphan;        font-size:10.0pt;        font-family:"Courier New";        mso-fareast-font-family:"Times New Roman";}@page Section1        {size:8.5in 11.0in;        margin:1.0in 77.95pt 1.0in 77.95pt;        mso-header-margin:.5in;        mso-footer-margin:.5in;        mso-paper-source:0;}div.Section1        {page:Section1;}--></style><!--[if gte mso 10]><style> /* Style Definitions */ table.MsoNormalTable        {mso-style-name:"Table Normal";        mso-tstyle-rowband-size:0;        mso-tstyle-colband-size:0;        mso-style-noshow:yes;        mso-style-parent:"";        mso-padding-alt:0in 5.4pt 0in 5.4pt;        mso-para-margin:0in;        mso-para-margin-bottom:.0001pt;        mso-pagination:widow-orphan;        font-size:10.0pt;        font-family:"Times New Roman";        mso-ansi-language:#0400;        mso-fareast-language:#0400;        mso-bidi-language:#0400;}</style><![endif]--><p class="MsoPlainText">-----Original Message-----<br>From: qgis-user-bounces@lists.osgeo.org[mailto:qgis-user-bounces@lists.osgeo.org] On Behalf Of Bob Bruce<br>Sent: Wednesday, August 26, 2009 9:22 AM<br>To: QGIS User List; Bruce, Bob (CON)<br>Subject: [Qgis-user] QGIS API QgsMapToolEmitPoint Is Not Working Now andQGISCrashes</p><p class="MsoPlainText"><o:p>&nbsp;</o:p></p><p class="MsoPlainText">Something strange is happening, a plugin that was working before has <o:p></o:p></p><p class="MsoPlainText">stopped working for me now. I recently set up a new Windows XP system <o:p></o:p></p><p class="MsoPlainText">(which has been fully patched) and then installed QGIS1.0, 1.1.0 and <o:p></o:p></p><p class="MsoPlainText">1.2 along with the libraries using the OSGEO4W installer.It has been <o:p></o:p></p><p class="MsoPlainText">two months since I have been using this plugin but I don't suppose that <o:p></o:p></p><p class="MsoPlainText">the API has changed in that time?<o:p></o:p></p><p class="MsoPlainText"><o:p>&nbsp;</o:p></p><p class="MsoPlainText">When I run my plugin in QGIS 1.1.0 (Pan) the Python code in the plugin <o:p></o:p></p><p class="MsoPlainText">enables the mouse clicks on the canvas to be captured and when I move <o:p></o:p></p><p class="MsoPlainText">the cursor on the mapcanvas I see a cross-hair cursor but as soon as I <o:p></o:p></p><p class="MsoPlainText">click on the canvas a Windows dialog appears with the message "qgis.exe <o:p></o:p></p><p class="MsoPlainText">has encountered a problem and needs to close" and QGIS crashes. The slot <o:p></o:p></p><p class="MsoPlainText">function never seems to be entered because the QMessageBox at the top of <o:p></o:p></p><p class="MsoPlainText">it never appears before the crash. Shown below is a snippet of my Python <o:p></o:p></p><p class="MsoPlainText">code in which I have added some calls to QMessageBox in the function <o:p></o:p></p><p class="MsoPlainText">setUpRubberBanding and these get called but the messagebox in <o:p></o:p></p><p class="MsoPlainText">setClipWindow never gets called before the crash.<o:p></o:p></p><p class="MsoPlainText"><o:p>&nbsp;</o:p></p><p class="MsoPlainText">What would be causing this QGIS crash?<o:p></o:p></p><p class="MsoPlainText"><o:p>&nbsp;</o:p></p><p class="MsoPlainText">thanks,<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Bob Bruce<o:p></o:p></p><p class="MsoPlainText"><o:p>&nbsp;</o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span>defsetUpRubberBanding(self):<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>-<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>-<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>(ommittedcode)<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>-<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>-<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>self.canvas = self.iface.mapCanvas()<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>QMessageBox.information(self,'ImageClipperDlg - ClipImage','In <o:p></o:p></p><p class="MsoPlainText">Function: setUpRubberBanding'+\<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>' MapCanvas Scale = "' + str(self.canvas.scale()) + '"')<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>self.emitPoint = QgsMapToolEmitPoint(self.canvas)<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>self.canvas.setMapTool(self.emitPoint)<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>QMessageBox.information(self,'ImageClipperDlg - ClipImage','In <o:p></o:p></p><p class="MsoPlainText">Function: setUpRubberBanding'+\<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>' about toconnect signal "canvasClicked"')<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span>QObject.connect(self.emitPoint,SIGNAL("canvasClicked(QgsPoint <o:p></o:p></p><p class="MsoPlainText">&amp;, Qt::MouseButton)"), self.setClipWindow)<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>self.isEmittingPoint = True<o:p></o:p></p><p class="MsoPlainText"><o:p>&nbsp;</o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span>defsetClipWindow(self, point, button):<o:p></o:p></p><p class="MsoPlainText"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>QMessageBox.information(self,'ImageClipperDlg - <o:p></o:p></p><p class="MsoPlainText">ClipImage','Entered Function: setClipWindow')<o:p></o:p></p><br></div></div>