https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-06-16T10:37:57ZQGIS Issue TrackingQGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421052013-06-16T10:37:57ZJürgen Fischerjef@norbit.de
<ul></ul><p>Produce a backtrace please.</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421092013-06-16T10:57:43ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>Here goes the dump file</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421102013-06-16T10:59:57ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>Dump file did not go through. Size limits?</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421112013-06-16T11:25:10ZGerhard Spieles
<ul><li><strong>File</strong> <a href="/attachments/download/5871/qgis_dev__win64_minidump_on_exit.jpg">qgis_dev__win64_minidump_on_exit.jpg</a> added</li></ul><p>confirm crash while exit on win7 64bit.<br />Screenshot with dmp popup is attached.</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421122013-06-16T11:30:46ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>Tried to build a debug version but errors at</p>
<pre>
Linking CXX executable ..\\..\\output\\bin\\qgis.exe
qtmain.lib(qtmain_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.cpp.obj
Creating library qgis.lib and object qgis.exp
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
..\\..\\output\\bin\\qgis.exe : fatal error LNK1319: 1 mismatches detected
LINK Pass 1 failed. with 2
</pre> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421132013-06-16T11:33:54ZJürgen Fischerjef@norbit.de
<ul></ul><p>Joaquim Luis wrote:</p>
<blockquote>
<p>Tried to build a debug version but errors at</p>
<p>[...]</p>
</blockquote>
<p>Try RelWithDebInfo</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421142013-06-16T13:16:41ZJoaquim Luisjluis@ualg.pt
<ul><li><strong>File</strong> <a href="/attachments/download/5872/Capture.JPG">Capture.JPG</a> added</li></ul><p>OK, that worked. The crash dump is now 10 Mb</p>
<p>It crashes in the QgisApp::~QgisApp() destructor, near its end at</p>
<pre><code>mPythonUtils->exitPython();</code></pre>
<p>Attached a screencapture of the VS dump summary.</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421172013-06-16T21:31:42ZMatthias Kuhn
<ul></ul><p>That call was inserted recently to cleanup the python environment.<br />I can imagine that this problem is unrelated to your compiler setup.</p>
<p>Did you execute any python code (plugins/console?)</p>
<p>Could you still upload the full dump to investigate this.</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421382013-06-17T02:06:19ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>No no python code executed. Only opening and close causes the dump generation.<br />I am trying to upload the dump but I see that the limit is 5 MB, and it has 10 so it will likely fail again.</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421392013-06-17T02:09:03ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Joaquim Luis wrote:</p>
<blockquote>
<p>No no python code executed. Only opening and close causes the dump generation.<br />I am trying to upload the dump but I see that the limit is 5 MB, and it has 10 so it will likely fail again.</p>
</blockquote>
<p>dropbox?</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421412013-06-17T04:12:25ZJoaquim Luisjluis@ualg.pt
<ul><li><strong>File</strong> <a href="/attachments/download/5873/qgis-20130616-230856-5956-2984-4b8f3c7.zip">qgis-20130616-230856-5956-2984-4b8f3c7.zip</a> added</li></ul><p>zipped the file size dropped to 1.4 Mb so it should pass now</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421462013-06-17T05:20:48ZMatthias Kuhn
<ul></ul><p>I just realized, that I am not even able to extract a backtrace from the dump file without the matching binaries. I am not even sure, that the binaries would help (I remember .pdb files being important as well but that was with another compiler setup...)</p>
The possibilities I can think of to proceed are:
<ul>
<li>You share a backtrace, so we can try to guess where the problem source is</li>
<li>You can #ifdef the offending line for your system (Windows 64 bits) if this helps in your case and your system is really the only one affected</li>
</ul>
<p>Sorry for the inconvenience.</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421482013-06-17T05:43:21ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>I have some experience with VS debugging but never with a dump file so I don't really know how it would work. I'm afraid that in order it work elsewhere I would have to make a copy of everything, including all the DLLs dependencies.</p>
<p>Sorry, I don't know either what is a backtrace. How would I produce one?<br />The #ifdef solution should be trivial to implement and will likely solve the problem for me, but there was another user -- Gerhard Spieles -- that reported the same problem in this thread. I didn't quite get if he had also built it's own binaries (64 bits?) or not.</p>
<p>Gerhard, if you are following this, can you please elaborate more about your setup?</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421492013-06-17T05:55:05ZMatthias Kuhn
<ul></ul><p>Maybe you did not compile / load the python library at all?<br />Can you try to update the code to use the following if:</p>
<pre>
if ( mPythonUtils )
mPythonUtils->exitPython();
</pre> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421502013-06-17T06:26:00ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>Things are getting better. With that condition it now exits cleanly but your question makes me think there is something I'm not doing write with my build. Basically what I'm doing is to include a CmakeUser.cmake file with path definitions and than run cmake & nmake. However, afaik only grass and postgres are not used here. For example, I can see in the CMakeCache.txt a line with</p>
<p>PYTHON_LIBRARY:FILEPATH=C:/programs/WinPython2.7.3_64/python-2.7.3.amd64/libs/python27.lib</p>
<p>so doesn't that mean I am compiling with python (and wouldn't it error if I was not?)</p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421512013-06-17T06:37:53ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Closing as the original issue is solved.</p>
<p>It would not complain if you have no python support (to test, try to open the python console from the menu, if it does not open you have no python support)</p>
<p>Sorry, I can't solve the problems you just outlined.<br />I don't know if you are subscribed to the qgis developer mailing list. There was a request to get insight into your setup [1] I'm sure if you share your experiences, others will jump in and happily help you to solve the remaining problems.</p>
<p>[1] <a class="external" href="http://osgeo-org.1560.x6.nabble.com/Fwd-QGIS-Desktop-Bug-8085-New-A-64-bits-build-on-Windows-crash-on-exit-td5060493.html">http://osgeo-org.1560.x6.nabble.com/Fwd-QGIS-Desktop-Bug-8085-New-A-64-bits-build-on-Windows-crash-on-exit-td5060493.html</a></p> QGIS Application - Bug report #8085: A 64 bits build on Windows crash on exithttps://issues.qgis.org/issues/8085?journal_id=421522013-06-17T06:43:50ZJoaquim Luisjluis@ualg.pt
<ul></ul><p>OK, I'll provide feedback on that issue of the developers list but I found bit more on this and another trouble.</p>