rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

RPCS3 not starting if higher qt version is found on MAC OS than rpcs3 was compiled for

Open ghostforest opened this issue 1 year ago • 2 comments

Quick summary

I have qt installed via. "arch -x86_64 brew install qt@5.

However as i need qt@6 which comes with "arch -x86_64 brew install qt" for software development, rpcs3 will stop working then.

It wont start due to:

❯ /Applications/RPCS3.app/Contents/MacOS/rpcs3 ; exit;
Debugger: 0
RPCS3: SYS: RPCS3 v0.0.32-16729-a323e753 Alpha | HEAD
RPCS3: SYS: VirtualApple @ 2.50GHz | 10 Threads | 64.00 GiB RAM | TSC: 1.000GHz
RPCS3: SYS: Operating system: macOS, Version: 15.1.0
RPCS3: SYS: Current Time: 2024-08-02T02:16:39
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa.

[1]    63981 abort      /Applications/RPCS3.app/Contents/MacOS/rpcs3

Saving session...completed.

I dont know why exactly this happens but I suppose its what is described in the title. As soon as I remove qt 6.7 its going to work again.

I think this needs to be fixed.

Details

No response

Attach a log file

❯ /Applications/RPCS3.app/Contents/MacOS/rpcs3 ; exit;
Debugger: 0
RPCS3: SYS: RPCS3 v0.0.32-16729-a323e753 Alpha | HEAD
RPCS3: SYS: VirtualApple @ 2.50GHz | 10 Threads | 64.00 GiB RAM | TSC: 1.000GHz
RPCS3: SYS: Operating system: macOS, Version: 15.1.0
RPCS3: SYS: Current Time: 2024-08-02T02:16:39
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa.

[1]    63981 abort      /Applications/RPCS3.app/Contents/MacOS/rpcs3

Saving session...completed.

Attach capture files for visual issues

No response

System configuration

No response

Other details

No response

ghostforest avatar Aug 02 '24 00:08 ghostforest

Try enabling debug output before starting the app from the terminal export QT_DEBUG_PLUGINS=1 Maybe it shows what wrong

Megamouse avatar Aug 02 '24 06:08 Megamouse

This happens when I try to start rpcs3 the normal way: (wont start)

❯ export QT_DEBUG_PLUGINS=1
❯ ./rpcs3
Debugger: 0
RPCS3: SYS: RPCS3 v0.0.32-16729-a323e753 Alpha | HEAD
RPCS3: SYS: VirtualApple @ 2.50GHz | 10 Threads | 64.00 GiB RAM | TSC: 1.000GHz
RPCS3: SYS: Operating system: macOS, Version: 15.1.0
RPCS3: SYS: Current Time: 2024-08-02T10:31:08
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/platforms" ...
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "cocoa"
        ]
    },
    "archlevel": 2,
    "className": "QCocoaIntegrationPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("cocoa")
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/platforms" ...
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib" cannot load: Cannot load library /Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib: dlopen(/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib, 0x0085): Symbol not found: __ZN22QWindowSystemInterface21handleWindowActivatedINS_19SynchronousDeliveryEEEvP7QWindowN2Qt11FocusReasonE
  Referenced from: <A9DF58B1-89B1-36C8-9D9E-FE251BF025F2> /Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib
  Expected in:     <0D74653E-184D-34B4-A10C-2CFA621C334F> /usr/local/Cellar/qt/6.7.0_1/lib/QtGui.framework/Versions/A/QtGui
qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib" : "Cannot load library /Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib: dlopen(/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib, 0x0085): Symbol not found: __ZN22QWindowSystemInterface21handleWindowActivatedINS_19SynchronousDeliveryEEEvP7QWindowN2Qt11FocusReasonE\n  Referenced from: <A9DF58B1-89B1-36C8-9D9E-FE251BF025F2> /Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib\n  Expected in:     <0D74653E-184D-34B4-A10C-2CFA621C334F> /usr/local/Cellar/qt/6.7.0_1/lib/QtGui.framework/Versions/A/QtGui"
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa.

[1]    77903 abort      ./rpcs3
/Applications/RPCS3.app/Contents/MacOS ❯

And here I am starting rpcs3 from a script that goes into> /usr/local/Cellar and renames qt to qt_temp. So qt wont be found and only qt@5 (next folder) will be found.


