mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
133 stars 26 forks source link

Destroying a scope through an exception can trigger a bug warning #13

Closed mmomtchev closed 3 years ago

mmomtchev commented 3 years ago

If a scope containing a gdal.Dataset is destroyed by an exception while an async operation is running in the background, gdal-async will display a warning:

Sleeping on semaphore in garbage collector, this is a bug in gdal-async, event loop blocked for 88349 µs

This should not happen as async operations are supposed to protect their Datasets from the GC