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

NNjoin crash #35

Open
germainvital opened this issue Nov 28, 2023 · 7 comments
Open

NNjoin crash #35

germainvital opened this issue Nov 28, 2023 · 7 comments

Comments

@germainvital
Copy link

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

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
Capture d'écran 2023-11-28 161847

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

@jikaczmarski
Copy link

Just want to let you know this is happening for me as well. Similar trace. NNjoin is basically unusable for me.

@kbohanon
Copy link

kbohanon commented Feb 8, 2024

same:

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x0000c13c (most recent call first):
  File "C:\Users/kelse/AppData/Roaming/QGIS/QGIS3\profiles\default/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 :
PyObject_Str :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyObject_GC_Del :
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.3-Prizren
QGIS code revision: 47373234ac
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.8.3
Running against GDAL: 3.8.3

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

@GITHUBAntoineDENIS
Copy link

Also the same QGIS CRASH when attempting using NNJOIN with QGIS Version: 3.34.5-Prizren

REPORT BELOW:

Report Details

Python Stack Trace

Windows fatal exception: access violation

Thread 0x00000e64 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 305 in _recv_bytes
    waitres = _winapi.WaitForMultipleObjects(
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 250 in recv
    buf = self._recv_bytes()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 576 in _handle_results
    task = get()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Thread 0x00002b54 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 528 in _handle_tasks
    for taskseq, set_length in iter(taskqueue.get, None):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Thread 0x000005b0 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 811 in _exhaustive_wait
    res = _winapi.WaitForMultipleObjects(L, False, timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 879 in wait
    ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 499 in _wait_for_updates
    wait(sentinels, timeout=timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 519 in _handle_workers
    cls._wait_for_updates(current_sentinels, change_notifier)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Current thread 0x00001a0c (most recent call first):
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NNJoin\NNJoin_gui.py", line 585 in showError
    self.iface.messageBar().pushMessage(self.tr('Error'), text,
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NNJoin\NNJoin_gui.py", line 232 in workerError
    self.showError(exception_string)
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NNJoin\NNJoin_plugin.py", line 177 in run
    self.dlg.exec_()
Windows fatal exception: access violation

Thread 0x00000e64 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 305 in _recv_bytes
    waitres = _winapi.WaitForMultipleObjects(
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 250 in recv
    buf = self._recv_bytes()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 576 in _handle_results
    task = get()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Thread 0x00002b54 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 528 in _handle_tasks
    for taskseq, set_length in iter(taskqueue.get, None):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Thread 0x000005b0 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 811 in _exhaustive_wait
    res = _winapi.WaitForMultipleObjects(L, False, timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\connection.py", line 879 in wait
    ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 499 in _wait_for_updates
    wait(sentinels, timeout=timeout)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\multiprocessing\pool.py", line 519 in _handle_workers
    cls._wait_for_updates(current_sentinels, change_notifier)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 917 in run
    self._target(*self._args, **self._kwargs)
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 980 in _bootstrap_inner
    self.run()
  File "C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\threading.py", line 937 in _bootstrap
    self._bootstrap_inner()

Thread 0x00001a0c (most recent call first):
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NNJoin\NNJoin_gui.py", line 585 in showError
    self.iface.messageBar().pushMessage(self.tr('Error'), text,
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NNJoin\NNJoin_gui.py", line 232 in workerError
    self.showError(exception_string)
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NNJoin\NNJoin_plugin.py", line 177 in run
    self.dlg.exec_()

Stack Trace


QVariantAnimation::endValue :
QFocusFrame::trUtf8 :
QToolBar::widgetForAction :
QTabBarPrivate::~QTabBarPrivate :
QTabBarPrivate::isAnimated :
QLayoutPrivate::doResize :
QLayout::activate :
QWidgetPrivate::setVisible :
QWidget::setVisible :
QgsMessageBar::showItem :
QgsMessageBar::pushItem :
QgsMessageBar::pushMessage :
QgsPresetSchemeColorRamp::clone :
PyObject_Str :
PyObject_MakeTpCall :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyObject_GC_Del :
PyVectorcall_Call :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
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 :
PyObject_Str :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyObject_GC_Del :
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.5-Prizren
QGIS code revision: 4b308492
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.8.4
Running against GDAL: 3.8.4

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

@GITHUBAntoineDENIS
Copy link

GITHUBAntoineDENIS commented Apr 24, 2024

Instead of the NNJOIN qgis plugin, which seems not maintained anymore, you can use the qgis function :

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#join-attributes-by-nearest

@jikaczmarski
Copy link

jikaczmarski commented Apr 24, 2024 via email

@jikaczmarski
Copy link

jikaczmarski commented Apr 24, 2024 via email

@GITHUBAntoineDENIS
Copy link

GITHUBAntoineDENIS commented Apr 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants