<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Crash when using FileGDBAPI and Qt together on Linux in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386650#M652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you describe what you are attempting and provide some sample code that reproduces your problem. We tested locally and can not reproduce the crash.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The call was made from a worker thread, I made a separate post on this (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/59134-FileGDB-crash-windows-7-from-worker-thread?highlight=filegdb+crash"&gt;http://forums.arcgis.com/threads/59134-FileGDB-crash-windows-7-from-worker-thread?highlight=filegdb+crash&lt;/A&gt;&lt;SPAN&gt;). I didn't understand it at the begining - we have an isolated worker thread which handles FileGDB connection - no concurrent DB access, though. I didn't think this could cause problems, because FileGDB links to multi-threaded CRT, so I could not deduce it immediately.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 13:12:42 GMT</pubDate>
    <dc:creator>MartynasKulvietis</dc:creator>
    <dc:date>2012-06-05T13:12:42Z</dc:date>
    <item>
      <title>Crash when using FileGDBAPI and Qt together on Linux</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386646#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a crash when I try to use FileGDBAPI together with Qt on Linux. The crash reveals itself to be an infinite recursion between QObject and QThread when creating a QObject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp; DeleteGeodatabase(L"test.gdb");

&amp;nbsp;&amp;nbsp; Geodatabase geodb;
&amp;nbsp;&amp;nbsp; CreateGeodatabase(L"test.gdb", geodb); // Replace this with OpenGeodatabase(...) to make the crash go away

&amp;nbsp;&amp;nbsp; std::ifstream states_file("states.xml");
&amp;nbsp;&amp;nbsp; std::string states_xml;
&amp;nbsp;&amp;nbsp; getline(states_file, states_xml, '\0');

&amp;nbsp;&amp;nbsp; QObject q1; // Comment out this line to make the crash go away

&amp;nbsp;&amp;nbsp; Table table_states;
&amp;nbsp;&amp;nbsp; geodb.CreateTable(states_xml, L"", table_states);

&amp;nbsp;&amp;nbsp; QObject q2; // &amp;lt;-- Crash occurs Here

&amp;nbsp;&amp;nbsp; geodb.CloseTable(table_states);

&amp;nbsp;&amp;nbsp; CloseGeodatabase(geodb);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The crash occurs on the line 'QObject q2;', and the following conditions need to be met in order for the crash to occur:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Call 'CreateGeodatabase(...)' (The crash does not occur if you open an existing Geodatabase.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Create a QObject BEFORE the call to Geodatabase::CreateTable(...), AND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Create a QObject AFTER the call to Geodatabase::CreateTable(...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that something is happening in the FileGDBAPI to cause threading to get into a bad state (due to the fact the crash involves QThread).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris Scrimgeour&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 21:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386646#M648</guid>
      <dc:creator>ChrisScrimgeour</dc:creator>
      <dc:date>2011-05-31T21:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Crash when using FileGDBAPI and Qt together on Linux</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386647#M649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As noted in the readme under Notes, #3, the API does not support multi-threading. That said, the infinite loop is strange. We have investigated this an it has to do with our use of libXML internally. We continue to investigate this and will post any results on the blog.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 19:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386647#M649</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-06-10T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Crash when using FileGDBAPI and Qt together on Linux</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386648#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I also get the crash on windows, simple call crashes (1.2):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geodatabase* pGeodatabase = new Geodatabase;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HRESULT hr = CreateGeodatabase(L"C:\\mydb.gdb", *pGeodatabase);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In call stack I saw somethging about ExtendedCatalog, BaseXMLxxxxx::GetString or smlr. stack is gone and I cannot reproduce callstack in debugger (ends up in ntdll.dll now). It is clearly reproducable and is a showstopper on windows 7 64bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 09:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386648#M650</guid>
      <dc:creator>MartynasKulvietis</dc:creator>
      <dc:date>2012-06-04T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Crash when using FileGDBAPI and Qt together on Linux</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386649#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you describe what you are attempting and provide some sample code that reproduces your problem. We tested locally and can not reproduce the crash.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 17:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386649#M651</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-06-04T17:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Crash when using FileGDBAPI and Qt together on Linux</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386650#M652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you describe what you are attempting and provide some sample code that reproduces your problem. We tested locally and can not reproduce the crash.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The call was made from a worker thread, I made a separate post on this (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/59134-FileGDB-crash-windows-7-from-worker-thread?highlight=filegdb+crash"&gt;http://forums.arcgis.com/threads/59134-FileGDB-crash-windows-7-from-worker-thread?highlight=filegdb+crash&lt;/A&gt;&lt;SPAN&gt;). I didn't understand it at the begining - we have an isolated worker thread which handles FileGDB connection - no concurrent DB access, though. I didn't think this could cause problems, because FileGDB links to multi-threaded CRT, so I could not deduce it immediately.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 13:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386650#M652</guid>
      <dc:creator>MartynasKulvietis</dc:creator>
      <dc:date>2012-06-05T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Crash when using FileGDBAPI and Qt together on Linux</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386651#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check your runtime library settings for the project. For Release, it should be /MD and for debug it should be /MDd. Mixing those up or adding /MT or /MTd into the mix can cause a crash.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/crash-when-using-filegdbapi-and-qt-together-on/m-p/386651#M653</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-06-06T14:59:52Z</dc:date>
    </item>
  </channel>
</rss>

