title: Canvas and surfaceView example crash/freeze - Memory Leak?
body: <p><a href="http://www.helloandroid.com/tutorials/how-use-canvas-your-android-apps-part-1" rel="nofollow">http://www.helloandroid.com/tutorials/how-use-canvas-your-android-apps-part-1</a></p>
  
  <p>At the end of this tutorial link for source code download is available.
  I downloaded the code and tried this example , It draws a kangaroo in the screen and within 1-2 minutes i get a crash/the application froze.</p>
  
  <p>I tried on Archos 70 Internet Tablet.</p>
  
  <p><strong>"I would like to know the reason, or if some thing is wrong in this "</strong></p>
  
  <p>Here is the <strong>LogCat</strong></p>
  
  <p>04-13 17:03:24.089: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.097: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.113: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.128: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.136: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.152: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.167: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:03:24.175: DEBUG/ondraw(2070): lefutott<br>
  04-13 17:04:10.019: WARN/ActivityManager(1302): Timeout of broadcast BroadcastRecord{457f99c8 android.intent.action.TIME_TICK} - receiver=android.app.ActivityThread$PackageInfo$ReceiverDispatcher$InnerReceiver@4561a5c8<br>
  04-13 17:04:10.019: WARN/ActivityManager(1302): Receiver during timeout: BroadcastFilter{454ed4c8 ReceiverList{454fbd70 1302 system/1000 local:4561a5c8}}<br>
  04-13 17:04:38.972: INFO/Process(1302): Sending signal. PID: 1302 SIG: 3<br>
  04-13 17:04:38.972: INFO/dalvikvm(1302): threadid=3: reacting to signal 3<br>
  04-13 17:04:39.097: INFO/dalvikvm(1302): Wrote stack traces to '/data/anr/traces.txt'<br>
  04-13 17:05:09.097: INFO/Process(1302): Sending signal. PID: 1302 SIG: 3<br>
  04-13 17:05:09.097: INFO/dalvikvm(1302): threadid=3: reacting to signal 3<br>
  04-13 17:05:09.128: INFO/dalvikvm(1302): Wrote stack traces to '/data/anr/traces.txt'<br>
  04-13 17:05:09.128: INFO/Process(1302): Sending signal. PID: 1433 SIG: 3<br>
  04-13 17:05:09.128: INFO/dalvikvm(1433): threadid=3: reacting to signal 3<br>
  04-13 17:05:09.144: INFO/dalvikvm(1433): Wrote stack traces to '/data/anr/traces.txt'<br>
  04-13 17:05:11.144: INFO/Watchdog_N(1302): dumpKernelStacks<br>
  04-13 17:05:11.144: ERROR/Watchdog_N(1302): Unable to open stack of tid 1302 : 13 (Permission denied)<br>
  04-13 17:05:11.144: ERROR/Watchdog_N(1302): Unable to open stack of tid 1303 : 13   (Permission denied)  </p>