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

8 Preview 2 crashes on save #10373

Closed
qgib opened this issue Sep 28, 2006 · 7 comments
Closed

8 Preview 2 crashes on save #10373

qgib opened this issue Sep 28, 2006 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project

Comments

@qgib
Copy link
Contributor

qgib commented Sep 28, 2006

Author Name: Redmine Admin (Redmine Admin)
Original Redmine Issue: 314

Redmine category:project_loading/saving
Assignee: Gary Sherman


I opened a file created in v.7.4 in version 8 Preview 2. It displayed correctly, with minor exceptions. When I tried to save the file, an empty file was created and qgis crashed.
Saving a simple file created only in version 8 worked fine.


@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2006

Author Name: Martin Dobias (@wonder-sk)


For now we don't maintain backward compatibility of project files between different QGIS versions, thus situation like this is possible.

I think this might be solved by issuing a warning "your project file is for older version, problems possible".

@qgib
Copy link
Contributor Author

qgib commented Oct 28, 2006

Author Name: Gavin Macaulay - (Gavin Macaulay -)


I've added such a warning (). It currently only appears on the terminal as the project reading code is supposed to be gui independent so can't produce a warning dialog box.

However, if the project file loaded mostly ok, the saving shouldn't then crash. Your .qgs file is quite long and includes lots of layers - are you able to try progressively removing layers to see which layer causes the crash when saving?

@qgib
Copy link
Contributor Author

qgib commented Nov 17, 2006

Author Name: Redmine Admin (Redmine Admin)


The layer causing the problem is the vector point layer "points.shp". It does not appear when I open the project, and trying to open its properties causes QGIS to crash.

Loading the layer in a new project in .8 and then saving the project doesn't cause a crash.

Here's a backtrace for the save:
(gdb) bt
#_0  0xb6d7b0e9 in [[QgsVectorLayer]]::writeXML_ () from /usr/lib/libqgis_gui.so.0
#_3905  0xb6ccd8f8 in [[QgsMapLayer]]::writeXML () from /usr/lib/libqgis_gui.so.0
#_3906  0xb6cca02c in [[QgsMapCanvas]]::writeXML () from /usr/lib/libqgis_gui.so.0
#_3907  0xb6d19ac0 in [[QgsProject]]::write () from /usr/lib/libqgis_gui.so.0
#_3908  0xb6c49c5a in [[QgisApp]]::fileSaveAs () from /usr/lib/libqgis_gui.so.0
#_3909  0xb6dbfa69 in [[QgisApp]]::qt_metacall () from /usr/lib/libqgis_gui.so.0
#_3910  0xb7e542bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#_3911  0xb7e544e9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#_3912  0xb765b069 in QAction::triggered () from /usr/lib/libQtGui.so.4
#_3913  0xb765ba07 in QAction::activate () from /usr/lib/libQtGui.so.4
#_10 0xb78b7461 in QMenu::wheelEvent () from /usr/lib/libQtGui.so.4
#_3914 0xb78ba95f in QMenu::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#_3915 0xb769eeec in QWidget::event () from /usr/lib/libQtGui.so.4
#_3916 0xb78b4a13 in QMenu::event () from /usr/lib/libQtGui.so.4
#_3917 0xb765f7c5 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#_3918 0xb7660a5a in QApplication::notify () from /usr/lib/libQtGui.so.4
#_3919 0xb76b2837 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3920 0xb76b1568 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3921 0xb76c284e in non-virtual thunk to QDesktopWidget::~QDesktopWidget() ()
   from /usr/lib/libQtGui.so.4
#_3922 0xb7e4668a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#_3923 0xb7e4689d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#_3924 0xb7e48fe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#_3925 0xb765f565 in QApplication::exec () from /usr/lib/libQtGui.so.4
#_3926 0x0804c488 in main ()

Here's a backtrace from trying to open the layer's properties window:
(gdb) bt
#_0  0xb6d9efb8 in [[QgsVectorLayerProperties]]::reset ()
   from /usr/lib/libqgis_gui.so.0
