SnosMe / awakened-poe-trade

:heavy_dollar_sign: :hammer: Path of Exile trading app for price checking
https://snosme.github.io/awakened-poe-trade/download
MIT License
2.05k stars 442 forks source link

Mac OS version crashing immediately after opening #1153

Open EdwardLiis opened 8 months ago

EdwardLiis commented 8 months ago

Immediately crashes on launch. Seems like an issue with Accessibility permissions API, since each launch also pops up the Accessibility permissions window, even if that permission is already granted

Report ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Awakened PoE Trade [84277] Path: /Applications/Awakened PoE Trade.app/Contents/MacOS/Awakened PoE Trade Identifier: com.electron.awakened-poe-trade Version: 3.22.10005 (3.22.10005) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2023-12-08 16:04:06.3295 -0500 OS Version: macOS 14.1.2 (23B92) Report Version: 12 Anonymous UUID: 2674022D-B6D7-52E4-480D-B9C1CE16F4C2 Time Awake Since Boot: 220000 seconds System Integrity Protection: enabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Awakened PoE Trade [84277] Application Specific Information: abort() called
jpetaja commented 8 months ago

Noticed same thing. If someone comes up with a resolution please let me know :D

jpetaja commented 8 months ago

Actually I found the solution. Go to Applications > AwakenedPoeTrade > Show Package contets > MacOS/Awakened PoE Trade -script. You have to give access rights to that also, so Terminal in the accessibility list.

E: and start the application from it also

EdwardLiis commented 8 months ago

@jpetaja works like a charm, thx

Aberosh commented 8 months ago

Actually I found the solution. Go to Applications > AwakenedPoeTrade > Show Package contets > MacOS/Awakened PoE Trade -script. You have to give access rights to that also, so Terminal in the accessibility list.

E: and start the application from it also

Getting the same auto-failure with this as well, can you provide additional details? It's VERY likely that I'm missing something in your solution.

stark2727 commented 8 months ago

@jpetaja @Aberosh Can you please explain the steps are bit clearer. I thought I understood what you said but its not working for me.

cprivitere commented 8 months ago

So I had to go to Applications -> Awakened POE Trade -> Show Package Contents -> MacOS -> Double click on Awakened PoE trade and then get the error, enable it in the security settings panel. Then I Double click on it AGAIN and it can run. To be clear, you can't run it the normal way you'd expect to, you have to run /Applications/Awakened PoE Trade.app/Contents/MacOS/Awakened PoE Trade to run the program.

This is all weirdness from not getting the application signed I believe. MacOS can be a pain to do open source apps on. :)

Aberosh commented 8 months ago

Got it, I figured this was what you were doing, and I am still getting failures this way.

This is what appears in Terminal when I follow your steps, which has me suspicious that you have other settings or software installed which is helping. Dunno.

