Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-28 17:16:02



Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Cool VL Viewer v1.30.0.28 crashes on turning ALM on or off. 
Author Message

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
On Mac, Cool VL Viewer v1.30.0.28 crashes on turning ALM on or off. This does not happen under Cool VL Viewer v1.30.0.22.


Attachments:
File comment: Cool VL Viewer crash report
Cool VL Viewer_2022-11-28-221848_Antares.crash.zip [19.24 KiB]
Downloaded 29 times
File comment: Cool VL Viewer log file
CoolVLViewer.log.zip [20.62 KiB]
Downloaded 26 times
2022-11-28 11:41:47
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
This might have been fixed already, with changes that went in v1.29.0.29... You will need to test the latter and report again here, should it still crash.


2022-11-28 12:58:13
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
I will test once a release beyond v1.30.0.28 becomes available for Mac. I have been attempting to build Cool VL Viewer v1.30.0.29 but so far even the pre-build process does not work for me. I need to work on this further.


2022-11-28 21:44:27
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
linyifei wrote:
I have been attempting to build Cool VL Viewer v1.30.0.29 but so far even the pre-build process does not work for me. I need to work on this further.
Do read the linden/doc/macOSBuildHowto.txt (especially chapter A): you are probably lacking cmake, or the path to it, or perhaps the Xcode command line tools...


2022-11-29 08:58:05
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
Henri Beauchamp wrote:
Do read the linden/doc/macOSBuildHowto.txt (especially chapter A): you are probably lacking cmake, or the path to it, or perhaps the Xcode command line tools...
I have read that file, and performed all the steps in section A. My problem is that the pre-install script can't find Python on my system. Apple dropped built-in support in MacOS for Python (which was at Python 2.7) with macOS Monterey 12.3. I believe I have successfully installed Python 3 on my machine (and test programs run fine if I specify Python3 to run them on the command line) but your macos-prebuild.sh script fails because it can't find Python to run the programs that it calls. I'm looking into this.


2022-11-29 11:36:09
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
linyifei wrote:
it can't find Python to run the programs that it calls. I'm looking into this.
You will need to add the Python executable to your PATH environment variable: the Python installer might give you that option to update your PATH, else you can add it yourself before running the script:
Code:
export PATH="$PATH:<path_to_python_here>"

Usually, additional packages are installed in /opt/local on macOS, so the path to python is likely "/opt/local/bin", so you'd use:
Code:
export PATH="$PATH:/opt/local/bin"

You may also modify the PATH in your shell profile script ("~/.bahrc" or "~/.bash_profile" for a bash shell, ~/.zprofile or ~/.zsh for a zsh shell, or ~/.profile for generic "sh" shells); this profile script is automatically ran each time you open a terminal, so you won't need to update your path manually any more once in there.

EDIT: I updated the macOS build instructions for next releases. Here they are:
Attachment:
macOSBuildHowto.txt [1.95 KiB]
Downloaded 28 times


2022-11-29 15:03:24
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
It required a little tinkering, but I successfully built Cool VL Viewer v1.30.0.29 on my Mac. :D

This release does fix the copy/paste problem I reported here, but unfortunately it does not fix the crashing on turning ALM on or off. I don't know if it will be useful, but I have noticed a quirk. If I turn on ALM, the viewer crashes, but I find ALM has been set when I log back in. If I try to turn off ALM, the viewer crashes, but I find that ALM has not been unset when I log back in.


Attachments:
File comment: Cool VL Viewer v1.30.0.29 crash log
Cool VL Viewer_2022-12-02-110354_Antares.crash.zip [19.31 KiB]
Downloaded 28 times
File comment: Cool VL Viewer v1.30.0.29 log
CoolVLViewer.log.zip [15.32 KiB]
Downloaded 26 times
2022-12-02 00:28:19
Profile

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
I'm not sure if I should continue in this thread or start a new one. I'm afraid that the problem is worse than I thought. On my Mac, both v1.30.0.28 (built by Catten) and v1.30.0.29 (built by me) do not just crash on turning ALM on or off. They crash if I make any change through my Preferences floater, even just changing draw-distance. I have to go back to v1.30.0.22 to avoid the problem. One quirk I notice is that on v1.30.0.28 and v1.30.0.29 I have to press Cmd-P twice to get the Preferences floater up the first time I do this after logging in. This does not happen on v1.30.0.22. Attached below are the crash logs from where I tried to change my draw-distance.


Attachments:
File comment: v1.30.0.29 crash log.
Cool VL Viewer_2022-12-02-114221_Antares.crash.zip [19.2 KiB]
Downloaded 25 times
File comment: v1.30.0.29 log file.
CoolVLViewer.log.zip [12.58 KiB]
Downloaded 27 times
2022-12-02 00:59:21
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
linyifei wrote:
They crash if I make any change through my Preferences floater, even just changing draw-distance.
Since the crash happens in LLPrefsGraphicsImpl::applyResolution(), it is not all that surprising that any change in the preferences/graphics triggers the crash...

The question is why, and when that crash got introduced. Since it does not happen under Linux or Windows, it must be macOS-specific, but I see no such change between v1.30.0.24 (.23 was just a fix for the scripts debug floater crash) that would stand out as a likely culprit. The only macOS-specific changes went into v1.30.0.25 and were fully reverted (due to the clipboard bug and potentially other side effects) in v1.30.0.29...

Sadly, I cannot test macOS builds myself, and since we only have 1.30.0.22 and 1.30.0.28 builds, I cannot even narrow down my searches to the release in which things got broken.

If it continues like that, with only one Mac build once in a (long) while, I fear I will be forced to give up entirely on macOS support and declare my viewer as compatible only with Linux and Windows... :(

If you wish to see this bug fixed, I will have to ask you (or any macOS user ready to give a little bit of their time) more efforts, I'm afraid; it means reverting every incremental diff, one after the other, and recompiling, until you get a build that works fine again; then we will know what release got broken, and I will be able to give you patches to test based on potential suspects.
To save you the tedious task of manually reverting every incremental diff, I temporarily re-uploaded the ready-to-build sources for v1.30.0.24 to v1.30.0.27. By compiling each (*), you will be able to find out which version got broken (you may reuse the macos-build.sh script from v1.30.0.29 with them, since they had only a pre-build script, which forced to use the Xcode IDE to build them and thus incurred more manipulations).

(*) You may instead proceed by "bisecting" to save time and compilations: try first with v1.30.0.25: if it is broken, you can try .24, while if it works, try .26 and .27... That's only (and at worst), 3 compilations to do instead of 4.


2022-12-02 09:34:10
Profile WWW

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
Quote:
Sadly, I cannot test macOS builds myself, and since we only have 1.30.0.22 and 1.30.0.28 builds, I cannot even narrow down my searches to the release in which things got broken.
I have tested v1.30.0.22, v1.30.0.28, and v1.30.0.29 so far. The .22 release works fine, both .28 and .29 exhibit the crash on Preferences change.

Since I would very much regret having to give up Cool VL Viewer, I will download and test the intermediate releases. Hopefully I will get it done over the weekend.


2022-12-02 21:58:24
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ]  Go to page 1, 2  Next

Who is online

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