Skip to main content

Image Paiting Issues

7 replies [Last post]
orlandobarrera
Offline
Joined: 2010-03-08
Points: 0

Hi everyone..

Well.. As i already said, im relatively new to CDC and Personal Profile on J2ME..

Im developing a little GIS application that needs to be working with satellite imagery and digital photos that need to be repainted constantly.. This images are usually about 1500x1500 pixels large and above.

My problem is that as im adding more and more code to my application the larger of the image that im able to paint gets reduced.. I mean, a week ago i was able to paint a 2048x2048 image.. right now i cant even paint a 1500x1500 image... the memory size of the image seems irrelevant since the 2048x2048 image is about 400K... while im able to paint a 1000x1000 image that is almost 1M.

Well.. i dont know what my problem is.. I mean could it be a memory leak on my app.. or could it be any kind of limitation on the platform (phoneme advance) itself, or the mobile device im using?. To be honest i dont know im im soing a good job on the performance of my app..

Im thinking on adding the commands -Xms and -Xmx to my app options file to increase the memory heap... but im not sure on how to use this parameters, its limitation over the mobile device and its consequences..

I'll be glad if anyone could be of any help.. Thanks in advance..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi everyone..
>
> Well.. As i already said, im relatively new to CDC and Personal Profile on J2ME..
>
> Im developing a little GIS application that needs to be working with satellite imagery and digital photos that need to be repainted constantly.. This images are usually about 1500x1500 pixels large and above.
>
> My problem is that as im adding more and more code to my application the larger of the image that im able to paint gets reduced.. I mean, a week ago i was able to paint a 2048x2048 image.. right now i cant even paint a 1500x1500 image... the memory size of the image seems irrelevant since the 2048x2048 image is about 400K... while im able to paint a 1000x1000 image that is almost 1M.
>
> Well.. i dont know what my problem is.. I mean could it be a memory leak on my app.. or could it be any kind of limitation on the platform (phoneme advance) itself, or the mobile device im using?. To be honest i dont know im im soing a good job on the performance of my app..
>
> Im thinking on adding the commands -Xms and -Xmx to my app options file to increase the memory heap... but im not sure on how to use this parameters, its limitation over the mobile device and its consequences..
>
>

Hi Orlando,

What happens when you try a bigger heap size, like 32MB?

cvm -Xms32m ...

How much available RAM do you have on your device?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

orlandobarrera
Offline
Joined: 2010-03-08
Points: 0

Hi Hinkmond, thx for your respone

My device have 128M RAM memory, 90M available for running programs...

the app does not launch if i add the -Xms32M command to the options file..

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond, thx for your respone
>
> My device have 128M RAM memory, 90M available for running programs...
>
> the app does not launch if i add the -Xms32M command to the options file..

Hi Orlando,

What type of error are you seeing when you add "-Xms32m"? Does it just
exit without displaying anything to the screen or any output? Or, do
you see it hang?

You can also try rebuilding a debug version of phoneME Advanced "make
CVM_DEBUG=true ..." then check your output (stderr and stdout) to see if
there is any error message that makes sense what is going wrong.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

mkant
Offline
Joined: 2010-02-03
Points: 0

Hello,

in my app:
I have the command -Xmx64M. That works.

But when I add the command -Xms32M or -Xms64M my app doesn´t start.

Is there a workaround to use the xms command?

Best regards,

Mathias

Message was edited by: mkant

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> in my app:
> I have the command -Xms64M. That works.
>
> But when I add the command -Xms32M or -Xms64M my app doesn´t start.
>
> Is there a workaround to use the xms command?
>
>

Hi Mathias,

I'm not sure I understand.

Here you say -Xms64m works:

> I have the command -Xms64M. That works.

But, here you say -Xms64m doesn't work:

> But when I add the command ... -Xms64M my app doesn´t start.

Which result is correct? Does adding "-Xms64m" work or not work with
your app?

Thanks,
Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

mkant
Offline
Joined: 2010-02-03
Points: 0

Hello, I have edited my post.
Xmx works, but Xms doesn´t work.

Best regards,

Mathias

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello, I have edited my post.
> Xmx works, but Xms doesn´t work

Hi Mathias,

When using phoneME Advanced -Xms and -Xmx will set the same parameter
for max heap size (we use worst-case scenario for setting the heap size)
with the last occurrence on your command line overriding the previous
parameter setting.

Try using -Xms by itself (don't mix it with using -Xmx).

Ex.

-Xms16m

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net