Menu

RESOLVED: If G+Stool returns an error during compile or programming then computer freezes.

2022-01-16
2022-01-28
  • Pernel Sned

    Pernel Sned - 2022-01-16

    Upon returning any error from G+Stool, my computer locks up completely, requiring me to kill G+Stool from task manager to continue to use the machine. I have tested compiling from command line and the issue is no longer present, and only occurs when using the hex and flash buttons in the IDE and only when there is an error.

     
  • Anobium

    Anobium - 2022-01-16

    @steini63

    I have had a look at this. It is related to G+STOOL,EXE but I still cannot compile the source to add any debug for @Pernel

    As he states : running the G+STOOL,EXE from the commandline with USEINI <filename> works ok. </filename>

    Most odd,
    
     
  • Frank Steinberg

    Frank Steinberg - 2022-01-17

    Hi!

    Do i see correctly that it is only about programmer errors, not compiler errors?

    Frank

     
    • Anobium

      Anobium - 2022-01-17

      @steini63
      It is a compiler error. The latest compiler should not program if a compiler error happens.

       
    • Pernel Sned

      Pernel Sned - 2022-01-18

      The freeze occurs with any error, for example; failed to compile due to syntax or other code error, failed to program PIC not found.
      If I click "Flash" in GCB while there is no PIC connected, it will attempt to program the chip, the freeze then occurs in the same instance this appears:

      Warning: The chip may not have programmed properly. Programmer returned status (3)
      Error: Warnings generated and treated as errors
      Duration:  10.3  Seconds.
      
       

      Last edit: Pernel Sned 2022-01-18
  • Frank Steinberg

    Frank Steinberg - 2022-01-18

    Ok, so g+stool.exe is nearly finished.

    You can try one of the patched G+Stool in this download:
    https://www.franksteinberg.de/ZIPS/G+Stools_Test.zip

    IMO the one in "no-StayOpen" should help. This is not yet the solution, but it helps to narrow down the problem.

    Frank

     
  • Pernel Sned

    Pernel Sned - 2022-01-18

    I replaced G+Stool.exe with each of the ones in the download and the freeze now occurs if the programming succeeds as well as when there is an error.

     

    Last edit: Pernel Sned 2022-01-19
  • Frank Steinberg

    Frank Steinberg - 2022-01-19

    Sorry, my mistake. This exes didn't work on my side too.

    Please download the same ZIP again. I've renewed the files inside.

    btw:
    Your screenshots look very "old fashioned". What OS are you using? Except of my faulty test-files from yesterday I can't reproduce the issue.

    Frank

     
  • Pernel Sned

    Pernel Sned - 2022-01-21

    I'm using windows 7 home premium, it looks older because of the theme I have selected. It is a very old install and since it's OEM windows I don't have the product key to reinstall the OS.

    The no-StayOpen exe still crashes but automatically closes when I CTRL+ALT+DEL.

    the no-PositionIni and NoRestrictions exe still crashes and still requires me to kill it from task manager to unfreeze the machine

    All of the exes don't crash when I successfully compile or flash.

    One of the symptoms of the freeze is the mouse becoming extremely lagged, and the computer speakers will play a beep tone over and over.

     
  • Frank Steinberg

    Frank Steinberg - 2022-01-21

    the computer speakers will play a beep tone over and over.

    Aaah, useful hint.

    Please reload https://www.franksteinberg.de/ZIPS/G+Stools_Test.zip . I've added an "no-Beep" version.

    Frank

     
  • Pernel Sned

    Pernel Sned - 2022-01-22

    That's done it! Thanks Frank, the no beep version works great. I usually like beeps but in this case I'm glad to see them go.

     
  • Anobium

    Anobium - 2022-01-23

    @steini63 Does the isolation of the beep tell you the issue ? Is this an errant API call?

    Should we replace the existing exe with a no-beep version for everyone?

     
  • Frank Steinberg

    Frank Steinberg - 2022-01-23

    G+Stool uses FreeBasic's Beep-command. I don't know how the command works internally, but the manual says:

    Beep tells the system to sound a beep noise. Note that this might not work on some platforms. Since this command is not reliable and there is no way to specify the frequency and duration, you might want to avoid it in favor of other / better solutions, ...

    "not reliable" doesn't sound confidence inspiring. So I replaced the Beep commands by API calls.

    @Pernel Sned
    Please reload https://www.franksteinberg.de/ZIPS/G+Stools_Test.zip again. I've added a "Beep-API" version. Maybe you can report, how this version works for you.

    Frank

     
    • Anobium

      Anobium - 2022-01-23

      @steini63

      Great stuff!

       
    • Pernel Sned

      Pernel Sned - 2022-01-24

      The Beep-API version still suffers from the freeze issue, the no-beep version works without issues.
      Specifically, during the freeze the Beep-API exe causes the mouse to become very slow, and every mouse movement starts a succession of equally spaced beeps, continuing until the mouse stops moving, all while the GCB IDE is "not responding" in the background. To open task manager unlocks the mouse and killing G+Stool in task manager unfreezes GCB.

       

      Last edit: Pernel Sned 2022-01-24
  • Frank Steinberg

    Frank Steinberg - 2022-01-24

    Ok, thank you for testing! Last attempt:
    Please load the ZIP again and try Sound-API. This one plays a standard Windows sound instead of beeping.

    Frank

     

    Last edit: Frank Steinberg 2022-01-24
  • William Roth

    William Roth - 2022-01-24

    With the mouse acting up and beeping going wild, I wonder if there may be a Windows enumeration issue/conflict. (Pickit Programmer/Sound Device/Mouse/Ser Ports)

    If a USB mouse I would try it on another USB Port and see what happens. I might even use USBDView to remove selected devices and let Window re-enumerate.

    On the other hand CPU usage could be going to nearly 100% when there is a hangup.

     

    Last edit: William Roth 2022-01-24
  • Pernel Sned

    Pernel Sned - 2022-01-25

    Sound-API works well, and plays a different noise when there is an error. No longer any freeze.

    I tried with Beep-API after disconnecting everything from USB aside from the mouse which I moved to a different port, and the freeze occurred. I have no sound devices other than the windows default, even have no realtek audio manager.

     
  • Frank Steinberg

    Frank Steinberg - 2022-01-25

    Sound-API works well, and plays a different noise when there is an error. No longer any freeze.

    Great; so thats's the way to go for the next version.

    Frank

     
  • Pernel Sned

    Pernel Sned - 2022-01-28

    Cheers Frank, thanks for the help

     

Log in to post a comment.