Menu

Copying text interface with a graphic screen

2017-06-10
2017-06-12
  • Ronald Herrera

    Ronald Herrera - 2017-06-10

    I did this mistake by accident, eventhough, heres the message:

    EXCEPTION

    pcbasic.video_pygame:948, check_events
    None
    pcbasic.video_pygame:1140, copy
    None
    pcbasic.backend:642, copy_clipboard
    None
    pcbasic.backend:1218, get_text
    None
    IndexError: list index out of range
    This is a bug in PC-BASIC.
    Sorry about that. Please file a bug report at https://sourceforge.net/p/pcbasic/discussion/bugs/ or 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.
    Thank you!
    Ok

    Regards,
    Ronald.

     
    • Rob Hagemans

      Rob Hagemans - 2017-06-10

      Hi Ronald, thanks. By "Copying text interface with a graphic screen" I assume you mean using the mouse to select and copy test from the screen, while this is in graphics mode?

      Can you consistently reproduce the crash? If so, please let me know how, i.e. what steps do I need to take to make the crash happen. Also please remind me what operating system are you using, and what graphics settings.

      The strack trace tells me the get_text tries to read rows or columns that don't exist, which shouldn't happen - however the problem is probably caused by something happening before the screen copy that messes up the buffer. As it stands I'm unable to reproduce this crash so I can't investigate its cause...

       
  • Ronald Herrera

    Ronald Herrera - 2017-06-11

    Actually, I can't reproduce the error. I was using alittle program that do circles on screen 1, and when its finish to plot the drawing it makes a BEEP sound that alerts me that the graphics was finished. So I start doodleling with the mouse slelcting the graphics when I decide to press Ctrl-Ins (like I had intentions to copy the graphic, but in the moment I relized that this couldn't be done when the error screen startle me. It wasn't my intentions to copy the graphic anyway, but that's when I decide lo let you know.

    If I reproduce the error somehow, I let you know with more details. Thanks.
    Ronald.

    P.D. There's any way to fix that bug of SOUND, PLAY, BEEP, etc. using Windows 7 (64)? There's some programs with sound statements and offenly fails to sustain the program running. An I have notice that after a BEEP or a sound for sometime, during a nomal use of PC-BASIC, the emulator suddently makes its crash.

     
  • Ronald Herrera

    Ronald Herrera - 2017-06-12

    Okay! Here's the deal. On screen 1, with the mouse select from top-right corner to the end (line 25) at the bottom-left corner release the left-click of mouse and this makes the bug reproduced.

    Good Luck!,
    Ronald.

     
  • Rob Hagemans

    Rob Hagemans - 2017-06-12

    Thanks Ronald, I can reproduce this now! Weird bug. Tracker here: https://github.com/robhagemans/pcbasic/issues/37

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.