-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with TOPCAT v4.9 MacOS DMG file #65
Comments
I was literally just looking for how to report something that sounds like this problem when you posted this to the discussion board! Outcomes:
This doesn't make any sense bc
and
works completely fine with the version 4.9 jar file. finally things you might need:
|
Hi Gus. This is actually a somewhat different problem than the one I mentioned at the top, though it's related so here's a good place to discuss it. It seems that MacOS (or something) is picky about what/where the JRE is that it's looking for. Upgrading/re-installing Java may fix this, or at least turn it into a different problem... Any java version >=8 ought in principle to be OK, but based on the reports I've had so far, OpenJDK 21 from https://jdk.java.net/ might be a good bet. That comes as a tar.gz archive which may or may not be to your taste... can anybody recommend an ARM JRE that works with the topcat 4.9 DMG? |
So I'm the one with this report: "Corretto Java 8: works on Intel, crashes on ARM". I think we'll just end up seeing if those that need it can get used to using the .jar file instead in the interim as we have a pressing need to get the arm version of Corretto out. |
I've tried a few different OpenJDK builds for ARM 64 on M1 Pro MacBook Pro (macOS 14.1).
Maybe version 8 does not work nicely with Apple Silicon? I'll use one of the two version 21 JRE builds. |
I am still looking into this, but haven't reached a conclusion yet ... It seems that running |
A fragment of an answer: an excutable shell script named A different fragment: I think there are no longer any good macOS technical mailing lists, but Apple.SE is generally quite reliable for questions of this sort. |
I'm running successfully TOPCAT 4.9 in two MacBook Air which differ only in the RAM available.
The other one is running the Oracle's version, with 16 GB RAM:
Thank you! |
I'm clutching at straws a little bit here, but I've had a go at building a different version of the DMG file that I'm hoping (a) will work on both ARM and Intel and (b) won't crash on startup. If anybody here has experienced a crash at startup (not just "can't find java 8") and is willing to have a try with a different version, I'd be grateful. The new one is at https://www.star.bristol.ac.uk/mbt/releases/topcat/pre/topcat-full-d.dmg |
Apologies, the link I posted in the previous comment was initially wrong - I've edited it and it should be correct now. |
I've successfully switched sides from "can't find java 8" to crashing on startup! Here is my current install (8 JRE not SDK and not 21)
I'd have to spend more minutes than I have figuring out how to install 21 right now. Here is my current report:
|
Thanks Gus, that's very useful. Doesn't get me much closer to a fix, but it does narrow things down a bit. |
OK here we go again. I've taken a completely different approach this time, so I'd be surprised if we see exactly the same problems as before... This time there are two alternatives, one which includes a bundled Java Runtime Environment (it's Corretto 8) and one which does not.
I believe:
Again, I'd be grateful if somebody could have a go running these. If they do work, I'd be interested in anything weird/suboptimal/different from the previous arrangement that you notice. |
Hi Mark, I decided to update TOPCAT today and encountered the Java problem described above. I tested your JRE bundle (topcat-full-e.dmg) and, despite a security warning (resolved by removing the quarantine attribute using "xattr -d com.apple.quarantine /Applications/TOPCAT.app"), it is running smoothly on my M1 Pro with Sonoma 14.1.2. Thanks! |
That is good news, thank you @mjcowley. Given the variability of experience I've seen so far, I'd still welcome reports of other people's attempts. |
Here's my report:
Gus |
Thanks Gus. That corresponds to the message you were getting before, i.e. not being able to find a suitable Java 8 on your machine (even though apparently you have one). So at the expense of downloading quite a few more bytes (the -full version), it seems that it's possible to get around that, and the crash seems to have gone away. This is looking fairly positive. |
Contextually, yes the same popup/warning. Precisely, the popup is completely different, which I assume is a TOPCAT not a Gus's computer change. |
So I tried the “full” — with the xattr modification — and it launches on my Sonoma M1 box here.
I tried the “light” (same xattr) with Corretto 8 (arm version) and it launched — it also launched with Corretto 21
So promising from my end!
- Steve
… On Dec 1, 2023, at 10:35 AM, Mark Taylor ***@***.***> wrote:
Thanks Gus. That corresponds to the message you were getting before, i.e. not being able to find a suitable Java 8 on your machine (even though apparently you have one). So at the expense of downloading quite a few more bytes (the -full version), it seems that it's possible to get around that, and the crash seems to have gone away. This is looking fairly positive.
—
Reply to this email directly, view it on GitHub <#65 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ART5QHVBH6LGT4ZI7U4FF23YHH2LHAVCNFSM6AAAAAA64RKKQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWGMYTONJWHE>.
You are receiving this because you commented.
|
I can confirm that the topcat-full-e.dmg version works with the xattr fix on a MacBook Air M1 (Model A2337) using Sonoma 14.1.2 as well. I got the same popup with the lite version. |
@augustfly and @davidwcraig if I understand your reports correctly, you have java (>=1.8) installed on your machine, but the |
I reported this before, but this time I dug a little deeper. This may be random, unhelpful information but:
which is the same timestamp as everything else in
digging around in the binary's signature:
hmmm, unsure if that is helpful, but that looks like
|
Right now I don't have any jre installed, sorry! The latest version of Oracle's Java would not install on my machine at all (u391) I got an 'error 1' from the installer that was not very informative. I also tried to use OpenJDK installed with homebrew, but I could not get that to work earlier. I was trying several options and realized just now that I had removed OpenJDK. If I get a chance soon I will try it again. |
Addition: I'm not sure I tried topcat-lite-e with openjdk, so I am not very informative. |
Thanks @davidwcraig - I think I have enough to go on from @augustfly so don't worry too much about this. |
I've given up on the -lite DMG file, since it fails for reasons that I don't understand on some Macs, so I will be offering only one DMG file for download in future, topcat-all.dmg, which contains a bundled (Corretto 8) JRE. This is built using Install4j, a rather nice commercial multi-platform installer builder application which is kind enough to offer free licences to open source projects. This version is now available for v4.9 on the TOPCAT home page at topcat-all.dmg. It's not identical to the one that various people here have tested, but it should be close enough that I expect it to work on all reasonable ARM or Intel Macs. But if anybody here is willing to try it out and check, I'd be grateful for reports of problems. If I don't hear anything in the next few days I'll announce the new DMG file on the mailing lists. Hopefully this is the end of this story for now. Many thanks to all those who have helped me to investigate it and sort it out. |
I've tested out v4.9 for a few hours today and didn't encounter any problems, Mark. The only thing was the need to remove the quarantine attribute, but other than that, it installed without a hitch on macOS Sonoma 14.1.2. |
Background
Alongside the platform-independent
topcat-full.jar
file which I generally recommend for running TOPCAT, I also provide as a convenience to MacOS users atopcat-full.dmg
file. This is built using https://github.com/TheInfiniteKind/appbundler/.In topcat versions before v4.9, the topcat-full.dmg file only worked for Intel architectures. Chris Carroll kindly supplied a version for topcat v4.8-8 that worked for ARM (Apple Silicon) but not Intel, still available at https://www.star.bristol.ac.uk/mbt/releases/topcat/v4.8-8/topcat-full-b.dmg This one is built differently than the previously supplied one (using jpackage) and it bundled the Java Runtime Environment with it, so it's much larger.
Current status
At TOPCAT v4.9 (1 Nov 2023), I changed the way that the DMG file is built and it is now supposed to work for both Intel and ARM (an updated version of appbundler contains a fat version of the JavaAppLauncher binary). It does indeed work for some users on both Intel and ARM, but others have had difficulties, namely java crashes at startup on ARM.
I don't know why this is, but it looks like a bug in the MacOS ARM java. Whether it happens or not may depend on the java installation. I so far have reports of:
But maybe it's not the java installation after all and there's something else going wrong. So I'd appreciate user reports of what does and doesn't work for you on ARM.
Note that as far as I know running java on the topcat-full.jar file works in all cases, so if you can live without clicking on a yellow cat's head, just do:
Note also this is not about whether MacOS wants to prevent you from running this application, that's a separate issue discussed in the FAQ.
Next steps
This issue serves as a place for:
So if you've tried running the TOPCAT v4.9 topcat-full.dmg file on ARM and it either has or hasn't worked for you, and a setup like yours has not already been noted here, please consider adding a comment to report your experience.
The text was updated successfully, but these errors were encountered: