1

I am trying to run DQN, which is some AI for Atari.

Upon launching the program (sudo bash run_cpu < the_name_of_the_game >), I get the following error: run_cpu: line 46: 9377 Segmentation fault ../torch/bin/luajit train_agent.lua $args

From Running application ends with "Segmentation Fault", the error seems to be coming from the program, but many other people have used it without any problem ...

How can I solve this?

I'm quite new to Linux, and I'm on Elementary OS (+-latest stable version)

I took the program here : https://sites.google.com/a/deepmind.com/dqn/

2 Answers2

1

Is the ROM name capitalized? If so, make it lower case. For example:

    Breakout.bin ==> breakout.bin

Also make sure that you have 6GB of RAM!

Rahul
  • 11
  • 1
0

The instructions are possibly misleading for a newbie. Let's say you have a game called "happy". The command line you type would be:

./run_cpu happy

That is, don't include the < or >.

In any case, you generally don't need to use sudo unless you get a permissions error.

Hack Saw
  • 1,004
  • 7
  • 14
  • I didn't include them, I just ran (for example) sudo bash run_cpu breakdown. – Hippalectryon Mar 04 '15 at 23:50
  • I use sudo because otherwise I get a 'Permission Denied' error. (sorry for being unclear in my question) – Hippalectryon Mar 04 '15 at 23:57
  • That's odd. At the top level of the Human_Level_Control_through_Deep_Reinforcement_Learning directory, try this command: "sudo chown -R $your_user_name ." This will ensure everything in the directory is owned by you. – Hack Saw Mar 05 '15 at 00:06
  • My concern is that something else has the wrong permissions, and a program is getting an error message instead of the expected output, which might cause a seg fault. – Hack Saw Mar 05 '15 at 00:10
  • "sudo chown -R $hippa" gives me a 'chown: missing operand' error – Hippalectryon Mar 05 '15 at 00:14
  • The '.' at the end isn't punctuation. It's Unix-speak for "the current directory". Unix-speak for "the current directory's parent" is ".." If you run "ls -a" you'll see them. – Hack Saw Mar 05 '15 at 00:17
  • So: sudo chown -R $hippa . – Hack Saw Mar 05 '15 at 00:18
  • Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/21657/discussion-between--and-hack-saw). – Hippalectryon Mar 05 '15 at 00:18