[Gdal-dev] swig/java dumps core

oland com at navicon.dk
Thu Oct 26 03:02:59 EDT 2006


Just more info on the GDALtest app. Running it on 
http://dl.maptools.org/dl/gdal/data/gxf/latlong.gxf latlon.gfx  causes the
following exception

Projection is `GEOGCS["GRS 1980",DATUM["GRS_1980",SPHEROID["GRS
1980",6378137,298.257222413682]],PRIMEM["unnamed",0],UNIT["degree",0.0174532925199433]]'
0 items of metadata found (via Hashtable dict):
0 items of metadata found (via Vector list):
Got 0 GCPs
Origin = (-63.4706495, 61.874544500000006)
Pixel Size = (5.63E-4, -5.63E-4)
 Data Type = Float32
 ColorInterp = Undefined
Band size is: 473x173
  No Min/Max values stored in raster.
Allocating ByteBuffer of size: 327316
Exception in thread "main" java.lang.NullPointerException: SampleModel and
DataBuffer cannot be null
        at java.awt.image.Raster.createWritableRaster(Raster.java:969)
        at GDALtest.openFile(GDALtest.java:292)
        at GDALtest.<init>(GDALtest.java:91)
        at GDALtest.main(GDALtest.java:345)

Carsten


oland wrote:
> 
> Hello List
> 
> I have built the swing/java bindings in gdal-1.3.2. When I try to run the
> gdalinfo java app it dumps core see below.
> 
> java -cp .:../gdal.jar -Djava.library.path=../.libs/ gdalinfo
> /opt/Mapdata/BSB_ROOT/11006/11006_1.KAP
> Driver: BSB/Maptech BSB Nautical Charts
> Size is 10967, 9389
> Coordinate System is:
> 
> Origin = (0.0,0.0)
> Pixel Size = (1.0,1.0)
>   0.0, 1.0, 0.0
>   0.0, 0.0, 1.0
> GCP Projection = GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
> 84",6378137,298.257223563,AUTHORITY["EPSG",7030]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG",6326]],PRIMEM["Greenwich",0,AUTHORITY["EPSG",8901]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG",9108]],AXIS["Lat",NORTH],AXIS["Long",EAST],AUTHORITY["EPSG",4326]]
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> #  SIGSEGV (0xb) at pc=0xb78475ff, pid=24875, tid=3085108928
> #
> # Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode)
> # Problematic frame:
> # V  [libjvm.so+0x1695ff]
> #
> # An error report file with more information is saved as
> hs_err_pid24875.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> #
> Abort
> 
> Any hints?
> 
> The error log can be seen here
> 
>  http://www.nabble.com/file/3845/hs_err_pid24875.log hs_err_pid24875.log 
> 
> Carsten
> 

-- 
View this message in context: http://www.nabble.com/swig-java-dumps-core-tf2507983.html#a7006154
Sent from the GDAL - Dev mailing list archive at Nabble.com.




More information about the Gdal-dev mailing list