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

app crash after playing a boing sound with exit error code -1073741819 (0xC0000005) #807

Open
jipehache opened this issue Aug 9, 2024 · 0 comments

Comments

@jipehache
Copy link

The program is a very basic maze game, to be developed by my students who are in a Building high school, who must learn to use Python in their future job (as construction engineer).

Steps to reproduce

  1. Create a FrenchTurtle(Turtle) class, inheriting from turtle.Turtle class
  2. In the init def :
  • a. define a self.hurt_sound as an AudioSegment opening a boing.mp3 file
	self.hurt_sound = AudioSegment.from_file(sound_path, format=”mp3”)
  • b. a self.wall_hurt as a boolean
  1. Define two methods :
  • a. def advancer(x) : this def checks if there is a wall on the way of the turtle
    - i. If yes (the self.wall_hurt is True) a boing sound is played and the turtle goes until the wall
    - ii. In no, the turtle moves forward normally x steps.
  • b. def play_hurt_sound() :
    - i. Just plays the boing sound.
play(self.hurt_sound)

Expected behavior

The turtle must reach the maze exit in less of 2’30'' and in the minimum of tries.
When the gamer requests the turtle to move too much of steps and it hurts the wall, the boing sound must be played once.

Actual behavior

When the turtle hurts the wall, the sound plays correctly, but then the app crashes, at line 62 (return PlayObject(play_id) in the shiny.py file)
code error : Process finished with exit code -1073741819 (0xC0000005)

Your System configuration

  • Python version: 3.12
  • Pydub version: 0.25.1
  • ffmpeg or avlib?: ffmpeg
  • ffmpeg/avlib version: 1.4

boing.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant