Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue while running mayo ubuntu AppImage file #224

Open
nikhil-convrseai opened this issue Sep 1, 2023 · 8 comments
Open

Facing issue while running mayo ubuntu AppImage file #224

nikhil-convrseai opened this issue Sep 1, 2023 · 8 comments
Assignees
Labels

Comments

@nikhil-convrseai
Copy link

WARNING: could not connect to display
INFO: Could not load the Qt platform plugin "xcb" in "" even though it was found.
FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted (core dumped)

Os: Ubuntu 22.04

I have followed the way of running the AppImage but still facing this issue.

@HuguesDelorme
Copy link
Member

Hello, can you please try to set environment variable QT_DEBUG_PLUGINS:
$> export QT_DEBUG_PLUGINS=1
Then start again Mayo and post here the ouput generated
Thanks!

@nikhil-convrseai
Copy link
Author

Hi this is the output

DEBUG: QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_Mayo-0Blnq1i/usr/plugins/platforms" ...
DEBUG: QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_Mayo-0Blnq1i/usr/plugins/platforms/libqxcb.so"
WARNING: Found metadata in lib /tmp/.mount_Mayo-0Blnq1i/usr/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}


DEBUG: Got keys from plugin meta data ("xcb")
DEBUG: QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_Mayo-0Blnq1i/usr/bin/platforms" ...
DEBUG: loaded library "/tmp/.mount_Mayo-0Blnq1i/usr/plugins/platforms/libqxcb.so"
WARNING: could not connect to display
INFO: Could not load the Qt platform plugin "xcb" in "" even though it was found.
FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted (core dumped)```

@HuguesDelorme
Copy link
Member

Please check if the DISPLAY environment variable is set, if not try:
$> export DISPLAY=:0
And run Mayo again

@HuguesDelorme HuguesDelorme self-assigned this Sep 1, 2023
@nikhil-convrseai
Copy link
Author

Hi I want to run Mayo on AWS EC2, where I don't have display, I want to use Mayo for converting a cad file to a 3d mesh file basically on my AWS instance.

@HuguesDelorme
Copy link
Member

This explains the issue then
Mayo GUI and CLI are delivered into a single executable so it requires display
However on Linux the xcb plugin is forced at startup within the main() function, see

qputenv("QT_QPA_PLATFORM", "xcb");

What is worth trying is the "offscreen" QPA plugin instead of "xcb"
Unfortunately to try this out you need to get and alter main.cpp and build Mayo locally

It's relevant to raise an improvement task for this, eg adding a command-line option to not force QPA plugin, this will let users the opportunity to test other plugins

@nikhil-convrseai
Copy link
Author

Hi

while building locally, I followed the steps given in Readme file, but while executing following step

qmake ../mayo CASCADE_INC_DIR=$CASCADE_INC_DIR CASCADE_LIB_DIR=$CASCADE_LIB_DIR

I'm getting following error.

Cannot find file: ../mayo.

@HuguesDelorme
Copy link
Member

Hello please have a look at my answer to this issue #216
You are probably running qmake in the wrong directory

@HuguesDelorme
Copy link
Member

@nikhil-convrseai
Did you success to build Mayo and test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants