You Are Here:

Community: Developer Discussion Boards

#1 Old CreateImage problems on 6680 and 6681 - 2006-02-13, 16:57

Join Date: Aug 2003
Posts: 45
cyphre666
Offline
Registered User
Hello all,

I'm using this simple loading function in my application:

public static Image loadImage (String img){
imageName = img;
Image image = null;
try
{
image = Image.createImage(img);
}
catch (java.io.IOException e){}
return image;
}

I'm calling this function in my app loader to load different PNGs.
It works without problems on all teste phones but on Nokia 6680 and 6681 I got reports that phone hangs during this loading loop at randomly loaded image.
Is this a known issue on the 66xx series? Anyone have experience with simmilar problems on those phones? Any solution?

thanks in advance for any feedback.
Reply With Quote

#2 Old Re: CreateImage problems on 6680 and 6681 - 2006-02-13, 17:20

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
What is the Exception being thrown? Any specific messages?

Daniel
Last edited by dcrocha : 2006-02-13 at 17:21. Reason: misspelling
Reply With Quote

#3 Old Re: CreateImage problems on 6680 and 6681 - 2006-02-13, 22:14

Join Date: Aug 2003
Posts: 45
cyphre666
Offline
Registered User
According to the tester the phone is gouing to freeze and needs to be restarted. So unfortunately no Exception :-/
Reply With Quote

#4 Old Re: CreateImage problems on 6680 and 6681 - 2006-02-14, 20:13

Join Date: Aug 2005
Posts: 67
Location: Venice, California
Send a message via Yahoo to davidmanpearl
davidmanpearl
Offline
Regular Contributor
I have had the same problem regarding handset freeze from Image.createImage() with Nokia 6620 and 6682 and have not resolved it.
But, I think you are running out of RAM.

When I back off and create fewer and/or smaller images, it works. Furthermore, when I then use getRGB to convert these Images into byte arrays, then I throw a Symbian -4 error, which translates to something like: "no more memory".

Runtime.getRuntime().total/freeMemory() do not seem to give me meaningful clues as to how much memory is **really** available or when the handset might freeze.

Attempting to deallocate unused memory with Runtime.getRuntime().gc(); has never helped me.

Most likely due to the same issues, I have NEVER been able to capture more than 640x480 with vc.getCapture().
Reply With Quote

#5 Old Re: CreateImage problems on 6680 and 6681 - 2006-02-14, 22:22

Join Date: Aug 2003
Posts: 45
cyphre666
Offline
Registered User
What is strange about this behaviour is that the phone is freezing randomly at different images.
Another strange thing is that 6680/1 device description says that the phones have "Unlimited Heap size".
Anyway, thanks for your info I'll try to focus on the memory consumption during the image loading.
Reply With Quote

#6 Old Re: CreateImage problems on 6680 and 6681 - 2006-03-23, 12:03

Join Date: Mar 2003
Posts: 90
Location: Russia, Bryansk
xdimas
Offline
Regular Contributor
I have the same problem.
The images I load are not very big and the app runs well even on 3660.
Any ideas? Is it low free memory size problem or not?
Reply With Quote

#7 Old Re: CreateImage problems on 6680 and 6681 - 2006-03-23, 12:23

Join Date: Aug 2003
Posts: 45
cyphre666
Offline
Registered User
In my case, the problem was in the memory consumption although the specs says the phone has 'unlimited heap' ?!? Fortunately I could change the code so it loads only the images which are currently needed by the app.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
6681 free RAM problems. anwar79 General Discussion 3 2006-12-10 06:57
Audio priority on 6630, 6680 and 6681 bpelt Symbian Media (Graphics & Sounds) 2 2006-01-19 11:56
6680 and problems with DirectGraphics nokia_devil Mobile Java Media (Graphics & Sounds) 0 2006-01-11 17:13
Nokia 6680 / 6681 Memory Full Easily easytalk Mobile Java General 0 2005-10-12 08:45
6680 Uninstall Problem: Please help: Urgent arizkohli General Symbian C++ 0 2005-07-11 15:10

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