https://issues.qgis.org/https://issues.qgis.org/favicon.ico2014-11-25T03:53:17ZQGIS Issue TrackingQGIS Application - Bug report #11726: Assertion failed in QgsSingletonhttps://issues.qgis.org/issues/11726?journal_id=577732014-11-25T03:53:17ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>The assert could be removed to allow also the multiple instantiation of objects that support the singleton pattern. And I think I'll remove it because for certain classes that seems to be required (and e.g. helps in testing).<br />But is it not possible to use the singleton instance for the wms download handler?</p> QGIS Application - Bug report #11726: Assertion failed in QgsSingletonhttps://issues.qgis.org/issues/11726?journal_id=577762014-11-25T04:12:18ZMartin Dobiaswonder.sk@gmail.com
<ul></ul><p>The WMS download handler cannot use the default QgsNetworkAccessManager because that will not work across threads (the singleton can handle only requests from the main thread). My bad for changing NAM from singleton to not-just-singleton without documenting that properly in doxygen :-/</p> QGIS Application - Bug report #11726: Assertion failed in QgsSingletonhttps://issues.qgis.org/issues/11726?journal_id=577772014-11-25T04:24:55ZMatthias Kuhn
<ul></ul><p>Hmmm... quick local tests suggest that it works...</p> QGIS Application - Bug report #11726: Assertion failed in QgsSingletonhttps://issues.qgis.org/issues/11726?journal_id=577782014-11-25T04:29:33ZMatthias Kuhn
<ul></ul><p>But documentation says its dangerous...</p> QGIS Application - Bug report #11726: Assertion failed in QgsSingletonhttps://issues.qgis.org/issues/11726?journal_id=577792014-11-25T04:30:52ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/f2332258c923a43f29993c9ae3d4ef77aa4a8b8f" title="Don't enforce singleton behavior with Q_ASSERT Fix #11726">f2332258c923a43f29993c9ae3d4ef77aa4a8b8f</a>.</p>