guijs icon indicating copy to clipboard operation
guijs copied to clipboard

Not opening on MacOS

Open joshwcomeau opened this issue 5 years ago ā€¢ 38 comments

Downloaded the MacOS zip, tried opening it, and I'm afraid nothing happens; No application appears to open.

Tried copying to the Applications folder, still no luck.

I'm on MacOS Mojave, 10.14.6 (18G3020)

Hope it helps! Really excited to check this out :)

joshwcomeau avatar Feb 21 '20 16:02 joshwcomeau

Confirmed to not work on my side too. If it helps, I got the following message: "ā€œguijsā€ cannot be opened because the developer cannot be verified. macOS cannot verify that this app is free from malware."

macOS Catalina, Version: 10.15.3 (19D76)

everttrollip avatar Feb 21 '20 16:02 everttrollip

App opens but crashes directly after the splash screen when the installed node version is >= 12 otherwise it shows a screen urging you to update to >= 12.

The crash-log does not look quite promising - but maybe it helps:

Crashed Thread:        Unknown

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000700004962000  rcx: 0x0000700004961758  rdx: 0x0000000000000000
  rdi: 0x000000000000cf2f  rsi: 0x0000000000000006  rbp: 0x0000700004961790  rsp: 0x0000700004961758
   r8: 0x0000000201643f70   r9: 0x0000000000000100  r10: 0x0000000000000000  r11: 0x0000000000000206
  r12: 0x000000000000cf2f  r13: 0x0000000000000000  r14: 0x0000000000000006  r15: 0x000000000000002d
  rip: 0x00007fff674c82c2  rfl: 0x0000000000000206  cr2: 0x00007fff9db05188
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


Binary images description not available


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 56450378
    thread_create: 0
    thread_set_state: 34599

dfelber avatar Feb 21 '20 17:02 dfelber

I didn't get an error, but got this: Node.js not found on your system image

i have Node 10.17.0 installed when i run node -v.

swyxio avatar Feb 21 '20 17:02 swyxio

@everttrollip - did you try the ctrl-click / right click and then open? it should enable you to open it then.

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

@sw-yx - you need to have minimum node 12.

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

@nothingismagick I get the same as @sw-yx with node v13.5.0 Screenshot 2020-02-21 at 18 17 30

I'm using volta to manage node version, could that be related?

rigor789 avatar Feb 21 '20 17:02 rigor789

Think I found my mistake - creating a new bundle for you to test

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

@nothingismagick oh, TIL - might want to check and show a nice warning or mention in release notes

swyxio avatar Feb 21 '20 17:02 swyxio

Please let me know if this resolves it for you. guijs.app.zip

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

@rigor789 - I never heard of volta before - but if node is in your path it should just work. Please let me know if the version i posted above works now.

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

I just tried it, but seems to crash as soon as it opens.

Digging a little - seems like it's trying to run npm install -g @guijs/server-core but global installs are not directly supported with volta - instead they need to use volta install @guijs/server-core.

I installed it manually, and I'm able to run the new version now!

I guess the userbase for Volta is not too large - it's lightweight nvm alternative in a nutshell.

rigor789 avatar Feb 21 '20 17:02 rigor789

Please let me know if this resolves it for you. guijs.app.zip

the one on the releases page (20+ min ago) did not work

the one linked in the comment does! thanks for the fix

ZainW avatar Feb 21 '20 17:02 ZainW

@rigor789 - oh! I'll add that to the release notes. Thanks for the heads up. That's what happens when you make assumptions I guess. Cheers

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

@nothingismagick cool! I don't think many will run into this - but hey, nice to have it noted :)

Thanks for the fix!

rigor789 avatar Feb 21 '20 17:02 rigor789

I updated the binary in the release too.

nothingismagick avatar Feb 21 '20 17:02 nothingismagick

I'm not able to install, even with the updated binary.

OSX 10.14.6 node v12.6.0

Node managed via nvm, but confirmed that the v12 binary is in my PATH. The icon bounces in my dock one time, then disappears - no splash screen or anything. Not able to find anything significant in system console. Just a mention of a Plugins folder not found (non-fatal):

Non-fatal error enumerating at <private>, continuing: Error Domain=NSCocoaErrorDomain Code=260 "The file ā€œPlugInsā€ couldnā€™t be opened because there is no such file." UserInfo={NSURL=PlugIns/ -- file:///Applications/guijs.app/Contents/, NSFilePath=/Applications/guijs.app/Contents/PlugIns, NSUnderlyingError=0x7fbb9142faa0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

puglyfe avatar Feb 21 '20 18:02 puglyfe

"Node.js was not found on your system"

OSX 10.15.3 node v12.6.1

adhamfarrag avatar Feb 21 '20 18:02 adhamfarrag

@puglyfe - that is very bizarre - we don't have a Plugins folder or anything about plugins in our apps Info.plist

Here is a stupid workaround that SHOULD get the proper $PATH into the app:

cd ~/Downloads
open guijs.app/Contents/MacOS/guijs

nothingismagick avatar Feb 21 '20 19:02 nothingismagick

@puglyfe - maybe its because we aren't shipping translations.

sudo spctl --master-disable

https://github.com/micahflee/onionshare/issues/846#issuecomment-499652547

But we are definitely going to have to start signing the application, I think that will solve most of these "growing pains" problems too.

nothingismagick avatar Feb 21 '20 19:02 nothingismagick

āžœ  ~ open /Applications/guijs.app 
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/guijs.app.

@nothingismagick this seems to be getting into some weird low level system behavior. i'm not comfortable taking a sledgehammer to system security policies to try this yet. i'll keep poking around and report back if i learn anything.

puglyfe avatar Feb 21 '20 19:02 puglyfe

open guijs.app/Contents/MacOS/guijs worked for me

alonp99 avatar Feb 21 '20 19:02 alonp99

open guijs.app/Contents/MacOS/guijs worked for me

Nice one! That worked for me as well.

puglyfe avatar Feb 21 '20 19:02 puglyfe

Over the next few days I'll circle back and do a low-level schematic of how this all works.

nothingismagick avatar Feb 21 '20 19:02 nothingismagick

@nothingismagick I tried the ctrl-click to open but it still didn't work for me.

Please let me know if this resolves it for you. guijs.app.zip

This didn't help me either. Still can't open on Mac

everttrollip avatar Feb 21 '20 21:02 everttrollip

@everttrollip - last thing that really has to work: open a console and navigate to the place where the download was saved:

cd ~/Downloads

make sure the app is unzipped and then run

open guijs-macos.app/Contents/MacOS/guijs

(Or whatever it is that the file is named.)

nothingismagick avatar Feb 21 '20 22:02 nothingismagick

@nothingismagick not working, no. Running open in the terminal doesn't work around the same issue as earlier: "ā€œguijsā€ cannot be opened because it is from an unidentified developer."

everttrollip avatar Feb 21 '20 22:02 everttrollip

@everttrollip This might help you in the meantime until we get the signing sorted:

https://support.apple.com/en-gb/guide/mac-help/mh40616/mac

nothingismagick avatar Feb 21 '20 22:02 nothingismagick

I updated the binary in the release too.

Can confirm that the latest (updated) binary is now working for me too. Thanks!

frankieshakes avatar Feb 21 '20 23:02 frankieshakes

The latest binary has the issue where if your current nvm version is < node 12, and you fix it, you can't re-open it -- it just bounces once in the dock and then exits.

You need to delete the app from Applications and re-install it after changing your nvm version to >= 12.

Should that go into a separate issue?

JessicaSachs avatar Feb 22 '20 08:02 JessicaSachs

@JessicaSachs - yes please make a new issue about that, and thanks for debugging!

nothingismagick avatar Feb 22 '20 10:02 nothingismagick