1

I am developing the application for over 6 month. After everithing was developed and tested, I put app aside for 2 weeks and now when I run it it start crashing without any warning:

enter image description here

Even if I hit Continue Execution over 20 times still nothing in log.

I have all exceptions break point and malloc_errer_break set.

App crash when I move from screen to screen (When I open 2 screen or when I close it).

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97

4 Answers4

2

Most of the time EXC_BAD_ACCESS happens when you use an object that no longer exists.

You could check for Zombies during run-time to see if you use any of your object which doesn't exist anymore.

Community
  • 1
  • 1
Tancrede Chazallet
  • 7,035
  • 6
  • 41
  • 62
0

This a very generic error, I suggest to review your code and try again and as Anc Ainu said the reason is of using an object thats no longer exists.

Bassl Kokash
  • 627
  • 5
  • 10
0
  1. I recommend to set up Exception breakpoint to get place from which your app crashes. To make this breakpoint enabled go to breakpoint tab, then tap on plus button and choose 'Add Exception Breakpoint'.

enter image description here

enter image description here 2. And yes, enabling NSZombies also could help you.

Valentin Shamardin
  • 3,569
  • 4
  • 34
  • 51
0

Let me guess - you need to change a property to strong (from weak). Name of that problematic property you will find in the console after enabling check for zombies (press ⌘⇧< then check Enable Zombie Objects in Diagnostics/Memory Management)

  • I turned zombies object on and I see that I did some stupid mistake. I malloc : malloc(sizeof(int)*n) but recently I switch from int to long long and I forget to change malloc sizeof. – Marko Zadravec Apr 18 '14 at 08:10