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

QGIS crashes opening old (2.0.1) project in valmiera (2.2.1) #18321

Closed
qgib opened this issue Mar 13, 2014 · 9 comments
Closed

QGIS crashes opening old (2.0.1) project in valmiera (2.2.1) #18321

qgib opened this issue Mar 13, 2014 · 9 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Project
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 13, 2014

Author Name: Alexandre Neto (@SrNetoChan)
Original Redmine Issue: 9779
Affected QGIS version: master
Redmine category:project_loading/saving


I'm having problems opening a Dufour project (2.0.1) in Valmiera (2.2.1) using windows 7 64 bit.

QGIS warns me that a older version project is going to be opened, complete the layers loading (at least it seems to) but crashes before rendering the layersthe layers. The same project still opens in 2.0.1 without any problems.

More, it is possible to use "embed groups and layer" to successfully add all layers to a new project. Which I believe excludes problems with the layers, so it must be a project settings that is causing the crash.

I put the qgs file in attachment. And I will try to provide some portable sample data that still cause the crash.


@qgib
Copy link
Contributor Author

qgib commented Mar 13, 2014

Author Name: Alexandre Neto (@SrNetoChan)


  • 6981 was configured as SIG_DTOP.qgs

@qgib
Copy link
Contributor Author

qgib commented Mar 14, 2014

Author Name: Alexandre Neto (@SrNetoChan)


I have opened the problematic project in qgis 2.0.1-3, removed all layers and saved it as a new project. The new project (SIG_DTOP_teste_1.qgs), even with no layer at all, still cause qgis 2.2.1 to crash.


  • 6982 was configured as SIG_DTOP_teste_1.qgs

@qgib
Copy link
Contributor Author

qgib commented Mar 14, 2014

Author Name: Giovanni Manghi (@gioman)


Alexandre Neto wrote:

I have opened the problematic project in qgis 2.0.1-3, removed all layers and saved it as a new project. The new project (SIG_DTOP_teste_1.qgs), even with no layer at all, still cause qgis 2.2.1 to crash.

here the console message

giovanni@sibirica ~ $ qgis
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
Warning: QGraphicsScene::addItem: item has already been added to this scene
Warning: Loading a file that was saved with an older version of qgis (saved in 2.0.1-Dufour, loaded in 2.3.0-Master). Problems may occur.
QGIS died on signal 11[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7f71e994a700 (LWP 9516)]
[New Thread 0x7f71ea14b700 (LWP 9515)]
[New Thread 0x7f72008e5700 (LWP 9511)]
[New Thread 0x7f72010e6700 (LWP 9510)]
[New Thread 0x7f7201f62700 (LWP 9509)]
0x00007f7235e63ccd in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7f723d16e7c0 (LWP 9497))]
#_0  0x00007f7235e63ccd in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#_1  0x00000000004f45b0 in qgisCrash(int) ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#_3  0x00007f7239a41e59 in QgsExpression::NodeColumnRef::prepare(QgsExpression*, QgsFields const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_4  0x00007f7239a4028b in QgsExpression::NodeBinaryOperator::prepare(QgsExpression*, QgsFields const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_5  0x00007f7239a4028b in QgsExpression::NodeBinaryOperator::prepare(QgsExpression*, QgsFields const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_6  0x00007f7239a46bf5 in QgsExpression::prepare(QgsFields const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_7  0x00007f7239bef7d4 in QgsAtlasComposition::updateFilenameExpression() () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_8  0x00000000008182c1 in ?? ()
No symbol table info available.
#_9  0x000000000081843b in QgsAtlasCompositionWidget::qt_metacall(QMetaObject::Call, int, void**) ()
No symbol table info available.
#_10 0x00007f7238a5e489 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_11 0x00007f72381eccb2 in QLineEdit::textChanged(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_12 0x00007f72381ecf59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_13 0x00007f7238a5e281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_14 0x00007f723845fb75 in QLineControl::textChanged(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_15 0x00007f72381f1b7b in QLineControl::finishChange(int, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_16 0x00007f72381f1e10 in QLineControl::internalSetText(QString const&, int, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_17 0x000000000078ad54 in QgsAtlasCompositionWidget::updateGuiElements() ()
No symbol table info available.
#_18 0x000000000081827d in ?? ()
No symbol table info available.
#_19 0x00007f7238a5e281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_20 0x00007f7239bf100b in QgsAtlasComposition::readXML(QDomElement const&, QDomDocument const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_21 0x000000000073aa61 in QgsComposer::readXML(QDomElement const&, QDomDocument const&, bool) ()
No symbol table info available.
#_22 0x000000000052e309 in QgisApp::loadComposersFromProject(QDomDocument const&) ()
No symbol table info available.
#_23 0x000000000080c1e1 in ?? ()
No symbol table info available.
#_24 0x00007f7238a5e281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_25 0x00007f7239c8f6f2 in QgsProject::readProject(QDomDocument const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_26 0x00007f7239b1dfdd in QgsProject::read() () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_27 0x00007f7239b1e73c in QgsProject::read(QFileInfo const&) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_28 0x0000000000529668 in QgisApp::addProject(QString) ()
No symbol table info available.
#_29 0x000000000052aee5 in QgisApp::fileOpen() ()
No symbol table info available.
#_30 0x000000000080ba2a in ?? ()
No symbol table info available.
#_31 0x00007f7238a5e281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_32 0x00007f7237dc6132 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_33 0x00007f7237dc631f in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_34 0x00007f723819bd8a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_35 0x00007f723819c03c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_36 0x00007f723825961a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_37 0x00007f7237e1d144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_38 0x00007f7237dcc894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_39 0x00007f7237dd20bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_40 0x00007f7239a07936 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.2.3.0
No symbol table info available.
#_41 0x00007f7238a49e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_42 0x00007f7237dcd862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_43 0x00007f7237e4cc35 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_44 0x00007f7237e4bbee in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_45 0x00007f7237e621ac in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_46 0x00007f7238233183 in QSplashScreen::finish(QWidget*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_47 0x00000000004eeeb0 in main ()
No symbol table info available.
gdb returned 0
Aborted (core dumped)


  • crashes_corrupts_data was changed from 0 to 1
  • version was changed from 2.2.0 to master
  • os_version was changed from 2.2.1 to
  • operating_system was changed from Windows 7 64 bit to
  • fixed_version_id was configured as Version 2.4
  • priority_id was changed from Normal to High

