Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-09-10 07:55:51



Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
CEF not working in CoolVLViewer1.32.0.24 (macOS 10.15) 
Author Message

Joined: 2012-01-19 03:18:40
Posts: 207
Location: Sydney, Australia (UTC +10)
Reply with quote
Since building and upgrading to 1.32.0.24 from 1.32.0.23, the in-viewer web-browser seems to have stopped working. The Media browser floater opens but then just sits indefinitely displaying a "Loading..." message. I only use this feature to check whether I am running the latest release of Cool VL Viewer using Help/Latest version check, but the problem prevents access to all the URLs I have tested.


Attachments:
File comment: Cool VL Viewer 1.32.0.24
CoolVLViewer.log.zip [20.47 KiB]
Downloaded 41 times
2024-05-27 23:21:17
Profile

Joined: 2009-03-17 18:42:51
Posts: 5754
Reply with quote
For macOS, v1.32.0.24 saw the adoption of CEF 118. Catten tested it and told me it was working fine for him...

You may however still compile the viewer against the (super) old CEF 91 that has been in use so far, by changing the USE_OLD_CEF build option to ON, line 56 of linden/indra/cmake/00-BuildOptions.cmake

Since there is nothing wrong in the log, I'm afraid I cannot help more, for macOS... Catten will have to investigate your issue.


2024-05-27 23:49:46
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 207
Location: Sydney, Australia (UTC +10)
Reply with quote
On further investigation, I think this is a macOS release-level issue. The browser doesn't work under Mojave or Catalina, but does under Monteray. Obviously I need to update my "fun" machine. :lol:


2024-05-28 00:48:52
Profile

