Re: [QGIS-Developer] Deploying 3.10.8 LTR on Debian 10

2020-07-24 Thread Sebastiaan Couwenberg
On 7/25/20 1:39 AM, Patrick Dunford wrote:
> OK I am not sure that is exactly what I want, the output looks like the
> package list in the qgis web site where the packages are stored. What I
> need is the version of each dependency which is actually on my computer now.

So you expand the logic to check if any of the listed dependencies are
installed, e.g.:

 for pkg_version in $(dpkg -l | grep qgis | grep ^ii | awk '{print
$2"="$3}'); do apt-cache show $pkg_version | egrep "Depends|Recommends"
| sed 's/^Depends: //; s/^Recommends: //' | perl -e 'my $input="";
while(<>){ $input .= $_; } foreach my $pkgs (split /, /, $input){ $pkgs
=~ s/ \(.*\)//; foreach my $pkg (split / \| /, $pkgs) { $pkg =~
s/:\S+//; system("dpkg -l $pkg"); } }'; done | grep ^ii | awk '{print
$2" "$3}'

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Deploying 3.10.8 LTR on Debian 10

2020-07-24 Thread Patrick Dunford
OK I am not sure that is exactly what I want, the output looks like the
package list in the qgis web site where the packages are stored. What I
need is the version of each dependency which is actually on my computer now.

So example
Package: libqgisgrass7-3.10.7
Depends: libc6 (>= 2.14), libexpat1 (>= 2.0.1), libgcc1 (>= 1:3.0),
libgdal20 (>= 1.11), libgeos-c1v5 (>= 3.4.2), libproj13 (>= 4.8.0),
libqca-qt5-2 (>= 2.0.2), libqgis-core3.10.7, libqgis-gui3.10.7,
libqgis-native3.10.7, libqscintilla2-qt5-13 (>= 2.8.4), libqt5concurrent5
(>= 5.0.2), libqt5core5a (>= 5.11.0~rc1), libqt5dbus5 (>= 5.0.2),
libqt5gui5 (>= 5.2.0), libqt5keychain1 (>= 0.7.0), libqt5network5 (>=
5.0.2), libqt5positioning5 (>= 5.6.0), libqt5printsupport5 (>= 5.0.2),
libqt5qml5 (>= 5.0.2), libqt5quick5 (>= 5.0.2), libqt5quickwidgets5 (>=
5.3.0), libqt5serialport5 (>= 5.4.1), libqt5sql5 (>= 5.0.2), libqt5svg5 (>=
5.6.0~beta), libqt5webkit5 (>= 5.6.0~rc), libqt5widgets5 (>= 5.2.0~alpha1),
libqt5xml5 (>= 5.0.2), libqwt-qt5-6 (>= 6.1.2), libspatialindex5 (>=
1.8.1), libspatialite7 (>= 2.4.0), libsqlite3-0 (>= 3.5.9), libstdc++6 (>=
5), libzip4 (>= 0.10), ocl-icd-libopencl1 | libopencl1

Tells me what should be in my system but not actually what is in my system.


On Thu, 23 Jul 2020 at 23:39, Sebastiaan Couwenberg 
wrote:

> On 7/23/20 1:18 PM, Patrick Dunford wrote:
> > Is there some kind of script I could run that would print out a list of
> > all the Qgis library dependencies and their version numbers.
>
> This oneliner should help:
>
>  for pkg_version in $(dpkg -l | grep qgis | grep ^ii | awk '{print
> $2"="$3}'); do apt-cache show $pkg_version | egrep
> "Package|Depends|Recommends" && echo; done
>
> Kind Regards,
>
> Bas
>
> --
>  GPG Key ID: 4096R/6750F10AE88D4AF1
> Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Breaking default profile

2020-07-24 Thread Richard Duivenvoorde
Ok, checking my QGIS3.ini I see that the CityJSON Loader plugin I tested 
yesterday has some settings with 'PyQt_PyObject' in it...
See below. I think that was the problem

Removing the part below from my QGIS3.ini makes QGIS startup again.


