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 crash when filtering a layer with an attachment field #29590

Closed
qgib opened this issue Apr 5, 2019 · 15 comments
Closed

qgis crash when filtering a layer with an attachment field #29590

qgib opened this issue Apr 5, 2019 · 15 comments
Assignees
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Apr 5, 2019

Author Name: Sergii Brazhynenko (Sergii Brazhynenko)
Original Redmine Issue: 21775
Affected QGIS version: 3.6.1
Redmine category:attribute_table
Assignee: Nyall Dawson


qgis crash when filtering a layer with an attachment field

Crash ID: f40bf397c5155333687146b59354eebf255adf60

Stack Trace

QtPluginWidgetAdapter::~QtPluginWidgetAdapter :
WebCore::ImageDocument::imageElement :
WebCore::ImageDocument::imageElement :
WebCore::DocumentWriter::end :
QWebFrame::setUrl :
QgsExternalResourceWidget::loadDocument :
QMetaObject::activate :
QgsFileWidget::fileChanged :
QMetaObject::activate :
QLineEdit::qt_static_metacall :
QMetaObject::activate :
QWidgetLineControl::finishChange :
QWidgetLineControl::internalSetText :
QgsExternalResourceWidgetWrapper::setValue :
QgsEditorWidgetWrapper::setFeature :
QgsAttributeForm::resetValues :
QgsAttributeForm::setFeature :
QgsDualView::mFeatureList_currentEditSelectionChanged :
QMetaObject::activate :
QgsFeatureListView::currentEditSelectionChanged :
QgsFeatureListView::editSelectionChanged :
QMetaObject::activate :
QItemSelectionModel::emitSelectionChanged :
QItemSelectionModel::select :
QItemSelectionModel::select :
QgsFeatureListViewDelegate::~QgsFeatureListViewDelegate :
QMetaObject::activate :
QTimer::timerEvent :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QEventDispatcherWin32::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
CallWindowProcW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :


QGIS Info
QGIS Version: 3.6.1-Noosa
QGIS code revision: 2468226bc9
Compiled against Qt: 5.11.2




Running against Qt: 5.11.2
Compiled against GDAL: 2.4.1
Running against GDAL: 2.4.1



System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134



Related issue(s): #26948 (relates)
Redmine related issue(s): 19118


@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2019

Author Name: Giovanni Manghi (@gioman)


duplicate/related to #26948 ?


  • subject was changed from qgis crash when filtering a layer with an attachment field to qgis crash when filtering a layer with an attachment field
  • status_id was changed from Open to Feedback
  • priority_id was changed from Normal to High
  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2019

Author Name: Giovanni Manghi (@gioman)


what are the exact steps to replicate?

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2019

Author Name: Sergii Brazhynenko (Sergii Brazhynenko)


to repeat the crash:

  1. Have a layer of any geometry with such characteristics for at least one field:
    • widget type - attachment
              integratеd document viewer (Type- web page)
  2. Start filtering in the attribute table for any field

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2019

Author Name: Giovanni Manghi (@gioman)


Sergii Brazhynenko wrote:

to repeat the crash:

  1. Have a layer of any geometry with such characteristics for at least one field:
    • widget type - attachment
              integratеd document viewer (Type- web page)
  2. Start filtering in the attribute table for any field

Cannot replicate here, can you please attach a project with data? thanks.

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2019

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


  • description was changed from qgis crash when filtering a layer with an attachment field

Crash ID: f40bf397c5155333687146b59354eebf255adf60

Stack Trace

QtPluginWidgetAdapter::~QtPluginWidgetAdapter :
WebCore::ImageDocument::imageElement :
WebCore::ImageDocument::imageElement :
WebCore::DocumentWriter::end :
QWebFrame::setUrl :
QgsExternalResourceWidget::loadDocument :
QMetaObject::activate :
QgsFileWidget::fileChanged :
QMetaObject::activate :
QLineEdit::qt_static_metacall :
QMetaObject::activate :
QWidgetLineControl::finishChange :
QWidgetLineControl::internalSetText :
QgsExternalResourceWidgetWrapper::setValue :
QgsEditorWidgetWrapper::setFeature :
QgsAttributeForm::resetValues :
QgsAttributeForm::setFeature :
QgsDualView::mFeatureList_currentEditSelectionChanged :
QMetaObject::activate :
QgsFeatureListView::currentEditSelectionChanged :
QgsFeatureListView::editSelectionChanged :
QMetaObject::activate :
QItemSelectionModel::emitSelectionChanged :
QItemSelectionModel::select :
QItemSelectionModel::select :
QgsFeatureListViewDelegate::~QgsFeatureListViewDelegate :
QMetaObject::activate :
QTimer::timerEvent :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QEventDispatcherWin32::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
CallWindowProcW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.6.1-Noosa
QGIS code revision: 2468226
Compiled against Qt: 5.11.2

