Hey Jukka,

I was able to reproduce the error with a 32 bit JRE.  The coloring
algorithm is recursive, and eventually causes stack overflow problems with
large numbers of features.  I updated the plugin to print an error when
this happens instead of silently failing.   I'll consider reimplementing
the algorithm to prevent this, but it might be awhile before I can get to
it.  In the meantime, here are two possible workarounds:

1. Upgrade to a 64bit JRE, although it sounds like you may also be hitting
the problem there as well, and a layer with enough features will break even
the 64bit JRE.
2. Tell the Java JRE to assign more memory to the thread stack. This is
similar to adding more heap memory as described in
https://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=OpenJUMP_Configuration#How_to_set_the_memory_usage_of_JUMP.3F.
    However instead of (or in addition to) setting -Xmx, you should set
-Xss.  A setting of -Xss512k allowed me to process a 6000 feature layer in
a 32 bit JVM.

    -lreeder


On Wed, May 21, 2014 at 9:59 PM, Larry Reeder <lnree...@gmail.com> wrote:

> Jukka, are you talking about my new mapcolor plugin?  If so, I've tested
> with 6000 polygons on a 64-bit JRE without problems (just slow), but
> haven't tested on a 32-bit JRE.  I'll give that a try.
>
>
>       -lreeder
>
>
> On Tue, May 20, 2014 at 4:02 AM, Rahkonen Jukka (Tike) <
> jukka.rahko...@mmmtike.fi> wrote:
>
>> Hi,
>>
>> What sets the limits for the mapcolor plugin? I guess memory, because
>> with 32-bit jre I could color a layer of 1000 polygons but with 64-bit jre
>> the limit is around 4000 polygons. When the plugin fails it does it
>> quietly, no result nor any message but not any program crash or jamming
>> either.
>>
>> -Jukka Rahkonen-
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform
>> available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to