Joined: 2009-03-17 18:42:51
Posts: 5754
Reply with quote
Ah... Yes, IIRC LL raised the requirement on macOS' version for their builds following the adoption of a new Xcode version, and since we reuse LL's CEF build... :(

It looks like I will have to keep that "USE_OLD_CEF" option around for a while, so that people with Catalina (which is not that old) can still compile the viewer with a compatible CEF plugin...


2024-05-28 08:24:54
Profile WWW

Joined: 2012-07-08 17:37:36
Posts: 15
Location: Neufreistadt, Confederation of Democratic Simulators, Second Life
Reply with quote
Ah, that should explain my own issues, too.

I'm using Catalina's successor, Big Sur (11.7.9), also deprecated by Apple. 1.32.0.24 (and the yet-experimental 1.32.1.7) both crash-upon-launch, and the only thing in the logs that really stands out is, on cef_log.txt:

Code:
[0811/002004.179963:WARNING:policy_logger.cc(148)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.


This seems, indeed, to be related to CEF, although I don't really understand where that error currently comes from — much less how this can be fixed. I'm assuming, since this is a C# file, that it belongs to the Google-provided Chromium code — not part of the viewer code! — right?

I also wonder... is there a way to launch the Cool VL Viewer without CEF support, with parameters on the command line? I'm just asking this because there are a lot of options there for the command line, but I couldn't pinpoint the one that turns CEF completely off. You can also selectively change the debug settings using the --set argument, but, alas, in my case, I see absolutely no difference — Cool VL Viewer just launches and crashes when trying to open the CEF-enabled "splash screen". My hope was that, by supplying the avatar name & password, it would ignore the "splash screen" and log in directly to SL, but I'm afraid this is not how it works... unless, as said, there is a setting somewhere that I've completely overlooked!

Note that, in over 99% of the cases, I don't need MoaP — except when debugging something which does use it! — and so I can live happily without it, at least until this specific issue is fixed or gets a workaround. In other words: sure, I'm more than fine to forfeit the in-world browser & MoaP in exchange for the ability to log in :lol:

Also, for future reference, I'm enclosing some selected tidbits on my startup logs; essentially what caught my attention. Besides CEF, it seems that my ancient Mac is struggling with loading the advanced shaders — no surprises there, especially because Cool VL Viewer seems to be launching OpenGL 2.1 out of caution, even though my Nvidia card is more than eager to deal with 4.1 — but it is unusual. The rest is mostly related to MoaP, CEF, etc. Notice the very clean shutdown which finally ends with a memory segmentation fault after everything else was properly disposed with! (very nicely coded!)

Code:
~~~~~~~~~~~~~~~~~~
 Loading Shaders:
~~~~~~~~~~~~~~~~~~
2024-08-11 09:19:40Z INFO: LLViewerShaderMgr::setShaders: Using GLSL 1.20
2024-08-11 09:19:40Z INFO: LLViewerShaderMgr::loadBasicShaders: Screen space reflections disabled
2024-08-11 09:19:40Z INFO: LLViewerShaderMgr::loadBasicShaders: Reflection probes disabled.
2024-08-11 09:19:40Z WARNING: LLShaderMgr::loadShaderFile: Unsupported GLSL version for PBR.
2024-08-11 09:19:40Z WARNING: LLViewerShaderMgr::setShaders: Failed to load the basic shaders !
2024-08-11 09:19:40Z INFO: LLAppViewer::initWindow: Render pipeline initialized.
2024-08-11 09:19:40Z INFO: LLControlGroup::saveToFile: Saved to /Users/gwyneth/Library/Application Support/SecondLife/user_settings/settings_coolvlviewer_1321.xml
2024-08-11 09:19:40Z INFO: LLFastTimerView::setVisible: Fast timers disabled.

2024-08-11 09:19:40Z INFO: LLGLManager::printGLInfoString: GL_VENDOR  : NVIDIA Corporation
2024-08-11 09:19:40Z INFO: LLGLManager::printGLInfoString: GL_RENDERER: NVIDIA GeForce GT 750M OpenGL Engine
2024-08-11 09:19:40Z INFO: LLGLManager::printGLInfoString: GL_VERSION : 2.1 NVIDIA-16.0.13

2024-08-11 09:19:40Z INFO: LLViewerMedia::getCurrentUserAgent: User agent: SecondLife/1.32.1.7 (CoolVL Viewer; default skin)
2024-08-11 09:19:40Z INFO: LLPluginClassMedia::init: Initializing: /Applications/CoolVLViewer1.32.1.7.app/Contents/Resources/llplugin/media_plugin_cef.dylib
2024-08-11 09:19:40Z INFO: LLViewerMediaImpl::loadURI: Asking media source to load URI: file:///Applications/CoolVLViewer1.32.1.7.app/Contents/Resources/skins/default/html/en-us/loading/loading.html
2024-08-11 09:19:41Z INFO: LLViewerMediaImpl::navigateInternal: media id = 4d36a784-95e3-a82e-ff3c-0d1443d685f3 - url = https://viewer-splash.secondlife.com/ - mime_type = text/html
2024-08-11 09:19:41Z INFO: LLViewerMediaImpl::loadURI: Asking media source to load URI: https://viewer-splash.secondlife.com/
2024-08-11 09:19:41Z INFO: LLStartUp::idleStartup: Setting default login credentials
2024-08-11 09:19:41Z INFO: LLStartUp::setStartupState: Startup state changing from STATE_LOGIN_SHOW to STATE_LOGIN_WAIT
2024-08-11 09:19:41Z WARNING: LLRender::flush: No bound shader !
2024-08-11 09:19:41Z WARNING: LLRender::flush: No bound shader ! (repeated 58 times)
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Texture cache was informed of viewer crash.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Texture cache: closing queue...
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Texture cache shutdown complete with an empty queue.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Object cache was informed of viewer crash.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Object cache: closing queue...
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Object cache shutdown complete with an empty queue.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:LLImageGL was informed of viewer crash.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:LLImageGL: closing queue...
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:LLImageGL shutdown complete with an emptyqueue.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Image decode was informed of viewer crash.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Image decode: closing queue...
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:Image decode shutdown complete with an empty queue.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:General was informed of viewer crash.
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:General: closing queue...
2024-08-11 09:19:41Z INFO: LLThreadPool::close: ThreadPool:General shutdown complete with an empty queue.
...
Segmentation fault: 11


2024-08-11 15:03:10
Profile ICQ YIM WWW

Joined: 2009-03-17 18:42:51
Posts: 5754
Reply with quote
Gwyneth Llewelyn wrote:
I'm enclosing some selected tidbits on my startup logs; essentially what caught my attention
You should be using a newer version... v1.32.1 was an *experimental branch*.

Also, make sure to wipe out the old settings files.

At the very least, the viewer will start in OpenGL v2.1 compatibility mode, and then you will be able to switch to "Core GL profile" from the graphics settings which, after a restart, will enable OpenGL v4.1... After the restart, you will be able to switch to PBR.

See this thread, where I already explained it all... Do not try and force OpenGL v4 on the viewer via macOS !!!


2024-08-11 16:52:17
Profile WWW

Joined: 2012-07-08 17:37:36
Posts: 15
Location: Neufreistadt, Confederation of Democratic Simulators, Second Life
Reply with quote
@Henri I know, I'm well aware of your detailed explanations and I thank you for that.

Regarding 1.32.1.7, I just tested it out because, well, 1.32.0.24 wasn't working; in fact, both give the same errors; I went back to 1.32.0.24, but, of course, the issue (whatever it might be) remains. At the time of writing, 1.32.0.24 is the latest version for macOS.

The 1.32.2 series is still being hammered on the forge by Catten :) so I'll have to be patient and wait for an upgrade!

Thanks for your ongoing work & outstanding support; I know I'm stubborn and love to live dangerously with my configurations, but, alas, that doesn't mean I don't appreciate the Cool VL Viewer any less because of that!


2024-08-12 17:24:47
Profile ICQ YIM WWW

Joined: 2009-03-17 18:42:51
Posts: 5754
Reply with quote
Gwyneth Llewelyn wrote:
At the time of writing, 1.32.0.24 is the latest version for macOS.
Well, it should be easy to compile the viewer from sources by yourself.

On "old" macOS machines you would simply need to recover Xcode 12, for example from here, then follow the instructions given in linden/doc/macOSBuildHowto.txt to install the other prerequisites (Python and cmake), and launch the build script to build your own binary from the current sources...


2024-08-12 20:54:21
Profile WWW

Joined: 2012-07-08 17:37:36
Posts: 15
Location: Neufreistadt, Confederation of Democratic Simulators, Second Life
Reply with quote
Heh. I will consider your suggestion regarding self-compiling my own version... it's been a long time since I did that, and the last time was for the official SL Viewer 1.17 (!) (note: after ±17 hours of compilation, it worked slower than the official build —but it had mirrors!). I've been avoiding to install Xcode on my Mac like the plague, though. *sighs* Oh well...

Oh, and for the sake of completeness — aye, following your instructions (removing the settings files and letting Cool VL Viewer regenerate them from scratch) continues to work flawlessly, after I did that, things worked again, exactly as before. Fun fact: Cool VL Viewer is the only viewer that allows us to selectively turn on the Advanced Lighting System, or the PBR-enabled system, or turn both off. To the best of my knowledge, other viewers haven't this ability, or, if they do, it requires some deep digging into the debug settings. Also, no other viewer makes it so easy for Mac users to switch from the "basic" OpenGL 2.1 to whatever more recent OpenGL versions their graphic cards support.


2024-08-14 01:55:40
Profile ICQ YIM WWW

Joined: 2009-03-17 18:42:51
Posts: 5754
Reply with quote
Gwyneth Llewelyn wrote:
note: after ±17 hours of compilation
17 hours ?!? :shock:
Compiling the Cool VL Viewer takes just a few minutes on a PC (less than 3 minutes on my main PC), and 30 minutes on an ARM64 SBC (with a RK3588 CPU).


2024-08-14 07:16:39
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.