#_3905  0xb6d9fee3 in [[QgsVectorLayerProperties]]::QgsVectorLayerProperties ()
   from /usr/lib/libqgis_gui.so.0
#_3906  0xb6d8a6ed in [[QgsVectorLayer]]::showLayerProperties ()
   from /usr/lib/libqgis_gui.so.0
#_3907  0xb7f5c746 in [[QgsLegend]]::legendLayerShowProperties ()
   from /usr/lib/libqgis_legend.so.0
#_3908  0xb7f6e3f1 in [[QgsLegend]]::qt_metacall () from /usr/lib/libqgis_legend.so.0
#_3909  0xb7e662bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#_3910  0xb7e664e9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#_3911  0xb766d069 in QAction::triggered () from /usr/lib/libQtGui.so.4
#_3912  0xb766da07 in QAction::activate () from /usr/lib/libQtGui.so.4
#_3913  0xb78c9461 in QMenu::wheelEvent () from /usr/lib/libQtGui.so.4
#_10 0xb78cc95f in QMenu::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#_3914 0xb76b0eec in QWidget::event () from /usr/lib/libQtGui.so.4
#_3915 0xb78c6a13 in QMenu::event () from /usr/lib/libQtGui.so.4
#_3916 0xb76717c5 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#_3917 0xb7672a5a in QApplication::notify () from /usr/lib/libQtGui.so.4
#_3918 0xb76c4837 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3919 0xb76c3568 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3920 0xb76d484e in non-virtual thunk to QDesktopWidget::~QDesktopWidget() ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libQtGui.so.4
#_3921 0xb7e5868a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#_3922 0xb7e5889d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#_3923 0xb78cabd3 in QMenu::exec () from /usr/lib/libQtGui.so.4
#_3924 0xb7f61fd1 in [[QgsLegend]]::handleRightClickEvent ()
   from /usr/lib/libqgis_legend.so.0
#_3925 0xb7f6375d in [[QgsLegend]]::mousePressEvent ()
   from /usr/lib/libqgis_legend.so.0
#_3926 0xb76b0f05 in QWidget::event () from /usr/lib/libQtGui.so.4
#_3927 0xb789db84 in QFrame::event () from /usr/lib/libQtGui.so.4
#_3928 0xb79118c4 in QAbstractScrollArea::viewportEvent ()
   from /usr/lib/libQtGui.so.4
#_3929 0xb7964159 in QAbstractItemView::viewportEvent ()
   from /usr/lib/libQtGui.so.4
#_3930 0xb7910705 in QAbstractScrollArea::minimumSizeHint ()
   from /usr/lib/libQtGui.so.4
#_3931 0xb76717c5 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#_3932 0xb7672a5a in QApplication::notify () from /usr/lib/libQtGui.so.4
#_3933 0xb76c3e7d in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3934 0xb76c3568 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3935 0xb76d484e in non-virtual thunk to QDesktopWidget::~QDesktopWidget() ()
   from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#_3936 0xb7e5868a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#_3937 0xb7e5889d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#_3938 0xb7e5afe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#_36 0xb7671565 in QApplication::exec () from /usr/lib/libQtGui.so.4
#_37 0x0804c488 in main ()

@qgib
Copy link
Contributor Author

qgib commented Nov 17, 2006

Author Name: Gavin Macaulay - (Gavin Macaulay -)


Are you able to attach the points.shp file?

@qgib
Copy link
Contributor Author

qgib commented Nov 23, 2006

Author Name: Marco Hugentobler (@mhugent)


It does not crash for me, even when opening a project created in 0.7.4 in 0.8 with the point shapefile. The content is not ok, but this does not matter since there is no backward compatibility anyway.

@qgib
Copy link
Contributor Author

qgib commented Nov 26, 2006

Author Name: Gary Sherman (@g-sherman)


Based on mhugent's last comment, I'm going to close this bug since it seems to be related to project compatibility.


  • status_id was changed from Open to Closed
  • resolution was changed from to wontfix

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 0.8 deleted

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Project labels 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! Project
Projects
None yet
Development

No branches or pull requests

1 participant