Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashing when opening a project containing WMS layers #23612

Closed
qgib opened this issue Oct 11, 2016 · 10 comments
Closed

crashing when opening a project containing WMS layers #23612

qgib opened this issue Oct 11, 2016 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Project

Comments

@qgib
Copy link
Contributor

qgib commented Oct 11, 2016

Author Name: Gavin Fleming (@gubuntu)
Original Redmine Issue: 15689
Affected QGIS version: 2.16.3
Redmine category:project_loading/saving


I often have this problem - when I open a project containing WMS layers, it crashes and I have to create it from scratch again.

in gdb:

[New Thread 0x7fffbf98b700 (LWP 14541)]
Warning: Loading a file that was saved with an older version of qgis (saved in 2.16.2, loaded in 2.16.3). Problems may occur.
Warning: void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
Warning: QImage::setColor: Index out of bound 0
[New Thread 0x7fff3dde9700 (LWP 14542)]
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 

Thread 1 "qgis" received signal SIGSEGV, Segmentation fault.
0x00007ffff4f25c18 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb)

no gdb:

bin/qgis-2.16.sh
Warning: loading of qgis translation failed [/usr/local/qgis-2.16/share/qgis/i18n//qgis_en_ZA]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_ZA]
Warning: QCss::Parser - Failed to load file  "/style.qss" 
Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout
Warning: QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action 
Warning: QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action 
module tweepy found
Warning: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Search QMS" under id 357 
Warning: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Terms of Service / About" under id 414 
couldn't create image from  "" 
couldn't create image from  "" 
couldn't create image from  "" 
No handlers could be found for logger "sentry.errors"
couldn't create image from  "" 
Warning: void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
Warning: void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
Warning: Loading a file that was saved with an older version of qgis (saved in 2.16.2, loaded in 2.16.3). Problems may occur.
Warning: void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
Warning: QImage::setColor: Index out of bound 0
bin/qgis-2.16.sh: line 8: 15069 Segmentation fault      (core dumped) $PREFIX/bin/qgis

Also affects 2.14, 2.8

same symptoms as #12987


@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2016

Author Name: Nyall Dawson (@nyalldawson)


Can you provide a backtrace from gdb? (Type 'bt')

Are you able to share your project?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2016

Author Name: Gavin Fleming (@gubuntu)


The guilty project file is attached. The localhost layer won't work for you as it is an ssh tunnel.

Thread 1 "qgis" received signal SIGSEGV, Segmentation fault.
0x00007ffff4f25c18 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
Python Exception <class 'ImportError'> This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.: 
#_0  0x00007ffff4f25c18 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#_1  0x00007ffff4da6f5f in QWidgetPrivate::paintBackground(QPainter*, QRegion const&, int) const ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_2  0x00007ffff4da7ebe in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_3  0x00007ffff4f7c6c8 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_4  0x00007ffff4d9ac50 in QWidgetPrivate::syncBackingStore() ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_5  0x00007ffff4dad9b8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_6  0x00007ffff51919b3 in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_7  0x00007ffff754cb1b in QgisApp::event(QEvent*) () from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_8  0x00007ffff4d56fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_9  0x00007ffff4d5df16 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_10 0x00007ffff60e1da7 in QgsApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qgis-2.16/lib/libqgis_core.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_11 0x00007ffff5a1090d in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_12 0x00007ffff4f7e2de in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_13 0x00007ffff4d9d4b5 in QWidget::repaint(QRect const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_14 0x00007ffff4d9d513 in QWidget::repaint() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_15 0x00007ffff758aa97 in QgisApp::showProgress(int, int) ()
   from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_16 0x00007ffff79b06b5 in QgisApp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
   from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_17 0x00007ffff5a25010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_18 0x00007ffff659c428 in QgsProject::layerLoaded(int, int) ()
   from /usr/local/qgis-2.16/lib/libqgis_core.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_19 0x00007ffff62b3045 in QgsProject::_getMapLayers(QDomDocument const&, QList<QDomNode>&) ()
   from /usr/local/qgis-2.16/lib/libqgis_core.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_20 0x00007ffff62b4690 in QgsProject::read() () from /usr/local/qgis-2.16/lib/libqgis_core.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_21 0x00007ffff62b3a37 in QgsProject::read(QFileInfo const&) ()
   from /usr/local/qgis-2.16/lib/libqgis_core.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_22 0x00007ffff756aa8e in QgisApp::addProject(QString const&) ()
   from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_23 0x00007ffff756df5b in QgisApp::openProject(QString const&) ()
   from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_24 0x00007ffff771c86d in QgsWelcomePage::itemActivated(QModelIndex const&) ()
   from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_25 0x00007ffff79bc405 in QgsWelcomePage::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)
    () from /usr/local/qgis-2.16/lib/libqgis_app.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_26 0x00007ffff5a25010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_27 0x00007ffff52932c5 in QAbstractItemView::activated(QModelIndex const&) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_28 0x00007ffff529cc18 in QAbstractItemView::mouseDoubleClickEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_29 0x00007ffff4dae450 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_30 0x00007ffff5176cee in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_31 0x00007ffff529c663 in QAbstractItemView::viewportEvent(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_32 0x00007ffff5a10a76 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_33 0x00007ffff4d56fbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_34 0x00007ffff4d5e0d6 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
---Type <return> to continue, or q <return> to quit---
#_35 0x00007ffff60e1da7 in QgsApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qgis-2.16/lib/libqgis_core.so.2.16.3
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_36 0x00007ffff5a1090d in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_37 0x00007ffff4d5d6dd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_38 0x00007ffff4ddb3f2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_39 0x00007ffff4ddac83 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_40 0x00007ffff4e04542 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_41 0x00007fffed4e91a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_42 0x00007fffed4e9400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_43 0x00007fffed4e94ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_44 0x00007ffff5a412ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_45 0x00007ffff4e04616 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_46 0x00007ffff5a0f18f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_47 0x00007ffff5a0f4f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_48 0x00007ffff5a154b9 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 
#_49 0x000000000040a30d in main ()
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing: 


  • 10461 was configured as WMS_comparison.qgs

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2016

Author Name: Nyall Dawson (@nyalldawson)


Hmmm not much to go on there. Are you able to self build a debug version? I can't reproduce any crash with the project, but it's probably because of the missing WMS layer

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2016

Author Name: Martin Dobias (@wonder-sk)


Hi Gavin

Few questions :-)

  • can you confirm the problem persists if you disable all plugins?

  • can you confirm the problem persists in 2.18? there were some updates that may have helped

  • does it matter from what kind of source the WMS layer is coming from (e.g. it only happens with your "local" server, but not "remote" servers)?

  • does the project need at least two WMS layers in order to crash?

  • how often would it crash? Once in ten times you open the project?

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2016

