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

Save as Image: crash if existing filename is selected #16299

Closed
qgib opened this issue Mar 7, 2013 · 13 comments
Closed

Save as Image: crash if existing filename is selected #16299

qgib opened this issue Mar 7, 2013 · 13 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented Mar 7, 2013

Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 7290
Affected QGIS version: master
Redmine category:gui


When I try to save the map as an image and select an existing filename, qgis crashes.
This happen both by clicking on the existing filename or by typing its name.
When typing, the crash happens as soon as I type the last letter of the existing filename.
When clicking on an existing file, the crash happens on click.
This is with current master (d628c2c).

Last logs shown on terminal are:

Debug: src/gui/qgisgui.cpp: 103: (getSaveAsImageName) xpm format (*.xpm *.XPM)  :  xpm
Debug: src/gui/qgisgui.cpp: 103: (getSaveAsImageName) xv format (*.xv *.XV)  :  xv
Warning: QSpiAccessible::accessibleEvent not handled:  "8008"  obj:  QObject(0x0)  " invalid interface!"
Warning: QSpiAccessible::accessibleEvent not handled:  "8008"  obj:  QSidebar(0x6dbc570, name = "sidebar") "sidebar"
Debug: FIXME: handle dialog start.
Debug: Interface is not valid
Fatal: ASSERT failure in : "Got an update for an invalid inteface. Investigate this.", file atspiadaptor.cpp, line 899

@qgib
Copy link
Contributor Author

qgib commented Mar 7, 2013

Author Name: Giovanni Manghi (@gioman)


does it happen also on 1.8?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2013

Author Name: Sandro Santilli (@strk)


YES ! (just tested it) -- should "Affected version" point to oldest affected version ?

@qgib
Copy link
Contributor Author

qgib commented Mar 19, 2013

Author Name: Regis Haubourg (@haubourg)


Not reproduced today on osgeo4w 32de07d
Régis

@qgib
Copy link
Contributor Author

qgib commented May 20, 2013

Author Name: Sandro Santilli (@strk)


Just reproduced with 7277a42

Warning: QSpiAccessible::accessibleEvent not handled:  "8008"  obj:  QObject(0x0)  " invalid interface!"
Warning: QSpiAccessible::accessibleEvent not handled:  "8008"  obj:  QSidebar(0x64543b0, name = "sidebar") "sidebar"
Debug: FIXME: handle dialog start.
Debug: Interface is not valid
Fatal: ASSERT failure in : "Got an update for an invalid inteface. Investigate this.", file atspiadaptor.cpp, line 899
Stacktrace (run through c++filt):
output/bin/qgis(_Z15myMessageOutput9QtMsgTypePKc+0x223)[0x557e34]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x2e)[0x7f9cd5b8741e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x718bf)[0x7f9cd5b878bf]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z6qFatalPKcz+0x94)[0x7f9cd5b87a64]
/usr/lib/x86_64-linux-gnu/qt4/plugins/accessiblebridge/libqspiaccessiblebridge.so(_ZN12AtSpiAdaptor6notifyEiP20QAccessibleInterfacei+0x21f)[0x7f9cafb7a24f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN11QAccessible19updateAccessibilityEP7QObjectiNS_5EventE+0xd1)[0x7f9cd5534571]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN9QListView14currentChangedERK11QModelIndexS2_+0x58)[0x7f9cd5560778]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2b1)[0x7f9cd5ca5281]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QItemSelectionModel14currentChangedERK11QModelIndexS2_+0x2a)[0x7f9cd55908ea]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE+0x90)[0x7f9cd55909e0]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN17QAbstractItemView15mousePressEventEP11QMouseEvent+0x4a4)[0x7f9cd553f084]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x969)[0x7f9cd5064429]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent+0x26)[0x7f9cd54243b6]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN17QAbstractItemView13viewportEventEP6QEvent+0x3eb)[0x7f9cd553889b]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN9QTreeView13viewportEventEP6QEvent+0x135)[0x7f9cd55804b5]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x88)[0x7f9cd5c91028]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x7f)[0x7f9cd501385f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xabf)[0x7f9cd50190bf]
/usr/src/qgis/Quantum-GIS/b/output/lib/libqgis_core.so.1.9.0(_ZN14QgsApplication6notifyEP7QObjectP6QEvent+0xa4)[0x7f9cd6d9fe52]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f9cd5c90e9c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x172)[0x7f9cd5014862]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x24bbf5)[0x7f9cd5093bf5]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xdce)[0x7f9cd5092bae]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2740d2)[0x7f9cd50bc0d2]

@qgib
Copy link
Contributor Author

qgib commented May 23, 2013

Author Name: Sandro Santilli (@strk)


I got this same backtrace and crash as of 83445af by simply selecting an existing directory to enter it, so may not be related to "save as image" but generally to file browsing.

How do I build including debugging symbols again ? My current cmake call has -D CMAKE_BUILD_TYPE=Debug

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Giovanni Manghi (@gioman)


I can't replicate here.

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


This is on Ubuntu 12.04.2, 64bit -- libqt4 ~ 4.8.1-0ubuntu4.4

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro Santilli wrote:

This is on Ubuntu 12.04.2, 64bit -- libqt4 ~ 4.8.1-0ubuntu4.4

I use the same OS/version and

QGIS version 1.9.0-Master QGIS code revision exported
Compiled against Qt 4.8.1 Running against Qt 4.8.1
Compiled against GDAL/OGR 1.9.2 Running against GDAL/OGR 1.9.2
GEOS Version 3.3.8 PostgreSQL Client Version 9.1.9
SpatiaLite Version 3.1.0-RC2 QWT Version 5.2.2
PROJ.4 Version 480 QScintilla2 Version

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


how did you obtain that version informatoin ? it's missing a commitish. Can it be a build configuration ?
My config:
-D GRASS_PREFIX=/usr/local/grass \
-D CMAKE_BUILD_TYPE=Debug \
-D WITH_INTERNAL_SPATIALITE=1 \
-D WITH_STAGED_PLUGINS=ON \

Maybe CMAKe-BUILD_TYPE has an effect here ?

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


Also maybe these have a role too:

-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found Python executable: /usr/bin/python
-- Found Python version: 2.7.3
-- Found Python library: /usr/lib/libpython2.7.so
-- Found SIP version: 4.13.2
-- Found PyQt4 version: 4.9.1
-- Found QScintilla2 PyQt4 module: 2.6.1

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


I tried with a clean rebuild, same problem. Can be reproduce as easily as starting up qgis (from build dir), File->SaveAsImage, select any item shown in the select file window

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro Santilli wrote:

how did you obtain that version informatoin ? it's missing a commitish. Can it be a build configuration ?

in the "help" dialog

My config:
-D GRASS_PREFIX=/usr/local/grass \
-D CMAKE_BUILD_TYPE=Debug \
-D WITH_INTERNAL_SPATIALITE=1 \
-D WITH_STAGED_PLUGINS=ON \

Maybe CMAKe-BUILD_TYPE has an effect here ?

I usually use the revision available through the nightly-build repository for Ubuntu, the one to use together with the Ubuntugis one, so everything is installed from packages, nothing compiled by hand.

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


Bingo! I was affected by this:
https://bugs.launchpad.net/ubuntu/+source/qt-at-spi/+bug/998012

Uninstalling the qt-at-spi package fixed it!!


  • resolution was changed from to invalid
  • 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! GUI/UX Related to QGIS application GUI or User Experience Crash/Data Corruption 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! Crash/Data Corruption GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant