semiautomaticgit/SemiAutomaticClassificationPlugin

SemiAutomaticClassificationPlugin caused QGIS to crash (after recent update)

TysonDude opened this issue · 4 comments

I was getting a notification that the plugin got an upgrade, so I upgraded it. But just after that, it stopped working with an error showing that it needs a python library. I tried to download that but its too confusing process through Conda n all. Unfortunately, I decided to get the old version back. I downloaded the old version & installed it. But still no change, so I tried to uninstall that as well. But suddenly it caused QGIS to crash. It happened each time I restart QGIS. Not even letting me uninstall it.
What am I supposed to do now?? Leave the plugin??
Do anyone have alternate option/plugin to continue my work with?

Report Details:

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00001bd8 (most recent call first):
  File "C:\Users/mine/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\semiautomaticclassificationplugin.py", line 668 in unload
    qgis_utils.iface.removeDockWidget(cfg.dock_class_dlg)
  File "C:\PROGRA~1/QGIS33~1.3/apps/qgis/./python\qgis\utils.py", line 523 in unloadPlugin
    plugins[packageName].unload()
  File "C:\PROGRA~1/QGIS33~1.3/apps/qgis/./python\pyplugin_installer\installer.py", line 284 in showPluginManagerWhenReady
    iface.pluginManagerInterface().showPluginManager(tabIndex)

Stack Trace


QAbstractButton::group :
QgisApp::removeDockWidget :
QgsPresetSchemeColorRamp::clone :
PyArg_ParseTuple_SizeT :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyEval_EvalCodeWithName :
PyEval_EvalCodeEx :
PyEval_EvalCode :
PyDict_GetItemString :
PyArena_New :
PyRun_StringFlags :
instance :
instance :
QgsPluginRegistry::unloadPythonPlugin :
QgsSensorSettingsWidget::setSensorWidget :
QgsSensorSettingsWidget::setSensorWidget :
QObject::qt_static_metacall :
QStandardItemModel::qt_static_metacall :
QObject::qt_static_metacall :
QAbstractItemModel::dataChanged :
QStandardItemModel::itemChanged :
QStandardItem::setData :
QStandardItemModel::setData :
QSortFilterProxyModel::setData :
QStyledItemDelegate::editorEvent :
QAbstractItemView::selectionModel :
QAbstractItemView::edit :
QAbstractItemView::mouseReleaseEvent :
QListView::mouseReleaseEvent :
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
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 :
QDialog::exec :
QgsPresetSchemeColorRamp::clone :
PyArg_ParseTuple_SizeT :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyFloat_FromDouble :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyEval_EvalCodeWithName :
PyEval_EvalCodeEx :
PyEval_EvalCode :
PyDict_GetItemString :
PyArena_New :
PyRun_StringFlags :
instance :
instance :
pdal::Stage::run :
QgsPythonRunner::run :
QgisApp::showPluginManager :
QObject::qt_static_metacall :
QAction::activate :
QMenu::actionGeometry :
QMenu::actionGeometry :
QMenu::mouseReleaseEvent :
QWidget::event :
QMenu::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.32.3-Lima
QGIS code revision: 67d46100b5
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.19045

Hello, you probably need a clean installation of QGIS and Python library.
You can manually delete the directory of the SCP in the plugin directory which should be C:\Users\username\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
Also, you can install the previous version 7.
Please read https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#can-i-use-the-previous-version-7-of-scp

An installation from scratch seems to solve the issue #294

Great!! Its working. Don't know till when coz someday I have to update the plugin. But yeah, for now its working. I installed the old version 7

Great!! Its working. Don't know till when coz someday I have to update the plugin. But yeah, for now its working. I installed the old version 7

I'm glad it worked. Hopefully you'll be able to install version 8 in the future