robhagemans / pcbasic

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

"Blue screen" when typing a non-existing line number + ENTER #137

Closed sblendorio closed 3 years ago

sblendorio commented 3 years ago

Bug report

Problem Trying to delete a non-existing line number by typing just it and ENTER, PCBASIC crashes and raises a blue-screen

Steps

  1. run PCBASIC
  2. type 10 then ENTER
  3. blue screen appears

Crash log

  version   2.0.2 []  2020-01-19 08:56:22                                           
  python    3.8.5 [64bit ELF]                                                       
  platform  Linux-5.8.0-48-generic-x86_64-with-glibc2.29                            
  interface VideoANSI, AudioPlugin                                                  
  statement                                                                         

  contextlib.py:131, __exit__                                                       
  implementation.py:415, _handle_exceptions                                         
  implementation.py:424, _handle_error                                              
  program.py:98, get_line_number                                                    
  TypeError: '<=' not supported between instances of 'int' and 'NoneType'           

  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/sblendorio/.local/share/pcbasic-2.0/crash-20210402-4z4w9mck.log           
  Thank you!                                                                        

  Press a key to close this window.                                                 

  This message has been copied onto the clipboard. You can paste it with Ctrl-V.    

Notes

PC-BASIC version: 2.0.2 Operating system version: Ubuntu Focal Fossa 20.4

robhagemans commented 3 years ago

This is a known issue, it was fixed in 2.0.3 so please upgrade to that version