https://issues.qgis.org/https://issues.qgis.org/favicon.ico2008-05-20T23:41:07ZQGIS Issue TrackingQGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167372008-05-20T23:41:07ZMarco Pasetti -pasetti.marco@gmail.com
<ul></ul><p>I think that the only possible solution is to introduce a <strong>name check</strong> to prevent this error, telling that the location <strong>Bug</strong> already exists and repromp for a new name.</p>
<p>Marco</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167382008-07-16T04:47:01ZMaciej Sieczka -tutey@o2.pl
<ul></ul><p>Bug confirmed under WINE 1.0.0 configured to emulate Win XP, on amd64 Debian testing using Marco's "QGIS 0.11.0 for Windows pre-release testing installer".</p>
<p>Indeed it seems the culprit is Windows is not case-sensitive as GNU/Linux is.</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167392008-07-17T23:56:30ZMarco Pasetti -pasetti.marco@gmail.com
<ul></ul><p>Replying to [comment:4 msieczka]:</p>
<blockquote>
<p>Bug confirmed under WINE 1.0.0 configured to emulate Win XP, on amd64 Debian testing using Marco's "QGIS 0.11.0 for Windows pre-release testing installer".</p>
<p>Indeed it seems the culprit is Windows is not case-sensitive as GNU/Linux is.</p>
</blockquote>
<p>Absolutely! Windows is NOT case sensitive. As I said two months ago, there would be a simple solution: introduce a <strong>name check</strong> function to prevent this error, checking if the location's name (that is the folder) already exixts and, if yes, telling that the location <strong>Bug</strong> already exists and reprompt for a new name.</p>
<p>I donn't know if that should be done in GRASS code; actually I think that we could do that in one of the src\\qgis-dev\\src\\plugins\\grass\\ cpp files</p>
<p>Jurgen?</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167402008-09-09T06:15:44ZTom Elwertowskitelwertowski@comcast.net
<ul></ul><p>This also happens on a Mac.</p>
<p>There's already a duplicate name check in qgsgrassnewmapset.cpp. It needs to be made case insensitive for Mac and Win.</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167412008-09-09T12:18:30ZTom Elwertowskitelwertowski@comcast.net
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed by <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/47dbaf2924ffb5ac379ed5ed93e033f13f7202d6" title="Use QFile to determine if a proposed filename already exists. It will allow or disallow names whi...">47dbaf29</a> (SVN r9288).</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167422008-09-10T06:52:52Zcgsbob -
<ul><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li></ul><p>Replying to [comment:7 telwertowski]:</p>
<blockquote>
<p>Fixed by <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/47dbaf2924ffb5ac379ed5ed93e033f13f7202d6" title="Use QFile to determine if a proposed filename already exists. It will allow or disallow names whi...">47dbaf29</a> (SVN r9288).</p>
</blockquote>
<p>I think there is a problem with <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/47dbaf2924ffb5ac379ed5ed93e033f13f7202d6" title="Use QFile to determine if a proposed filename already exists. It will allow or disallow names whi...">47dbaf29</a> (SVN r9288). I'm running qt4.4 and I get this compile error:</p>
<pre>
Scanning dependencies of target grassplugin
[ 87%] Building CXX object src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassplugin.o
In file included from /home/bobm/src/gis/qgis_svn/src/plugins/grass/qgsgrassplugin.cpp:18:
/home/bobm/src/gis/qgis_svn/src/plugins/grass/qgsgrassplugin.h:99: error: &#8216;QPainter&#8217; has not been declared
/home/bobm/src/gis/qgis_svn/src/plugins/grass/qgsgrassplugin.cpp:523: error: prototype for &#8216;void [[QgsGrassPlugin]]::postRender(QPainter*)&#8217; does not match any in class &#8216;QgsGrassPlugin&#8217;
/home/bobm/src/gis/qgis_svn/src/plugins/grass/qgsgrassplugin.h:99: error: candidate is: void [[QgsGrassPlugin]]::postRender(int*)
maker2: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassplugin.o] Error 1
maker1: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/all] Error 2
make: *** [all] Error 2
</pre>
<p>The complete compiler output can be found here: [<a class="external" href="http://rafb.net/p/SAY4QJ37.html">http://rafb.net/p/SAY4QJ37.html</a>]</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167432008-09-10T08:19:35ZMaciej Sieczka -tutey@o2.pl
<ul></ul><p>And I get a foloowing error in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/98c33097036124b5f4f83e0f8b78987c3feec43d" title="fix #1307 git-svn-id: http://svn.osgeo.org/qgis/trunk@9290 c8812cc2-4d05-0410-92ff-de0c093fc19c">98c33097</a> (SVN r9291):</p>
<pre>
[ 91%] Generating ui_qgsprojectionselectorbase.h
/home/shoofi/src/straight/qgis-trunk/src/ui/qgsprojectionselectorbase.ui: An invalid icon property 'windowIcon' was encountered.
Scanning dependencies of target grassplugin
[ 92%] Building CXX object src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassplugin.o
In file included from /home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassplugin.cpp:18:
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassplugin.h:99: error: 'QPainter' has not been declared
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassplugin.cpp:523: error: prototype for 'void [[QgsGrassPlugin]]::postRender(QPainter*)' does not match any in class 'QgsGrassPlugin'
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassplugin.h:99: error: candidate is: void [[QgsGrassPlugin]]::postRender(int*)
maker2: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassplugin.o] Error 1
maker1: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/all] Error 2
make: *** [all] Error 2
</pre> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167442008-09-10T08:28:35ZTom Elwertowskitelwertowski@comcast.net
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul><p>These last two items were caused by <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/034dd5334f120cf85f53a628d5f2717d1701c7aa" title="Remove all Qt3 classes and methods from GRASS plugin and provider (except qgsgrassshell which is ...">034dd533</a> (SVN r9289) which upgraded the plugin from Qt3 to Qt4. X11 needed a QPainter declaration that Mac did not. Fixed by <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/2624cdea6f550ae6e8e701c0b3ce73569ec1c76c" title="Addendum to r9288. Header adjustments for Linux and removal of const for GRASS 6.2 compatibility....">2624cdea</a> (SVN r9292).</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167452008-09-10T08:38:38ZTom Elwertowskitelwertowski@comcast.net
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167462008-09-10T09:12:05ZMaciej Sieczka -tutey@o2.pl
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li></ul><p>Yet another error, in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/2624cdea6f550ae6e8e701c0b3ce73569ec1c76c" title="Addendum to r9288. Header adjustments for Linux and removal of const for GRASS 6.2 compatibility....">2624cdea</a> (SVN r9292):</p>
<pre>
[ 92%] Building CXX object src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassmodel.o
[ 93%] Building CXX object src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassmapcalc.o
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp: In member function 'virtual void [[QgsGrassMapcalc]]::mousePressEvent(QMouseEvent*)':
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:278: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:278: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:288: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:288: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp: In member function 'virtual QStringList [[QgsGrassMapcalc]]::checkRegion()':
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:494: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:494: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp: In member function 'virtual bool [[QgsGrassMapcalc]]::inputRegion(Cell_head*, bool)':
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:549: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:549: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp: In member function 'void [[QgsGrassMapcalc]]::growCanvas(int, int, int, int)':
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:957: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:957: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:965: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:965: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp: In member function 'void [[QgsGrassMapcalc]]::save()':
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:1124: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:1124: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:1175: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:1175: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp: In member function 'bool [[QgsGrassMapcalcConnector]]::tryConnectEnd(int)':
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:1990: error: must #include <typeinfo> before using typeid
/home/shoofi/src/straight/qgis-trunk/src/plugins/grass/qgsgrassmapcalc.cpp:1990: error: must #include <typeinfo> before using typeid
maker2: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassmapcalc.o] Error 1
maker1: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/all] Error 2
make: *** [all] Error 2
</pre> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167472008-09-10T09:54:35ZTom Elwertowskitelwertowski@comcast.net
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul><p>Add the line</p>
<p>#include <typeinfo></p>
<p>after #include <math.h> and try compiling again. I will wait for any other issues before updating svn.</p>
<p>What OS are you using? I will also add a comment that this file is needed for a particular OS so it doesn't get removed again.</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167482008-09-10T21:20:56ZTom Elwertowskitelwertowski@comcast.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>The last issue is fixed by gcc 4.3 compatibility changes in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/d0496982222dce3e1b6780ef12c07b4ee9e50d61" title="fix gcc 4.3 warnings git-svn-id: http://svn.osgeo.org/qgis/trunk@9292 c8812cc2-4d05-0410-92ff-de...">d0496982</a> (SVN r9293).</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167492008-09-10T21:47:09ZMaciej Sieczka -tutey@o2.pl
<ul></ul><p>Buids fine now. I'm on Debian testing amd64, gcc 4.3.1.</p> QGIS Application - Bug report #1044: crash when creating new GRASS location on Windowshttps://issues.qgis.org/issues/1044?journal_id=167502009-08-21T22:57:01ZAnonymous
<ul></ul><p>Milestone Version 1.0.0 deleted</p>