I forgot to say that QgsApplication.exitQgis() /  QgsProject.clear()
is invoked by python atexit.register. If it is called before atexit,
it works.

exitQgis() in atexit is used in TestCase, it should work?

Radim

On Mon, Apr 26, 2021 at 1:40 PM Radim Blazek <[email protected]> wrote:
>
> On Mon, Apr 26, 2021 at 1:25 PM Alessandro Pasotti <[email protected]> wrote:
> > 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.
>
> Hi, thanks, I found QGIS_AUTHMETHOD_FILE envar which also does the job.
>
> Now it crashes in QgsProject.clear() and again the last qgis function
> does not have name in backtrace, is it macro?
>
> /usr/bin/uwsgi-core(uwsgi_backtrace+0x2a) [0x55c17b0eedda]
> /usr/bin/uwsgi-core(uwsgi_segfault+0x23) [0x55c17b0ef1c3]
> /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7f06e03c9840]
> /lib/libqgis_core.so.3.18.1(+0x3a2504) [0x7f06a43e5504]
> /lib/libqgis_core.so.3.18.1(_ZN10QgsProject5clearEv+0xaa5) [0x7f06a4d5f235]
> /lib/libqgis_core.so.3.18.1(_ZN10QgsProjectD1Ev+0x47) [0x7f06a4d603c7]
> /lib/libqgis_core.so.3.18.1(_ZN10QgsProjectD0Ev+0x9) [0x7f06a4d60729]
> /lib/libqgis_core.so.3.18.1(_ZN14QgsApplication8exitQgisEv+0x69)
> [0x7f06a4915729]
>
> Radim
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to