stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
593 stars 99 forks source link

Remove the std redirection files on exit #1461

Closed eugen15 closed 2 weeks ago

eugen15 commented 2 weeks ago

Description

Removed the std out/err redirection files on exit

Motivation and Context

There was a crash caused by broken IPC on exit. The client OSN started to receive some garbage which could not be deserialized. I did not find any reason the garbage would appear. The server OSN sent correct data. The client OSN read it correctly. The crash happened only when you closed the app and run it again. So, the redirection files were already in /tmp when you started the app second time. Removing them helped to solve the issue entirely.

How Has This Been Tested?

Types of changes

Checklist: