Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-23 19:32:40



Reply to topic  [ 6 posts ] 
Self-built media plugin doesn't render web content 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 342
Location: Columbus area, OH, USA
Reply with quote
After building 1.28.0.8, web content is no longer displayed, most notably when I first launch the viewer. The normal web content seen there is not displayed. After logging in, this continues but audio (I did not try video) plays normally. I suspect this is because my build of media_plugin_gstreamer is fine while media_plugin_cef is not. The 'official' build works properly as does copying its .so file into my personal build.

I realize it is most likely due to the gcc version I am using which is:
Code:
gcc version 10.2.1 20200723 (Red Hat 10.2.1-1) (GCC)
Other information is:
Code:
Cool VL Viewer v1.28.0.8, 64 bits, Sep 12 2020 09:56:10
Release Notes

CPU: AMD Athlon(tm) X4 880K Quad Core Processor (4000.65 MHz)
Memory: 32137MB
OS version: Linux-x86_64 v5.8.7-200.fc32.x86_64 #1 SMP Mon Sep 7 15:26:10 UTC 2020
Memory manager: jemalloc v5.2.1-20200908
Graphics card vendor: NVIDIA Corporation
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2
OpenGL version: 4.6.0 NVIDIA 450.66
Detected VRAM: 11264MB
J2C decoder: OpenJPEG: 1.4.0.635f
Audio driver: OpenAL v1.1 ALSOFT 1.19.1 (OpenAL Soft: OpenAL Soft)
Networking backend: libcurl/7.47.0 OpenSSL/1.0.2u zlib/1.2.11
Embedded browser: CEF3 plugin v81.3.10+gb223419+chromium-81.0.4044.138

Built with: GCC v10.2.1
Compiler-generated maths: AVX.

Compile flags used for this build:
-O3 -fno-delete-null-pointer-checks -fno-ipa-cp-clone -fno-align-labels -fno-align-loops -DNDEBUG -march=native -std=c++11 -fPIC -pipe -g -gdwarf-2 -gstrict-dwarf -fno-var-tracking-assignments -fexceptions -fno-strict-aliasing -fvisibility=hidden -fsigned-char -m64 -mfpmath=sse -fno-math-errno -fno-trapping-math -pthread -fno-stack-protector -Wall -Wno-reorder -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-variable -Wno-placement-new -Wno-parentheses -Werror -DLL_LINUX=1 -D_REENTRANT -D_GLIBCXX_USE_CXX11_ABI=0 -DLL_USE_JEMALLOC=1 -DLL_ELFBIN=1 -DLL_LUA=1 -DOV_EXCLUDE_STATIC_CALLBACKS -DLL_FMOD=1 -DLL_OPENAL=1 -DLL_SDL=1 -DLIB_NDOF=1 -DLL_X11=1
I am including a log with MediaPluginDebugging, but there isn't much there other than a few WARNs. There are also no issues during build or any other error that I can find. I am happy to try any suggestions or just use the official build.


Attachments:
CoolVLViewer.zip [12.61 KiB]
Downloaded 81 times
2020-09-12 17:37:08
Profile

Joined: 2020-07-08 23:18:37
Posts: 34
Reply with quote
I also built 1.28.0.8, but with GCC 9.2.1. It displayed no web page on launch and no media in world. I then ran the official 1.28.0.8 release. While I did get the launch web page, and my Deimos TV did initially operate, it only played a couple of seconds of video before stopping. My Deimos TV has already been updated to use the latest CEF as found in the current LL viewer and Firestorm beta 6.4.5, and it displays a notice to use these viewers when attempting to play videos. I'll provide more info if needed.


2020-09-12 19:31:51
Profile

Joined: 2009-03-17 18:42:51
Posts: 5550
Reply with quote
ZaneZimer wrote:
After building 1.28.0.8, web content is no longer displayed, most notably when I first launch the viewer.
.../...
I realize it is most likely due to the gcc version I am using which is:
Code:
gcc version 10.2.1 20200723 (Red Hat 10.2.1-1) (GCC)
There seem to be an issue when compiling Dullahan with gcc's v4.8 or v4.9 and media_plugin_cef with gcc 5+... Probably an issue/difference with how they compile std::bind...

I thought that issue might have been solved, but it's apparently not. Apply the following patch to the viewer sources and it will build with a Dullahan version that uses boost::bind instead and that will work with newer gcc versions:
Attachment:
dullahan-boost-patch.txt [1.1 KiB]
Downloaded 85 times


Quote:
I am including a log with MediaPluginDebugging, but there isn't much there other than a few WARNs.
When debugging plugins, you need to either launch the viewer from a terminal so to see what the plugins emit on stderr or uncomment "export LL_REDIRECT_STDERR_TO_LOG=x" in the cool_vl_viewer wrapper script, so to redirect stderr to the log file (use that when posting plugin-related logs on this forum).


2020-09-12 21:27:02
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 5550
Reply with quote
KJ_Eno wrote:
I then ran the official 1.28.0.8 release. While I did get the launch web page, and my Deimos TV did initially operate, it only played a couple of seconds of video before stopping.
There is no guarantee whatsoever that such scripted TVs (which simply pass various URIs with various media files formats to the viewers) will work perfectly with all media and all CEF and/or gstreamer versions. Depending on the media type, the viewer could use either CEF or gstreamer to play its content (this is governed by app_settings/mime_types.xml). Then you are dependent on how well CEF or gstreamer (and the specific versions you are running) can deal with that specific media...

Quote:
My Deimos TV has already been updated to use the latest CEF as found in the current LL viewer and Firestorm beta 6.4.5, and it displays a notice to use these viewers when attempting to play videos.
LL's viewer and Firestorm use VLC instead of gstreamer (both having their own strengths and weaknesses with various media formats).

Quote:
I'll provide more info if needed.
To debug the plugins, set the MediaPluginDebugging debug setting to TRUE. See as well my reply above about LL_REDIRECT_STDERR_TO_LOG...


2020-09-12 21:36:34
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 342
Location: Columbus area, OH, USA
Reply with quote
Henri Beauchamp wrote:
Apply the following patch to the viewer sources and it will build with a Dullahan version that uses boost::bind instead and that will work with newer gcc versions:
Attachment:
dullahan-boost-patch.txt

When debugging plugins, you need to either launch the viewer from a terminal so to see what the plugins emit on stderr or uncomment "export LL_REDIRECT_STDERR_TO_LOG=x" in the cool_vl_viewer wrapper script, so to redirect stderr to the log file (use that when posting plugin-related logs on this forum).
Thanks for the patch and tip about debug logging and the redirect variable. I do sometimes remember to run in a terminal but this time it didn't occur to me. I can also confirm that building with the patch corrects the situation for me.


2020-09-12 21:58:54
Profile

Joined: 2020-07-08 23:18:37
Posts: 34
Reply with quote
Built with the patch and now the viewer works the same way that the official build does. Also, thanks for the information regarding the difference using Gstreamer and VLC. I'm not too concerned with the TV as long as general media is available from HUDs I use.


2020-09-12 22:59:47
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.