WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Spyder not working

Open alexanderwhatley opened this issue 10 years ago • 8 comments

Please use the following bug reporting template to help produce actionable and reproducible issues:

  • A brief description Spyder installed through Anaconda Python distribution
  • Expected results Window opening successfully after opening XMing
  • Actual results (with terminal output if applicable) Window opening, but then freezing and getting error message: QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Invalid argument QFileSystemWatcher: failed to add paths: /home/alex OMP: Error #100: Fatal system error detected. OMP: System error #22: Invalid argument
  • Your Windows build number 14388

See our contributing instructions for assistance.

alexanderwhatley avatar Jul 24 '16 22:07 alexanderwhatley

duplicate -> #216

fcicq avatar Jul 25 '16 03:07 fcicq

I wouldn't say this is a duplicate - this question is about spyder in specific, and its not immediately obvious to users that spyder's filesystem watcher is not supported...

alexanderwhatley avatar Jul 25 '16 05:07 alexanderwhatley

@fcicq @alexanderwhatley - It's likely that Spyder is using inotify for its filesystem watcher. Would it be possible to launch Spyder under strace to see what system call is falling over?

benhillis avatar Jul 25 '16 15:07 benhillis

@benhillis Here: https://gist.github.com/alexanderwhatley/9954d1ef39111a356134bde100a112d3

alexanderwhatley avatar Jul 25 '16 16:07 alexanderwhatley

It seems to be related to inotify. I don't see the actual inotify system call in this trace, it might be happening from another thread though. It looks like this strace is just of the main thread (no follow forks option).

QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Invalid argument

benhillis avatar Jul 25 '16 17:07 benhillis

@benhillis I reran it with "strace -f"; hopefully this is more informative: https://gist.github.com/alexanderwhatley/99501a1a407ea7e4d1a48169f9957c0d

alexanderwhatley avatar Jul 25 '16 17:07 alexanderwhatley

the first error message comes from qfilesystemwatcher_inotify.cpp from qt.

snippet:

        int wd = inotify_add_watch(inotifyFd,
                                   QFile::encodeName(path),
                                   (isDir
                                    ? (0
                                       | IN_ATTRIB
                                       | IN_MOVE
                                       | IN_CREATE
                                       | IN_DELETE
                                       | IN_DELETE_SELF
                                       )
                                    : (0
                                       | IN_ATTRIB
                                       | IN_MODIFY
                                       | IN_MOVE
                                       | IN_MOVE_SELF
                                       | IN_DELETE_SELF
                                       )));
        if (wd <= 0) {
            perror("QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed");
            continue;
}

fcicq avatar Jul 25 '16 18:07 fcicq

Inotify has been available in the Insider builds for a few months now, and will be available in the Creators Update. Closing this issue.

JasonLinMS avatar Jan 30 '17 23:01 JasonLinMS