<?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 in destructor of DG::Browser in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612842#M9572</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7122"&gt;@Akos Somorjai&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;here is the report ID: &lt;STRONG&gt;AC26-2024-06-27-12-29-23-7213&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is happening randomly on shutdown of ArchiCAD, in the destructor of DG::Browser. I reproduced it in AC26 right now because it happens more often so it was easier to trigger it.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 12:51:43 GMT</pubDate>
    <dc:creator>andrewille</dc:creator>
    <dc:date>2024-06-27T12:51:43Z</dc:date>
    <item>
      <title>Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/587767#M9159</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am experiencing random crashes in the destructor of my class, which extends the &lt;EM&gt;DG::Browser&lt;/EM&gt; class. The weird thing is that I do not override the destructor. So I think this might be an issue of ArchiCAD 26.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can somebody relate or has a solution for this? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:25:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/587767#M9159</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2024-09-17T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612813#M9569</link>
      <description>&lt;P&gt;Still occuring in AC27 5003 INT FULL. I uploaded the log files.&lt;/P&gt;&lt;P&gt;We really need this to be fixed &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/12765"&gt;@Viktor Kovacs&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7122"&gt;@Akos Somorjai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 10:51:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612813#M9569</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2024-06-27T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612817#M9570</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you submitted this as a bug report? If so, could you please tell me the bug ID you received? This would give me more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Akos&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 11:04:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612817#M9570</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-06-27T11:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612842#M9572</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7122"&gt;@Akos Somorjai&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;here is the report ID: &lt;STRONG&gt;AC26-2024-06-27-12-29-23-7213&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is happening randomly on shutdown of ArchiCAD, in the destructor of DG::Browser. I reproduced it in AC26 right now because it happens more often so it was easier to trigger it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 12:51:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612842#M9572</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2024-06-27T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612850#M9573</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, that's very useful! I forwarded your request to a developer who knows more about this.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 13:11:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/612850#M9573</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-06-27T13:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/613593#M9591</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven't found the exact cause – yet. How are you destroying the DG::Browser instance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Akos&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 07:28:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/613593#M9591</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-07-02T07:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/613631#M9598</link>
      <description>&lt;P&gt;Hi Akos,&lt;BR /&gt;here is a brief snippet of the hierarchy:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;class LicenseManagerNew {
  static LicenseManagerNew *instance; // singleton class
  OAuthPalette loginPalette;
  ~LicenseManagerNew(); // destructor implemented, but does not explicitly destroy loginPalette
}

class OAuthPalette : DG::Palette {
  OAuthBrowser browser;
  // no destructor implemented
}

class OAuthBrowser : DG::Browser {
  // no destructor implemented
}&lt;/LI-CODE&gt;&lt;P&gt;The crash happens &lt;STRONG&gt;only sometimes&lt;/STRONG&gt; on &lt;STRONG&gt;shutdown on ArchiCAD&lt;/STRONG&gt;. As you can see, &lt;EM&gt;LicenseManagerNew&lt;/EM&gt; is a singleton class which gets destroyed automatically. The destructor of it does not explicitly destroy the other components I showed, but it happens implicitly on the end of the destructor (automatically). I have not implemented any other destructors, the exception is thrown internally in the &lt;EM&gt;DG::Browser&lt;/EM&gt;'s destructor. I haven't recognized any pattern how to trigger it exactly, but before exiting, the browser was used and a connection might still be open (if HTTP/2 if supported, at least).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 09:50:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/613631#M9598</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2024-07-02T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614143#M9616</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7122"&gt;@Akos Somorjai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any news on this? Have you sent them the stacktrace I uploaded?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 12:37:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614143#M9616</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2024-07-04T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614165#M9618</link>
      <description>&lt;P&gt;Hi André,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just two "maybe" ideas so far:&lt;/P&gt;
&lt;P&gt;- for some reason, the creation of the browser fails – do you receive any error?&lt;/P&gt;
&lt;P&gt;- memory overwrite in BIMmTool -- have you run the add-on with any memory checks?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 13:52:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614165#M9618</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-07-04T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614306#M9629</link>
      <description>&lt;P&gt;Hi Akos,&lt;/P&gt;&lt;P&gt;the browser was created and worked fine. It's just its shutdown that causes issues. The access violation is triggered in the ArchiCAD code (as seen in the stacktrace). It tries reading a null pointer (as seen in the log). I don't think it would access any of the pointers managed by BIMmTool, would it?&lt;/P&gt;&lt;P&gt;To me this looks like some race condition. As I said, the destruction happens when the singleton class gets destroyed, which might happen very late. It might be so late that ArchiCAD has already freed some memory it needs for the destruction.&lt;/P&gt;&lt;P&gt;As a workaround, I will try to manually destroy the DG::Browser earlier now, i.e. when the project is closed. It is hard to tell whether this fixes it because it occurs so randomly. I will keep you updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 12:47:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614306#M9629</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2024-07-05T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614307#M9630</link>
      <description>&lt;P&gt;Hi André,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The race condition looks promising; some garbage collection may have destroyed the browser control.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:17:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/614307#M9630</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-07-05T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676678#M10551</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/104755"&gt;@andrewille&lt;/a&gt;&amp;nbsp; - Hi, were you able to solve this?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Sep 2025 06:57:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676678#M10551</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2025-09-13T06:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676684#M10552</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/1393"&gt;@dushyant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes, indeed. I found a workaround that works for me in all tested versions of ArchiCad. You need to manually destroy the &lt;FONT face="andale mono,times"&gt;DG::Browser&lt;/FONT&gt; instance earlier. I hooked the method when a project is closed to do it. Maybe it would also work with the shutdown hook. Just do it early enough so the rest of Archicad is still initialized and then you won't get any race conditions anymore.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Sep 2025 09:30:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676684#M10552</guid>
      <dc:creator>andrewille</dc:creator>
      <dc:date>2025-09-13T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676687#M10553</link>
      <description>&lt;P&gt;Okay, great that you were able to fix it!&lt;BR /&gt;Could you please share where exactly you destroy the DG::Browser instance so that is early enough to avoid the crash? &lt;BR /&gt;Just to confirm - in your case, did you explicitly call ~OAuthBrowser() or used some other way to destroy it?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Sep 2025 10:58:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676687#M10553</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2025-09-13T10:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in destructor of DG::Browser</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676714#M10554</link>
      <description>&lt;P&gt;I was able to fix it by destroying the browser instance in FreeData().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 06:57:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Crash-in-destructor-of-DG-Browser/m-p/676714#M10554</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2025-09-14T06:57:16Z</dc:date>
    </item>
  </channel>
</rss>

