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

Open Directory - xdg-open (core dumped) #1305

Closed
RandomLegend opened this issue Sep 29, 2022 · 9 comments
Closed

Open Directory - xdg-open (core dumped) #1305

RandomLegend opened this issue Sep 29, 2022 · 9 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@RandomLegend
Copy link

Describe the bug
Using the new "open output directory" button doesn't work. In terminal i get the Error:
`QObject::moveToThread: Current thread (0x559c32055210) is not the object's thread (0x559c3205cb70).
Cannot move to target thread (0x559c32055210)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/frank-garuda/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open: line 613: 284916 Aborted (core dumped) kde-open${KDE_SESSION_VERSION} "$1"`

To Reproduce
Steps to reproduce the behavior:

  1. Generate Image
  2. Click on "open output directory"
  3. Nothing happens
  4. See error

Expected behavior
The Folder should open.

Screenshots
image

Desktop (please complete the following information):
image

@RandomLegend RandomLegend added the bug-report Report of a bug, yet to be confirmed label Sep 29, 2022
@mezotaken
Copy link
Collaborator

Reopen or create new issue if the problem is still present.

@YHD233
Copy link

YHD233 commented Mar 10, 2023

I have similar bugs,
To Reproduce
Steps to reproduce the behavior:

1.Generate Image
2.Click on "open output directory"
3.Nothing happens
4.See error

Expected behavior
The Folder should open.

QObject::moveToThread: Current thread (0x55c732462330) is not the object's thread (0x55c73253dcb0).
Cannot move to target thread (0x55c732462330)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/yhd233/.local/lib/python3.10/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

Aborted (core dumped)

Screenshot_20230310_143359
Screenshot_20230310_143330

@lockemx
Copy link

lockemx commented Mar 12, 2023

If it's on your system, you can change the xdg-open line of code to sp.Popen(["gio", "open", path]).

@YHD233
Copy link

YHD233 commented Mar 22, 2023

You can select Plasma (Wayland) to launch instead of Plasma (x11)

@zixaphir
Copy link
Contributor

For anyone having this issue, I was able to fix this by doing the following:

source ./venv/bin/activate
pip install --no-binary opencv-python opencv-python --force-reinstall

It appears to be an issue unique to users running KDE.

1

@hkpD
Copy link

hkpD commented Sep 20, 2023

For anyone having this issue, I was able to fix this by doing the following:

source ./venv/bin/activate
pip install --no-binary opencv-python opencv-python --force-reinstall

It appears to be an issue unique to users running KDE.

1

Thank you so much!

@schoenid
Copy link

I've got the exact same problem after a complete new installation.
Seems, that there is some unfixed bug in the installation.
I wonder, why this thread is closed, because the problem is not solved.

The solution:

source ./venv/bin/activate
pip install --no-binary opencv-python opencv-python --force-reinstall

is working, but is only a workaround for the problem.
However, there are also Errors while using this fix:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
xformers 0.0.20 requires pyre-extensions==0.0.29, which is not installed.
numba 0.58.0 requires numpy<1.26,>=1.21, but you have numpy 1.26.1 which is incompatible.

(I don't really understand, what this is meaning ...)

Every new installation has still the unfixed problem.

System-Information:
Operating System: Ubuntu Studio 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 6.2.0-1014-lowlatency (64-bit)
Graphics Platform: X11
Processors: 16 × 13th Gen Intel® Core™ i7-13700K
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2

@zixaphir
Copy link
Contributor

I wonder, why this thread is closed, because the problem is not solved.

Although it is a work around, it's not a work around for this project, but for one of its dependencies. The actual issue is here: opencv/opencv-python#46, but they consider the issue closed.

@schoenid
Copy link

Ok, thank you for this information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

7 participants