CityFlow icon indicating copy to clipboard operation
CityFlow copied to clipboard

error occurred when drawing

Open ZheliXiong opened this issue 3 years ago • 10 comments

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?

ZheliXiong avatar Mar 22 '21 12:03 ZheliXiong

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".

only-changer avatar Mar 25 '21 06:03 only-changer

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.

ZheliXiong avatar Mar 25 '21 11:03 ZheliXiong

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

only-changer avatar Mar 25 '21 11:03 only-changer

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.

ZheliXiong avatar Mar 25 '21 12:03 ZheliXiong

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

only-changer avatar Mar 25 '21 12:03 only-changer

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)

ZheliXiong avatar Mar 25 '21 12:03 ZheliXiong

You are welcome~

only-changer avatar Mar 25 '21 12:03 only-changer

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!

Siaaa-3 avatar Jun 05 '22 11:06 Siaaa-3

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

zhc134 avatar Oct 20 '22 03:10 zhc134

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?

xingxindrst avatar May 10 '24 08:05 xingxindrst