VStar 2.23.0 release

Affiliation
Astronomical Society of South Australia (ASSAU)
Thu, 10/05/2023 - 10:53

Hi all

2.23.0 is the first VStar release since June 2022.

Windows (an installer in particular), *nix, and Mac OS distributions are available here:

  https://github.com/AAVSO/VStar/releases/tag/2.23.0

That page links to the Change Log and complete list of changes (git commits).

There are more than 40 bug fixes and improvements.

Max (Maksym Pyatnytskyy) and I continue to work on this together and as always, I appreciate his support. Thanks to Bert Pablo for persevering with the plugin installation on the AAVSO server. We're trying to streamline the release process further. 

There is currently a problem with the MacOS X .dmg file reported by two people. See https://www.aavso.org/vstar-not-working re: the problem and for a workaround until I can solve the problem. If anyone else is seeing an error when starting the VStar app after opening the vstar-mac-2.23.0.dmg file, please add a comment here. Conversely, if you have downloaded the Mac .dmg file and had no problems, I want to know that too, along with your Mac OX version. 

David

Affiliation
Astronomical Society of South Australia (ASSAU)
Mac OS X .dmg file

 

Hi all

Further to my comment above, if you have had trouble with vstar-mac-2.23.0.dmg, please try again now.

As before, download it from https://github.com/AAVSO/VStar/releases/tag/2.23.0 and open the vstar-mac-2.23.0.dmg file.

On the first run after download (despite having signed the application with my Apple Developer ID) you may need to open VStar with ctrl-click (hold the control key down then click the trackpad/mouse). You will be presented with a dialog that says:

“VStar” can’t be opened because Apple cannot check it for malicious software.

Select the Open button in this dialog and VStar will start. The next time you start VStar, simply double-clicking to open should be all that's needed.

I've updated the wiki Mac installation section accordingly.

I will work on making this a smoother experience in the future.

Please let me know if you have any further problems with this!

Thanks.

David

Affiliation
American Association of Variable Star Observers (AAVSO)
Ubuntu 22.04 install

I'm bringing up a new computer and having some trouble getting the new VStar to run.  Here's what happens when invoking VStar.sh:

 

