app crashing due to memory leak

You must Login before you can answer or comment on any questions.

hi,

I am running 'HelloWorld' app in titanium studio sdk 1.8.1..and it is my 1st app on ios..

when I try it on device(ipad) it crash every time..

gives following exception..

Exception Type: EXC_BAD_ACCESS (SIGSEGV)

so i done performance test in xcode and got following..

Leaked Object= _NSCFDictionary

what should I do now?

thanks..

— asked 1 year ago by Amol Jadhav
4 Comments
  • post some code via gitpaste and ask for help ...

    — commented 1 year ago by Trevor Ward

  • I doubt the memory leak you found would be related to the crash - are you able to debug it and decipher where it might be crashing? Unless you provide some kind of indication where it's crashing along with some code, we can't really help.

    — commented 1 year ago by Daniel Sefton

  • I'd suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. It will make your experience here much more enjoyable.

    — commented 1 year ago by Stephen Feather

  • Show 1 more comment

2 Answers

hi, following is my code

var win1 = Titanium.UI.createWindow({
title:'Window', backgroundColor:'#fff' });

var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', textAlign:'center', width:'auto' });

win1.add(label1);

win1.open();

It crash at "win1.open()" It does not open window.

Hello,

I tried your code and copy pasted the same to replicate the issue but it was running perfectly fine every time showing window with a label. I used Titanium 1.8.2v and tried it as an iOS app and android app.

You can try to clean build it and reinstall it so that picture is more clear. Also, you can post any logs/error messages received.

All the best!!

Warm Regards, Harjeet

Your Answer

Think you can help? Login to answer this question!