Android Fatal Signal 11 Android Fatal Signal 11 java java

Android Fatal Signal 11


I had been trying to call an uninitialised Canvas inside another Class so when it was trying to get the height or width of it, it would crash.


I had the same problem with an instance of android.media.MediaRecorder.

The code accessed #getMaxAmplitude() after #reset() and #release() on the MediaRecorder instance had been called.


I had this same problem this morning and was able to track it back to accidentally saving an image 800 pixels wide in the drawable-mdpi folder. When I realized what happened I tinkered with it for a second. I tried compressing it hard to see if it was related to file size and it was not. Then I tried saving it again at 650 pixels wide and it worked out of that folder. So somewhere between there is the breaking point for every folder I would guess. Then I put the 800 p wide image in the intended hdpi folder and the 480 p wide in the mdpi and it fixed it.