mjxu96 / carlaviz

Visualize carla in the web browser
MIT License
264 stars 61 forks source link

"Launch the backend and refresh" in web browser after launching #75

Closed sallyqiansun closed 3 weeks ago

sallyqiansun commented 2 months ago

Hi, I started the carla(version0.9.15) in the server on port 2000 by running: ./CarlaUE4.sh -opengl -carla-rpc-port=2000 -nosound -windowed -ResX=400 -ResY=300 -carla-server and the server launched with the following output:

4.26.2-0+++UE4+Release-4.26 522 0 
Disabling core dumps.

In my local machine I run carlaviz following: docker run -it -e CARLAVIZ_BACKEND_HOST=localhost -e CARLAVIZ_HOST_IP=my_server_ip -e CARLA_SERVER_IP=my_server_ip -e CARLA_SERVER_PORT=2000 -p 8080-8081:8080-8081 -p 8089:8089 mjxu96/carlaviz:0.9.10 and the output shows:

Make sure you have launched the carla server.
Launching backend.
2024-09-25 02:13:09 [INFO]     Connecting to Carla Server on my_server_ip:2000...
Backend launched.
Launching frontend
yarn run v1.22.5
warning package.json: No license field
$ webpack-dev-server --host 0.0.0.0 --disable-host-check --env.live --progress --hot --open
10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://0.0.0.0:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/carla/carlaviz/frontend
10% building 3/4 modules 1 active ...p-loader/index.js!/home/carla/carlaviz/frontend/src/app.jsBrowserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
93% after chunk asset optimization SourceMapDevToolPluginFrontend launched. Please open your browser
ℹ 「wdm」: Hash: c42d656570b0fb9a77e3
Version: webpack 4.43.0
Time: 10425ms
Built at: 09/25/2024 2:13:28 AM
                               Asset      Size  Chunks                   Chunk Names
573fe91c6c748074195655e1f0159864.png  7.61 KiB          [emitted]
                           bundle.js  9.66 MiB     app  [emitted]        app
                       bundle.js.map  11.8 MiB     app  [emitted] [dev]  app
Entrypoint app = bundle.js bundle.js.map
[0] multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./src/app.js 52 bytes {app} [built]
[./node_modules/@deck.gl/core/dist/esm/index.js] 3.09 KiB {app} [built]
[./node_modules/@deck.gl/layers/dist/esm/index.js] 1.01 KiB {app} [built]
[./node_modules/@streetscape.gl/monochrome/dist/esm/index.js] 560 bytes {app} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[./node_modules/react/index.js] 190 bytes {app} [built]
[./node_modules/streetscape.gl/dist/esm/index.js] 78 bytes {app} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8080] (webpack)-dev-server/client?http://0.0.0.0:8080 4.29 KiB {app} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {app} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {app} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {app} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {app} [built]
[./src/app.js] 11.6 KiB {app} [built]
    + 1479 hidden modules
ℹ 「wdm」: Compiled successfully.
2024-09-25 02:13:39 [ERROR]    time-out of 30000ms while waiting for the simulator, make sure the simulator is ready and connected to my_server_ip:2000

And in the browser at localhost:8080/, there is no UI available except for "Launch the backend and refresh". May I know where the problem is? I look forward to your reply! Thank you!

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.