I have the following XML:
Move your x and y logging to before you access the bitmap to see what values are being returned.
Per the stacktrace, don't call getPixel with values x and y which exceed the dimensions of your bitmap.