OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
852 stars 309 forks source link

Prevent core.py from forcing Python script to enter 'uninterruptible sleep' [Bug] #3219

Open msw17002 opened 1 year ago

msw17002 commented 1 year ago

Describe the bug I've been testing data that's been provided via Kalpana < https://github.com/ccht-ncsu/Kalpana/blob/master/examples/downscaling_example01.py >. The test runs well up until the following Kalpana function,

gs.run_command('v.in.ogr', input = pathOut, overwrite = True, quiet = True, min_area = int(minArea/100)*100, flags = 'o', snap = 0.1)

At this point, core.py forces v.in.ogr into uninterruptible sleep mode for a significant amount of time (I terminated the function after a few hours). 'sqlite' is stuck in sleep mode (S - top command) whilst v.in.ogr is in uninterruptible sleep mode (D - top command).

Could core.py be edited to avoid keeping v.in.ogr in sleep mode?

System description (please complete the following information):

petrasovaa commented 1 year ago

This is unfortunately not enough details to suggest anything. The link doesn't have the code you are referring to and I don't know what data you are running this with, so I can't reproduce it. I would probably suggest asking maintainers of Kalpana first.