FreeShow icon indicating copy to clipboard operation
FreeShow copied to clipboard

freeshow application freezes on start up

Open EstherOgunshile1 opened this issue 2 years ago • 16 comments

When i open the app, the application just hangs on the loading page. It does not open I currently a mac user

EstherOgunshile1 avatar Feb 03 '24 10:02 EstherOgunshile1

Weird. Are you able to open the application using the command line and see if you get any errors there?

vassbo avatar Feb 03 '24 12:02 vassbo

how do i do this, from the command line?

EstherOgunshile1 avatar Feb 03 '24 20:02 EstherOgunshile1

Check out this: https://www.quora.com/How-can-you-start-an-app-using-terminal-in-Mac-OS-X

vassbo avatar Feb 04 '24 10:02 vassbo

Hi, I gave it a try via the terminal on my mac and still having the same issue. I also tried downgrading to see if it was the version, all the way to v0.94. It still hangs at this point and does not give any errors. freeshow screnshot

EstherOgunshile1 avatar Feb 06 '24 19:02 EstherOgunshile1

Thanks. That's really strange. I would have thought that it would show an error in the terminal at least. Not an expert on macOS.

Does the program have the proper read/write permissions?

vassbo avatar Feb 06 '24 23:02 vassbo

Are you able to navigate to this path: ~/Library/Application Support/FreeShow/ And see if you have an error_log.json file there, if you do, you can send that here.

vassbo avatar Feb 06 '24 23:02 vassbo

I am unable to find freeshow in the folder Application support. Is there anywhere else I could find it?

EstherOgunshile1 avatar Feb 07 '24 08:02 EstherOgunshile1

It should be there.. Maybe that's the issue then. 🤔

@jzongker Do you have any idea as to why it won't start up on this specific OS/device?

vassbo avatar Feb 07 '24 08:02 vassbo

hi does anyone know what i can do to fix this?

EstherOgunshile1 avatar Feb 12 '24 21:02 EstherOgunshile1

Not sure if this helps. But first try uninstalling the entire application, then install it again.

But before you open, please check out the Mac security settings. Go to settings, "Security & Privacy", then find a list of "Privacy" options. Here one should be "Files and Folders", make sure FreeShow is allowed here, also please try some of the other options that makes sense, then try opening the application again. Does this make any difference?

As a last resort you can try opening a local version of the dev environment to see if you get any errors there.

vassbo avatar Feb 29 '24 10:02 vassbo

Hi, Sorry for the delay in responding. I gave adding freeshow to the privacy and security, a go and didnt get anywhere(freeshow still hangs), will give the dev environment a try. privacy screenshot

EstherOgunshile1 avatar Mar 12 '24 21:03 EstherOgunshile1

Okay. You need to install node js and the download the files in this project on GitHub, then extract and from the CMD, run "npm install", and then "npm start".

vassbo avatar Mar 12 '24 22:03 vassbo

Okay gave the dev environment a try, this is what i am getting: dev environment

EstherOgunshile1 avatar Mar 12 '24 22:03 EstherOgunshile1

Could not load app content. Please check console for any errors! - got this message too at the end My mac does come with a console application, which is kind of like a log file for my whole system but I don't know how to find which error is for what application.

EstherOgunshile1 avatar Mar 12 '24 22:03 EstherOgunshile1

Thanks! Looks like this is the issue, but not sure how to fix it: image

The only simular issue I could find was this: https://github.com/quasarframework/quasar/issues/16741

vassbo avatar Mar 12 '24 22:03 vassbo

Looks like a pretty new error, found these also:

  • https://github.com/jdms754/electron-forge-vite-esm-test/issues/1
  • https://github.com/electron/electron/issues/37876#issuecomment-1984873828

vassbo avatar Mar 12 '24 22:03 vassbo

Oh Okay, Please let me know if you do find a solution as I am still unable to use freeshow

EstherOgunshile1 avatar Apr 25 '24 19:04 EstherOgunshile1

Just was wondering if this new error means anything to you: (node:14564) electron: Failed to load URL: http://localhost:3000/ with error: ERR_CONNECTION_REFUSED (Use Electron --trace-warnings ... to show where the warning was created) Failed to load window: {"errno":-102,"code":"ERR_CONNECTION_REFUSED","url":"http://localhost:3000/"} [14564:0425/201405.984128:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)

EstherOgunshile1 avatar Apr 25 '24 19:04 EstherOgunshile1

I also found out how to send over a log file for this issue from the console app, I have attached it to this comment. FreeshowLog.txt

EstherOgunshile1 avatar Apr 25 '24 19:04 EstherOgunshile1

Thanks. Not sure why it does not load, but it should not throw ERR_CONNECTION_REFUSED.

vassbo avatar Apr 26 '24 14:04 vassbo

Does adding this to scripts/entitlements.mac.plist change anything?

<key>com.apple.security.app-sandbox</key>
<true/>

vassbo avatar Apr 27 '24 08:04 vassbo

yeah it removed the ERR_CONNECTION_REFUSED error but not the other errror: [31595:0427/211902.964330:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1) Loading content again. App is probably not finished building yet

EstherOgunshile1 avatar Apr 27 '24 20:04 EstherOgunshile1

Okay, great! I found out the "Autofill.enable' wasn't found" is just a warning that can be ignored. Did it load the app interface after waiting 2 minutes?

vassbo avatar Apr 28 '24 11:04 vassbo

The app still hangs at startup and does not load

EstherOgunshile1 avatar Apr 28 '24 11:04 EstherOgunshile1

Okay, please try changing this from false to true in your dev environment, and check if you get any errors in the browser console! https://github.com/ChurchApps/FreeShow/blob/a06825266b4c96b3dcaf0389636db435b02ae295/src/electron/utils/windowOptions.ts#L28

vassbo avatar May 01 '24 14:05 vassbo

Okay tried this and it finally loads! Was glithcing for a bit and then showed this: random freeshow error

screenshot of terminal: terminal sc

But then opens like normal: freeshow working

errors on browser console before opening like normal: console error 1 on startup console error 2 on startup

Thanks for your help, just was wondering how to get this working outside the dev environment?

EstherOgunshile1 avatar May 01 '24 22:05 EstherOgunshile1

Awesome! Maybe the error in the fist image has something to do with it.. Looks like it took a very long time to load. 🤔

vassbo avatar May 01 '24 22:05 vassbo

I think another application may have port 3000 in use..? When freeshow isn't running maybe just open up a web browser and go to http://localhost:3000/ and https://localhost:3000/, or run netstat from a terminal.

jzongker avatar May 02 '24 01:05 jzongker

Good suggestion @jzongker. I still don't get why it does not load in production in the first place in this scenario, because it doesn't use any ports to run the main application. 🤔

vassbo avatar May 02 '24 06:05 vassbo

Just checked and port 3000 is not in use: localhost

EstherOgunshile1 avatar May 02 '24 13:05 EstherOgunshile1