leixingyu / unrealScriptEditor

Unreal Engine equivalent Maya Python Script Editor
MIT License
46 stars 7 forks source link

doesn't work in latest unreal #10

Open hannesdelbeke opened 5 months ago

hannesdelbeke commented 5 months ago

latest unreal uses pyside6, Qt.py doesnt support this yet. another wrapper qtpy, would work. but pyside6 released a bug in their latest release, which also breaks with qtpy. no good solution available atm.

more details here https://github.com/plugget/plugget-unreal-plugin/issues/14

there are 2 problems:

munkybutt commented 3 months ago

I have tried to get this to work with unreal 5.4, using PySide6 6.7.2 and qtpy. Unreal hangs when trying to run _loadUi. Debugging leads to QUiLoader.__init__(self, baseinstance) in UiLoader.

I will try roll back to earlier versions of PySide6 and see if that works around the issue

hannesdelbeke commented 3 months ago

On Thu, Jul 4, 2024, 10:10 AM Shea Richardson @.***> wrote:

I have tried to get this to work with unreal 5.4, using PySide6 6.7.2 and qtpy. Unreal hangs when trying to run _loadUi. Debugging leads to QUiLoader.init(self, baseinstance) in UiLoader.

I will try roll back to earlier versions of PySide6 and see if that works around the issue

— Reply to this email directly, view it on GitHub https://github.com/leixingyu/unrealScriptEditor/issues/10#issuecomment-2208487755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4VRZCPY753W5KKU3E25XTZKUGRXAVCNFSM6AAAAABKLD7XZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYGQ4DONZVGU . You are receiving this because you authored the thread.Message ID: @.***>

munkybutt commented 3 months ago

We aren't using Qt.py in our code base anymore, they kind of missed the boat with Qt6 support so we moved on, changing back to Qt.py will be a big undertaking.

The crash happens when PySide6 calls QUiLoader.__init__ which is calling the underlying c++ so not something that could be fixed on the python side I don't think :/

I will see if unreal 5.3 works if I get a chance.

For now rolling back to earlier versions of PySide6 to see any work.

Also grumbling a lot about why people use ui files for production tools instead of just writing code 😭

munkybutt commented 3 months ago

6.6 still hangs 6.5 crashes unreal on startup 6.4 same

Installed Qt.py alongside qtpy and hang still occurs with 6.7 + 6.6. There must be some issue with Unreal 5.4 + Python 3.11 + PySide6 QUiLoader 😖