/Users/redacted/.zshenv:.:1: no such file or directory: /Users/redacted/.cargo/env
/Applications/Awakened\ PoE\ Trade.app/Contents/MacOS/Awakened\ PoE\ Trade ; exit;
/Users/redacted/.zshenv:.:1: no such file or directory: /Users/redacted/.cargo/env
pyenv: no such command `virtualenv-init'
➜  ~ /Applications/Awakened\ PoE\ Trade.app/Contents/MacOS/Awakened\ PoE\ Trade ; exit;
2023-12-11 16:19:33.375 Awakened PoE Trade[6385:269556] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
hook_run [1409]: Accessibility API is disabled!
[1]    6385 abort      /Applications/Awakened\ PoE\ Trade.app/Contents/MacOS/Awakened\ PoE\ Trade

Saving session...completed.
Deleting expired sessions...none found.

Ive confirmed that the script is enabled in the Accessibility settings, but it is still crashing immediately after the above.

The crash log includes this line: PC register does not match crashing frame (0x0 vs 0x7FF896CEEA78)

stark2727 commented 8 months ago

So I had to go to Applications -> Awakened POE Trade -> Show Package Contents -> MacOS -> Double click on Awakened PoE trade and then get the error, enable it in the security settings panel. Then I Double click on it AGAIN and it can run. To be clear, you can't run it the normal way you'd expect to, you have to run /Applications/Awakened PoE Trade.app/Contents/MacOS/Awakened PoE Trade to run the program.

This is all weirdness from not getting the application signed I believe. MacOS can be a pain to do open source apps on. :)

Thanks, it also works for me from the script. I think i was assuming once you did the steps above, that you could run it from Applications like normal.

NitroG42 commented 8 months ago

Same as @Aberosh, I added accessibility permission to both Awakened POE Trade, and it still say accessibility is disabled. Pretty sure something in my mac is causing this but not sure what. I tried to reset all accessibility permission using sudo tccutil reset Accessibility, updating to macos 14.2 and on, restarting th mac, still no luck.

NitroG42 commented 8 months ago

OK it litteraly worked just after my post :D after using tccutil, I allowed Terminal to accessibility permission, relaunched /Applications/Awakened\ PoE\ Trade.app/Contents/MacOS/Awakened\ PoE\ Trade and it worked It seems that the "launcher" need the accessibility permission and that's why it doesn't work from desktop ?

Aberosh commented 8 months ago

Wild, did what @NitroG42 suggested (w/o tccutil, just enabling it manually), and it seems to have worked. Still need to enable Awakened via the script, which still throws tons of errors in Terminal... but here we go?

Looks like this approach does not allow actually modifying the search results by turning on and off modifiers, though, as the moment the cursor leaves the item, it kills the window. I hate that I may need to do a league without this.

sharenz commented 8 months ago

For me the following worked:

TedTran2019 commented 7 months ago

Same here as above.

Just make sure to install 3.23.10003, the main website links .10002 for some reason

theofidry commented 7 months ago

For me the app crashes when opening too. It does open when launching from the Terminal directly, but then no hotkey works.

Makzimalist commented 7 months ago

App launches via terminal only, but as said above i cannot use the hotkeys except for open the overlay (shift + space)

MoondogOG commented 7 months ago

Hi guys! I am using MacOS 14.2.1 and I can get the app running through the script . I can access Shift + Space but no other commands are working for me. I tried every single trick to try to make this work but no success... :o(

This is what I get when I run the app via script:

Last login: Mon Jan 15 22:38:20 on ttys000 /Applications/Awakened\ PoE\ Trade.app/Contents/MacOS/Awakened\ PoE\ Trade ; exit;

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. MacBook-Pro-2:~ andreamorim$ /Applications/Awakened\ PoE\ Trade.app/Contents/MacOS/Awakened\ PoE\ Trade ; exit; 2024-01-15 22:43:43.154 Awakened PoE Trade[3611:152739] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES. Checking for update [3611:0115/224344.011879:ERROR:trust_store_mac.cc(844)] Error parsing certificate: ERROR: The policy qualifiers SEQUENCE is empty ERROR: Failed parsing policy qualifiers ERROR: Failed parsing certificate policies

[3611:0115/224344.011989:ERROR:trust_store_mac.cc(844)] Error parsing certificate: ERROR: The policy qualifiers SEQUENCE is empty ERROR: Failed parsing policy qualifiers ERROR: Failed parsing certificate policies

[3611:0115/224344.012188:ERROR:trust_store_mac.cc(844)] Error parsing certificate: ERROR: The policy qualifiers SEQUENCE is empty ERROR: Failed parsing policy qualifiers ERROR: Failed parsing certificate policies

[3611:0115/224344.012244:ERROR:trust_store_mac.cc(844)] Error parsing certificate: ERROR: Failed parsing certificate policies

[3611:0115/224344.012287:ERROR:trust_store_mac.cc(844)] Error parsing certificate: ERROR: Failed parsing extensions

[3611:0115/224344.012345:ERROR:trust_store_mac.cc(844)] Error parsing certificate: ERROR: The policy qualifiers SEQUENCE is empty ERROR: Failed parsing policy qualifiers ERROR: Failed parsing certificate policies

Update for version 3.23.10004 is not available (latest version: 3.23.10004, downgrade is disallowed).

emilnissa commented 7 months ago

I can also confirm that I'm able to get it running but none of the keybinds except the overlay work. Not even if I try to change the keybind. Version 3.23.10005

SnosMe commented 7 months ago

Just clarifying that the macOS build was added with the intent of having something runnable for people on mac, and signaling that I'm willing to accept fixes for it. I don't own the device myself and can't fix/help with anything.

tiltshiftfocus commented 6 months ago

In order to use Awakened PoE Trade as an app, instead of running from Terminal, which is crashing right on start, do the following in Terminal:

sudo xattr -r -d com.apple.quarantine /Applications/Awakened\ PoE\ Trade.app and codesign --force --deep --sign - /Applications/Awakened\ PoE\ Trade.app

Then, make sure Awakened PoE Trade is added in the list in Settings -> Privacy and Security -> Accessibility. If it is added automatically via running the app, remove it from the list and add it manually.

SaloEater commented 4 months ago

In order to use Awakened PoE Trade as an app, instead of running from Terminal, which is crashing right on start, do the following in Terminal:

sudo xattr -r -d com.apple.quarantine /Applications/Awakened\ PoE\ Trade.app and codesign --force --deep --sign - /Applications/Awakened\ PoE\ Trade.app

Then, make sure Awakened PoE Trade is added in the list in Settings -> Privacy and Security -> Accessibility. If it is added automatically via running the app, remove it from the list and add it manually.

That worked, thanks!

MrSpaceBar commented 4 months ago

In order to use Awakened PoE Trade as an app, instead of running from Terminal, which is crashing right on start, do the following in Terminal:

sudo xattr -r -d com.apple.quarantine /Applications/Awakened\ PoE\ Trade.app and codesign --force --deep --sign - /Applications/Awakened\ PoE\ Trade.app

Then, make sure Awakened PoE Trade is added in the list in Settings -> Privacy and Security -> Accessibility. If it is added automatically via running the app, remove it from the list and add it manually.

After applying and reverting a few other fixes in this thread, can confirm this is what ultimately got me up and running. Cheers!

nick4fake commented 4 weeks ago

Unfortunately both @tiltshiftfocus and @sharenz solutions don't work

Edit: nevermind, adding accessibility to Terminal worked

cchance27 commented 3 weeks ago

This is SO WEIRD, removing it from privacy and security, after it was added automatically, and then adding it manually back seems to be what fixed it for me thats ****in weird.

PublicAvenger commented 3 weeks ago

OK, I think I found a more stable fix. I was manually adding permissions and running the app through terminal but the app was super unstable and would crash and freeze almost immediately.

I found some other thread where someone said they've had success using an older version, 3.23. you can download it here https://www.pathofexile.com/forum/view-thread/3129523

I can't remember if I had to manually remove permission and add it back, but this version of the app is stable and working like a charm.

One note: I had to change the settings to "settlers" from "standard". otherwise it's good to go!