#pyqt | Logs for 2018-10-31

Back
[00:29:07] -!- kallesbar has joined #pyqt
[04:45:09] -!- anqxyr has joined #pyqt
[05:13:14] -!- TurBoss has quit [Remote host closed the connection]
[05:25:53] -!- TurBoss has joined #pyqt
[05:49:56] -!- Avaris has quit [Ping timeout: 244 seconds]
[05:50:33] -!- Avaris has joined #pyqt
[06:17:28] -!- onla has joined #pyqt
[07:12:36] -!- mintograde has joined #pyqt
[07:12:47] -!- kushal has quit [Quit: ZNC 1.7.0 - https://znc.in]
[07:13:03] -!- kushal has joined #pyqt
[07:17:40] -!- kallesbar has quit [Quit: Konversation terminated!]
[07:23:16] -!- jef has quit [Ping timeout: 246 seconds]
[07:49:38] -!- mintograde has quit [Ping timeout: 245 seconds]
[08:33:23] -!- jef has joined #pyqt
[09:23:07] -!- Siecje has joined #pyqt
[09:24:52] -!- heliomaster has joined #pyqt
[09:29:05] -!- heliomaster has quit [Quit: Mutter: www.mutterirc.com]
[09:36:12] -!- anqxyr has quit [Read error: Connection reset by peer]
[10:40:06] -!- TestSmurf has joined #pyqt
[10:43:25] -!- TestSmurf has quit [Client Quit]
[10:43:37] -!- TechSmurf has quit [Quit: leaving]
[10:44:10] -!- TestSmurf has joined #pyqt
[10:44:35] -!- TestSmurf has quit [Client Quit]
[10:45:00] -!- TechSmurf has joined #pyqt
[10:46:55] -!- TechSmurf has quit [Client Quit]
[10:48:53] -!- TechSmurf has joined #pyqt
[10:49:19] -!- TechSmurf has quit [Client Quit]
[10:49:45] -!- TechSmurf has joined #pyqt
[13:17:22] -!- jef has quit [Ping timeout: 244 seconds]
[13:29:25] -!- kallesbar has joined #pyqt
[15:25:09] -!- meejah has joined #pyqt
[15:39:27] -!- kallesbar has quit [Quit: Konversation terminated!]
[15:43:45] -!- anqxyr has joined #pyqt
[16:02:16] -!- kallesbar has joined #pyqt
[16:14:38] -!- kallesbar has quit [Quit: Konversation terminated!]
[16:20:34] -!- mintograde has joined #pyqt
[16:38:39] <onla> trying to get ibus anthy to work with qutebrowser that is installed with tox inside $HOME/files/qutebrowser/.venv/ I was helped at #ibus. We tried to strace https://ptpb.pw and saw that libibusplatforminputcontextplugin.so is not loading. Then in qb having debug options on shows https://ptpb.pw So I need to find out why libibusplatforminputcontextplugin.so with QT_IM_MODULE=ibus and qLoadPlugin() is
[16:38:41] <onla> not picked up by qutebrowser
[16:57:47] <onla> lol... now it works. I have qutebrowser installed also on $HOME/.venv with virtualenv and there the ibus happened to work. Now I just first tried running qutebrowser from there while I had a session open from the tox qb -> it opened to the running instance and ibus didnt work. Then I closed all the tabs and instances and ran the virtualenv version and ibus worked. Now I closed all instances and ran the tox
[16:57:48] <onla> version, and now it works there also. I wonder if it works next time I reboot pc and run the tox version immediately :thinking:
[17:01:42] <meejah> hello everyone, I'm trying to make some pyside2 code play nicely with a Twisted reactor and running into an issue (using some code based off qt5reactor)
[17:02:14] <meejah> it's a (relatively) simple GUI with a grid of web views
[17:02:32] <meejah> everything seems to work fine until some JS in one of the web views makes a WebSocket connection (which fails)
[17:02:54] <meejah> this causes everything to hang; Twisted reactor gets no more callbacks, nothing in Qt repaints or works, kill -9 only way out
[17:08:36] <altendky> meejah: have you run gdb and grabbed a call stack?
[17:08:46] -!- Siecje has parted #pyqt
[17:11:03] <meejah> ah, no. i tried pdb but couldn't even make it run for some reason. i'll try GDB :)
[17:12:39] <altendky> meejah: I forget what all I got doing that. Anyways, afk for 30 or so
[17:15:15] <meejah> hrm. 30 threads. fun already :)
[17:16:05] <meejah> 2 "python" threads..I guess all the TaskScheduler* ones are Chrome-related..?
[17:19:02] <meejah> looks like one is in QEventDispatcherGlib::processEvents and the other stuck waiting for a lock (can't tell what python code it's in though)
[17:20:33] -!- kallesbar has joined #pyqt
[17:21:52] * meejah discovers DebuggingWithGdb
[17:41:23] <meejah> interesting, a subsequent run has more threads
[17:41:58] <meejah> hmm, okay both "python" threads appear to be in Twisted stuff ("py-bt" finally installed)
[17:43:58] <meejah> hmmm, it seems a bunch of the TaskScheduler* threads are PySide2 things (maybe all, there's a bunch)
[17:44:13] <meejah> ...and so far all i've checked are "waiting for the GIL" .. so, deadlocked on some lock it seems
[17:53:53] <altendky> meejah: I forget the symptoms exactly but in qt5reactor I added a condition to calling processEvents. i think without you could end up with some sort of hang
[17:54:16] <altendky> I'll check for the commit in a few minutes maybe
[17:55:07] <meejah> altendky: if not fromqt: self.qApp.processEvents or so..?
[17:55:16] <meejah> in doIteration?
[17:55:23] <meejah> (i have that)
[17:56:48] <meejah> seems i'm never actually calling processEvents with fromqt=True though (at least, before it hangs)
[17:59:14] <altendky> meejah: sounds right
[18:03:04] <meejah> ah hah! new tack
[18:03:44] <meejah> just took qt5reactor, replaced "PyQt5." -> "PySide2." and had to mess with pyqtSignal -> Signal
[18:03:47] <meejah> ...and, it appears to work!
[18:04:05] <meejah> (or, at least, "work better than that other thing"). Woo.
[18:04:49] <meejah> sooooo, I guess the question is "how to configure stuff to import elsewhere depending on 'things'"
[18:05:24] <altendky> meejah: there's qtpy and pytest-qt to consider for techniques or usage
[18:05:56] <altendky> meejah: I wonder if pytest-qt should separate out the selection/import code. Though I haven't really reviewed either
[18:05:57] -!- anqxyr has quit [Read error: Connection reset by peer]
[18:06:58] <meejah> by "qt5reactor" I mean https://github.com since there seem to be a few ;)
[18:07:47] <altendky> meejah: yeah, that one
[18:09:00] <altendky> meejah: note I do have an open issue against a change Exarkun made. I just reverted it in the branch I use
[18:09:37] <meejah> https://github.com ?
[18:12:36] -!- anqxyr has joined #pyqt
[18:19:18] <altendky> https://github.com
[18:19:21] <altendky> Yeah
[18:24:02] -!- anqxyr has quit [Read error: Connection reset by peer]
[18:25:45] <meejah> hmm, okay. FWIW, mine exits fine
[18:25:52] <meejah> (on window close)
[18:27:08] -!- JanC has quit [Quit: 'k zien d'r mee weh zi]
[18:27:56] -!- oprypin has quit [Quit: Bye]
[18:28:26] -!- oprypin has joined #pyqt
[18:37:40] -!- JanC has joined #pyqt
[18:47:11] -!- kallesbar has quit [Quit: Konversation terminated!]
[19:11:53] <altendky> meejah: thanks. I haven't looked back at that yet.
[19:13:28] <meejah> altendky: i put in a PR for what I changed (just some imports)
[19:31:12] <altendky> I keep forgetting how small this is...
[20:26:19] -!- mandeep has joined #pyqt
[20:58:57] -!- JanC has quit [Remote host closed the connection]
[21:05:36] -!- JanC has joined #pyqt
[22:23:08] -!- mintograde has quit [Ping timeout: 268 seconds]
[23:29:26] -!- mandeep has quit [Quit: Leaving]