Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example "astroblasto" panics at startup on PulseAudio on Linux #359

Closed
frazar opened this issue Apr 22, 2018 · 2 comments

Comments

@frazar
Copy link
Contributor

commented Apr 22, 2018

Running an the "astroblasto" example results in a panic

$ cargo run --example astroblasto
    Finished dev [unoptimized + debuginfo] target(s) in 0.32 secs
     Running `target/debug/examples/astroblasto`
Adding path "/home/frazar/gitprojects/ggez/resources"
Source <PhysicalFS root: /home/frazar/gitprojects/ggez/target/debug/examples/resources>
 Could not read source: IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Source <PhysicalFS root: /home/frazar/.local/share/astroblasto>
Source <PhysicalFS root: /home/frazar/.config/astroblasto>
Source <PhysicalFS root: /home/frazar/gitprojects/ggez/resources>
  Ok("/arial.png")
  Ok("/pew.ogg")
  Ok("/dragon3.png")
  Ok("/dragon1.png")
  Ok("/tile.png")
  Ok("/consolefont.png")
  Ok("/DejaVuSerif.ttf")
  Ok("/rock.png")
  Ok("/sound.ogg")
  Ok("/background.png")
  Ok("/dragon2.png")
  Ok("/player.png")
  Ok("/shot.png")
  Ok("/boom.ogg")
  Ok("/dragon4.png")
  Ok("/basic_150.glslv")
  Ok("/dimmer_150.glslf")
  Ok("/bg_top.png")
Game resource path: Filesystem { vfs: OverlayFS { roots: [<PhysicalFS root: /home/frazar/gitprojects/ggez/target/debug/examples/resources>, <PhysicalFS root: /home/frazar/.local/share/astroblasto>, <PhysicalFS root: /home/frazar/.config/astroblasto>, <PhysicalFS root: /home/frazar/gitprojects/ggez/resources>] }, resources_path: "/home/frazar/gitprojects/ggez/target/debug/examples/resources", zip_path: "/home/frazar/gitprojects/ggez/target/debug/examples/resources.zip", user_config_path: "/home/frazar/.config/astroblasto", user_data_path: "/home/frazar/.local/share/astroblasto" }

Welcome to ASTROBLASTO!

How to play:
L/R arrow keys rotate your ship, up thrusts, space bar fires

thread 'main' panicked at 'sample rate could not be set: "Invalid argument"', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I think this is due to an issue in rodio, that was fixed in 0.7.
Updating the dependency should fix the problem.

Another user experiencing this bug is reported here.

@icefoxen

This comment has been minimized.

Copy link
Contributor

commented Apr 22, 2018

Thank you for the bug report and the PR! This gives me motivation for working on a new bugfix release.

@icefoxen

This comment has been minimized.

Copy link
Contributor

commented Apr 23, 2018

Resolved in #360, let's try to get 0.4.3 out soon.

@icefoxen icefoxen closed this Apr 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.