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 during draw #124

Closed ritchiecarroll closed 3 years ago

ritchiecarroll commented 3 years ago

Bug report

FYI, Great program! I now have a way to run my old basic programs and convert the source to plain text - thanks so much!

Problem Had this issue below, see crash log - just providing you a heads-up in case it's something you have time to fix in the future.

This was a program I wrote when I was in high school that was published in the Rainbow Color Computer magazine, circa 1990.

See attached source: BLAKJACK.zip

Thanks, Ritchie

Crash log PC-BASIC crash log

FATAL ERROR version 2.0.3 [v2.0.2-1-820-g6807f35bb 2020-09-26 16:12:18.217000] python 2.7.18 [32bit WindowsPE] True platform Windows-10-10.0.20246 interface VideoSDL2, AudioSDL2 statement 1110 CIRCLE(4,4),3,C2:CIRCLE(10,4),3,C2:DRAW"C=C2;BM3,7F4E4":PAINT(4,4),C2:PAINT(10,4),C2:PAINT(7,6),C2:PSET(7,3),C2

graphics.py:462, _draw_line graphics.py:74, setitem buffers.py:60, setitem bytematrix.py:83, setitem TypeError: Can only assign ByteMatrix, list of bytes-like or int, not <type 'long'>.

This is a bug in PC-BASIC. Sorry about that. You can help improve PC-BASIC:

robhagemans commented 3 years ago

Hi, thanks for this - I'll look into it. Not immediately clear what's going on but I expect I'll be able to figure it out with the example code to reproduce.

robhagemans commented 3 years ago

Weird, this is not happening to me. Is there a sequence of keys I need to press to trigger the error?

robhagemans commented 3 years ago
robhagemans commented 3 years ago

Fixed on develop branch, will be included in next relrease