Skip to content

Crash when disconnecting VSCode #12

Description

@lugiUmweltdata

Describe the bug

I was running (succesfully) VSCode Debugger with QGIS then disconnected it (while the plugin i was working on was closed) and it crashed

Steps to reproduce the issue

Hard, it happens after some time of running and reloading my own plugin

Logs

Python Stack Trace
Windows fatal exception: access violation

Thread 0x0000a6d4 (most recent call first):
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 355 in wait
    waiter.acquire()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 655 in wait
    signaled = self._cond.wait(timeout)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_timeout.py", line 43 in _on_run
    self._event.wait(wait_time)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_daemon_thread.py", line 53 in run
    self._on_run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
    self.run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
    self._bootstrap_inner()
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydev_bundle\pydev_monkey.py", line 1134 in __call__
    ret = self.original_func(*self.args, **self.kwargs)

Thread 0x0000367c (most recent call first):
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 359 in wait
    gotit = waiter.acquire(True, timeout)
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 655 in wait
    signaled = self._cond.wait(timeout)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\pydevd.py", line 326 in _on_run
    self._wait_event.wait(TIMEOUT_SLOW)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_daemon_thread.py", line 53 in run
    self._on_run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
    self.run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
    self._bootstrap_inner()

Thread 0x00002ef4 (most recent call first):
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 359 in wait
    gotit = waiter.acquire(True, timeout)
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 655 in wait
    signaled = self._cond.wait(timeout)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\pydevd.py", line 280 in _on_run
    self._py_db_command_thread_event.wait(TIMEOUT_SLOW)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_daemon_thread.py", line 53 in run
    self._on_run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
    self.run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
    self._bootstrap_inner()

Thread 0x00002afc (most recent call first):
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_comm.py", line 227 in _read_line
    r = self.sock.recv(1024)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_comm.py", line 245 in _on_run
    line = self._read_line()
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_daemon_thread.py", line 53 in run
    self._on_run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
    self.run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
    self._bootstrap_inner()

Thread 0x00005778 (most recent call first):
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 359 in wait
    gotit = waiter.acquire(True, timeout)
  File "C:\OSGeo4W\apps\Python312\Lib\queue.py", line 180 in get
    self.not_empty.wait(remaining)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_comm.py", line 390 in _on_run
    cmd = self._cmd_queue.get(True, 0.1)
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_daemon_thread.py", line 53 in run
    self._on_run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
    self.run()
  File "C:\OSGeo4W\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
    self._bootstrap_inner()

Current thread 0x00006160 (most recent call first):
  


Stack Trace


QObject::installEventFilter :
QAbstractItemView::commitData :
PyInit_QtWidgets :
QObject::qt_static_metacall :
QAbstractItemDelegate::qt_static_metacall :
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 :
QCoreApplication::exec :
main :
BaseThreadInitThunk :




QGIS Info
QGIS Version: 3.44.8-Solothurn
QGIS code revision: d25052deb8b
Compiled against Qt: 5.15.13
Running against Qt: 5.15.13
Compiled against GDAL: 3.12.2
Running against GDAL: 3.12.3



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

Versions

3.44.8-Solothurn

Supported plugin version

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions