VirtScreen icon indicating copy to clipboard operation
VirtScreen copied to clipboard

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

Open kanishkbh opened this issue 2 years ago • 13 comments

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

kanishkbh avatar Apr 30 '22 18:04 kanishkbh

Hello. The same problem, but on Linux Mint

bogdanmitsevski avatar May 09 '22 09:05 bogdanmitsevski

Yep, not working here on Kubuntu 21.10

bekema avatar May 11 '22 01:05 bekema

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)

GreenDude avatar Jun 04 '22 12:06 GreenDude

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

markomisk avatar Jun 17 '22 09:06 markomisk

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

wokawoka avatar Jun 26 '22 16:06 wokawoka

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

msdkone avatar Jun 29 '22 15:06 msdkone

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?

chagas98 avatar Aug 09 '22 22:08 chagas98

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

works for me

cipitaua avatar Nov 05 '22 08:11 cipitaua

export MESA_LOADER_DRIVER_OVERRIDE=i965; ./VirtScreen.AppImage

works for me

andre23arruda avatar Mar 05 '23 15:03 andre23arruda

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

cipitaua avatar Mar 08 '23 15:03 cipitaua

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

swamids avatar Mar 23 '23 01:03 swamids

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)

poleguy avatar Aug 30 '23 19:08 poleguy

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

msdkone avatar Sep 01 '23 03:09 msdkone