JavaMapscript SIGSEGV
Rodriguez, Heraldo
hrodriguez at SISCAT.COM.AR
Tue Jun 13 05:46:31 PDT 2006
Humberto ,
This is the method that is crashing. I am attaching a couple of
logs too. (line shapeObj shape = l.getFeature(r.getShapeindex(), -1); )
I hope it helps. Thanks
public List queryPorPunto(int x, int y) {
List lista = new ArrayList();
pointObj p = new pointObj(x, y, 0);
String row = "";
layerObj l = map.getLayerByName("entorno");
l.queryByPoint(map, p, mapscriptConstants.MS_MULTIPLE, -1);
resultCacheObj results = l.getResults();
if (results == null)
return lista;
l.open();
for (int i = 0; i < results.getNumresults(); i++)
{
resultCacheMemberObj r =
results.getResult(i);
shapeObj shape =
l.getFeature(r.getShapeindex(), -1);
row = "";
for (int j = 0; j < shape.getNumvalues();
j++)
{
row = row + "<TD>" +
shape.getValue(j) + "</TD>";
}
lista.add(row);
}
l.close();
return lista;
}
Heraldo G. Rodriguez
hrodriguez at siscat.com.ar
TE 4326-4002 int 255
Dpto. Desarrollo
Sistemas Catastrales S.A
-----Mensaje original-----
De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com]
Enviado el: martes, 13 de junio de 2006 3:50
Para: Rodriguez, Heraldo
CC: MAPSERVER-USERS at lists.umn.edu
Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV
Hi,
please post the hs_error_* file and the Java program that is causing the
crash.
Thanks,
Umberto
On 6/12/06, Rodriguez, Heraldo <hrodriguez at siscat.com.ar> wrote:
> Hi guys,
> I have started developing with java mapscript and I have the
same
> problems with the shapeObj class.
> Every time I want to create a new shape I get the message
> > #
> > # An unexpected error has been detected by HotSpot Virtual Machine:
> > #
> > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144
> > #
> > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode)
> > # Problematic frame:
> ...
>
> I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1.
>
> Mapserver Compiling options
> ./configure --with-freetype=/usr/local/bin/freetype-config
> --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib
> --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config
> --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads
> --with-geos=/usr/local/bin/geos-config
--with-ogr=/usr/local/bin/gdal-config
> --with-gdal=/usr/local/bin/gdal-config
> --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs
> --with-wmsclient --with-curl-config=/usr/local/bin/curl-config
>
> Steps to compile java mapscript
> Run make
> Make interface (swig version 1.3.29)
> Make all
>
> I looked for a solution in google and mapserver documentation without
> success. Could you please give me a clue to solve this? Thanks in
> advance.
> Best regards.
>
>
>
> Heraldo G. Rodriguez
> hrodriguez at siscat.com.ar
> TE 4326-4002 int 255
> Dpto. Desarrollo
> Sistemas Catastrales S.A
>
>
>
> -----Mensaje original-----
> De: Andre Sachs [mailto:asachs at CLUE.CO.ZA]
> Enviado el: miércoles, 31 de mayo de 2006 5:16
> Para: MAPSERVER-USERS at LISTS.UMN.EDU
> Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV
>
> On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote:
>
> > Andre, could you report whether the patch attached to gentoo bugzilla
> > works or not?
>
> Hi Umberto,
>
> Sorry for not replying earlier.
>
> The patch works in a 32 intel environment, thanks !
>
> Due to time constraints on my current project I ditched my AMD 64,
> Java 1.5 64 bit environment in favour of Intel 32 bit and this has
> resolved my problem.
>
> The problems I experienced are somewhere in the application stack,
> either in :
> - Sun's 64 bit 1.5 jdk
> - Gentoo's glibc 2.3.5-r2
> - Linux kernel 2.6.16
>
> Once my current project is over (+- 3 weeks) I will be have some
> spare time to hunt down the culprit.
>
> Regards,
> Andre
> --
> Andre Sachs
> IT Architect, Clue Technologies PTY (LTD)
> email: andre at clue.co.za
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hs_err_pid2773.log
Type: application/octet-stream
Size: 16719 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060613/f5ab5b78/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hs_err_pid2489.log
Type: application/octet-stream
Size: 14525 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060613/f5ab5b78/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hs_err_pid2550.log
Type: application/octet-stream
Size: 16784 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060613/f5ab5b78/attachment-0002.obj>
More information about the MapServer-users
mailing list