@qgib
Copy link
Contributor Author

qgib commented Mar 14, 2014

Author Name: Giovanni Manghi (@gioman)


Alexandre Neto wrote:

I have opened the problematic project in qgis 2.0.1-3, removed all layers and saved it as a new project. The new project (SIG_DTOP_teste_1.qgs), even with no layer at all, still cause qgis 2.2.1 to crash.

in the project there are composer layouts (2?) definitions, if I remove them then no crash.

Can you try remove the layouts from the project and see if then it still crashes?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 14, 2014

Author Name: Alexandre Neto (@SrNetoChan)


You are correct. If I remove one of the layouts from original project, it no longer crashes. More specifically one that has atlas creation active.

I have been doing some tests, and it seems that the offending project had an empty coverage layer name (coverageLayer=""), but in the atlas settings GUI it seemed to be using one of the canvas layers, reselecting the layer corrected the problem.

In QGIS 2.0.1, I was only able to recreate a project in those conditions if I remove the last suitable candidate for atlas coverage, i.e., removing the last vector layer. No errors are emitted, but after that QGIS 2.2 will crash trying to open that project. Strangely if I add a new vector layer, it will automatically set as coverage. Therefore, I'm not sure how have this happen in my particular project.

Anyway, in QGIS 2.2, if one remove the last suitable coverage layer (with atlas creation active), a crash dump occurs immediately.

I think that the current issue can be closed as an isolated strange case, but I believe the behavior in qgis 2.2 (or master) should be corrected.

Should I keep this open? or should I close it and open a brand new issue?

@qgib
Copy link
Contributor Author

qgib commented Mar 14, 2014

Author Name: Giovanni Manghi (@gioman)


Anyway, in QGIS 2.2, if one remove the last suitable coverage layer (with atlas creation active), a crash dump occurs immediately.

Nyall, as this is about the composer I'm assigning it to you (hopefully I'm not wrong).

I think that the current issue can be closed as an isolated strange case, but I believe the behavior in qgis 2.2 (or master) should be corrected.

Should I keep this open? or should I close it and open a brand new issue?

let's see what Nyall says.


  • assigned_to_id was configured as Nyall Dawson
  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Mar 14, 2014

Author Name: Jürgen Fischer (@jef-n)


Alexandre Neto wrote:

I have opened the problematic project in qgis 2.0.1-3, removed all layers and saved it as a new project. The new project (SIG_DTOP_teste_1.qgs), even with no layer at all, still cause qgis 2.2.1 to crash.

That's just because the atlas composition still references a coverage layer that is now gone. 1a67988 should fix that.


  • assigned_to_id removed Nyall Dawson
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 15, 2014

Author Name: Matthias Kuhn (@m-kuhn)


1a67988 cherry-picks nicely on top of release-2_2. Any objections to push it there?

@qgib
Copy link
Contributor Author

qgib commented Jun 4, 2014

Author Name: Alexandre Neto (@SrNetoChan)


I have finally tested this, and acording to my test, the problem is solved in master. I'm closing it.

thanks


  • status_id was changed from Feedback 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 24, 2019
@qgib qgib added this to the Version 2.4 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 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