cityflow-project / CityFlow

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

Error occurred when drawing #161

Closed ygdl0228 closed 1 year ago

ygdl0228 commented 1 year ago

Traffic light shows white and replay doesn't show cars.

image image

zhc134 commented 1 year ago

Please check if the replay.txt and replay_roadnet.json corresponds to each other.

ygdl0228 commented 1 year ago

These two documents are of course corresponding,Is it because replay.txt is too big

zhc134 commented 1 year ago

Can you open F12 dev tools and check what error occurred?

ygdl0228 commented 1 year ago

of course image image

zhc134 commented 1 year ago

Please check the console tab in F12 tool, notice that you should open the console tab before you select replay file and start simulation.

ygdl0228 commented 1 year ago

Sorry, I don't understand what you mean. I'm not very familiar with this place. I can open the console tab before I select replay file and start simulation. But there is nothing here image

ygdl0228 commented 1 year ago

Is this what you need image

zhc134 commented 1 year ago

Yes, there should be erros in the console. Could you please share the two replay files, so I can check them locally.

ygdl0228 commented 1 year ago

ok, by email?

zhc134 commented 1 year ago

You could upload them to a netdisc

ygdl0228 commented 1 year ago

链接:https://pan.baidu.com/s/1jIlrzbDYTHd1mu2p3d9Qtg?pwd=p8bk 提取码:p8bk

zhc134 commented 1 year ago

Seems that the replay.txt is too large which causes the error, try using a smaller replay.txt, I successfully run the visualization with the first 1000 lines of your replay file

ygdl0228 commented 1 year ago

OK, thanks

Siaaa-3 commented 1 year ago

hi, I'm trying to use the simulator, but I get this page:

image

Can you tell me what browser you use? and do you use Linux or Windows?

BackMountainDevil commented 8 months ago

trying to use the simulator, but I get this

firefox on linux works too

BackMountainDevil commented 8 months ago

I have replayLog_fake.txt( 5.2 GiB) and roadnetLog_fake.json( 1 MiB). Presee start will got "- Loading replayLog_fake.txtfailed" in Info Box. I tried this at least three times bug got same result

I tried print the err info(frontend/script.js L125) in F12-console, and got

error { target: FileReader, isTrusted: true, lengthComputable: true, loaded: 4294959104, total: 5555716025, srcElement: FileReader, currentTarget: FileReader, eventPhase: 2, bubbles: false, cancelable: false, … }
​
bubbles: false
​
cancelBubble: false
​
cancelable: false
​
composed: false
​
currentTarget: null
​
defaultPrevented: false
​
eventPhase: 0
​
explicitOriginalTarget: FileReader { readyState: 2, result: null, error: DOMException, … }
​
isTrusted: true
​
lengthComputable: true
​
loaded: 4294959104
​
originalTarget: FileReader { readyState: 2, result: null, error: DOMException, … }
​
returnValue: true
​
srcElement: FileReader { readyState: 2, result: null, error: DOMException, … }
​
target: FileReader { readyState: 2, result: null, error: DOMException, … }
​
timeStamp: 188629
​
total: 5555716025
​
type: "error"
​
<get isTrusted()>: function isTrusted()
​
<prototype>: ProgressEventPrototype { lengthComputable: Getter, loaded: Getter, total: Getter, … }
script.js:126:17

too big to render. use head -500 replayLog_fake.txt>fake-500.txt will works out.