---
title: "oft-his \"Segment 2 98:Database -1 corruption error\""
url: "https://openforis.support/questions/106/oft-his-segment-2-98database-1-corruption-error"
tags: ["geospatialtoolkit"]
status: "answered"
score: 0
answer_count: 1
asked: "2014-11-17T15:14:01"
last_activity: "2014-11-17T16:39:32"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# oft-his "Segment 2 98:Database -1 corruption error"

Asked by Antonia on 2014-11-17

I keep encountering an error when using oft-his with a mask file. It works fine for both input and mask file when using them as input file without a mask file, but not in any combination with a mask file (not even when using the same file as input and mask file). File size limit should not be a problem.
Here's the output: 

    oft-his -i ABC/overview.tif -o test.txt -um ABC/mask.tif
    Pixel Size = (0.00027778,-0.00027778)
    Corner Coordinates:
    Upper Left  ( 134.1218055,   8.0943056) (134d 7'18.50"E,  8d 5'39.50"N)
    Lower Left  ( 134.1218055,   6.8879167) (134d 7'18.50"E,  6d53'16.50"N)
    Upper Right ( 134.7212500,   8.0943056) (134d43'16.50"E,  8d 5'39.50"N)
    Lower Right ( 134.7212500,   6.8879167) (134d43'16.50"E,  6d53'16.50"N)
    Center      ( 134.4215278,   7.4911111) (134d25'17.50"E,  7d29'28.00"N)

    Number of input bands is 1
    Max input image value to be considered?:255
    Driver: GTiff/GeoTIFF
    Size is 2158, 4343
    Coordinate System is:
    GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
           AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
    Segment Min val = 1
    Segment Max val = 255
    Allocating minimum amount of memory
    Writing output
    Segment 2 98:Database -1 corruption error
    This may be caused by the file size limit of your system.


## Answer (score 0, by Antonia on 2014-11-17)

Link: https://openforis.support/questions/106/oft-his-segment-2-98database-1-corruption-error/107

Unfortunately the latest updates of oft-his resulted in a bug that causes the problem. The bug has been fixed and you can download the latest version from here:
https://dl.dropboxusercontent.com/u/4143957/OpenForisToolkit-1.26.5.run

Apologies for the inconvenience.

Best,

Anssi
