It definitely can run out of memory, it can be a configuration issue.

Is there any way to limit max gpu memory usage?