Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection reset by peer #1

Closed
nakulgulati opened this issue Mar 9, 2016 · 4 comments
Closed

Connection reset by peer #1

nakulgulati opened this issue Mar 9, 2016 · 4 comments

Comments

@nakulgulati
Copy link

Hey,

I was successfully able to compile and run the example mentioned in the readme. Next I tried to run the Super Mario on the emulator over the network using fceux which got stuck at the message "Sending initialization data to server...".

When that did not work I tried to run the example again using the following:
./nes mario.urgs.org 4561 command: a

which resulted in the following error message
libc++abi.dylib: terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >: read_until: Connection reset by peer [1] 99919 abort ./nes mario.urgs.org 4561

Any thoughts about the same?

Thanks,
Nakul

@zoq
Copy link
Owner

zoq commented Mar 9, 2016

Hello, it looks like someone sends some none JSON data. The data couldn't be parsed correctly which results in an exception. The issue should be fixed in c65b689. Let me know, if anything doesn't work as expected.

@zoq zoq closed this as completed Mar 9, 2016
@nakulgulati
Copy link
Author

Hey,

Thanks it seems to be working now. I think in process of trying to load a .nes on the hosted emulator I might have sent non JSON data. Apologies for crashing it. I am new to it. I was testing it out for the GSoC project part of mlpack.

Can you help me set up a emulator on local network so I don't end up crashing the one for everyone?

Thanks

@zoq
Copy link
Owner

zoq commented Mar 9, 2016

Honestly, it's great that someone crashed it. I guess, I found a way that enables us to send any command valid or non-valid.

Can you help me set up a emulator on local network so I don't end up crashing the one for everyone?

Sure, I guess you can just install all dependencies and then you could follow the instructions 'Running the emulator module.'. If you need more help, you can either open an issue or join the #mlpack channel on freenode.

@nakulgulati
Copy link
Author

Over the course of next few days, I would be looking more into it.

Sure, I guess you can just install all dependencies and then you could follow the instructions 'Running the emulator module.'. If you need more help, you can either open an issue or join the #mlpack channel on freenode.

I have all the dependencies installed and followed the instructions as mentioned. I had trouble running the nes script on the right hostname and port for an emulator running on my local network.

Like you mentioned I'll take this to IRC #mlpack or if all else fails I'll open an issue here.

Thanks a lot.
Nakul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants