Demo load_from_memory crash

Thanks for reporting this, I was able to reproduce this and have made a task to investigate it further.