Menu

#126 Crash when trying to analyze with non-existing New Engine

closed-fixed
None
5
2012-05-22
2009-07-18
No

In Edit->Preferences->Engines a new engine can be added just clicking on the button New and then on Ok.
This adds a non-existing New Engine, that however is listed in the Analysis window. If such New Engine is selected and the button Analyze is clicked, ChessX crashes.

Discussion

  • Michal Rudolf

    Michal Rudolf - 2009-10-07
    • status: open --> open-accepted
     
  • Bruno Rizzuti

    Bruno Rizzuti - 2010-02-09

    The way engines are added is changed, so now it is much more difficult to inadvertently add a non-existing engine. Still, if one deletes by mistake the Command field in Preferences, still ChessX crashes trying to make a non-existing engine run.

     
  • Michal Rudolf

    Michal Rudolf - 2010-02-18

    Can't reproduce it, although I can observe crash when manually killing engine process outside ChessX.

     
  • Bruno Rizzuti

    Bruno Rizzuti - 2010-02-23

    Crashes when engines are manually killed do not happen in Windows. Even if they were, i would not consider that a real bug, because unpredictable behavior may be expected for such operations performed "outside" the program window.

    At the moment, ChessX happily accepts an empty string for both command path and engine name. Thus, the bug can be easily solved by not accepting empty strings there, for instance not enabling the OK button until those fields are filled.

    Note that no further checks are needed on the strings provided. In fact, even if a "wrong" file is selected in the command path (C:/User/manual.pdf, for instance), there will be no output (of course) in the Analysis window, but ChessX won't crash. And this is entirely acceptable behavior.

     
  • Jens Nissen

    Jens Nissen - 2012-05-20
    • assigned_to: mrudolf --> hognose
     
  • Jens Nissen

    Jens Nissen - 2012-05-22
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB