udacity / self-driving-car-sim

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

Simulator crashes on Linux Mint 18 (Ubuntu 16.04) #72

Closed rafi-kamal closed 5 years ago

rafi-kamal commented 6 years ago

Steps to reproduce:

Simulator crashes immediately after pressing OK without any error message. Log from the command line:

Set current directory to /home/rafi/self-driving/term2/term2_sim_linux
Found path: /home/rafi/self-driving/term2/term2_sim_linux/term2_sim.x86_64
Mono path[0] = '/home/rafi/self-driving/term2/term2_sim_linux/term2_sim_Data/Managed'
Mono path[1] = '/home/rafi/self-driving/term2/term2_sim_linux/term2_sim_Data/Mono'
Mono config path = '/home/rafi/self-driving/term2/term2_sim_linux/term2_sim_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 4 screens
displaymanager screen (0)(DP-0): 1920 x 1080
Using libudev for joystick management

Importing game controller configs
xwzy commented 6 years ago

I have the same issue.

Set current directory to /home/wzy/Desktop/term2_sim_linux
Found path: /home/wzy/Desktop/term2_sim_linux/term2_sim.x86_64
Mono path[0] = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Managed'
Mono path[1] = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Mono'
Mono config path = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 16 screens
displaymanager screen (0)(Virtual1): 1440 x 900
Using libudev for joystick management

Importing game controller configs
Aborted (core dumped)
soaresinfo commented 6 years ago

Mint (18.3) user here, I just double click the executable (beta_simulator.x86_64) with the lowest res 640x480 on my notebook, it run ok.

xwzy commented 6 years ago

I use a fresh ubuntu 16.04, and I still crashed after choose 640x480 or any other config. Can anyone help me?

$ ./term2_sim.x86_64 
Set current directory to /home/wzy/Desktop/term2_sim_linux
Found path: /home/wzy/Desktop/term2_sim_linux/term2_sim.x86_64
Mono path[0] = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Managed'
Mono path[1] = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Mono'
Mono config path = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 16 screens
displaymanager screen (0)(Virtual1): 1440 x 900
Using libudev for joystick management

Importing game controller configs
Aborted (core dumped)
xwzy commented 6 years ago

I installed ubuntu on a virtual machine on macbook

rafi-kamal commented 6 years ago

I downloaded the v1.45 again, this time it worked. I think I have been using v1.3 before.

rafi-kamal commented 6 years ago

@xwzy please let me know if redownloading v1.45 works for you, if so then we can close this issue.

xwzy commented 6 years ago

@rafi-kamal No, v1.45 still crash under virtual machine on my mac. But a ubuntu on PC is ok to run.

wzy@wzy:~/Desktop/term2_sim_linux$ ./term2_sim.x86_64 
Set current directory to /home/wzy/Desktop/term2_sim_linux
Found path: /home/wzy/Desktop/term2_sim_linux/term2_sim.x86_64
Mono path[0] = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Managed'
Mono path[1] = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Mono'
Mono config path = '/home/wzy/Desktop/term2_sim_linux/term2_sim_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 16 screens
displaymanager screen (0)(Virtual1): 1440 x 900
Using libudev for joystick management

Importing game controller configs
Aborted (core dumped)
tsbertalan commented 6 years ago

It crashes for me without the Aborted (core dumped). I get

Set current directory to /home/tsbertalan/usr/term2_sim_linux
Found path: /home/tsbertalan/usr/term2_sim_linux/term2_sim.x86_64
Mono path[0] = '/home/tsbertalan/usr/term2_sim_linux/term2_sim_Data/Managed'
Mono path[1] = '/home/tsbertalan/usr/term2_sim_linux/term2_sim_Data/Mono'
Mono config path = '/home/tsbertalan/usr/term2_sim_linux/term2_sim_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 2 screens
displaymanager screen (0)(DVI-I-2): 1920 x 1080
displaymanager screen (1)(DVI-I-3): 1080 x 1920
Using libudev for joystick management

Preloaded type GtkListStore
Preloaded type GtkWindow
Preloaded type GtkVBox
Preloaded type GtkImage
Preloaded type GtkNotebook
Preloaded type GtkHBox
Preloaded type GtkFrame
Preloaded type GtkAlignment
Preloaded type GtkTreeView
Preloaded type GtkLabel
Preloaded type GtkCheckButton
Preloaded type GtkScrolledWindow
Preloaded type GtkComboBox

I then choose a resolution, graphics quality, and window mode (all give same results) and it exits with no further output.

I also tried restoring my write permission to ~/.config/unity3d/Udacity/self_driving_car_nanodegree_program/Player.log, but that didn't help. I'm on Ubuntu 16.04.04 LTS

Strangely, it does work on my laptop running the same Ubuntu (and it did work in the past on this desktop), so the problem must be some recent configuration change of my system.

tsbertalan commented 6 years ago

Aaand it's gone after reboot. I believe it was my recent reinstall of the Nvidia 390.48 driver. So, I guess, one for the knowledgebase.

kk2491 commented 5 years ago

yea... @tsbertalan you are right,.. After reinstalling the NVIDIA driver simulator works perfectly fine.

mvirgo commented 5 years ago

Looks like from above this issue is resolved / user side; closing.

rijo11811 commented 3 years ago

Faced the same issue today. Thought its because of my laptop hardware(quite old). Solution : Untick Windowed option. Works like butter.