❯ rpcs3
Debugger: 0
RPCS3: SYS: RPCS3 v0.0.32-16729-a323e753 Alpha | HEAD
RPCS3: SYS: VirtualApple @ 2.50GHz | 10 Threads | 64.00 GiB RAM | TSC: 1.000GHz
RPCS3: SYS: Operating system: macOS, Version: 15.1.0
RPCS3: SYS: Current Time: 2024-08-02T10:32:26
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/platforms" ...
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "cocoa"
        ]
    },
    "archlevel": 2,
    "className": "QCocoaIntegrationPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("cocoa")
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/platforms" ...
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/platforms/libqcocoa.dylib" loaded library
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/platformthemes" ...
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/platformthemes" ...
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/styles" ...
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/styles/libqmacstyle.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/styles/libqmacstyle.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "macOS"
        ]
    },
    "archlevel": 2,
    "className": "QMacStylePlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("macos")
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/styles" ...
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/styles/libqmacstyle.dylib" loaded library
2024-08-02 10:32:26.638 rpcs3[77932:2635531] getMetalPluginClassForService: Failed to find bundle for accelerator bundle named: AGXMetalA12 errno: 0
RPCS3: Vulkan Device Enumeration Thread: RSX: Found Vulkan-compatible GPU: 'Apple M1 Max' running on driver 0.2.994
RPCS3: SYS: Firmware version: 4.91
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/iconengines" ...
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/iconengines/libqsvgicon.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/iconengines/libqsvgicon.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archlevel": 2,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz", "svg.gz")
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/iconengines" ...
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/imageformats" ...
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqgif.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/imageformats/libqgif.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archlevel": 2,
    "className": "QGifPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gif")
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqico.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/imageformats/libqico.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archlevel": 2,
    "className": "QICOPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ico", "cur")
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqjpeg.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/imageformats/libqjpeg.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archlevel": 2,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("jpg", "jpeg")
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqsvg.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/imageformats/libqsvg.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archlevel": 2,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz")
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/imageformats" ...
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqgif.dylib" loaded library
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqico.dylib" loaded library
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqjpeg.dylib" loaded library
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/imageformats/libqsvg.dylib" loaded library
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/accessible" ...
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/accessible" ...
qt.core.library: "libdbus-1" loaded library
dbus[77932]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
2024-08-02 10:32:28.289 rpcs3[77932:2635403] +[IMKClient subclass]: chose IMKClient_Legacy
2024-08-02 10:32:28.289 rpcs3[77932:2635403] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/PlugIns/multimedia" ...
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/multimedia/libffmpegmediaplugin.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/multimedia/libffmpegmediaplugin.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformMediaPlugin",
    "MetaData": {
        "Keys": [
            "ffmpeg"
        ]
    },
    "archlevel": 2,
    "className": "QFFmpegMediaPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ffmpeg")
qt.core.plugin.factoryloader: looking at "/Applications/RPCS3.app/Contents/PlugIns/multimedia/libdarwinmediaplugin.dylib"
qt.core.plugin.loader: Found metadata in lib /Applications/RPCS3.app/Contents/PlugIns/multimedia/libdarwinmediaplugin.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformMediaPlugin",
    "MetaData": {
        "Keys": [
            "darwin"
        ]
    },
    "archlevel": 2,
    "className": "QDarwinMediaPlugin",
    "debug": false,
    "version": 394752
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("darwin")
qt.core.plugin.factoryloader: checking directory path "/Applications/RPCS3.app/Contents/MacOS/multimedia" ...
qt.core.library: "/Applications/RPCS3.app/Contents/PlugIns/multimedia/libffmpegmediaplugin.dylib" loaded library

As you can see in the first case RPCS3 is trying to access /usr/local/Cellar/qt/6.7.0_1/lib/QtGui.framework/Versions/A/QtGu

whereas I hide the qt folder, it wont try access it.

Also is this expected? 2024-08-02 10:32:26.638 rpcs3[77932:2635531] getMetalPluginClassForService: Failed to find bundle for accelerator bundle named: AGXMetalA12 errno: 0

Id suggest installing qt via "arch -x86_64 brew install qt" or "brew install qt" but I guess both versions will break rpcs3 as I think they are the same and will be installed into the same directory, and see if it breaks rpcs3 for you.

ghostforest avatar Aug 02 '24 08:08 ghostforest

I was compiling RPCS3 for ARM and now I have same issue with x64 release of RPCS3. Can't boot while having Qt 6.7 installed at all. Compiled build seems to be unaffected.

mavethee avatar Aug 25 '24 14:08 mavethee

I wrote a script to run RPCS3

#!/bin/bash mv /usr/local/Cellar/qt /usr/local/Cellar/qt_temp export DYLD_LIBRARY_PATH=/usr/local/Cellar/qt@5/5.15.13_1/lib:$DYLD_LIBRARY_PATH /Applications/RPCS3.app/Contents/MacOS/rpcs3 mv /usr/local/Cellar/qt_temp /usr/local/Cellar/qt

Actually chatGPT wrote it. Use at your own risk. The paths need correction if you have different file locations. It renames the qt 6.7 folder to qt_temp and starts rpcs3 and moves the content back to the original folder after that. Works fine for me. Weird fix tho.

ghostforest avatar Aug 25 '24 14:08 ghostforest

Actually this should work more permanently

echo 'export DYLD_LIBRARY_PATH=/usr/local/Cellar/qt@5/5.15.13_1/lib:$DYLD_LIBRARY_PATH' >> ~/.zshrc

mavethee avatar Aug 25 '24 15:08 mavethee

is that still an issue?

digant73 avatar Oct 25 '25 20:10 digant73