You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I read the data and close the resource using delete, this error message appears when the jvm starts GC and causes the system to crash: OGRFeatureDefn: OGRFeatureDefn xxx with a ref count of -1 deleted!
What is the bug?
After I read the data and close the resource using delete, this error message appears when the jvm starts GC and causes the system to crash: OGRFeatureDefn: OGRFeatureDefn xxx with a ref count of -1 deleted!
Steps to reproduce the issue
Layer layer = dataSource.GetLayer(0);
if (layer != null) {
FeatureDefn defn = layer.GetLayerDefn();
//......
Feature feature;
while ((feature = layer.GetNextFeature()) != null) {
//........
}
layer.delete();
}
dataSource.delete();
// Forced trigger GC
System.gc();
Versions and provenance
operating system: win10
gdal-version: release-1928-x64-gdal-3-10-0-mapserver-8-2-2
java-version: 1.8.0_292 HotSpot
maven:
org.gdal
gdal
3.10.0
Additional context
No response
The text was updated successfully, but these errors were encountered: