BusKill / buskill-app

BusKill's main CLI/GUI app for arming/disarming/configuring the BusKill laptop kill cord
https://www.buskill.in
GNU General Public License v3.0
157 stars 24 forks source link

Cannot open latest August MacOS release #91

Open samxplogs opened 1 month ago

samxplogs commented 1 month ago

Hello

I have error message when clicking on the app and therefore cannot start the application.

You can't open the application "buskill-1723151534" because it may be damaged or incomplete.

image

maltfield commented 1 month ago

This is blocking testing fix for https://github.com/BusKill/buskill-app/issues/77

maltfield commented 1 month ago

Here's the build in question

maltfield commented 1 month ago

@samxplogs can you please run this from the command line and paste the output here?

open buskill-mac-1722214579-x86_64.dmg 

The command line output should have more useful information (eg an error code) than the GUI popup window screenshot

maltfield commented 1 month ago

I get an error when attempting to open this over ssh

maltfield@host ~ % wget https://github.com/BusKill/buskill-app/releases/download/10136271901_mac/buskill-mac-1722214579-x86_64.dmg
...
buskill-mac-1722214 100%[===================>]  27.34M  17.6MB/s    in 1.6s    

2024-09-29 22:28:44 (17.6 MB/s) - ‘buskill-mac-1722214579-x86_64.dmg’ saved [28668096/28668096]

maltfield@host ~ % 

maltfield@host ~ % shasum --algorithm 256 buskill-mac-1722214579-x86_64.dmg 
a908a1bdebd2c238c1edcc057485e19f1a083689ee801159bf13bdf3108b0813  buskill-mac-1722214579-x86_64.dmg
maltfield@host ~ % 

maltfield@host ~ % open buskill-mac-1722214579-x86_64.dmg 
maltfield@host ~ % 

maltfield@host ~ % open -W /Volumes/buskill-*/buskill-*.app/Contents/MacOS/buskill
LSOpenURLsWithRole() failed with error -600 for the file /Volumes/buskill-1722214579/buskill-1722214579.app/Contents/MacOS/buskill.
maltfield@host ~ % 

However, I cannot reproduce this when I execute these commands in the GUI terminal.

In my experience This LSOpenURLsWithRole() commonly translates to: you can't do that over the CLI; do it in the GUI.

Indeed, when I execute these commands in the GUI (well, inside the "Terminal" app in the GUI -- as opposed to my linux terminal's app on the MacMini via ssh), the app opens fine.

@samxplogs did you try this over ssh or some other CLI-only terminal by-chance? Can you please re-try with these commands in your Terminal App on macOS?

wget https://github.com/BusKill/buskill-app/releases/download/10136271901_mac/buskill-mac-1722214579-x86_64.dmg
shasum --algorithm 256 buskill-mac-1722214579-x86_64.dmg 
open buskill-mac-1722214579-x86_64.dmg 
open -W /Volumes/buskill-*/buskill-*.app/Contents/MacOS/buskill

Please paste the full output into a comment on this ticket.

maltfield commented 1 month ago

See also

user@host SDKs % grep -ir '\-610' * 
...
#define procNotFound                    (-600)              /* no eligible process with specified descriptor */
...
user@host SDKs % 
maltfield commented 1 month ago

See also

Error -600

An error occurred while launching.

An unknown error (-600) occurred.

This is the standard Macintosh error procNotFound. It is usually a response when trying to send an AppleEvent to a nonexistent target (or, more technically, when the mach port for AppleEvents for that target cannot be found). This would usually be generated by the toolbox, but Entourage generates that error in these cases:

(1) if Entourage cannot find the Alerts Daemon (usually found in the Office subfolder) to launch to show the "toasts" (notifications that new mail has been received),

(2) if Entourage is trying to open a document and cannot find the Finder application (this is usually when you're opening Entourage on a system that is too old, so probably not your case), and

(3) in some generic process code that tracks whether other processes (e.g., the Database Daemon) are running.

samxplogs commented 1 month ago
  1. It seems the shasum does not match

% shasum --algorithm 256 buskill-mac-1722214579-x86_64.dmg

a908a1bdebd2c238c1edcc057485e19f1a083689ee801159bf13bdf3108b0813 buskill-mac-1722214579-x86_64.dmg

  1. open buskill-mac-1722214579-x86_64.dmg

This mount right away the .dmg image and I have the exact same output as stated on top of this ticket.

  1. open -W /Volumes/buskill-/buskill-.app/Contents/MacOS/buskill

The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-128 "userCanceledErr" UserInfo={_LSLine=4129, _LSFunction=_LSOpenStuffCallLocal}

maltfield commented 1 month ago

@samxplogs did you obtain the file with this command?

wget https://github.com/BusKill/buskill-app/releases/download/10136271901_mac/buskill-mac-1722214579-x86_64.dmg

because if you get a different file than I get when I execute that command, we have a much bigger problem...