PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
7k stars 645 forks source link

Unknown Error - Newest Update #102

Open alexkrolak opened 1 year ago

alexkrolak commented 1 year ago

This newest update has been fantastic, however I get an error after a few hours of training. I checked to make sure I didn't run out of disk space or something. Does anyone have any idea what might be going on here. It's occurring pretty far into training, maybe 3 or so hours on my 6 core machine. image

image

PWhiddy commented 1 year ago

I have not seen this myself, but some folks have been reporting this. Is this only happening on windows I wonder?

The "OSError invalid argument" on the path could be a clue.

alexkrolak commented 1 year ago

Kinda seems like it might be caused by something funny like that. Invalid character in filename or path. I had that folder open and was watching the most recent status screenshots of my training when it occurred this time.

Following up on this - after 2 consecutive errors occurring around the 50th version mark, I left the PC alone for a while and came back to a non-error 100th agent with my file directory not opened on-screen. Not exactly definitive, but somewhat promising "fix" is to just minimize the directory?

PWhiddy commented 1 year ago

Interesting. It's possible another application (maybe even the file explorer?) is blocking the file from being written.

hypersonicstorm commented 1 year ago

I have this issue as well lol, though I set num_cpu to 8 instead of 16 so idk if that has anything to do with it

alexkrolak commented 1 year ago

I set mine to 18 even though I only have 6, and I don't think that mattered for this issue.

Muramas commented 1 year ago

These errors look similar, a patch was suggested https://github.com/PWhiddy/PokemonRedExperiments/issues/122