{"action":"created","issue":{"url":"https://api.github.com/repos/kartoza/docker-qgis-desktop/issues/34","repository_url":"https://api.github.com/repos/kartoza/docker-qgis-desktop","labels_url":"https://api.github.com/repos/kartoza/docker-qgis-desktop/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/kartoza/docker-qgis-desktop/issues/34/comments","events_url":"https://api.github.com/repos/kartoza/docker-qgis-desktop/issues/34/events","html_url":"https://github.com/kartoza/docker-qgis-desktop/issues/34","id":326973499,"number":34,"title":"Problem with (K)ubuntu 18.04","user":{"login":"alastairdb","id":8200758,"avatar_url":"https://avatars3.githubusercontent.com/u/8200758?v=4","gravatar_id":"","url":"https://api.github.com/users/alastairdb","html_url":"https://github.com/alastairdb","followers_url":"https://api.github.com/users/alastairdb/followers","following_url":"https://api.github.com/users/alastairdb/following{/other_user}","gists_url":"https://api.github.com/users/alastairdb/gists{/gist_id}","starred_url":"https://api.github.com/users/alastairdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alastairdb/subscriptions","organizations_url":"https://api.github.com/users/alastairdb/orgs","repos_url":"https://api.github.com/users/alastairdb/repos","events_url":"https://api.github.com/users/alastairdb/events{/privacy}","received_events_url":"https://api.github.com/users/alastairdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-28T10:11:43Z","updated_at":"2018-05-29T21:16:48Z","closed_at":null,"author_association":"NONE","body":"The default Ubuntu 18.04 installation of qgis runs into problems. The error message is:\r\n\r\n```QH6248 qh_lib_check: Incorrect qhull library called.  Caller uses reentrant Qhull while library is non-reentrant\r\nQH6249 qh_lib_check: Incorrect qhull library called.  Size of qhT for caller is 8184, but for library is 2896.\r\nQH6255 qh_lib_check: Cannot continue.  Library 'qhull 7.2.0 (2015.2 2016/01/18)' uses a dynamic qhT via qh_QHpointer (e.g., qhull_p.so)\r\n```\r\n\r\nAn entry on [Stackexchange](https://gis.stackexchange.com/questions/234010/qgis-fails-to-load) indicates that this is due to a Scipy version mismatch:\r\n```\r\nGot the same problem on Linux Mint and finally fixed it.\r\n\r\nThe problem is that you've installed a few python libraries and one of them is a dependency of QGIS.\r\n\r\nQGIS ~2.18 works fine with Scipy 0.17, and after upgrade this library to the newest version you have 0.19.\r\n\r\nQGIS won't load with 0.19 because libqhull error.\r\n\r\nAll you need to do is downgrade, simply:\r\n\r\npip install scipy==0.17\r\nAnd everything should be ok. You can also try with newer version but I'm not sure which one is good. I downgraded to 0.11 and it works form me again.\r\n```\r\n\r\nThe standard Ubuntu 18.04 version of Scipy is 0.19.  I did not want to uninstall that , so I thought Docker might offer a solution. Unfortunately, `run-qgis-2.18ltr-in-docker.sh` results in the same problem with the qhull library. It would appear that the Dockerfile is picking up the standard Ubuntu 18.04 version of Scipy.\r\n\r\nI eventually solved the problem outside of Docker by using a Python 2 virtual environment (with pipenv) which picked up all the global site packages (including SIP). Then I added Scipy 17.0 to the virtual environment to call `pipenv run qgis` to launch `qgis`. You might need to add a similar solution to the Dockerfiles for qgis 2.XX to get them to run on Ubuntu 18.04.\r\n"},"comment":{"url":"https://api.github.com/repos/kartoza/docker-qgis-desktop/issues/comments/392948161","html_url":"https://github.com/kartoza/docker-qgis-desktop/issues/34#issuecomment-392948161","issue_url":"https://api.github.com/repos/kartoza/docker-qgis-desktop/issues/34","id":392948161,"user":{"login":"alastairdb","id":8200758,"avatar_url":"https://avatars3.githubusercontent.com/u/8200758?v=4","gravatar_id":"","url":"https://api.github.com/users/alastairdb","html_url":"https://github.com/alastairdb","followers_url":"https://api.github.com/users/alastairdb/followers","following_url":"https://api.github.com/users/alastairdb/following{/other_user}","gists_url":"https://api.github.com/users/alastairdb/gists{/gist_id}","starred_url":"https://api.github.com/users/alastairdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alastairdb/subscriptions","organizations_url":"https://api.github.com/users/alastairdb/orgs","repos_url":"https://api.github.com/users/alastairdb/repos","events_url":"https://api.github.com/users/alastairdb/events{/privacy}","received_events_url":"https://api.github.com/users/alastairdb/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T21:16:48Z","updated_at":"2018-05-29T21:16:48Z","author_association":"NONE","body":"I don't really know. But the following is the trace I get when I start QGIS 2.18.20 on my Kubuntu 18.04 system:\r\n```\r\n$ xhost +\r\naccess control disabled, clients can connect from any host\r\n$ docker run --name=\"qgis-desktop-ltr\"  -i -t -v ${HOME}:/home/${USER}  -v /tmp/.X11-unix:/tmp/.X11-unix  -e DISPLAY=unix$DISPLAY  --net=host kartoza/qgis-desktop:LTR \r\nWarning: Object::connect: No such signal QgsMergedBookmarksTableModel::&QgsMergedBookmarksTableModel::selectItem( const QModelIndex &index )\r\nStacktrace (piped through c++filt):\r\n/usr/bin/qgis[0x40bbb2]\r\n/usr/bin/qgis[0x40bff2]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f84ab1e1e9f]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70371)[0x7f84ab1e2371]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, ...)+0xa1)[0x7f84ab1e25e1]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x19ce46)[0x7f84ab30ee46]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType)+0x4de)[0x7f84ab313a5e]\r\n/usr/lib/libqgis_app.so.2.18.17(QgsBookmarks::QgsBookmarks(QWidget*)+0xc20)[0x7f84acf3afb0]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>)+0x131e)[0x7f84acec841e]\r\n/usr/bin/qgis[0x4067a8]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f84a9b3c830]\r\n/usr/bin/qgis(_start+0x29)[0x40b779]\r\nWarning: Object::connect:  (receiver name: 'QgsBookmarksBase')\r\nStacktrace (piped through c++filt):\r\n/usr/bin/qgis[0x40bbb2]\r\n/usr/bin/qgis[0x40bff2]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f84ab1e1e9f]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70371)[0x7f84ab1e2371]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, ...)+0xa1)[0x7f84ab1e25e1]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x19d6b3)[0x7f84ab30f6b3]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType)+0x4f0)[0x7f84ab313a70]\r\n/usr/lib/libqgis_app.so.2.18.17(QgsBookmarks::QgsBookmarks(QWidget*)+0xc20)[0x7f84acf3afb0]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>)+0x131e)[0x7f84acec841e]\r\n/usr/bin/qgis[0x4067a8]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f84a9b3c830]\r\n/usr/bin/qgis(_start+0x29)[0x40b779]\r\nWarning: QCss::Parser - Failed to load file  \"/style.qss\" \r\nStacktrace (piped through c++filt):\r\n/usr/bin/qgis[0x40bbb2]\r\n/usr/bin/qgis[0x40bff2]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f84ab1e1e9f]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QCss::Parser::init(QString const&, bool)+0x548)[0x7f84aa9273f8]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x504b54)[0x7f84aa982b54]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x50a07f)[0x7f84aa98807f]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x50df92)[0x7f84aa98bf92]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x512121)[0x7f84aa990121]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidgetPrivate::setStyle_helper(QStyle*, bool, bool)+0x11d)[0x7f84aa68e56d]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidgetPrivate::inheritStyle()+0x1ab)[0x7f84aa68e97b]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::setStyle(QStyle*)+0x1df)[0x7f84aa64685f]\r\n/usr/lib/libqgis_core.so.2.18.17(QgsApplication::setUITheme(QString const&)+0x299)[0x7f84ab9cd719]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::setTheme(QString const&)+0x30)[0x7f84ace79a00]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::readSettings()+0xb4)[0x7f84ace99464]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::functionProfile(void (QgisApp::*)(), QgisApp*, QString)+0x32)[0x7f84ace8cb12]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>)+0x1711)[0x7f84acec8811]\r\n/usr/bin/qgis[0x4067a8]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f84a9b3c830]\r\n/usr/bin/qgis(_start+0x29)[0x40b779]\r\nQInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory\r\nWarning: QFileSystemWatcher: failed to add paths: /home/albu01/.qgis2//project_templates\r\nStacktrace (piped through c++filt):\r\n/usr/bin/qgis[0x40bbb2]\r\n/usr/bin/qgis[0x40bff2]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f84ab1e1e9f]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70371)[0x7f84ab1e2371]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, ...)+0xa1)[0x7f84ab1e25e1]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QFileSystemWatcher::addPaths(QStringList const&)+0x1a3)[0x7f84ab2cb663]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QFileSystemWatcher::addPath(QString const&)+0x4a)[0x7f84ab2cc35a]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>)+0x1952)[0x7f84acec8a52]\r\n/usr/bin/qgis[0x4067a8]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f84a9b3c830]\r\n/usr/bin/qgis(_start+0x29)[0x40b779]\r\nWarning: QLayout: Attempting to add QLayout \"\" to QgsPanelWidgetStack \"mWidgetStack\", which already has a layout\r\nStacktrace (piped through c++filt):\r\n/usr/bin/qgis[0x40bbb2]\r\n/usr/bin/qgis[0x40bff2]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f84ab1e1e9f]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70371)[0x7f84ab1e2371]\r\n/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, ...)+0xa1)[0x7f84ab1e25e1]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QLayout::QLayout(QLayoutPrivate&, QLayout*, QWidget*)+0x150)[0x7f84aa670910]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QBoxLayout::QBoxLayout(QBoxLayout::Direction, QWidget*)+0xcb)[0x7f84aa64f72b]\r\n/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QVBoxLayout::QVBoxLayout(QWidget*)+0x11)[0x7f84aa650221]\r\n/usr/lib/libqgis_app.so.2.18.17(+0x35150e)[0x7f84ad07950e]\r\n/usr/lib/libqgis_app.so.2.18.17(QgsLayerStylingWidget::QgsLayerStylingWidget(QgsMapCanvas*, QList<QgsMapLayerConfigWidgetFactory*>, QWidget*)+0xf0)[0x7f84ad077a10]\r\n/usr/lib/libqgis_app.so.2.18.17(QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>)+0x1b34)[0x7f84acec8c34]\r\n/usr/bin/qgis[0x4067a8]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f84a9b3c830]\r\n/usr/bin/qgis(_start+0x29)[0x40b779]\r\nQH6248 qh_lib_check: Incorrect qhull library called.  Caller uses reentrant Qhull while library is non-reentrant\r\nQH6249 qh_lib_check: Incorrect qhull library called.  Size of qhT for caller is 8184, but for library is 2896.\r\nQH6255 qh_lib_check: Cannot continue.  Library 'qhull 7.2.0 (2015.2 2016/01/18)' uses a dynamic qhT via qh_QHpointer (e.g., qhull_p.so)\r\n $ \r\n```"}}
{"actor":{"display_login":"alastairdb"}}