Closed darkvertex closed 5 years ago
Hi Alan, sorry for the inconvenient, CentOS only tested with Maya 2017 :(
Did you enable foster mode ? How do you launch pyblish-qml ? I'll get a CentOS and have a look this weekend :)
I did not enable foster mode, it's all the defaults.
How I launch pyblish-qml is unfortunately too specific and tied to the way we work at the studio...
Short answer: I provide pyblish-qml a path to a python executable whose environment has PyQt5.6 and the pyblish pip packages under Python 2.7.13.
Long answer:
We use Rez for packaging everything, plus we have a few more features like proper pip support. Anyway, we have a rez pkg of PyQt5.6 and my pyblish-qml rez pkg uses pyblish_qml.api.register_python_executable()
(before showing a UI) pointing to a shell script that basically does rez-env python-2 pyqt-5 -P pyblish_base==1.7.2 -P pyblish_qml==1.8.7 -- python
, putting the UI in the perfect env on the fly with pip-provided pyblish-base and pyblish-qml, with our PyQt5.6 rez pkg and Python 2.7.x. Works great, usually.
Thanks for the info! I'll test against those versions. :)
To be extra specific:
The PyQt5 I'm using is for Qt 5.6.1, with sip 4.18.1, manually compiled at the studio.
Maya 2016 is on Qt 4.8.6, says Autodesk docs. (Maybe some of the newer pyblish-qml code that runs on the DCC side is not PyQt4-friendly?)
Maybe some of the newer pyblish-qml code that runs on the DCC side is not PyQt4-friendly?
Could be, possible something related to how I implement the eventFilter
's removal. :disappointed:
But I don't think it's not friendly to PyQt4, because I have Maya 2016 ext1 sp6
(on Windows) working here, too. :persevere:
Hi @darkvertex ,
I just got everything installed and compiled, on CentOS 7.4.1708
(VM, on hyper-v)
$ which python
/usr/bin/python
$ python -c "from PyQt5.QtCore import PYQT_VERSION_STR as version; print(version)"
5.6
But I launched pyblish-qml without crash :O
Could it be other reason ?
Could you try this branch (noflag
) ?
That branch reverted commit 2a69568, which might be the most Qt eventFilter
related change between 1.8.1
and 1.8.2
. ( verison compare )
Although I could not reproduce the problem to test it, but let's see if this would made a difference on your side. 🤞
Sorry, @darkvertex , I just reproduced the exact error you had now.
I did not change anything what I had in my environment, I just relaunching Maya and pyblish-qml a few more times and the error pops. Turns out it's not happening every time, but the chance is high.
:(
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
maya.bin: xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Based on above lines' google result, it looks like something to do with Linux X11's threading.., since Maya 2016-18 all works fine so far on Windows, and only Maya 2016 on Linux has this unstable issue. But honestly I can not for sure.
I'll try to solve the issue in next few days. Thanks for reporting this !
Progress update, I have spot the problem, but needs a few more day to work on it. Thanks in advance :)
Thanks @davidlatwe for your hard work on this!
Yes, thank you so much for your efforts, @davidlatwe! I appreciate your proactiveness.
This one should be long gone after PR #312 !
Closing this now, since I have tested on Linux with PR #312 (v1.9.0
) without any crash. :)
Hi @davidlatwe and @mottosso, my dearest apologies for not following up on this while it was being fixed / looked at. In mid-December and the months leading up to it, I sold a condo to buy a new house and the whole sale, big move, visits and paperwork completely monopolized my attention throughout the holidays. (All fine now though!)
Coming into this late, I'm very sorry for missing the chance to test your bugfix branches, but I'm however delighted that the foster feature was chosen to be removed as that will result in a more stable product for everyone. Thank you for your time on addressing this, @davidlatwe, I appreciate it.
Hi @darkvertex No problem at all :) And congrats on the new house !
(My bad for not catching this earlier. I just hadn't updated to the newer versions at the studio yet.)
I have a suspicion there's something funky going on with the eventfilter stuff. 1.8.1 and earlier all work flawlessly for me, in both Maya 2016 and 2018.
However, 1.8.2+ all explode just after beginning to draw the window, after the splash screen, in Maya 2016 only. Maya 2018 appears to be stable.
With the latest pyblish-base, I tried every version of pyblish-qml from 1.8.0 to 1.8.7. Here's some crash stacktraces, for what it's worth:
Maya 2016 with
pyblish-qml==1.8.2
:and
Maya 2016 with
pyblish-qml==1.8.4
:Maya 2016 with
pyblish-qml==1.8.5
:Maya 2016 with
pyblish-qml==1.8.6
:Maya 2016 with
pyblish-qml==1.8.7
:and another dump:
I'm on
CentOS Linux release 7.4.1708
, Maya 2016SP6.I know what you're thinking... "Why the hell are they still on Maya 2016?"... lol.. Well, we're just beginning to upgrade but there's a few shows still going in 2016SP6.
Does the stack tell you anything?
To make it crash I just open the UI by script with the Script Editor without any Pyblish plugins or anything. When it works, it shows a ready UI with no plugins or instances. When it doesn't, I get a window with black, splash screen stays open and Maya crashes.
Curiously, it usually makes it all the way to "ready" before crapping out:
For now I'm just going to avoid using 1.8.2+ with Maya 2016, but it's too bad because I really wanted to use the "category" feature introduced in 1.8.6. :(