Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82102

occasional FSEventStreamFlushSync(): failed assertion '(SInt64)last_id > 0LL on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.1, 5.12.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      macOS 10.14.6, running on iMac Pro 10-core or 2012 MacBook Pro.
    • Platform/s:
      macOS

      Description

      I am building GNU Octave against Qt 5.12.5 on macOS 10.14.6.

      Sometimes, when running this Qt-enabled Octave, I will see this message in the Command Window:

       

      2018-06-21 09:18 octave-gui[48030] (FSEvents.framework) FSEventStreamFlushSync(): failed assertion '(SInt64)last_id > 0LL'

      I believe this is coming from Qt's Filesystem Watcher thing that watches for changes in directories, in qfilesystemwatcher_fsevents.mm.

      I also suspect that this is not a bug in Qt itself, but may be an underlying OS bug in macOS. (Why is it casting something to a signed int and requiring that to be greater than 0?). Unfortunately, since it's Qt interacting with this part of macOS, it may be up to Qt to do a workaround.

      There appear to be no actual consequences to this warning - file system changes still seem to produce notifications. But this is a disturbing warning message to get, especially for an end user that's not familiar with the system.

      I'm currently working around this by patching Qt to not call FSEventStreamFlushSync(), which gets rid of the warning messages, but I don't know what the consequences of doing that are.

      Bug report against Octave.app here: https://github.com/octave-app/octave-app/issues/62.

      {{}}

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            apjanke Andrew Janke
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes