2

I'm trying to run NNjoin plugin to compute nearest distance between my plot and buildings (urban) but I'm having this error :

Here are my files (maybe not projected yet but it should be in ESPG 23839)

enter image description here

Report Details

Python Stack Trace ``` Windows fatal exception: access violation

Current thread 0x000067a8 (most recent call first): File "C:\Users/germa/AppData/Roaming/QGIS/QGIS3\profiles\nnjoin/python/plugins\NNJoin\NNJoin_plugin.py", line 177 in run self.dlg.exec_() ```

Stack Trace


QgsCustomization::preNotify : QObject::event :
QApplicationPrivate::notify_helper : QApplication::notify :
QgsApplication::notify : QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents : qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents : qt_plugin_query_metadata :
QEventLoop::exec : QDialog::exec : PyInit_QtWidgets :
PyArg_ParseTuple_SizeT : PyEval_EvalFrameDefault :
PyFunction_Vectorcall : PyFloat_FromDouble : PyVectorcall_Call :
PyObject_Call : PyInit_QtCore : PyInit_QtCore : PyInit_QtCore :
PyInit_QtCore : QObject::qt_static_metacall : QAction::activate :
QAbstractButton::click : QAbstractButton::mouseReleaseEvent :
QToolButton::mouseReleaseEvent : QWidget::event :
QApplicationPrivate::notify_helper : QApplication::notify :
QgsApplication::notify : QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent : QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy : QApplicationPrivate::notify_helper :
QApplication::notify : QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents : qt_plugin_query_metadata :
QEventLoop::exec : QCoreApplication::exec : main : BaseThreadInitThunk
: RtlUserThreadStart : ```



**QGIS Info** QGIS Version: 3.34.0-Prizren QGIS code revision: ffbdd67881 Compiled against Qt: 5.15.3 Running against Qt: 5.15.3
Compiled against GDAL: 3.7.2 Running against GDAL: 3.7.2



**System Info** CPU Type: x86_64 Kernel Type: winnt Kernel Version: 10.0.22621
5
  • Just tested your data, and everything works fine on my Windows 11 with QGIS 3.28.10-Firenze and NNJoin 3.1.3. Commented Nov 28, 2023 at 8:50
  • Maybe try with a new profile? Otherwise open a ticket via : github.com/qgis/QGIS/issues/… Commented Nov 28, 2023 at 8:53
  • 1
    I did a little testing on my Win10 machine. The crash did not occur at the 3.28.x level. However, it did occur at the 3.34.x level. I also created a new profile at 3.34.2, and the crash occurred. So the crash may have something to do with the 3.28 to 3.34 transition. The plugin has not been updated since 2019, and its author has not been seen on SE-GIS in over two years. Commented Jan 13, 2024 at 18:47
  • same qgis crash with qgis 3.34.5 Commented Apr 24, 2024 at 18:05
  • same qgis crash with QGIS Version: 3.36.1-Maidenhead Commented Apr 24, 2024 at 18:07

1 Answer 1

2

Instead of the NNJOIN qgis plugin, which seems not maintained anymore, you can use the following qgis function which worked well for me :

in English https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeneral.html#join-attributes-by-nearest

in French : Joindre les attributs par le plus proche https://docs.qgis.org/3.34/fr/docs/user_manual/processing_algs/qgis/vectorgeneral.html#id117

1
  • I agree with Denis. So far my experience with the Join Attributes by Nearest tool has been great. I'll add that it is blazingly fast! Commented May 20, 2024 at 4:34

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.