HearthSim / HSTracker

A deck tracker and deck manager for Hearthstone on macOS
https://hsreplay.net/downloads/
MIT License
1.15k stars 173 forks source link

patch 2.5.10 not opening #1328

Closed LeSpec closed 8 months ago

LeSpec commented 8 months ago

Patch 2.5.10 crashes immediately after opening on MacOS Catalina, i'm using 2.5.9 for now.

hstracker.log

Bildschirmfoto 2023-10-27 um 16 37 56

fmoraes74 commented 8 months ago

Is there anything more than it crashed on the screenshot? I don't speak German. The log file doesn't contain anything that helps. Please take a look at the Console app and see if there is any information about the crash there as well.

LeSpec commented 8 months ago

Console app shows a crash file, renamed it to txt so i can paste it here: HSTracker_2023-10-28-020849_Mac.txt

Opening via terminal gives an error code:

open -a hstracker
LSOpenURLsWithRole() failed for the application /Applications/HSTracker.app with error -10810.
fmoraes74 commented 8 months ago

Console app shows a crash file, renamed it to txt so i can paste it here: HSTracker_2023-10-28-020849_Mac.txt

Opening via terminal gives an error code:

open -a hstracker
LSOpenURLsWithRole() failed for the application /Applications/HSTracker.app with error -10810.

Thanks for the info. Can you try the information from here: https://superuser.com/questions/1564451/macos-catalina-fails-to-open-certain-apps-with-lsopenurlswithrole-failed-with

Also check if the executable is tagged with quarantine:

xattr /Applications/HSTracker.app/Contents/MacOS/HSTracker

If you see com.apple.quarantine, then that's the case. You can try to open the application from Finder by right-clicking it and allowing to open even though it is downloaded from the Internet.

If these don't work, then we are back at square one.

MrLyle commented 8 months ago

I do see com.apple.quarantine when running that command, but right clicking it in finder and hitting open goes straight to the error message.

fmoraes74 commented 8 months ago

I do see com.apple.quarantine when running that command, but right clicking it in finder and hitting open goes straight to the error message.

Please try the following: xattr -d -r com.apple.quarantine /Applications/HSTracker.app and let me now if that resolves it.

If so, how did you update to version 2.5.10 ?

LeSpec commented 8 months ago

If so, how did you update to version 2.5.10 ?

Manual via "check for updates" and when that failed to launch i downloaded it from github.

Please try the following: xattr -d -r com.apple.quarantine /Applications/HSTracker.app and let me now if that resolves it.

Both versions are tagged with com.apple.quarantine, xattr -dr doesn't help, the difference must be somewhere else.

MrLyle commented 8 months ago

Please try the following: xattr -d -r com.apple.quarantine /Applications/HSTracker.app and let me now if that resolves it.

That didn't help, it still quits right away.

If so, how did you update to version 2.5.10 ?

I had an update notification through the app. I updated it that way, then when it wouldn't launch, I removed it and downloaded a fresh copy through github and it did the same thing.

fmoraes74 commented 8 months ago

Can you try with version 2.5.9 and try the online update? Does that help? You be confirm if the quarantine tag has been removed after running the above command. If you still have a crash, try opening it from terminal:

open -a hstracker

and share any output from that and a crash report found in the Console app.

MrLyle commented 8 months ago

So here's the thing. Downloading 2.5.9 and launching it, it gives the usual popup asking me if I trust the developer and I say yes and it launches normally. Then, using the updater in the app, after I hit install and relaunch, it doesn't give me the same popup asking me if I trust the developer. It just puts it in automatic quarantine and crashes.

After running open -a hstracker, the quarantine tag seems to be gone, but the app still crashes with error -10810.

Here's something that probably matters. The computer I'm running this on is an Intel iMac running Catalina. I have an M2 Macbook Air running the latest version of Sonoma where this problem doesn't happen. 2.5.10 runs just fine on that system. I dunno if that narrows it down to an OS version problem or a Intel/M series problem.

I'll attach the console crash report in a docx document cause it's a lot of text. Let me know if there's anything else you need me to try.

HSTracker Crash.docx

fmoraes74 commented 8 months ago

@MrLyle Thanks for the report. This seems to be caused by the Xcode upgrade. I found some reports from the beta version, so I built with one of the suggested work arounds. Can you try this attached version and let me know if there is any change?

https://drive.google.com/file/d/1qmYDUAyUVcWNyUEmltM5J9ovI0VJ30C0/view?usp=sharing

If it works, I will publish a new version with this change.

MrLyle commented 8 months ago

@MrLyle Thanks for the report. This seems to be caused by the Xcode upgrade. I found some reports from the beta version, so I built with one of the suggested work arounds. Can you try this attached version and let me know if there is any change?

https://drive.google.com/file/d/1qmYDUAyUVcWNyUEmltM5J9ovI0VJ30C0/view?usp=sharing

If it works, I will publish a new version with this change.

Yep, that version asked me to trust the developer like all the prior ones. I gave it permission and it launched normally. Thanks for the all the work man. It's much appreciated.

fmoraes74 commented 8 months ago

Please confirm is official 2.5.11 version solved the problem.

LeSpec commented 8 months ago

downloaded latest patch 2.5.11, works like a charm, thank you for the quick fix

MrLyle commented 8 months ago

I replaced the test version with .11 and it's working well.

fmoraes74 commented 8 months ago

I replaced the test version with .11 and it's working well.

Please use the official version now. I will delete the test version.