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

GUI doesn't show up, app automatically closes on clicking "Open VirtScreen" from tray #109

Open
kanishkbh opened this issue Apr 30, 2022 · 13 comments

Comments

@kanishkbh
Copy link

Detailed Description

  • When I open the AppImage, it opens minimized in the system tray. No new window opens.

In the app's tray menu,

  • the option "Enable Virtual Screen first" does nothing.
  • the option "Enable Virtual Screen" creates an additional entry in the menu: "No virtual screen name found".
  • the option "Open VirtScreen" opens a transparent window for a moment and then closes it. Then the app icon also disappears from the tray. In other words, it simply closes or crashes.

System Details

Operating System: Ubuntu 22.04 LTS
Kernel: Linux 5.15.0-27-generic
Architecture: x86-64

@bogdanmitsevski
Copy link

Hello. The same problem, but on Linux Mint

@bekema
Copy link

bekema commented May 11, 2022

Yep, not working here on Kubuntu 21.10

@GreenDude
Copy link

GreenDude commented Jun 4, 2022

Same for POP OS 22.04. Here are some additional details:

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QGLXContext: Failed to create dummy context
qml: Loader Status Changed. 1
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Aborted (core dumped)

@markomisk
Copy link

Same error on Ubuntu 20.04 LTS. Using Mesa Intel iris driver, and nvidia prime select power sawing profile (intel graphics)

@wokawoka
Copy link

Pop!_OS 21.10 x86_64 :

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QGLXContext: Failed to create dummy context

@msdkone
Copy link

msdkone commented Jun 29, 2022

Hi .. i use to have the same problem to open the GUI of virtscreen

msdk@seth:~$ virtscreen 
libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QGLXContext: Failed to create dummy context
qml: Loader Status Changed. 1
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Aborted

and I found this solution on stackoverflow.

The problem, for me, is with the libstdc++.so.6. This file is located in /usr/lib/x86_64-linux-gnu/libstdc++.so.6 on my system. To know where to find this file I suggest to run the following command :
find / -name libstdc++.so.6 2>/dev/null

which resulted with files from snap and /usr/lib/... (I'm use /usr/lib/) & I added the export LD_PRELOAD to my .bashrc file and it's working fine.

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6

If I test on my terminal...

msdk@seth:~$ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
msdk@seth:~$ virtscreen 
qml: Loader Status Changed. 1
qml: Unloading ApplicationWindow...
qml: Loader Status Changed. 0

and voila .. .I hope this helps

@chagas98
Copy link

chagas98 commented Aug 9, 2022

Hi @msdkone, about this

which resulted with files from snap and /usr/lib/... (I'm use /usr/lib/) & I added the export LD_PRELOAD to my .bashrc file and
it's working fine.

I am running a .sh file with the export command followed by virtscreen, which is working like a charm . But I couldn't understand how to add in .bashrc. Can you explain more details about it?

@cipitaua
Copy link

cipitaua commented Nov 5, 2022

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./Virtscreen.appimage

works for me

@andre23arruda
Copy link

andre23arruda commented Mar 5, 2023

export MESA_LOADER_DRIVER_OVERRIDE=i965; ./VirtScreen.AppImage

works for me

@cipitaua
Copy link

cipitaua commented Mar 8, 2023

Hi @msdkone, about this

which resulted with files from snap and /usr/lib/... (I'm use /usr/lib/) & I added the export LD_PRELOAD to my .bashrc file and
it's working fine.

I am running a .sh file with the export command followed by virtscreen, which is working like a charm . But I couldn't understand how to add in .bashrc. Can you explain more details about it?

bashrc is executed only in interactive shells. If you are going to call Virtscreen.appimage from you desktop environment, you should put

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6

in your $HOME/.profile

@swamids
Copy link

swamids commented Mar 23, 2023

Hi .. i use to have the same problem to open the GUI of virtscreen

msdk@seth:~$ virtscreen 
libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QGLXContext: Failed to create dummy context
qml: Loader Status Changed. 1
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Aborted

and I found this solution on stackoverflow.

The problem, for me, is with the libstdc++.so.6. This file is located in /usr/lib/x86_64-linux-gnu/libstdc++.so.6 on my system. To know where to find this file I suggest to run the following command : find / -name libstdc++.so.6 2>/dev/null

which resulted with files from snap and /usr/lib/... (I'm use /usr/lib/) & I added the export LD_PRELOAD to my .bashrc file and it's working fine.

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6

If I test on my terminal...

msdk@seth:~$ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
msdk@seth:~$ virtscreen 
qml: Loader Status Changed. 1
qml: Unloading ApplicationWindow...
qml: Loader Status Changed. 0

and voila .. .I hope this helps


It works !!!! tnxxxxx

@poleguy
Copy link

poleguy commented Aug 30, 2023

Similar problem on Ubuntu 22.04 with nouveau driver.
LD_PRELOAD trick doesn't help.

libGL error: MESA-LOADER: failed to open nouveau: /usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open nouveau: /usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QGLXContext: Failed to create dummy context
qml: Loader Status Changed. 1
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Aborted (core dumped)

@msdkone
Copy link

msdkone commented Sep 1, 2023

According to what I see, it has a problem with the Nvidia driver.

Are you using Wayland or Xorg?
If you use Wayland, try using Xorg.
Wayland, being newer, is not yet compatible with all applications.
hope this helps

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

No branches or pull requests