[CityJSON%20Loader]
semantic_colors\1\ambient=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\xffK\0K\0K\xfft\x94.)
semantic_colors\1\diffuse=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\xffK\0K\0K\xfft\x94.)
semantic_colors\1\specular=@Invalid()
semantic_colors\1\surface=RoofSurface
semantic_colors\2\ambient=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\xffK\xffK\xffK\xfft\x94.)
semantic_colors\2\diffuse=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\xc8K\xc8K\xc8K\xfft\x94.)
semantic_colors\2\specular=@Invalid()
semantic_colors\2\surface=WallSurface
semantic_colors\3\ambient=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\0K\0K\0K\xfft\x94.)
semantic_colors\3\diffuse=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\0K\0K\0K\xfft\x94.)
semantic_colors\3\specular=@Invalid()
semantic_colors\3\surface=GroundSurface
semantic_colors\4\ambient=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\xffK\xc8K\0K\xfft\x94.)
semantic_colors\4\diffuse=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\xffK\xc8K\0K\xfft\x94.)
semantic_colors\4\specular=@Invalid()
semantic_colors\4\surface=Door
semantic_colors\5\ambient=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\0KdK\xffK\xfft\x94.)
semantic_colors\5\diffuse=@Variant(\0\0\0\x7f\0\0\0\xePyQt_PyObject\0\0\0\0\x17\x80\x4\x95\f\0\0\0\0\0\0\0(K\0KdK\xffK\xfft\x94.)
semantic_colors\5\specular=@Invalid()
semantic_colors\5\surface=Window
semantic_colors\size=5


Code for that plugin is here:

https://github.com/cityjson/cityjson-qgis-plugin

The object written to Settings is:

https://github.com/cityjson/cityjson-qgis-plugin/blob/main/core/settings.py#L6-L32

semantic_colors = {
"RoofSurface": {
"diffuse": QColor(255, 0, 0),
"ambient": QColor(255, 0, 0),
"specular": None
},
...

So either QGIS or Qt cannot handle nested Qt objects as Settings values?

Besides asking the plugin authors to fix this, is there something QGIS can do?
As I reading settings of a plugin should not be able to crash QGIS I think?

Regards,

Richard Duivenvoorde




On 7/24/20 4:49 PM, Richard Duivenvoorde wrote:
> Doing a normal startup I now see starts with:
> "Warning: QVariant::load: unknown user type with name PyQt_PyObject."
> See below
> 
> Richard
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Breaking default profile

2020-07-24 Thread Richard Duivenvoorde
Doing a normal startup I now see starts with:
"Warning: QVariant::load: unknown user type with name PyQt_PyObject."
See below

Richard



$ qgis --profile default
../src/app/main.cpp:505 : (main) [0ms] Starting qgis main

(qgis:68199): dbind-WARNING **: 16:47:24.997: Couldn't connect to accessibility 
bus: Failed to connect to socket /tmp/dbus-PKFaQCgBeP: Connection refused
../src/core/qgsapplication.cpp:167 : (QgsApplication) [179ms] loading of qgis 
translation failed 
/home/richard/bin/qgis_/master/debug/share/qgis/i18n//qgis_en_US
Warning: QVariant::load: unknown user type with name PyQt_PyObject.
Stacktrace (piped through c++filt):
/home/richard/bin/qgis_/master/debug/bin/qgis(+0xffc7)[0x558a5a36efc7]
/home/richard/bin/qgis_/master/debug/bin/qgis(+0x106aa)[0x558a5a36f6aa]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0xc06c8)[0x7f9200e206c8]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0xc07e9)[0x7f9200e207e9]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QMessageLogger::warning(char const*, 
...) const+0xb6)[0x7f9200def36a]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0xa4f51)[0x7f9200e04f51]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(operator>>(QDataStream&, 
QVariant&)+0x10)[0x7f920103e520]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x226309)[0x7f9200f86309]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x22821b)[0x7f9200f8821b]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x228334)[0x7f9200f88334]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x22cca8)[0x7f9200f8cca8]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x22d2fb)[0x7f9200f8d2fb]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QSettings::~QSettings()+0x35)[0x7f9200f833a5]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QSettings::~QSettings()+0x9)[0x7f9200f833d9]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsSettings::~QgsSettings()+0x3a)[0x7f91ffc0d308]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::writeToSettings()+0xa0)[0x7f91ff946766]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::setPaths(QStringList
 const&)+0x103)[0x7f91ff9462eb]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::readFromSettings()+0x8a)[0x7f91ff9465f0]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::QgsLocalizedDataPathRegistry()+0x3a)[0x7f91ff945e3e]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsApplication::ApplicationMembers::ApplicationMembers()+0x23c)[0x7f91ff772ea4]
