The problem with this is that if you fill tmpfs (usually defaults to half of system memory), it wants to write to swap.
I have the Plex logs and some Samba configuration/logs mounted as tmpfs. Now that I recall, the problem started happening when I enabled these 2. Add to that the tmpfs for the flash memory plugin and the result might be a shortage of ram. Sound logic to me.