JavaMapscript SIGSEGV

Rodriguez, Heraldo hrodriguez at SISCAT.COM.AR
Tue Jun 13 15:46:19 EDT 2006


Thank you very much.

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 10:13
Para: Rodriguez, Heraldo
CC: MAPSERVER-USERS at lists.umn.edu
Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV

Open an issue on bugzilla (http://mapserver.gis.umn.edu/bugs/) and
attach the three logs.
I'll look into this asap.

Umberto

On 6/13/06, Rodriguez, Heraldo <hrodriguez at siscat.com.ar> wrote:
>
>
> 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
> >
>
>
>
>



More information about the mapserver-users mailing list