../src/core/qgsmessagelog.cpp:29 : (logMessage) [32ms] 2020-07-24T16:47:25 
Qt[1] QVariant::load: unknown user type with name PyQt_PyObject.
QGIS died on signal 11[New LWP 68207]
[New LWP 68208]
[New LWP 68209]
[New LWP 68210]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x7f91fe9511e7 in __GI___wait4 (pid=68213, stat_loc=0x7ffd39ed5b54, 
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 0x7f91ec5dcf80 (LWP 68199))]
#0  0x7f91fe9511e7 in __GI___wait4 (pid=68213, stat_loc=0x7ffd39ed5b54, 
options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x558a5a36f266 in qgisCrash(int) (signal=11) at ../src/app/main.cpp:349
status = 0
pidstr = "--pid=68199", '\000' 
gdbpid = 68213
exename = 
"/home/richard/bin/qgis_/master/debug/bin/qgis\000\000\000\244f\355\071\375\177\000\000\000\060\f\362\371\251\177؇(\255\373\000\000\000\000\020_\355\071\375\177\000\000\300U\244\376\221\177\000\000&\017\016\001\222\177\000\000
 
_\355\071\375\177\000\000\244\000\217\376\221\177\000\000\000\000\000\000\000\000\000\000\372¥\376\221\177\000\000(¥\376\221\177\000\000
 
\225\245\376\221\177\000\000\340A\246\376\221\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:\000:\000l\000o\000a\000d\000:\000
 \000\064\000\000\000\000\000\000\000\240\037\000\000"...
len = 45
#2  0x7f91fe8c1d30 in  () at 
/lib/x86_64-linux-gnu/libc.so.6
#3  QgsApplication::messageLog() () at ../src/core/qgsapplication.cpp:2200
#4  0x7f91ff9a49f1 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  0x558a5a36f767 in myMessageOutput(QtMsgType, QMessageLogContext const&, 
QString const&) (type=QtWarningMsg, msg=...) at ../src/app/main.cpp:420
#6  0x7f9200e206c8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x7f9200e207e9 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x7f9200def36a in QMessageLogger::warning(char const*, ...) const () at 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x7f9200e04f51 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

[QGIS-Developer] Breaking default profile

2020-07-24 Thread Richard Duivenvoorde
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)[0x735c1308]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::writeToSettings()+0xa0)[0x732fa766]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::setPaths(QStringList
 const&)+0x103)[0x732fa2eb]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::readFromSettings()+0x8a)[0x732fa5f0]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsLocalizedDataPathRegistry::QgsLocalizedDataPathRegistry()+0x3a)[0x732f9e3e]
/home/richard/bin/qgis_/master/debug/lib/libqgis_core.so.3.15.0(QgsApplication::ApplicationMembers::ApplicationMembers()+0x23c)[0x73126ea4]
../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".
0x723051e7 in __GI___wait4 (pid=67950, stat_loc=0x7fffafd4, 
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  0x723051e7 in __GI___wait4 (pid=67950, stat_loc=0x7fffafd4, 
options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x55564266 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  0x72275d30 in  () at 
/lib/x86_64-linux-gnu/libc.so.6
#3  QgsApplication::messageLog() () at ../src/core/qgsapplication.cpp:2200
#4  0x733589f1 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  0x55564767 in myMessageOutput(QtMsgType, QMessageLogContext const&, 
QString const&) (type=QtWarningMsg, msg=...) at ../src/app/main.cpp:420
#6  0x747d46c8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x747d47e9 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x747a336a in QMessageLogger::warning(char const*, ...) const () at 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x747b8f51 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x749f2520 in operator>>(QDataStream&, QVariant&) () at 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x7493a309 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x7493c21b in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x7493c334 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x74940ca8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x749412fb in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x749373a5 in QSettings::~QSettings() () at 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x749373d9 in QSettings::~QSettings() () at 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x735c1308 in QgsSettings::~QgsSettings() (this=0x7fffbd30, 
__in_chrg=) at ../src/core/qgssettings.cpp:82
#19 0x732fa766 in QgsLocalizedDataPathRegistry::writeToSettings() 
(this=0x559e15c0) at ../src/core/qgslocalizeddatapathregistry.cpp:113
#20 0x732fa2eb in