Menu

#3 crash: Xlib: unexpected async reply

open
nobody
None
5
2007-04-28
2007-04-28
Bite ME
No

Xlib: unexpected async reply (sequence 0x196b06)!
Xlib: sequence lost (0x1a6b06 > 0x1976c5) in reply type 0x0!
X Error: BadImplementation (server does not implement operation) 17
Major opcode: 20
Minor opcode: 0
Resource id: 0x20
subtimer: Fatal IO error: client killed

This crash happens periodically (every 15 minutes or so
during use).

Apparently the commonest cause of this is updating a widget outside of the main thread.

subtimer 0.30
Qt 3.3.4
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
Fedora Core release 4

This is sufficiently annoying that I've modded the code
to save the .srt file after every "Grab selected" operation, to avoid data loss. This is probably a good modification to make anyway.

Discussion

  • Denilson Sá

    Denilson Sá - 2007-05-26

    Logged In: YES
    user_id=1140109
    Originator: NO

    I can confirm that. After some time using this program, I received this message when I pressed "Play selected" button:

    Xlib: unexpected async reply (sequence 0x4128cd)!

    Fortunately, the window was not garbaged after that, so I could manually take notes of all non-saved subtitle times, before killing subtimer.

    BTW, biteme, could you please post the patch to auto-save-after-grab ? I think I want that too. :)

    BTW, the auto-save could use a temporary file, to avoid the risk of trashing the original one.

     
  • Denilson Sá

    Denilson Sá - 2007-05-26

    Logged In: YES
    user_id=1140109
    Originator: NO

    Huh... Just after I had posted this bug, subtimer crashed again... This time, it was "fast", didn't took many minutes. Again, when I clicked on "Play selected" button.

    Xlib: unexpected async reply (sequence 0x2fe7b3)!

     
  • Denilson Sá

    Denilson Sá - 2007-05-26

    Logged In: YES
    user_id=1140109
    Originator: NO

    Bite ME was right about threading. I've just found an useful message "thread" (ironic, huh?) in a QT mailing list archive.

    http://lists.trolltech.com/qt-interest/2005-05/msg00702.html

    I also found this:

    http://www.faqs.org/faqs/x-faq/part7/section-15.html

    Right now, I'm trying to find how to fix this bug. Unfortunately, thread-related issues are harder to reproduce.

     
  • Denilson Sá

    Denilson Sá - 2007-05-26

    Logged In: YES
    user_id=1140109
    Originator: NO

    Found what causes this:

    QMessageBox::critical(parent, tr("Cannot get PCM delay"),
    tr("Cannot get the delay of the PCM stream!"),
    QMessageBox::Cancel, QMessageBox::NoButton);

    I don't know if this error should be fatal or not, but I'm now attaching a patch that replaces these 'QMessageBox'es with a simple std::cerr (just a quick hack).

    I would attach to this bug, but I can't (oh, I miss bugzilla), so I've just uploaded it here:
    https://sourceforge.net/tracker/index.php?func=detail&aid=1726203&group_id=135323&atid=732533

    The patch changes some other small things too. I still did not have enough time to test this patch.

     
  • Bite ME

    Bite ME - 2007-05-26

    Logged In: YES
    user_id=147234
    Originator: YES

    File Added: diffs.subtimer

     
  • Bite ME

    Bite ME - 2007-05-26

    Patch to auto-save subtitle file after each grab

     

Log in to post a comment.

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.