Discussion Forums  >  Crashes, Memory Warnings

Replies: 6    Views: 332

cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
05/26/13 08:10 AM (10 years ago)

Android App closing with no error

So my android app is working in the android market but not for all devices. It is a hit and miss and not sure what to do. With some devices (i.e. Galaxy III or Droid X) when it loads to home screen and you click on any menu button the app closes without any error. Also, it continues to ask anyone who download the app to do an update. Can anyone provide any suggestions? Thanks in advance.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/26/13 08:33 AM (10 years ago)
Here is the error from one of the phones that force closes without error showing on phone. 05-26 11:28:01.892: A/libc(18146): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 18146 (bcgastoniadroid) Also says: 05-26 11:28:01.892: E/dalvikvm-heap(18146): Out of memory on a 17694736-byte allocation. and 05-26 11:33:20.692: E/SpannableStringBuilder(18557): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 05-26 11:33:20.692: E/SpannableStringBuilder(18557): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
05/26/13 10:09 AM (10 years ago)
Hi @cyborg2g, I believe the version 3.1 will do this but not exactly sure on that version. I think it's the 3.1 version. Can you confirm on trying this on the emulator? LA
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
05/26/13 10:34 AM (10 years ago)
Can you give us a link to your app so that we can see and test it? It will also give a better idea about why you are getting this sort of problem. I think it is possible that you have a lot of things using up your memory for example- images in your app. The size of the images is causing memory leak and thats why the app is getting forceclosed. Memory leak of 17 million bytes is enormous which itself suggests that you have included many images or other files in your app. In case of images you either need to reduce the size of your drawables or you need to host those images and refer them through image urls instead of having them in your app locally to avoid memory leakage.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/28/13 06:59 AM (10 years ago)
Here is the link for the app. And I appreciate any and all help. http://tinyurl.com/nkuruka
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
05/28/13 08:49 AM (10 years ago)
I am not able to download and test the app because it is not available in my country (India). But i had a look at the screenshots of your app and it seems that there are not many screens or images in your app. I cannot tell you why exactly this sort of error is happening but i would like to have a look at your app and test it myself on eclipse. Of course this can happen only if you are willing to send me the source code of your app. I would test the app on my devices and also on emulators to find our the reason of crashes... My email address is sandeepkurne (at) gmail (dot) com.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/28/13 10:56 AM (10 years ago)
I will send that to you as well as add India to the availability
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.