Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.67 KB

q&a.md

File metadata and controls

68 lines (48 loc) · 2.67 KB

Q&A

  • Why npm ci reports npm ERR! command sh -c node-pre-gyp install --fallback-to-build...

    • image-20240405151921885

    • Answer

      • The dependencies of node-canvas may be forgotten to install, please refer to This docs
  • Why npm ci reports ETIMEOUT 20.205.243.166:443

    • image-20240405164247444

    • Answer

      • The reasons caused by the network. You can retry or use VPN.
  • Why Mineflayer reports THREE.WebGLRenderer: Cannot read properties of null...

  • Why MineLand reports RuntimeWarning: Couldn't find ffmpeg or avconv...

    • image-20240405152303051
    • Answer
      • MineLand provides Audio Information in observation space.
      • If you want to enable Sound System and let agents to deal with sounds, ffmpeg needs to be installed. Then, add enable_sound_system = True in mineland.make()
      • Or, you can ignore this info.
  • Why server reports Netty Server IO ERROR, Thread dumps

    • qa1
    • In fact, the cause of this problem is unknown. This may be related to personal computer configuration.
    • Answer
      • Restart MineLand to try again.
  • Why server reports There is insufficient memory for the JRE to continue.

    • image-20240405152714646
    • Answer
      • You need to upgrade your machine or
  • Why mineflayer reports `Type Error: Cannot read properties of undefined (reading 'yaw')

    • qa2

    • Answer

      • The bot has not been fully initialized yet.

      • You can increase the initialization duration in app.post("/start"...) of ./mineland/sim/mineflayer/index.js.

      • setTimeout(() => {
            obs = []
            for(let i = 0; i < number_of_bot; i++) {
                obs.push(bot_manager.getBotObservation(i));
            }
            res.status(200).json({
                return_code: 200,
                observation: obs,
            })
        }, 20000) // wait for 20 seconds to make sure all bots are spawned
        // You can change 20000 to 30000 to avoid this problem