mottosso / allzpark

Package-based application launcher for VFX and games production
https://allzpark.com
GNU Lesser General Public License v3.0
184 stars 38 forks source link

QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>' #86

Open mottosso opened 5 years ago

mottosso commented 5 years ago

This is our lovely command-completion for profiles at work.

https://github.com/mottosso/allzpark/blob/02fe77dd0f135e1f39a1c238143a2b62dfe1f0ec/allzpark/dock.py#L1154

Uncommenting this line resolves the issue, but I cannot for the life of me figure out why? :( Only affects PySide2 and PyQt5.

davidlatwe commented 4 years ago

Just found out that it seems to be threading related ?

Setting environment variable ALLZPARK_NOTHREADING=1 and launching Allzpark, you will get

TypeError: _on_success() takes 0 positional arguments but 1 was given

And solving it by changing this line https://github.com/mottosso/allzpark/blob/2eacba8a35280b82114d8bcb199c702c6778fcc9/allzpark/control.py#L616 into

        def _on_success(result):

Then launch Allzpark again, the warning was gone.

mottosso commented 4 years ago

It's likely related to threading yeah, but we need threading I think. The positional argument I think is a difference between Qt 4 and Qt 5. Might be able to solve it (for both) with result=None.

davidlatwe commented 3 years ago

After #110, that warning is gone, since the command-completion widget is not being used anymore. Not a fix, just leaving a note.