[Gdal-dev] GDAL, JasPer, JPEG2000 memory management plans?

Anderson, Carl Carl.Anderson at co.fulton.ga.us
Thu May 8 11:55:17 EDT 2003


>From: Andrey Kiselev [mailto:dron at ak4719.spb.edu] 

>Could you show your commandline resulting in this error?

Here is a gdb session wrapped around the command
precint or mode or rate make no change to the assert(0)

If I  add tiling thus
  /usr/bin/gdal_translate -of JPEG2000  -co "mode=int"  -co "rate=0.05"
-co "prcwidth=1024" -co "prcheight=1024" -co "tileheight=7000" -co
"tilewidth=7000" ../tiff/kz16_768_3766.tif kz16_768_3766_lqj.jp2

The command succeeds

----------------------------------------------------------------
cedar-grove.unix.gis.fc-candrsn >>  gdb gdal_translate  
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb)  run -of JPEG2000 -co "mode=real"  -co "rate=0.05" -co
"prcwidth=1024" -co "prcheight=1024" ../tiff/kz16_768_3766.tif
kz16_768_3766_lq.jp2


Starting program: /usr/bin/gdal_translate -of JPEG2000  -co "mode=int"
-co "rate=0.05" -co "prcwidth=1024" -co "prcheight=1024"
../tiff/kz16_768_3766.tif kz16_768_3766_lqj.jp2
Input file size is 13001, 13001
0...10...20...30...40...50...60...70...80...90...100 - done.
gdal_translate: jpc_t1enc.c:272: jpc_enc_enccblk: Assertion
`cblk->passes' failed.

Program received signal SIGABRT, Aborted.
0x42028cc1 in kill () from /lib/i686/libc.so.6
(gdb) backtrace
#0  0x42028cc1 in kill () from /lib/i686/libc.so.6
#1  0x42028ac8 in raise () from /lib/i686/libc.so.6
#2  0x4202a019 in abort () from /lib/i686/libc.so.6
#3  0x42021cd6 in __assert_fail () from /lib/i686/libc.so.6
#4  0x40288e31 in jpc_enc_enccblk (enc=0x8053448, out=0x0,
tcmpt=0x80e1038, 
    band=0x8a3c3d8, cblk=0x8c728d4) at jpc_t1enc.c:349
#5  0x402887c4 in jpc_enc_enccblks (enc=0x8053448) at jpc_t1enc.c:218
#6  0x4027e0cc in jpc_enc_encodemainbody (enc=0x8053448) at
jpc_enc.c:1435
#7  0x4027c387 in jpc_encode (image=0x8056e88, out=0x8053998, 
    optstr=0xbfffcf40
"mode=int\nrate=0.05\nprcwidth=1024\nprcheight=1024\n_jp2overhead=343\n"
) at jpc_enc.c:354
#8  0x4027527b in jp2_write_codestream (image=0x8056e88, out=0x8053998, 
    optstr=0xbfffe0c0
"mode=int\nrate=0.05\nprcwidth=1024\nprcheight=1024")
    at jp2_enc.c:416
#9  0x40275337 in jp2_encode_uuid (image=0x8056e88, out=0x8053998, 
    optstr=0xbfffe0c0
"mode=int\nrate=0.05\nprcwidth=1024\nprcheight=1024", 
    uuid=0x8053358) at jp2_enc.c:450
#10 0x400bb19a in JPEG2000CreateCopy (
    pszFilename=0xbffff5e3 "kz16_768_3766_lqj.jp2", poSrcDS=0x804f968, 
    bStrict=1, papszOptions=0x804eaa8, 
    pfnProgress=0x400df254 <GDALTermProgress>, pProgressData=0x0)
    at jpeg2000dataset.cpp:1061
#11 0x400e2522 in GDALDriver::CreateCopy(char const*, GDALDataset*, int,
char** int (*)(double, char const*, void*), void*) () from
/usr/lib/libgdal.1.1.so
#12 0x400e295d in GDALCreateCopy () from /usr/lib/libgdal.1.1.so
#13 0x0804a2b2 in main ()
#14 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) 



Carl Anderson

GIS Manager
Fulton County E&CD
404.730.8026
carl.anderson at co.fulton.ga.us


-----------------------------------------------------------------------

The contents of this message have been scanned for viruses by
the TruSecure ShadowMail Service, and no viruses were found.


-----------------------------------------------------------------------


* This message has been processed by TruSecure's ShadowMail service



More information about the Gdal-dev mailing list