GithubHelp home page GithubHelp logo

Comments (3)

robhagemans avatar robhagemans commented on May 19, 2024

Hi, thanks for the report and the trigger code, I'll have a look

from pcbasic.

robhagemans avatar robhagemans commented on May 19, 2024

Does not occur in 16.12, but does occur in 15.08.12.

The problem appears to be something related to the keyboard being checked in the wait loop after the BEEP statement:

  File "/home/rob/Projects/basic-project/branch1508/pcbasic/sound.py", line 169, in play_sound
    self.wait_music(15)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/sound.py", line 176, in wait_music
    backend.wait()
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 61, in wait
    check_events()
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 70, in check_events
    video.check_events()
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/video_pygame.py", line 926, in check_events
    handle_key_down(event)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/video_pygame.py", line 1064, in handle_key_down
    backend.key_down(scan, c)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 607, in key_down
    state.console_state.keyb.key_down(scan, eascii, check_full)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 580, in key_down
    self.insert_chars(eascii, check_full=True)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 497, in insert_chars
    state.console_state.sound.play_sound(800, 0.01)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/sound.py", line 169, in play_sound
    self.wait_music(15)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/sound.py", line 176, in wait_music
    backend.wait()
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 61, in wait
    check_events()
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 70, in check_events
    video.check_events()
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/video_pygame.py", line 926, in check_events
    handle_key_down(event)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/video_pygame.py", line 1064, in handle_key_down
    backend.key_down(scan, c)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 607, in key_down
    state.console_state.keyb.key_down(scan, eascii, check_full)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 580, in key_down
    self.insert_chars(eascii, check_full=True)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/backend.py", line 497, in insert_chars
    state.console_state.sound.play_sound(800, 0.01)
  File "/home/rob/Projects/basic-project/branch1508/pcbasic/sound.py", line 161, in play_sound
    tone = AudioEvent(AUDIO_TONE, (frequency, duration, fill, loop, volume))
RuntimeError: maximum recursion depth exceeded

from pcbasic.

robhagemans avatar robhagemans commented on May 19, 2024

Fixed by 598537a

from pcbasic.

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.