[QGIS-Developer] Breaking default profile

Richard Duivenvoorde rdmailings at duif.net
Fri Jul 24 07:45:12 PDT 2020


Hi Devs,

I've had this week 2 times that my profile 'breaks', as in: QGIS (all versions I have master, 314 and 310) crash, I think during startup of the default profile.

The first time the profile was very old and had A LOT of plugins in it.
But the one of this week was rather small with just 3 small plugins.

Starting up another profile then is fine.
Normally I do a lot of switching between profiles, versions and language (switching using "--lang nl" because of my work for a dutch client). But not this week.

I was wondering if other encountered this? If not, forget about it :-)
But if others also have seen this, I think it is good to investigate further.

Regards,
Richard Duivenvoorde

I just started QGIS in gdb and then get the following BT,

/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsSettings::~QgsSettings()+0x3a)[0x7ffff35c1308]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::writeToSettings()+0xa0)[0x7ffff32fa766]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::setPaths(QStringList const&)+0x103)[0x7ffff32fa2eb]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::readFromSettings()+0x8a)[0x7ffff32fa5f0]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::QgsLocalizedDataPathRegistry()+0x3a)[0x7ffff32f9e3e]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsApplication::ApplicationMembers::ApplicationMembers()+0x23c)[0x7ffff3126ea4]
../src/core/qgsmessagelog.cpp:29 : (logMessage) [193ms] 2020-07-24T16:37:22 Qt[1] QVariant::load: unknown user type with name PyQt_PyObject.
QGIS died on signal 11[New LWP 67944]
[New LWP 67945]
[New LWP 67946]
[New LWP 67947]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ffff23051e7 in __GI___wait4 (pid=67950, stat_loc=0x7fffffffafd4, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
27	../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
[Current thread is 1 (Thread 0x7fffdff90f80 (LWP 67936))]
#0  0x00007ffff23051e7 in __GI___wait4 (pid=67950, stat_loc=0x7fffffffafd4, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x0000555555564266 in qgisCrash(int) (signal=11) at ../src/app/main.cpp:349
        status = 32767
        pidstr = "--pid=67936\000\377\177\000\000\364\272\377\377\377\177\000\000\363\025\376\367\377\177\000"
        gdbpid = 67950
        exename = "/home/richard/bin/qgis_/master/debug/bin/qgis\000\000\000p\263\377\377\377\177\000\000\244@*\362\377\177\000\000(\002A\362\377\177\000\000 \325@\362\377\177\000\000\340\201A\362\377\177\000\000\a\000\000\000\000\000\000\000\310\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000_Unwind_GetCFA\000%\000\000\000\000\000\000\000\000\240\037\000\000\377\377\000\000__pthread_key_cru\000s\000e\000r\000 \000t\000y\000p\000:\000:\000\000\000\000\000a\000d\000:\000 \000\064\000\000\000\000\000\000\000"...
        len = 45
#2  0x00007ffff2275d30 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#3  QgsApplication::messageLog() () at ../src/core/qgsapplication.cpp:2200
#4  0x00007ffff33589f1 in QgsMessageLog::logMessage(QString const&, QString const&, Qgis::MessageLevel, bool) (message=..., tag=..., level=Qgis::Warning, notifyUser=true) at ../src/core/qgsmessagelog.cpp:31
        __FUNCTION__ = "logMessage"
#5  0x0000555555564767 in myMessageOutput(QtMsgType, QMessageLogContext const&, QString const&) (type=QtWarningMsg, msg=...) at ../src/app/main.cpp:420
#6  0x00007ffff47d46c8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff47d47e9 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffff47a336a in QMessageLogger::warning(char const*, ...) const () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff47b8f51 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff49f2520 in operator>>(QDataStream&, QVariant&) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff493a309 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff493c21b in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff493c334 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff4940ca8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff49412fb in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff49373a5 in QSettings::~QSettings() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff49373d9 in QSettings::~QSettings() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff35c1308 in QgsSettings::~QgsSettings() (this=0x7fffffffbd30, __in_chrg=<optimized out>) at ../src/core/qgssettings.cpp:82
#19 0x00007ffff32fa766 in QgsLocalizedDataPathRegistry::writeToSettings() (this=0x5555559e15c0) at ../src/core/qgslocalizeddatapathregistry.cpp:113
#20 0x00007ffff32fa2eb in QgsLocalizedDataPathRegistry::setPaths(QStringList const&) (this=0x5555559e15c0, paths=...) at ../src/core/qgslocalizeddatapathregistry.cpp:75
        locker = {mLock = @0x5555559e15c8, mMode = QgsReadWriteLocker::Unlocked}
#21 0x00007ffff32fa5f0 in QgsLocalizedDataPathRegistry::readFromSettings() (this=0x5555559e15c0) at ../src/core/qgslocalizeddatapathregistry.cpp:108
#22 0x00007ffff32f9e3e in QgsLocalizedDataPathRegistry::QgsLocalizedDataPathRegistry() (this=0x5555559e15c0) at ../src/core/qgslocalizeddatapathregistry.cpp:26
#23 0x00007ffff3126ea4 in QgsApplication::ApplicationMembers::ApplicationMembers() (this=0x555555b42140) at ../src/core/qgsapplication.cpp:2257
        profiler = 0x7fffffffc290
#24 0x00007ffff311b2f8 in QgsApplication::QgsApplication(int&, char**, bool, QString const&, QString const&) (this=0x7fffffffcb20, argc=@0x7fffffffc2ac: 4, argv=0x7fffffffde38, GUIenabled=true, profileFolder=..., platformName=...) at ../src/core/qgsapplication.cpp:186
#25 0x000055555556864e in main(int, char**) (argc=4, argv=0x7fffffffde38) at ../src/app/main.cpp:1030
        preApplicationLogMessages = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x5555557e7fd0}, d = 0x5555557e7fd0}}, <No data fields>}
        __FUNCTION__ = "main"
        mySnapshotFileName = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        configLocalStorageLocation = {static null = {<No data fields>}, d = 0x5555557ea5f0}
        profileName = {static null = {<No data fields>}, d = 0x5555557f22d0}
        mySnapshotWidth = 800
        mySnapshotHeight = 600
        myHideSplash = false
        settingsMigrationForce = false
        mySkipVersionCheck = false
        hideBrowser = false
        myRestoreDefaultWindowState = false
        myRestorePlugins = true
        myCustomization = true
        dxfOutputFile = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        dxfSymbologyMode = QgsDxfExport::SymbolLayerSymbology
        dxfScale = 50000
        dxfEncoding = {static null = {<No data fields>}, d = 0x555555576b00 <main::{lambda()#2}::operator()() const::qstring_literal>}
        dxfMapTheme = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        dxfExtent = {mXmin = 0, mYmin = 0, mXmax = 0, mYmax = 0}
        takeScreenShots = false
        screenShotsPath = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        screenShotsCategories = 0
        myInitialExtent = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        translationCode = {static null = {<No data fields>}, d = 0x5555557f2120}
        authdbdirectory = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        pythonfile = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        customizationfile = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        globalsettingsfile = {static null = {<No data fields>}, d = 0x5555557e7a00}
        openClProgramFolder = {static null = {<No data fields>}, d = 0x7ffff4a96860 <QArrayData::shared_null>}
        args = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x5555557e8a10}, d = 0x5555557e8a10}}, <No data fields>}
        myUseGuiFlag = true
        rootProfileFolder = {static null = {<No data fields>}, d = 0x5555557e1330}
        manager = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x7ffff4c31c40 <QObject::staticMetaObject>}, stringdata = 0x7ffff3a82f80 <qt_meta_stringdata_QgsUserProfileManager>, data = 0x7ffff3a83000 <qt_meta_data_QgsUserProfileManager>, static_metacall = 0x7ffff2bdd572 <QgsUserProfileManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, mWatchProfiles = false, mWatcher = std::unique_ptr<class QFileSystemWatcher> = {get() = 0x0}, mRootProfilePath = {static null = {<No data fields>}, d = 0x5555557e1330}, mUserProfile = std::unique_ptr<class QgsUserProfile> = {get() = 0x0}, mSettings = std::unique_ptr<class QSettings> = {get() = 0x5555557ea380}}
        profile = 0x5555557ea7d0
        profileFolder = {static null = {<No data fields>}, d = 0x5555557e0f30}
        myApp = {<QApplication> = {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x7ffff59475c0 <QApplication::staticMetaObject>}, stringdata = 0x7ffff3a6fce0 <qt_meta_stringdata_QgsApplication>, data = 0x7ffff3a6fee0 <qt_meta_data_QgsApplication>, static_metacall = 0x7ffff2bc38aa <QgsApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, static QGIS_ORGANIZATION_NAME = 0x7ffff3bad442 "QGIS", static QGIS_ORGANIZATION_DOMAIN = 0x7ffff3bad447 "qgis.org", static QGIS_APPLICATION_NAME = 0x7ffff3bad450 "QGIS3", static mFileOpenEventReceiver31500 = 0x0, static mInitialized31500 = false, static mRunningFromBuildDir31500 = false, static sMaxThreads31500 = -1, mIconCache = {d = 0x7ffff4a97360 <QMapDataBase::shared_null>}, mCursorCache = {d = 0x7ffff4a97360 <QMapDataBase::shared_null>}, mQgisTranslator = 0x555555982d80, mQtTranslator = 0x5555559e15a0, mDataItemProviderRegistry = 0x0, mAuthManager = 0x0, mApplicationMembers = 0x0, static sApplicationMembers = 0x0, static sAuthManager = 0x0}
        settings = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x7ffff4c31c40 <QObject::staticMetaObject>}, stringdata = 0x7ffff3a7ecc0 <qt_meta_stringdata_QgsSettings>, data = 0x7ffff3a7ed00 <qt_meta_data_QgsSettings>, static_metacall = 0x7ffff2bd947a <QgsSettings::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, mUserSettings = 0x555555754b80, mGlobalSettings = 0x555555754bc0, mUsingGlobalArray = false}
        libPaths = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x555555754ac0}, d = 0x555555754ac0}}, <No data fields>}
        relLibPath = {static null = {<No data fields>}, d = 0x555555754a80}
        customizationsettings = 0x7fffffffde38
        systemEnvVars = {d = 0x555555754a40}
        useCustomVars = false
        desiredStyle = {static null = {<No data fields>}, d = 0x555555754a00}
        theme = {static null = {<No data fields>}, d = 0x5555557549c0}
        activeStyleName = {static null = {<No data fields>}, d = 0x555555754970}
        mySplashPath = {static null = {<No data fields>}, d = 0x555555754930}
        myPixmap = <incomplete type>
        w = 0
        h = 370441781
[Thread 0x7fff93fff700 (LWP 67903) exited]
[Thread 0x7fffa8bf5700 (LWP 67902) exited]
        mypSplash = 0x5555557e0b30
        qgis = 0x7ffff48f9cef <qRegisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*)+399>
        sigwatch = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x7ffff4c31c40 <QObject::staticMetaObject>}, stringdata = 0x5555555b83c0 <qt_meta_stringdata_UnixSignalWatcher>, data = 0x5555555b8480 <qt_meta_data_UnixSignalWatcher>, static_metacall = 0x55555557291a <UnixSignalWatcher::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = 0x555555754760}
        retval = 1432060160
[Inferior 1 (process 67936) detached]
gdb returned 0
[Thread 0x7fff937fe700 (LWP 67904) exited]


More information about the QGIS-Developer mailing list