w00000dy / WLED-GUI

Cross-platform desktop app for WLED
MIT License
202 stars 8 forks source link

[BUG] Doesn't work on macOs 10.13.6 & 10.15.2 #4

Closed franzuu closed 3 years ago

franzuu commented 3 years ago

Describe the bug Hi! I have two versions of macOs (two computers). When I try to open the app, it shows error. Is this app compiled only for some specific versions of macOs?

Expected behavior The app should open?!

Screenshots High Sierra (10.13.6) gives this error: Screen Shot 2020-10-16 at 10 31 43

Catalina (10.15.2) gives this error: 0-02-05-fbe5aced3fb6166b7fd06e76908899608963ffa84917e514c8369712ffe6e70f_1c6d9e18ad9f6b

System:

NeariX67 commented 3 years ago

Same on 10.15.6

w00000dy commented 3 years ago

Hi Guys! Thank you for telling me this! The problem is I don't have a computer with MacOS, so i couldn't test it before uploading. I assumed that it will work, but apparently it won't. 😟 Now i have a question: Is this a new bug, or did it work in previous version of WLED-GUI? If this is your first time using WLED-GUI please tell me. You don't have to test every previous version. 🙂

franzuu commented 3 years ago

Thank you for quick reply! For me, it is first time using it.

NeariX67 commented 3 years ago

Running a terminal command to launch the GUI returns this: justin@Justins-iMac WLED-darwin-x64 % open -a WLED.app LSOpenURLsWithRole() failed for the application /Users/justin/Downloads/WLED-darwin-x64/WLED.app with error -10810. Can't get any other error out of it

NeariX67 commented 3 years ago

Running chmod +x WLED.app/Contents/MacOS/WLED makes the app executable. Then you can allow the launch in the system preferences privacy tab. This brings up a new messages that apple can't trust the developer... After clicking open anyway [...]

As I'm writing this comment, it somehow doesn't work anymore and can't get the error to paste here... Damn...

w00000dy commented 3 years ago

@franzuu Did you run thechmod +x WLED.app command?

franzuu commented 3 years ago

Tried "+x WLED.app", still the same on both computers. Edit: I also tried "chmod +x WLED.app/Contents/MacOS/WLED" and on Catalina, it did something, but it shows now the same error like in High Sierra

w00000dy commented 3 years ago

Hey, sorry for the late reply. Have you tried changing the permission to 755 for the folder? What was the permission before changing? And wich user is the owner of the folder?

Walkersneps commented 3 years ago

Hi! I was getting the same problem and I just managed to solve it while writing this.

The error popup gave me the following error:

Process:               WLED [956]
Path:                  /Volumes/VOLUME/*/WLED.app/Contents/MacOS/WLED
Identifier:            com.electron.wled
Version:               0.4.0 (0.4.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           WLED [956]
User ID:               501

Date/Time:             2020-11-27 13:29:39.857 +0100
OS Version:            Mac OS X 10.13.6 (17G14042)
Report Version:        12
Anonymous UUID:        1DE3E31C-1BBE-B380-6772-07A430E39321

Time Awake Since Boot: 3800 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        0

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

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: /Volumes/VOLUME/*/WLED.app/Contents/MacOS/WLED
  Reason: no suitable image found.  Did find:
    /private/var/folders/mt/gk57y59n4xg5w5t2jvm7fz640000gn/T/AppTranslocation/4142FACC-3EDB-4297-A5D5-FD6742068662/d/WLED.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short
    /private/var/folders/mt/gk57y59n4xg5w5t2jvm7fz640000gn/T/AppTranslocation/4142FACC-3EDB-4297-A5D5-FD6742068662/d/WLED.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: stat() failed with errno=1

Binary Images:
       0x102e65000 -        0x102e8cff3 +com.electron.wled (0.4.0 - 0.4.0) <5CF444E6-280A-33A3-87FF-B56A6B4EC25C> /var/folders/*/WLED.app/Contents/MacOS/WLED
       0x10e2f1000 -        0x10e33badf  dyld (551.5) <CB9BFB56-4511-36F1-A546-891FF770C01C> /usr/lib/dyld

From Library not loaded: @rpath/Electron Framework.framework/Electron Framework I got that for some reason it couldn't load the framework, so I worked around it by copying all the files contained in WLED.app/Contents/Frameworks/Electron\ Framework.framework/Versions/A/ into WLED.app/Contents/Frameworks/Electron\ Framework.framework/. Then proceeded to the the same with the other 3 frameworks (Squirrel, ReactiveCocoa, Mantle).

w00000dy commented 3 years ago

@Walkersneps Thank you very much for telling me this! Could you please share how you had unarchived the zip?

Walkersneps commented 3 years ago

Sure! I just let it use the default macOS Archive Utility. Do you think the unzipping program may be the problem?

w00000dy commented 3 years ago

I read in another article that some useres had problems with "iZip". But you don't use it, so it is not the problem. I assume there is a problem with the links. But I have to take a closer look.

w00000dy commented 3 years ago

@Walkersneps Just to make it clear, this version works for you? I copied everything like you told me.

Walkersneps commented 3 years ago

@WoodyLetsCode That's a bit weird: Archive Utility doesn't unzip it, giving (Error 21 - Is a directory.), whereas trying with "The Unarchiver" throws some error popups but after ignoring them, I get a correctly unzipped directory with a working app.

Edit: the errors thrown by The Unarchiver are Unable to extract file "WLED-darwin-x64/WLED.app/Contents/Frameworks/Electron Framework.framework/Helpers" and similar ones for every subdirectory of each framework.

w00000dy commented 3 years ago

@Walkersneps Can you try this one? This should work.

Walkersneps commented 3 years ago

@WoodyLetsCode Yep, this one works fine

w00000dy commented 3 years ago

Thank you for telling me this!

w00000dy commented 3 years ago

Hello @franzuu , @NeariX67 and @Walkersneps , thank you for reporting me this. Just a few minutes ago i published version 0.5.0. In this version you have a .dmg-file which should work for you. Have a good time!