Coin/Qt5 over remote desktop on Windows host. Anybody tried this?

258 views
Skip to first unread message

Bastiaan Veelo

unread,
May 9, 2018, 2:38:17 PM5/9/18
to coin3d-...@googlegroups.com
It used to work when we were still building with Qt 4.7, using Quarter
and MSVC 2008.

Now we have started using Qt 5.9.6, newest Coin/Quarter and MSVC 2017.
When running through remote desktop on Windows hosts, the Coin debug
build fails assertion [1] on a current GL context, then crashes. I have
configured the Qt build with "-opengl dynamic" (same as official Qt
binaries).

I think it might have something to do with OpenGL1 vs OpenGL2 [2, 4].
Following the tips from [2] forces software rendering but does not
prevent the crash.

"set QT_OPENGL=desktop" (the default) does not help (in remote deskstop
that is, it does work using RealVNC and TeamViewer)

"set QT_OPENGK=angle" requires libEGL[d].dll and libGLESvs2[d].dll but
does not help (also fails using RealVNC and TeamViewer)

"set QT_OPENGL=software" requires opengl32sw.dll [3] and does the same
as following the tip from [2], it does not help (also fails using
RealVNC and TeamViewer).


Is anyone able to reproduce this, and better yet, figure out how to make
this work? I have run out of options...


Thanks!

Bastiaan.


[1]
https://bitbucket.org/Coin3D/coin/src/8d1ca1a6ea234d0b175de4d7acbc32591916a139/src/glue/gl.cpp?at=default&fileviewer=file-view-default#gl.cpp-2354

[2]
https://social.technet.microsoft.com/Forums/windowsserver/en-US/c8295ef8-3711-4576-9293-2c4965280165/opengl-and-remote-desktop?forum=winserverTS

[3]
http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/opengl32sw-32.7z

[4] http://doc.qt.io/qt-5/windows-requirements.html#graphics-drivers

Sharad Verma

unread,
Aug 9, 2018, 6:33:05 AM8/9/18
to coin3d-discuss
Hi Bastiaan,

Did you get any workaround for Remote Desktop fail for newest coin3d with Qt?
If yes, can you please share this with me? I need this desperately.

Regards,
Sharad Verma

Bastiaan Veelo

unread,
Sep 28, 2018, 9:10:02 AM9/28/18
to coin3d-...@googlegroups.com

Solved!

Although the default configure option "-opengl dynamic" is supposed to enable OpenGL over Remote Desktop and solve similar issues, the contrary is true for Coin.

We have recently started to programmatically force desktop OpenGL using

```

app = new QApplication();
app->setAttribute(Qt::AA_UseDesktopOpenGL); // Prevent problems when run on low-end hardware or over Remote Desktop.

```

This solves crashing Coin on low-end hardware and also enables running Coin over Remote Desktop. I don't know why my previous attempts with the QT_OPENGL environment variable (which is supposed to do the same thing) were unsuccessful.


Bye,

Bastiaan.

--
You received this message because you are subscribed to the Google Groups "coin3d-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coin3d-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sharad Verma

unread,
Sep 28, 2018, 9:39:51 AM9/28/18
to coin3d-...@googlegroups.com
Thanks a lot Bastiaan. You are my hero. It worked. 👍
Reply all
Reply to author
Forward
0 new messages