title: Strange crash drawing on canvas on Android 4.0.3. A/libc: Fatal signal 11 (SIGSEGV)
body: <p>I'm using a low cost tablet with Android 4.0.3. Here the log:</p>
  
  <pre><code>06-11 23:36:04.653: D/SynopticElement(1583): Size changed to 200x200
  06-11 23:36:04.693: D/dalvikvm(1583): GC_FOR_ALLOC freed 62K, 12% free 7275K/8199K, paused 33ms
  06-11 23:36:04.713: D/SynopticElement(1583): Size changed to 190x190
  06-11 23:36:04.733: D/dalvikvm(1583): GC_FOR_ALLOC freed 9K, 12% free 7583K/8583K, paused 22ms
  06-11 23:36:04.743: A/libc(1583): Fatal signal 11 (SIGSEGV) at 0xc52c9d4c (code=1)
  </code></pre>
  
  <p>Debugging my code:</p>
  
  <pre><code>canvas.scale(getWidth(), getWidth()); //I'm drawing a custom component
  
  Paint frameBackgroundPainter = new Paint();
  frameBackgroundPainter.setAntiAlias(true);
  frameBackgroundPainter.setStyle(Paint.Style.FILL);
  frameBackgroundPainter.setColor(0xff000000);
  
  Paint frameBorderPainter = new Paint();
  frameBorderPainter.setAntiAlias(true);
  frameBorderPainter.setStrokeWidth(0.007f); //canvas is scaled
  frameBorderPainter.setStyle(Paint.Style.STROKE);
  frameBorderPainter.setColor(0xffaaaaaa);
  
  RectF frameRect = getFrameBorder(); //simply get the Rect to draw on canvas
  canvas.drawRect(frameRect, frameBackgroundPainter); //draw the background 
  
  // ---&gt; If I comment this line app does not crash!!!!! &lt;---
  canvas.drawRect(frameRect, frameBorderPainter); //draw the border
  </code></pre>
  
  <p>There's a <strong>problem with the paint stroke width</strong>, I tryed with different values:</p>
  
  <pre><code>0.007f -&gt; crash
  0.009f -&gt; crash
  0.5f -&gt; ok 
  0.1f -&gt; ok
  </code></pre>
  
  <p>Someone may tell me to work with a different canvas scale because of the very low value for the line width: ok, but everything is ok if I set <code>width=0.007f</code> and run the app on Android 2.3 (tablet and phone) and Android 3.0 (tablet)...</p>
  
  <p>I'm not excpetcing any solution to draw border in a different way, I'm wondering if anyone knows if this is a bug of Android 4.0.3.</p>
  
  <p>I'm also thinking it may be a graphic hardware issue of my low cost tablet, unfortunatelly I've no other Android 4.0.3 device to make tests...</p>
  
  <p>My tab metrics: </p>
  
  <pre><code>DisplayMetrics{density=1.0, width=480, height=752, scaledDensity=1.0, xdpi=160.0, ydpi=160.42105}
  </code></pre>
  
  <p>and for more information about the device visit <a href="http://www.epad.hk/Specs.asp?M=ZX07c" rel="nofollow">this link</a>.</p>