RuntimeError:"DMA does not support unaligned transfers"

@nirsap

Well if you are sure u need unaligned transfer which the block in between alignment is not given:
According to this post:

Please make sure the allocate is correctly.