robhagemans / pcbasic

PC-BASIC - A free, cross-platform emulator for the GW-BASIC family of interpreters
http://www.pc-basic.org
Other
397 stars 48 forks source link

Crash with PLAY function? #123

Closed nikkobertrand closed 4 years ago

nikkobertrand commented 4 years ago

C-BASIC crash log

FATAL ERROR version 2.0.2 [] 2020-01-19 08:56:22 python 3.8.5 [64bit ELF] platform Linux-5.4.0-52-generic-x86_64-with-glibc2.29 interface VideoSDL2, AudioSDL2 statement :PLAY

interpreter.py:120, loop interpreter.py:109, parse statements.py:82, parsestatement sound.py:266, play RuntimeError: generator raised StopIteration

This is a bug in PC-BASIC. Sorry about that. To help improve PC-BASIC, please file a bug report at https://github.com/robhagemans/pcbasic/issues Please include the messages above and as much information as you can about what you were doing and how this happened. Please attach the log file /home/nicolas/.local/share/pcbasic-2.0/crash-20201028-s6ve9311.log Thank you!

Press a key to close this window. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pcbasic/basic/sound.py", line 266, in mml_list = list(values.nextstring(args) for in range(3)) File "/usr/lib/python3/dist-packages/pcbasic/basic/values/values.py", line 79, in next_string expr = next(args) StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pcbasic/guard.py", line 66, in protect yield File "/usr/lib/python3/dist-packages/pcbasic/main.py", line 114, in run_session session.interact() File "/usr/lib/python3/dist-packages/pcbasic/basic/api.py", line 124, in interact self._impl.interact() File "/usr/lib/python3/dist-packages/pcbasic/basic/implementation.py", line 322, in interact self.interpreter.loop() File "/usr/lib/python3/dist-packages/pcbasic/basic/interpreter.py", line 120, in loop self.parse() File "/usr/lib/python3/dist-packages/pcbasic/basic/interpreter.py", line 109, in parse self.parser.parse_statement(ins) File "/usr/lib/python3/dist-packages/pcbasic/basic/parser/statements.py", line 82, in parse_statement self._callbacksc File "/usr/lib/python3/dist-packages/pcbasic/basic/sound.py", line 266, in play_ mml_list = list(values.nextstring(args) for in range(3)) RuntimeError: generator raised StopIteration

==== Screen Pages ================================================================================== +--------------------------------------------------------------------------------+ 0 |PC-BASIC 2.0.2 | 14 1 |(C) Copyright 2013--2019 Rob Hagemans. | 38 2 |60300 Bytes free | 16 3 |Ok? | 3 4 |PLAY | 4 5 | | 0 6 | | 0 7 | | 0 8 | | 0 9 | | 0 10 | | 0 11 | | 0 12 | | 0 13 | | 0 14 | | 0 15 | | 0 16 | | 0 17 | | 0 18 | | 0 19 | | 0 20 | | 0 21 | | 0 22 | | 0 23 | | 0 24 | 1LIST 2RUN 3LOAD" 4SAVE" 5CONT 6,"LPT1 7TRON 8TROFF 9KEY 0SCREEN| 80 +--------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------+ 0 | | 0 1 | | 0 2 | | 0 3 | | 0 4 | | 0 5 | | 0 6 | | 0 7 | | 0 8 | | 0 9 | | 0 10 | | 0 11 | | 0 12 | | 0 13 | | 0 14 | | 0 15 | | 0 16 | | 0 17 | | 0 18 | | 0 19 | | 0 20 | | 0 21 | | 0 22 | | 0 23 | | 0 24 | | 0 +--------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------+ 0 | | 0 1 | | 0 2 | | 0 3 | | 0 4 | | 0 5 | | 0 6 | | 0 7 | | 0 8 | | 0 9 | | 0 10 | | 0 11 | | 0 12 | | 0 13 | | 0 14 | | 0 15 | | 0 16 | | 0 17 | | 0 18 | | 0 19 | | 0 20 | | 0 21 | | 0 22 | | 0 23 | | 0 24 | | 0 +--------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------+ 0 | | 0 1 | | 0 2 | | 0 3 | | 0 4 | | 0 5 | | 0 6 | | 0 7 | | 0 8 | | 0 9 | | 0 10 | | 0 11 | | 0 12 | | 0 13 | | 0 14 | | 0 15 | | 0 16 | | 0 17 | | 0 18 | | 0 19 | | 0 20 | | 0 21 | | 0 22 | | 0 23 | | 0 24 | | 0 +--------------------------------------------------------------------------------+ ==== Scalars =======================================================================================

==== Arrays ========================================================================================

==== Strings =======================================================================================

==== Program Buffer ================================================================================ b'00' b'0000' (ENDS) b'' b'' ==== Program ======================================================================================= ==== Options ======================================================================================= []

nikkobertrand commented 4 years ago

crash when I try to use it normally too like PLAY "abc"

SOUND function is working correctly

nikkobertrand commented 4 years ago

sorry I see it is corrected now