Bug report #2209

QGIS crashes if picture search directories contain a *.qgs file

Added by dr - almost 15 years ago. Updated almost 15 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:-
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12269

Description

If try to add image to Print Composer view and set up picture search directory which contained QGIS project file (*.qgs) then QGIS is crashed.

History

#1 Updated by Marco Hugentobler almost 15 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

The crash seems like a Qt bug (QSvgRenderer). See backtrace below.
0c462e87 (SVN r12390) adds a basic workaround, testing only the files ending in '.svg' with QSvgRenderer. Therefore, I'm closing this bug (fixing QSvgRenderer is beyond the scope of the QGIS project).

Debugger backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x006cf1e2 in ?? () from /usr/lib/libQtSvg.so.4
(gdb) bt
#0 0x006cf1e2 in ?? () from /usr/lib/libQtSvg.so.4
#3905 0x006e0029 in ?? () from /usr/lib/libQtSvg.so.4
#3906 0x006e02c7 in ?? () from /usr/lib/libQtSvg.so.4
#3907 0x006e087b in ?? () from /usr/lib/libQtSvg.so.4
#3908 0x006f2950 in QSvgTinyDocument::load(QString const&) () from /usr/lib/libQtSvg.so.4
#3909 0x006f37ba in QSvgRenderer::load(QString const&) () from /usr/lib/libQtSvg.so.4
#3910 0x006f3eb5 in QSvgRenderer::QSvgRenderer(QString const&, QObject*) () from /usr/lib/libQtSvg.so.4
#3911 0x082bd721 in QgsComposerPictureWidget::testSvgFile (this=0x91a8988, filename=...) at /home/marco/src/qgis/src/app/composer/qgscomposerpicturewidget.cpp:472
#3912 0x082bcf90 in QgsComposerPictureWidget::addDirectoryToPreview (this=0x91a8988, path=...) at /home/marco/src/qgis/src/app/composer/qgscomposerpicturewidget.cpp:393
#3913 0x082bbedd in QgsComposerPictureWidget::on_mAddDirectoryButton_clicked (this=0x91a8988) at /home/marco/src/qgis/src/app/composer/qgscomposerpicturewidget.cpp:182

Also available in: Atom PDF