Author Name: Gavin Fleming (@gubuntu)


Nyall I'm not sure when I'll be able to get around to building a debug version.

Martin

It just opened for me but I hadn't opened the ssh tunnel so it complained about a missing layer. So I then opened the tunnel and came back and said OK..then it proceeded to load both layers. It seems like the first one had time to load in the meantime? When I re-opened the project with the tunnel already open, it crashed again.

  • I can confirm it still crashes with all Python plugins disabled (after restart)
  • I haven't built 2.18 yet
  • not sure
  • haven't tested thoroughly yet
  • in this case every time (except in the fortuitous instance described above)

@qgib
Copy link
Contributor Author

qgib commented Oct 27, 2016

Author Name: Christian S (Christian S)


I have a similar problem that started with 2.18. My platform:
Ubuntu 16.04 64bit, QGIS 2.18.0 from ubuntugis

I cannot add WMS layers to a project if I enter a tilesize (for example 256 x 256) in the WMS dialog. QGIS crashes immediately after pressing "Add" in the WMS dialog.

When opening old projects (from 2.16.3) with such tiled WMS-layers in 2.18.0 QGIS crashes as well. It worked fine with QIGS 2.16.3 from ubuntugis.

Christian

@qgib
Copy link
Contributor Author

qgib commented Nov 8, 2016

Author Name: Marcus Schneider (Marcus Schneider)


The same problem apears in QGIS 2.18.0 for Windows 64Bit installed with the osgeo4w installer.
QGIS crashes when I try to add a WMS layer with a tile size. The same layer without a tile size will work correctly. The WMS Server is a Geoserver 2.10.0. There where no problem with QGIS 2.16.3.

@qgib
Copy link
Contributor Author

qgib commented Nov 8, 2016

Author Name: Martin Dobias (@wonder-sk)


Christian / Marcus: your problem involving crash with tiled WMS in 2.18 has been reported in #23719 and fixed (was introduced within 2.18 development). The issue Gavin reported is a different problem as it has been reported for 2.16

@qgib
Copy link
Contributor Author

qgib commented Jan 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • category_id was configured as Project Loading/Saving
  • status_id was changed from Feedback to Open
  • priority_id was changed from Normal to High
  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Mar 7, 2017

Author Name: Giovanni Manghi (@gioman)


I played a while with the attached project, adding other wms layers, reprojecting, etc. No crashes on 2.18.4 on Ubuntu 16.04

I assume the issue could have been fixed. Please reopen if is not.


  • resolution was changed from to not reproducable
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Project Crash/Data Corruption labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Project
Projects
None yet
Development

No branches or pull requests

1 participant