<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 26, 2021 at 1:19 PM Radim Blazek <<a href="mailto:radim.blazek@gmail.com">radim.blazek@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
we are getting crash in OAuth2 plugin when QgsApplication.exitQgis()<br>
is called from Django application running on uWSGI/nginx. We need to<br>
call exitQgis() to cleanup temporary files. It works OK if it is run<br>
as Django script from command line.<br>
<br>
Unfortunately it does not print full backtrace info for<br>
liboauth2authmethod.so and then even for libqgis_core.so. I guess it<br>
happens in QgsO2 but there is nothing suspicious in that code.<br>
<br>
/usr/bin/uwsgi-core(uwsgi_backtrace+0x2a) [0x560f2dbf4dda]<br>
/usr/bin/uwsgi-core(uwsgi_segfault+0x23) [0x560f2dbf51c3]<br>
/lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7fb7be828840]<br>
/lib/libqgis_core.so.3.18.1(+0x3a2496) [0x7fb782844496]<br>
/usr/lib/qgis/plugins/liboauth2authmethod.so(+0x225c0) [0x7fb77404c5c0]<br>
/usr/lib/qgis/plugins/liboauth2authmethod.so(+0x2b317) [0x7fb774055317]<br>
/usr/lib/qgis/plugins/liboauth2authmethod.so(+0x2b5b9) [0x7fb7740555b9]<br>
/lib/libqgis_core.so.3.18.1(_ZN14QgsAuthManagerD1Ev+0x437) [0x7fb782afb847]<br>
<br>
Any idea how to fix it? Any workaround? How can i get full debug info?<br>
We have qgis and qgis-dbg 3.18.1 installed from <a href="http://qgis.org/debian" rel="noreferrer" target="_blank">qgis.org/debian</a>.<br>
<br></blockquote></div><br><div><br></div><div>Hi Radim,</div><div><br></div><div>no clues sorry, but if you don't need the oauth2 plugin you can just rm/mv the liboauth2authmethod.so and you should be fine.<br></div><div><br></div><div>-- </div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div></div>