tcalderw@banshee:~/Downloads/vstar$ sh -x VStar.sh
+ dirname VStar.sh
+ APP_DIR=.
+ uname -a
+ grep _64
+ VER=Linux banshee 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
+ [ Linux banshee 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux !=  ]
+ echo
+ grep darwin
+ [  !=  ]
+ cat /proc/meminfo
+ head
+ awk /MemTotal:/{print $2}
+ perl -e print int(16106632 / 1024/1024/2);
+ HALF_MEM=7
+ [ 7 ==  ]
VStar.sh: 20: [: 7: unexpected operator
+ [ 7 == 0 ]
VStar.sh: 26: [: 7: unexpected operator
+ MAX_MEM=7g
+ java -splash:./extlib/vstaricon.png -Xms800m -Xmx7g -jar ./dist/vstar.jar

After this, there is a pause and I get a new prompt - no VStar startup

 

My Java is as follows:

tcalderw@banshee:~/Downloads/vstar$ java --version
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-Ubuntu-0ubuntu322.04)
OpenJDK 64-Bit Server VM (build 19.0.2+7-Ubuntu-0ubuntu322.04, mixed mode, sharing)

 

Affiliation
Astronomical Society of South Australia (ASSAU)
Run failure under Ubuntu 22.04

Hi Tom

This one seems to have slipped through the cracks. Apologies.

I'm starting to look at this.

I notice the operator errors on lines 20 and 26. That suggests a shell issue to me.

Could you try/reply to a few things for me?

  • What's the output from: which bash ?
  • Can you tell me what the output of these is?
    • ls -l /bin/sh
    • ls -l /bin/bash 
  • Is there any difference when you run: bash -x VStar.sh ?
  • What do you see from: cat /proc/meminfo | head | awk '/MemTotal:/{print $2} 

Also, I found a new error while looking at this one: https://github.com/AAVSO/VStar/issues/386

David

Affiliation
American Association of Variable Star Observers (AAVSO)
Test results

tcalderw@banshee:~/PEP/tools$ which bash
/usr/bin/bash

tcalderw@banshee:~/PEP/tools$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Nov  4 15:30 /bin/sh -> dash

tcalderw@banshee:~/PEP/tools$ ls -l /bin/bash
-rwxr-xr-x 1 root root 1396520 Jan  6  2022 /bin/bash

tcalderw@banshee:~/PEP/tools$ bash -x ~/Downloads/vstar/VStar.sh
++ dirname /home/tcalderw/Downloads/vstar/VStar.sh
+ APP_DIR=/home/tcalderw/Downloads/vstar
++ uname -a
++ grep _64
+ VER='Linux banshee 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov  2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux'
+ '[' 'Linux banshee 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov  2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux' '!=' '' ']'
++ echo linux-gnu
++ grep darwin
+ '[' '' '!=' '' ']'
+++ cat /proc/meminfo
+++ head
+++ awk '/MemTotal:/{print $2}'
++ perl -e 'print int(16106632 / 1024/1024/2);'
+ HALF_MEM=7
+ '[' 7 == '' ']'
+ '[' 7 == 0 ']'
+ MAX_MEM=7g
+ java -splash:/home/tcalderw/Downloads/vstar/extlib/vstaricon.png -Xms800m -Xmx7g -jar /home/tcalderw/Downloads/vstar/dist/vstar.jar

(I note that no VStar window appeared and I got a new shell prompt)

 

tcalderw@banshee:~/PEP/tools$ cat /proc/meminfo | head | awk '/MemTotal:/{print $2}'
16106632

 

Affiliation
Astronomical Society of South Australia (ASSAU)
sh -> dash and -verbose

Hi Tom

I've reproduced the output you see with sh -x and bash -x on a Raspberry Pi4 with JDK 17. The operator error is due to sh being a symlink to dash which has different operator rules. In any case, the bash interpreter is what we want. That turns out to be a distraction however.

However, it runs VStar in both cases.

Can you please try this:

java -verbose -splash:/home/tcalderw/Downloads/vstar/extlib/vstaricon.png -Xms800m -Xmx7g -jar /home/tcalderw/Downloads/vstar/dist/vstar.jar

(i.e. add the -verbose option) and paste the output in a response?

Also, before that, can you modify -Xmx to a smaller value:

java -splash:/home/tcalderw/Downloads/vstar/extlib/vstaricon.png -Xms800m -Xmx3g -jar /home/tcalderw/Downloads/vstar/dist/vstar.jar

Thanks.

David

Affiliation
Astronomical Society of South Australia (ASSAU)
Java 19 tests pass

VStar unit tests and plugin tests are passing under Java 19 (added to GitHub Actions workflow on the issue's branch):

https://github.com/AAVSO/VStar/actions/runs/7223349544

https://github.com/AAVSO/VStar/actions/runs/7223349543

That doesn't mean code that isn't covered by tests isn't the culprit under 19 of course.

The verbose output I see from OpenJDK 17 is the same as the output you emailed to me.

I'm still trying to think through this, but are you able to try a different Java distribution (Oracle, Corretto - an Amazon supported OpenJDK build) or a different version of OpenJDK, specifically 17 since that works on a Raspberry Pi4 I have here?

David

Affiliation
American Association of Variable Star Observers (AAVSO)
Java 17

So I " apt removed" Java19, although that did not seem to actually remove all traces of that release.  Installs note below received a warning: update-binfmts: warning: current package is openjdk-17, but binary format already installed by openjdk-19

I then "apt installed" openjdk-17-jre-headless, but that left me with a missing shared object: libawt_xawt

I removed 17 headless and installed openjdk-17-jre.  With this release VStar will now come up, though with two complaints:

1) libpng warning: iCCP: known incorrect sRGB profile

2) Gtk-Message: 13:43:55.068: Failed to load module "canberra-gtk-module"

 

The first of these were appearing on my old computer.

Affiliation
Astronomical Society of South Australia (ASSAU)
Java 17

Hi Tom

Okay, good to know VStar is running at least.

As you say, the libpng problem is known and I captured it as an issue awhile ago:

  https://github.com/AAVSO/VStar/issues/304

The second is new to me. It appears to be a sound-playback related error, and can be resolved via apt get as per:

  https://www.tecmint.com/failed-to-load-module-canberra-gtk-module/ 

David