Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-12-30 16:16:34



Reply to topic  [ 9 posts ] 
Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on Mac 
Author Message

Joined: 2012-01-19 03:18:40
Posts: 214
Location: Sydney, Australia (UTC +10)
Reply with quote
I attempted to build Cool VL Viewer v1.32.2.5 this afternoon. The build appeared to run correctly but when I copied the application to the Applications folder of my "recreation" Mac and attempted to run it, it immediately crashed on startup (log attached below). The application is looking for a dynamic library (libopenal.dylib) and not finding it.

So I went to my build machine and attempted to run Cool VL Viewer v1.32.2.5 on that, and it started up and ran, but only after it had asked me to allow the app to access the build directory tree, presumably to access the dynamic library above.

I used my normal build process which worked fine up to v1.32.2.3. I did not build v1.32.2.4 because I have a small enough Inventory to have avoided the problem that release addressed. Has something changed, or have I screwed up the build somehow?
:(


Attachments:
Cool VL Viewer_2024-07-17-152609_Antares.crash.zip [2.26 KiB]
Downloaded 145 times
2024-07-17 12:13:41
Profile

Joined: 2009-03-17 18:42:51
Posts: 5892
Reply with quote
You can disable OpenAL for building line 137 of indra/cmake/00-BuildOptions.cmake (change it for set(OPENAL OFF)), and the viewer will run using only FMOD like it did previously on macOS.

However, the libopenal.dylib should be properly copied into the app resources directory together with the other libraries (see scripts/viewer_manifest.py) , so macOS should find it...

Someone more knowledgeable than me about macOS would have to look at this (maybe a rpath to set for that library ?... Dunno).

In the mean time, I will disable again OpenAL support for macOS in next release...


2024-07-17 13:53:38
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 384
Location: Columbus area, OH, USA
Reply with quote
This feels related to the draconian security that MacOS has implemented. I have also been building the Mac version for a while now, with no issues. I checked the .5 build (that I had crafted over the weekend but never run) and I got a similar behavior. All the expected libs are present in the Resources folder yet launching via my 'keyboard accelerator' failed. The accelerator has full disk access. I decided to invoke via Terminal using the 'open' command and it started right up with no errors. The Terminal app also has full disk access. After shutting down the command line initiated instance, I could then use my 'keyboard accelerator' app to launch without error. I'm wondering if some sort of application 'signature/hash' changed and MacOS decided that might be a security violation.


2024-07-17 16:01:33
Profile

Joined: 2009-03-17 18:42:51
Posts: 5892
Reply with quote
ZaneZimer wrote:
This feels related to the draconian security that MacOS has implemented. I have also been building the Mac version for a while now, with no issues. I checked the .5 build (that I had crafted over the weekend but never run) and I got a similar behavior. All the expected libs are present in the Resources folder yet launching via my 'keyboard accelerator' failed. The accelerator has full disk access. I decided to invoke via Terminal using the 'open' command and it started right up with no errors. The Terminal app also has full disk access. After shutting down the command line initiated instance, I could then use my 'keyboard accelerator' app to launch without error. I'm wondering if some sort of application 'signature/hash' changed and MacOS decided that might be a security violation.

That's a very valuable feedback, thank you !

Maybe the OpenAL library has been signed differently by LL... Dunno. :?


2024-07-17 17:14:06
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 384
Location: Columbus area, OH, USA
Reply with quote
It just occurred to me that I also did spurious reboot in the middle of my testing. That could have contributed to 'it works for me now'. I wasn't as diligent with my testing, unfortunately. It does feel like the OS decided for whatever reason, even if temporarily, to block access to some of the files. I have half a suspicion if we turned off OpenAL during the build, then perhaps another lib would have caused a similar issue. Just my speculations though. I don't develop on a Mac very much.


2024-07-17 17:59:10
Profile

Joined: 2012-01-19 03:18:40
Posts: 214
Location: Sydney, Australia (UTC +10)
Reply with quote
On checking, I find the "missing" library is in the Resources folder of the app I built, so the why the viewer is claiming it is missing I do not know. I will try the workaround Henri suggests above.


2024-07-17 20:41:47
Profile

Joined: 2012-01-19 03:18:40
Posts: 214
Location: Sydney, Australia (UTC +10)
Reply with quote
Cool VL Viewer v1.32.2.6 built and ran just fine.


2024-07-22 12:11:03
Profile

Joined: 2009-03-17 18:42:51
Posts: 5892
Reply with quote
linyifei wrote:
Cool VL Viewer v1.32.2.6 built and ran just fine.
Well, not really a surprise, since I just reverted the build option to no OpenAL support for macOS... :(

Yet, if someone knowledgeable with macOS stuff could have a look into this, I'd be grateful to them...


2024-07-22 12:15:35
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 384
Location: Columbus area, OH, USA
Reply with quote
I wish I were more knowledgeable on this item. I can use OpenAL though when I build (I turned it back on in 00-BuildOptions.cmake, and disabled FMOD). Since I managed to get Cool VL Viewer to load once, after getting the same initial behaviour as linyifei, it's worked every time. Maybe Catten will have more insights when they build.


2024-07-22 12:42:02
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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.