QSocketNotifier: Can only be used with threads started with QThread

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

QSocketNotifier: Can only be used with threads started with QThread

Dmitri A. Sergatskov
I started getting this message at octave startup  with recent dev version on
an (old and slow)  laptop (which otherwise has a stock fedora 31).

Here is a part of a strace log (strace ./run-octave -q -f  2>err.log):

<<<<
openat(AT_FDCWD,
"/home/dima/.config/ibus/bus/c2ff2be9d75e4a6b981f607e96c3d982-unix-0",
O_RDONLY|O_CLOEXEC) = 4
statx(4, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644,
stx_size=173, ...}) = 0
statx(4, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644,
stx_size=173, ...}) = 0
statx(4, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644,
stx_size=173, ...}) = 0
read(4, "# This file is created by ibus-d"..., 16384) = 173
read(4, "", 16211)                      = 0
statx(4, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644,
stx_size=173, ...}) = 0
kill(1525, 0)                           = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK,
-1, 0) = 0x7f5d8a7b1000
mprotect(0x7f5d8a7b2000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f5d8afa1cf0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
parent_tid=[303487], tls=0x7f5d8afb1700, child_tidptr=0x7f5d8afb19d0)
= 303487
futex(0x20abb70, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7ffc56e6aaf0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
close(4)                                = 0
inotify_init1(IN_CLOEXEC)               = 4
openat(AT_FDCWD, "/usr/share/qt5/qtlogging.ini", O_RDONLY|O_CLOEXEC) = 7
statx(7, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644,
stx_size=56, ...}) = 0
statx(7, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644,
stx_size=56, ...}) = 0
read(7, "[Rules]\n*.debug=false\nqt.qpa.xcb"..., 16384) = 56
read(7, "", 16328)                      = 0
read(7, "", 16384)                      = 0
close(7)                                = 0
statx(AT_FDCWD, "/home/dima/.config/QtProject/qtlogging.ini",
AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL,
stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=39, ...}) = 0
openat(AT_FDCWD, "/home/dima/.config/QtProject/qtlogging.ini",
O_RDONLY|O_CLOEXEC) = 7
statx(7, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0664,
stx_size=39, ...}) = 0
statx(7, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0664,
stx_size=39, ...}) = 0
read(7, "[rules]\n*.debug=false\nfc.io.debu"..., 16384) = 39
read(7, "", 16345)                      = 0
read(7, "", 16384)                      = 0
close(7)                                = 0
openat(AT_FDCWD, "/dev/tty", O_RDONLY|O_CLOEXEC) = 7
close(7)                                = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=35236, tv_nsec=163972006}) = 0
write(2, "QSocketNotifier: Can only be use"..., 68QSocketNotifier: Can
only be used with threads started with QThread
) = 68
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
openat(AT_FDCWD, "/var/lib/dbus/machine-id", O_RDONLY) = 7
>>>>

Anyone seen this?

octave runs ok after that.

Dmitri.
--

Reply | Threaded
Open this post in threaded view
|

Re: QSocketNotifier: Can only be used with threads started with QThread

Torsten Lilge
On Sat, 2019-10-26 at 09:05 -0500, Dmitri A. Sergatskov wrote:
> I started getting this message at octave startup  with recent dev
> version on
> an (old and slow)  laptop (which otherwise has a stock fedora 31).
>
> Here is a part of a strace log (strace ./run-octave -q -f  2>err.log):
> ...

I am not seeing this error message on Debian Buster. From some reading
in the internet this might happen when using QFileSystemWatcher, which is used by the gui's editor widget. But you are not starting the gui, right?

Torsten



Reply | Threaded
Open this post in threaded view
|

Re: QSocketNotifier: Can only be used with threads started with QThread

Dmitri A. Sergatskov
On Sat, Oct 26, 2019 at 4:23 PM Torsten Lilge <[hidden email]> wrote:

>
> On Sat, 2019-10-26 at 09:05 -0500, Dmitri A. Sergatskov wrote:
> > I started getting this message at octave startup  with recent dev
> > version on
> > an (old and slow)  laptop (which otherwise has a stock fedora 31).
> >
> > Here is a part of a strace log (strace ./run-octave -q -f  2>err.log):
> > ...
>
> I am not seeing this error message on Debian Buster. From some reading
> in the internet this might happen when using QFileSystemWatcher, which is used by the gui's editor widget. But you are not starting the gui, right?
>
> Torsten
>
>

No, I do not start gui. I also do not see this on my other (more
modern/faster) computers with
the same Fedora distribution.
This one is core duo t9900 (~10 years old laptop).

Dmitri.
--