Code Monkey home page Code Monkey logo

Comments (6)

dabreegster avatar dabreegster commented on May 5, 2024

The code and data are out of sync. git pull, and run ./data/grab_seed_data.sh again (or rebuild the maps yourself). I'll add some error handling here to explain what's happening more clearly

from abstreet.

alimon808 avatar alimon808 commented on May 5, 2024

I'm getting the same error. Grab the latest data and performed a git pull on the current local repo. No luck. Tried also a completely new clone and performed the same steps but still no luck. Maybe it's a windows thing, I'll try on mac later today.

from abstreet.

alimon808 avatar alimon808 commented on May 5, 2024

It works fine on mac. I was able to compile and run the game.

On Windows, I tried also using the Windows Subsystem for Linux(WSL) feature with Ubuntu. Compiling and running the game within Ubuntu using this feature, the game still crashed at startup with the following error:

abstreet-ubuntu-startup-error

from abstreet.

dabreegster avatar dabreegster commented on May 5, 2024

The WSL issue seems like an issue with https://github.com/rust-windowing/winit. Since you compiled on Ubuntu, winit found bindings to wayland (your display server), but when you run on Windows, wayland doesn't exist.

The very first error is a serde deserialization error. Every time I've seen it, it means the file I'm reading was serialized with older code. I've never seen a difference between platforms matter.

What I'll work on:

  • better errors when running the game if map data is missing or out-of-date
  • a script to download a much smaller set of files to run from source (you won't be able to rebuild maps from scratch, but you'll be able to work on the simulation and GUI layers)
  • figuring out what the deserialization issue is here

from abstreet.

dabreegster avatar dabreegster commented on May 5, 2024

First two problems fixed. I don't have a Windows env and so can't easily help debug. Seems like using WSL doesn't work (kind of by design), so if you try again normally and still get the "invalid value" deserialization error, check the md5sum of the montlake.bin file. It should match data/MANIFEST.txt's entry.

from abstreet.

dabreegster avatar dabreegster commented on May 5, 2024

Closing old bugs. If you're still having issues, please reopen. Thanks!

from abstreet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.