title: Swift SKEmitter Node - BSXPCMessage received error for message: Connection interrupted
body: <p>I am currently trying to improve my swift sprite kit game. I have an issue where i get the dreaded "BSXPCMessage received error for message: Connection interrupted" message.</p>
  
  <p>It happens when my bosses start spawning or shoot their weapons. They have an SKEmitter node for their engines and weapons. All bosses and weapons are in their own SKSpriteNode class with boiler plate zPosition, physics body etc code and with the following particle code.</p>
  
  <pre><code>let engineParticles = SKEmitterNode(fileNamed: "Boss1Thruster.sks")
  
  engineParticles.zPosition = 15
  engineParticles.position = CGPointMake(0, -50)
  var particleEffects = SKEffectNode() //blends better with background like this
  particleEffects.addChild(engineParticles)
  addChild(particleEffects)
  </code></pre>
  
  <p>The same for the weapon particles</p>
  
  <pre><code>let weaponParticles = SKEmitterNode(fileNamed: "Boss1WeaponThruster.sks")    
  
  particles.zPosition = 15
  particles.position = CGPointMake(+20, 0)
  var particleEffects = SKEffectNode() // blends better this way
  particleEffects.addChild(particles)
  addChild(particleEffects)
  </code></pre>
  
  <p>The boss(es) spawn offscreen and than come into the scene and do their routine via SKActions. 
  This message only happens once for the first particle effect that comes up, than it works fine for the rest of the boss fight. The game doesn't crash when the error message happens but I do get a 1 sec stutter which is annoying. I tried preloading the particles right in the beginning of my game but that didn't make a difference.</p>
  
  <p>Any suggestions why this is happening and what could I do to fix that?
  Thank you for any suggestions.</p>