Running against Qt: 5.11.2
Compiled against GDAL: 2.4.1
Running against GDAL: 2.4.1

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134 to qgis crash when filtering a layer with an attachment field

Crash ID: f40bf397c5155333687146b59354eebf255adf60

Stack Trace

QtPluginWidgetAdapter::~QtPluginWidgetAdapter :
WebCore::ImageDocument::imageElement :
WebCore::ImageDocument::imageElement :
WebCore::DocumentWriter::end :
QWebFrame::setUrl :
QgsExternalResourceWidget::loadDocument :
QMetaObject::activate :
QgsFileWidget::fileChanged :
QMetaObject::activate :
QLineEdit::qt_static_metacall :
QMetaObject::activate :
QWidgetLineControl::finishChange :
QWidgetLineControl::internalSetText :
QgsExternalResourceWidgetWrapper::setValue :
QgsEditorWidgetWrapper::setFeature :
QgsAttributeForm::resetValues :
QgsAttributeForm::setFeature :
QgsDualView::mFeatureList_currentEditSelectionChanged :
QMetaObject::activate :
QgsFeatureListView::currentEditSelectionChanged :
QgsFeatureListView::editSelectionChanged :
QMetaObject::activate :
QItemSelectionModel::emitSelectionChanged :
QItemSelectionModel::select :
QItemSelectionModel::select :
QgsFeatureListViewDelegate::~QgsFeatureListViewDelegate :
QMetaObject::activate :
QTimer::timerEvent :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QEventDispatcherWin32::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
CallWindowProcW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :


QGIS Info
QGIS Version: 3.6.1-Noosa
QGIS code revision: 2468226bc9
Compiled against Qt: 5.11.2




Running against Qt: 5.11.2
Compiled against GDAL: 2.4.1
Running against GDAL: 2.4.1



System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2019

Author Name: Sergii Brazhynenko (Sergii Brazhynenko)


In the attached archive, project, gpkg-file,
and a small video clip.
Thanks


  • 14748 was configured as test.zip

@qgib
Copy link
Contributor Author

qgib commented Apr 7, 2019

Author Name: Giovanni Manghi (@gioman)


Confirmed also on Linux:

QGIS died on signal 11Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0
Aborted (core dumped)


  • status_id was changed from Feedback to Open
  • operating_system was changed from Ms windows 10 to

@qgib
Copy link
Contributor Author

qgib commented Apr 7, 2019

Author Name: Giovanni Manghi (@gioman)


  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Apr 7, 2019

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


Giovanni Manghi wrote:

ptrace: Operation not permitted.

See "creating a backtrace":https://qgis.org/en/site/getinvolved/development/bugreporting.html#creating-a-backtrace

@qgib
Copy link
Contributor Author

qgib commented May 23, 2019

Author Name: Alessandro Pasotti (@elpaso)


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented May 23, 2019

Author Name: Alessandro Pasotti (@elpaso)


@qgib
Copy link
Contributor Author

qgib commented May 23, 2019

Author Name: Alessandro Pasotti (@elpaso)


Sorry I couldn't make it, apparently the bug is inside QtWebKit (upstream), I'm attaching a valgrind snapshot with the invalid write.


  • resolution was changed from to up/downstream
  • 14976 was configured as Screenshot_20190523_122609.png
  • assigned_to_id removed Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented May 23, 2019

Author Name: Giovanni Manghi (@gioman)


Alessandro Pasotti wrote:

Sorry I couldn't make it, apparently the bug is inside QtWebKit (upstream), I'm attaching a valgrind snapshot with the invalid write.

this also means that the attachment widget is (from a user point of view) completely "broken"? https://issues.qgis.org/issues/19118

@qgib
Copy link
Contributor Author

qgib commented May 23, 2019

Author Name: Nyall Dawson (@nyalldawson)


  • assigned_to_id was configured as Nyall Dawson

@nyalldawson
Copy link
Collaborator

Fixed by 8ae4fc9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

2 participants