udacity / self-driving-car-sim

A self-driving car simulator built with Unity
http://udacity.com/self-driving-car
MIT License
3.9k stars 1.5k forks source link

Filling ~/.config/unity3d/Udacity/self_driving_car_nanodegree_program/Player.log if connection fails #54

Open HTuennermann opened 7 years ago

HTuennermann commented 7 years ago

The simulator generates a lot of log entrys like this if ros is not running int the Player.log file:

9/5/2017 1:59:25 AM|Fatal|WebSocket.acceptException|System.Net.Sockets.SocketException: Connection refused at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in :0 at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in :0 at System.Net.Sockets.TcpClient.Connect (System.Net.IPEndPoint remote_end_point) [0x00000] in :0

after one night leaving the program on, my Player log was 180GB.

antorsae commented 6 years ago

I can confirm and reproduce in Ubuntu 16.04. Emptied my HD space in the process.

mreichelt commented 6 years ago

@HTuennermann @antorsae until this issue is fixed I have a quick & nice workaround for you, I also posted it in Slack:

# on Linux
rm ~/.config/unity3d/Udacity/self_driving_car_nanodegree_program/Player.log
mkdir -p ~/.config/unity3d/Udacity/self_driving_car_nanodegree_program/Player.log

# on Mac
rm ~/Library/Logs/Unity/Player.log
mkdir -p ~/Library/Logs/Unity/Player.log

Hope it helps!