cityflow-project / CityFlow

A Multi-Agent Reinforcement Learning Environment for Large Scale City Traffic Scenario
https://cityflow-project.github.io
Apache License 2.0
785 stars 171 forks source link

error occurred when drawing #120

Open ZheliXiong opened 3 years ago

ZheliXiong commented 3 years ago

hello,bro.i meet a problem after i choose the correct replay_roadnet.json and replay.txt file and click start.it says -start replaying - error occurred when drawing. i dont know is that my browser's problem?byw my replay.txt is empty,i dont know is that normal?

only-changer commented 3 years ago

If your replay.txt is empty, it means you did not save the replay or some error occurs when running CityFlow. You can test your browser by running an existing replay_roadnet.json and replay.txt by running "frontend/download_replay.py".

ZheliXiong commented 3 years ago

thanks so much! And I test the download-replay and it runs ok.that means my browser is ok. But when I run example config,my replay.txt do empty.I do set savereplay:true.could you please give me more help?but the replay_roadnet file works well

发自我的iPhone

------------------ Original ------------------ From: Chang Liu @.> Date: Thu,Mar 25,2021 2:03 PM To: cityflow-project/CityFlow @.> Cc: shuan19920309 @.>, Author @.> Subject: Re: [cityflow-project/CityFlow] error occurred when drawing (#120)

If your replay.txt is empty, it means you did not save the replay or some error occurs when running CityFlow. You can test your browser by running an existing replay_roadnet.json and replay.txt by running "frontend/download_replay.py".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

only-changer commented 3 years ago

How many steps did you run? You can output the total vehicle count in every step to see whether the simulation is working.

ZheliXiong commented 3 years ago

I create the engine then it will crate the replay_roadnet.json and replay.txt.and I just need run these two file in my browser.is that right.and i check the vehicle number is always  0. because my replay.txt is empty 

发自我的iPhone

------------------ Original ------------------ From: Chang Liu @.> Date: Thu,Mar 25,2021 7:53 PM To: cityflow-project/CityFlow @.> Cc: shuan19920309 @.>, Author @.> Subject: Re: [cityflow-project/CityFlow] error occurred when drawing (#120)

How many steps did you run? You can output the total vehicle count in every step to see whether the simulation is working.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

only-changer commented 3 years ago

En, you should run the engine after you create it by "eng.next_step()".

ZheliXiong commented 3 years ago

oh! I success. I appreciate you so much! You helps me a lot. thanks!!! :)

发自我的iPhone

------------------ Original ------------------ From: Chang Liu @.> Date: Thu,Mar 25,2021 8:11 PM To: cityflow-project/CityFlow @.> Cc: shuan19920309 @.>, Author @.> Subject: Re: [cityflow-project/CityFlow] error occurred when drawing (#120)

only-changer commented 3 years ago

You are welcome~

Siaaa-3 commented 2 years ago

hello! I meet the problem that the replaylogfile.json and replay.txt file can be loaded successfully, but it shows "drawing roadnet faeiled"!

I use the google browser, and I think these two file is correct.

Can you give me some suggestion about this problem? Or, can you tell me which browser you are use ? Thanks a lot!

zhc134 commented 1 year ago

Please check the roadnet file you uploaded in GUI corresponds to roadnetLogFile in config.json

xingxindrst commented 4 months ago

oh! I success. I appreciate you so much! You helps me a lot. thanks!!! :) 发自我的iPhone ------------------ Original ------------------ From: Chang Liu @.> Date: Thu,Mar 25,2021 8:11 PM To: cityflow-project/CityFlow @.> Cc: shuan19920309 @.>, Author @.> Subject: Re: [cityflow-project/CityFlow] error occurred when drawing (#120)

hello,I have the same question,the replay.txt is empty.I have used "eng.next_step()",but the file "replay.txt" is still empty.How did you solve this problem?