Menu

#288 Unclean exit in 1.5.6 on Linux

1.5.8
closed-rejected
nobody
None
5
2021-04-03
2021-03-04
No

If I launch ChessX from the terminal, I see this after closing it:

> chessx
No text-to-speech plug-ins were found.
QLocale(English, Latin, United States) QVector() QLocale(C, Default, Default)
free(): invalid pointer
Aborted (core dumped)

Discussion

  • Jens Nissen

    Jens Nissen - 2021-03-04

    This is an extremely unwelcome surprise. I posted a beta version 1.5.7 under https://sourceforge.net/projects/chessx/files/chessx/beta/ which tests this condition and disables all access to speech API.
    This is not an issue for Windows and Mac OS users as there always is a speech engine.
    Nevertheless: IMHO Qt should not exit internally in a constructor - this is not expected behaviour and requires users to pre-test externally for internal implementation details.
    This will require a quick 1.5.8 :-(

     
  • Luigi Baldoni

    Luigi Baldoni - 2021-03-04

    I just tried 1.5.7, now the output on exit is this:

    > chessx 
    free(): invalid pointer
    Aborted (core dumped)
    

    Tomorrow I should be able to supply a proper gdb backtrace if you think it proper.

     
  • Jens Nissen

    Jens Nissen - 2021-03-04

    A backtrace would be great - obviously, there are two issues. By the way: don't activate SPEECH on Linux - this is known to be crashing - see QTBUG-90626.

     
  • Luigi Baldoni

    Luigi Baldoni - 2021-03-05

    A backtrace would be great -
    obviously, there are two issues. By the way: don't activate SPEECH on
    Linux - this is known to be crashing - see QTBUG-90626.

    Oh, I didn't know that. Passing -DENABLE_TTS=OFF solved the problem, but perhaps that should be made default on linux.

    Anyway, I attached the backtrace.

     
  • Jens Nissen

    Jens Nissen - 2021-04-03
    • status: open --> closed-rejected
     

Log in to post a comment.