Fix crashes

Uninitialised size used in DrawBufferInit
Add some debug statements