Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-18 20:04:22



Reply to topic  [ 29 posts ]  Go to page Previous  1, 2, 3  Next
Cool VL Viewer 1.30.2.4 crashes on startup on Mac. 
Author Message

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
Catten wrote:
For some reason I just get a black screen at start up. It doesn't crash, when I try and close the window I can see in the log that the confirmation window appears and if I press enter the window closes, however I can't see a thing. All is just black.
A problem with shaders failing to load.
In linden/indra/llrender/llgl.cpp, lines 412 to 419, change to read:
Code:
#if LL_DARWIN
   // Never use GLSL greater than 1.30 on macOS
   if (mGLSLVersionMajor > 1 || mGLSLVersionMinor > 30)
   {
      mGLSLVersionMajor = 1;
      mGLSLVersionMinor = 30;
   }
#endif
I.e. allow up to GLSL v1.30 instead of v1.20...


2023-03-12 21:09:28
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
Catten wrote:
It is infuriating how they just abandon a technology like this. Same reason I'm holding back buying apple silicon. Who knows how long they will keep intel ( and SL ) support.
So very true. It seems that every new release takes Apple further from why I started with OS/X in the first place. I think this will be my last Apple. :(

I have applied both the patches that Henri specified here and here, and I get the same blank black screen that Catten did.

Since I can't see to access preferences in 1.30.2.5 in order to do the Enable Core GL Profile toggle, I logged in with 1.30.2.3 to do it, intending to log back in with .5 after the viewer restart. I found that in my preferences, that checkbox is greyed out (unchecked) so I can't change it.


2023-03-13 01:00:56
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
linyifei wrote:
I have applied both the patches that Henri specified here and here, and I get the same blank black screen that Catten did.
Please, post the log: there will be info in it about which shader fails to load.

linyifei wrote:
Since I can't see to access preferences in 1.30.2.5 in order to do the Enable Core GL Profile toggle
You can instead launch the viewer from a terminal and pass it the options: "--set RenderGLCoreProfile 1", but I doubt very much it would make a difference for shaders loading (this is obviously some change needed in one or several of them to make macOS happy).

More interesting, however, would be to start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start v1.30.2.5: it would give us much more detailed info about what is going on on OpenGL initialization.


2023-03-13 08:30:06
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
I made a patch, that fixes other GL 3.2 issues with macOS (and yes, core profile must be enabled for it to work: I found the corresponding commit in LL's PBR viewer citing black screen with core off).

You will find that patch file attached: apply it to clean v1.30.2.5 sources, like so:
Code:
cd linden
patch -p1 -s <path_to_patch/macOScoreGL3-patch.txt
Then build the viewer, and see how it fares...


Attachments:
macOScoreGL3-patch.txt [6.9 KiB]
Downloaded 28 times
2023-03-13 11:36:03
Profile WWW

Joined: 2011-09-17 11:12:19
Posts: 361
Reply with quote
I've tried several patched builds here, but it's the same result. A black screen at startup :/


Attachments:
CoolVLViewer.log.zip [9.17 KiB]
Downloaded 26 times
2023-03-13 19:23:53
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
Catten wrote:
I've tried several patched builds here, but it's the same result. A black screen at startup :/
Try this with the patched version of the sources: line 733 of linden/indra/llrender/llglslshader.cpp, replace "#if !LL_DARWIN" with "#if 1", and recompile.

If it still does not work, please, start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start the patched build of v1.30.2.5: it will give us much more detailed info in the log about what is going on at the shaders loading step..


2023-03-13 20:07:22
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
Henri Beauchamp wrote:
Please, post the log: there will be info in it about which shader fails to load.
Your wish is my command. :)


Attachments:
CoolVLViewer.log.zip [9.46 KiB]
Downloaded 23 times
2023-03-13 21:40:07
Profile

Joined: 2011-09-17 11:12:19
Posts: 361
Reply with quote
Henri Beauchamp wrote:
Catten wrote:
I've tried several patched builds here, but it's the same result. A black screen at startup :/
Try this with the patched version of the sources: line 733 of linden/indra/llrender/llglslshader.cpp, replace "#if !LL_DARWIN" with "#if 1", and recompile.

If it still does not work, please, start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start the patched build of v1.30.2.5: it will give us much more detailed info in the log about what is going on at the shaders loading step..


It's the same issue with #if 1. I've uploaded a log file with GL Debug info


Attachments:
CoolVLViewer.log.zip [11 KiB]
Downloaded 23 times
2023-03-13 22:03:52
Profile

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
Henri Beauchamp wrote:
More interesting, however, would be to start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start v1.30.2.5: it would give us much more detailed info about what is going on on OpenGL initialization.
I have just done this, but the compressed file is too large to attach to this message. Please try this link: https://drive.google.com/file/d/1ivlkYN ... pgxLF/view


2023-03-13 22:05:35
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
linyifei wrote:
Henri Beauchamp wrote:
More interesting, however, would be to start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start v1.30.2.5: it would give us much more detailed info about what is going on on OpenGL initialization.
I have just done this, but the compressed file is too large to attach to this message. Please try this link: https://drive.google.com/file/d/1ivlkYN ... pgxLF/view

Excellent !

We get 'version '130' is not supported' (strange, they do use if with macOS OpenGL v3.2 core profile in the PBR viewer)...

Let's revert back to 120 !

With the patched sources, linden/indra/llrender/llgl.cpp, line 414, replace "# if LL_DARWIN_GL3" with "# if 0", and let's see what happens...

EDIT: and apparently, when searching the web for "macos glsl version '130' is not supported", I found out we are not alone with this issue, and macOS would want 140 instead... So, if the above does not work, please revert the revert (let it use "# if LL_DARWIN_GL3" line 414 of linden/indra/llrender/llgl.cpp), and instead change line 723 of indra/llrender/llshadermgr.cpp to read:
Code:
#if LL_DARWIN && LL_DARWIN_GL3
         // macOS OpenGL v3.2 core profile refuses version 130: it wants 140
         glsl_version = "#version 140\n";
#else
         // Set version to 1.30
         glsl_version = "#version 130\n";
#endif


2023-03-13 22:30:42
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 29 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 15 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:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.