Giter Club home page Giter Club logo

Comments (26)

Megs108 avatar Megs108 commented on July 29, 2024 1

Hi,

No problems after deleting, thankfully, and this new version of v1.2.0 works! Very happy over here.

Thank you for all your help and patience with explaining things to me.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

It's Megs108 again.
I thought of this after but would the issue be resolved by my deleting/removing OpenComic from my laptop and then re-downloading it from the App Store?

Please let me know! Thanks.

from opencomic.

ollm avatar ollm commented on July 29, 2024

Hi.

If you have downloaded OpenComic from the App Store, the following steps should solve this problem.

Close the error message by clicking Ok, then click on OpenComic in the top bar > Open folder and open your desktop folder (Or the folder that is giving you an error at this moment), this should solve it.

This is because applications from the App Store do not have reading permissions to read certain folders due the App Sandbox and to do this the user has to grant permissions (In this case, the permission is granted by the user through the open folder dialog).

How did you add the folder to OpenComic? Through drag and drop? This should be disabled in the latest version of OpenComic (v1.2.0), as permissions are not granted using this method electron/electron#40678. From the screenshot, it looks like you are using v1.0.0. I recommend that you also update to the latest version through the App Store or from the Realeses page (Depending on where you have it installed from).

Let me know if this can't resolve the error.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

Thanks for telling me. It worked to remove the file and then I also upgraded the App however now when I open it all it shows is a blank page with just the three buttons top left (close, expand and minimise)..... what should I do now?

from opencomic.

ollm avatar ollm commented on July 29, 2024

Do you see an error when opening the application?

You can also open the console to see if there are any errors in it, I leave you screenshots of how to do it.

Depending on whether the error occurs very early, the options may be in different places.

Captura desde 2024-04-29 10-03-21

Captura desde 2024-04-29 10-11-04

Or using the following shortcuts:

⇧⌘I shift+command+I
⎇⌘I alt+command+I

The following console should appear, if there are any errors it should appear there:

Captura desde 2024-04-29 10-17-23

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,
There is no error message upon opening and nothing happens even after I click on Toggle DevTools. I also tried the shortcut and that didn't work either. Would restarting my computer help this? Or is there something else I can try?

I think - if I understood your comment above - the error might happen later? As I find Toggle under Debug not View.

Screenshot 2024-04-29 at 16 27 24

from opencomic.

ollm avatar ollm commented on July 29, 2024

Would restarting my computer help this?

If you haven't tried it yet since the error appeared, you can try it, also try opening again the DevTools after rebooting (Check that it is not opening in a new window)

I think - if I understood your comment above - the error might happen later? As I find Toggle under Debug not View.

OpenComic modifies the default Electron menu bar (The one in the first image) when it opens, if there is an error before doing so, the Electron bar will be maintained and not the OpenComic bar. Seeing that the OpenComic menu bar does appear, there must be an error between this and when the app is displayed.

Or is there something else I can try?

You can try to uninstall and reinstall OpenComic again.

From where you installed it? App Store? I can try to push an update to see if the problem is fixed in the master branch.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,
There is no change even after restarting the laptop (checked for a new window and there wasn't any), so I will now uninstall and reinstall the app.
Will let you know how it goes.
Thanking God it works.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,
So I deleted OpenComic from launchpad and then proceeded to open it from the App Store (which is where I got it from originally) however it does not open. I have tried a number of times now and waited in between - incase it was just lagging - but there is no response.
What happens now?

from opencomic.

ollm avatar ollm commented on July 29, 2024

You can also try deleting the stored data of the app, in case there are any errors in them.

To do this you have to access one of the following folders and delete all the .json files in them (First close the app), the files should have names like config.json, comics.json, cache.json, etc.

/Users/<youUserName>/Library/Containers/org.opencomic.app/Data/Library/Application Support/OpenComic/storage
/Users/<youUserName>/Library/Containers/OpenComic/Data/Library/Application Support/OpenComic/storage

If this doesn't fix the issue, I'll push an update to the App Store with some changes that might fix it.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

Unfortunately I still can't get the application to open from the App Store.

from opencomic.

ollm avatar ollm commented on July 29, 2024

Try this build for macOS, is updated to the master branch (First you have to uninstall the App Store version)

PKG: https://mega.nz/file/3b4nQDJT#eoXC6tDybaYu9P9ZBkEfelm8zMK9TvHnyhQubrPVnsY
DMG: https://mega.nz/file/LDZiUa5Q#fPAH6c_SspKW4VPx_ONwr3ppC2B39QgGnoF9w0Lf0EY

If that doesn't solve it, I will soon try to disable some functions that could cause the issue and send you other build.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

I tried but it comes up with this (below) after I double click the little box in downloads;

Screenshot 2024-04-30 at 14 19 14

Is there something I need to do from my end? And is this download safe?

from opencomic.

ollm avatar ollm commented on July 29, 2024

Is there something I need to do from my end? And is this download safe?

Yes, the download is safe, I builded it myself, but by default Apple blocks all software that is not distributed through the App Store or that is correctly notarized (Notarizing macOS software before distribution), currently, I am not currently certifying OpenComic through notarization to distribute outside App Store without this problem.

You can force the installation of the app using the following steps:

From: https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/mac

  • In the Finder on your Mac, locate the app you want to open.
  • Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
  • Control-click the app icon, then choose Open from the shortcut menu.
  • Click Open.

The app is saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.

Captura desde 2024-04-30 18-54-13 Captura desde 2024-04-30 18-54-29

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

Thank you for showing me how to open your app with this method.
Unfortunately the same thing is happening as it did from the App Store download. I can get it to show in launchpad, put it onto the dock and "open" the application but it's still just a blank page.

I tried to do the debug - toggle, but nothing happened.

In this previous message (copied and pasted below) from you, what folders do I need to access (where are they/how do I find them?) Should I even try this or just wait for you to update the application?

You can also try deleting the stored data of the app, in case there are any errors in them.

To do this you have to access one of the following folders and delete all the .json files in them (First close the app), the files should have names like config.json, comics.json, cache.json, etc.

/Users//Library/Containers/org.opencomic.app/Data/Library/Application Support/OpenComic/storage
/Users//Library/Containers/OpenComic/Data/Library/Application Support/OpenComic/storage

If this doesn't fix the issue, I'll push an update to the App Store with some changes that might fix it.

PS. Not sure if this will mean anything, but when I have the application open in this state of 'being blank' it requires me to click twice on - for eg - the red x to close it and the same thing when I went to quit it I had to do this twice when usually you just press once and the page would close, quit etc. Again not sure if this is useful to figuring out the issue but I thought the more information I could give the better. Sorry for all the hassle and thanks for working to fix this problem.

from opencomic.

ollm avatar ollm commented on July 29, 2024

PS. Not sure if this will mean anything, but when I have the application open in this state of 'being blank' it requires me to click twice on - for eg - the red x to close it and the same thing when I went to quit it I had to do this twice when usually you just press once and the page would close, quit etc. Again not sure if this is useful to figuring out the issue but I thought the more information I could give the better. Sorry for all the hassle and thanks for working to fix this problem.

This is because OpenComic executes some functions before closing (Save reading progress, delete temporary files and delete old cache (Thumbnails)) but due to the error it does not execute correctly, the second time you click it closes directly without doing all this.

The strange thing is that if there is an error an error message should appear or you should be able to open the DevTool, the only thing I can think of that could cause this is that the app is stuck in a loop. You can try check this with the activity monitor, if OpenComic is using a lot of CPU when it is open in the white screen it is probably stuck in a loop.

Captura desde 2024-05-01 10-12-58

In this previous message (copied and pasted below) from you, what folders do I need to access (where are they/how do I find them?) Should I even try this or just wait for you to update the application?

I recommend that you do it, since it could be that some data had not been migrated correctly during the update. I leave you the steps on how to do it.

Copy the following path (already includes your username).

/Users/meg/Library/Containers/org.opencomic.app/Data/Library/Application Support/OpenComic/storage

At first this should work, but if not, try the next one.

/Users/meg/Library/Containers/OpenComic/Data/Library/Application Support/OpenComic/storage

In Finder, in the menu bar tap Go > Go to folder.

Captura desde 2024-05-01 10-01-24

Paste the path and press enter.

Captura desde 2024-05-01 10-08-59

The following files should appear, if so delete them all.

Captura desde 2024-05-01 10-09-15

If the error was related to incorrect data, now opening OpenComic should do so without problems.

Even so, I am going to prepare a build by disabling some functions that could be causing the problem, since in the last version I introduced cache data compression 3ae7cb7 so that they took up less space, and I don't know if this may be causing problems on certain devices.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

So I checked the activity monitor first but OpenComic CPU stays at 0,0 regardless of how long the application is open for.
I then tried to find the folders (using both paths in the end) however I don't think there is any stored data as I just kept getting shown the following folders you see in the screenshot.

Screenshot 2024-05-01 at 10 57 46

The list is slightly longer but there was nothing with OpenComic in it's name/title.

from opencomic.

ollm avatar ollm commented on July 29, 2024

I then tried to find the folders (using both paths in the end) however I don't think there is any stored data as I just kept getting shown the following folders you see in the screenshot.

Sry, it seems the location is different if installing via pkg, the location above is for the version installed from the App Store, the one installed through pkg is the following.

/Users/meg/Library/Application Support/OpenComic/storage

Although now I doubt that this is the problem, since the version installed through pkg should have use a new data, but you can try it anyway.


I have prepared some builds with some changes, you should try them in order.

  1. This build has app cache compression disabled, the compression used is zstd and I think this could be the most likely cause of the problem.
    OpenComic-without-cache-compression

  2. This also has cache compression disabled, but uses the version of electron that OpenComic v1.0.0 used, electron is a framework for creating desktop applications, which is what I use for OpenComic.
    If the previous version has already worked correctly, you can skip directly to the 3rd build.
    OpenComic-electron-25-without-cache-compression

  3. This does not have app cache compression disabled, but it tries to detect if it fails and will not use it in that case db00a00
    You don't need to try it if none of the above has worked for you.
    OpenComic-error-detection-in-cache-compression-electron-25

Another option I would try if everything else doesn't work is to install OpenComic v1.0.0 through the pkg, this worked correctly when you had it installed from the App Store, so it is quite likely that it will work correctly.

OpenComic v1.0.0 PKG from GitHub

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Okay I'll give them a go.
Do I need to first delete the OpenComic I downloaded from the previous package before trying any of the new ones from the list above?

from opencomic.

ollm avatar ollm commented on July 29, 2024

It is not necessary since the previous version is replaced, but if you install the v1.0.0 it would be recommended due it would be downgrading.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Okay so the first two did not work but before trying v1.0.0 do I uninstall this version of OpenComic by moving it to bin and deleting from there?

from opencomic.

ollm avatar ollm commented on July 29, 2024

Yes, that should be enough, although in my case, having the app installed from different sources, I have had to do it from different locations.

If after uninstalling any of them still appear in the search, you can locate and uninstall them with the following.

Captura desde 2024-05-02 10-20-09

Open the app, in the dock right click Options > Show in Finder, now close the app and move the one that appeared in Finder to the trash, empty the trash.

Captura desde 2024-05-02 10-05-51


Now, I think it would be better if you installed version v1.0.0 using the dmg, I tried it first with the pkg, but it did not install correctly and with the dmg it has not given me any problems.

OpenComic v1.0.0 DMG from GitHub

Installation using dmg is done like this:

Double click the dmg file, the following window should appear, drag the OpenComic icon to the Applications folder.

Captura desde 2024-05-02 10-22-39

Now open the Applications folder in Finder, I recommend that before opening the app you check that it is v1.0.0, to do so Right click > Get Info

Captura desde 2024-05-02 10-17-59 Captura desde 2024-05-02 10-19-09

If everything is correct, try now by opening the app, the first time you will have to do it in the same way as the pkg was opened.

  • In the Finder on your Mac, locate the app you want to open.
  • Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
  • Control-click the app icon, then choose Open from the shortcut menu.

The app is saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.

Captura desde 2024-05-02 10-21-28

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

Hi,

Yes! This version is working. It did immediately show the update for v1.2.0 but I've simply dismissed this for now.

One thing though; once I opened the application it showed in the dock, launchpad and also on the desktop (I've included the screenshot of the desktop), must I keep this here or can I bin and delete it? I'm just a little apprehensive I'll cause another issue.... sorry.

Screenshot 2024-05-02 at 13 28 48

Also about v1.2.0 - should I just ignore this for now and only try an update when you have a new one?

from opencomic.

ollm avatar ollm commented on July 29, 2024

One thing though; once I opened the application it showed in the dock, launchpad and also on the desktop (I've included the screenshot of the desktop), must I keep this here or can I bin and delete it? I'm just a little apprehensive I'll cause another issue.... sorry.

You can try deleting it to see what happens, if it is a shortcut nothing should happen.

Also about v1.2.0 - should I just ignore this for now and only try an update when you have a new one?

I think it will not be necessary, since it seems to me that I have found the cause of the error, I have been checking if any OpenComic dependency is incompatible with macOS Catalina 10.15.7 and sharp (Dependency that is used to generate the thumbnails and enhance the downscaled images on reading) had a bug in macOS 10.15 or lower lovell/sharp#3438, I have updated to a fixed version of sharp.

If you can try the v1.2.0 with the fix 153902c

https://mega.nz/file/yPIFWIDa#ZjcJWB0A8ELGNnOiXIG7mOYFqKXIg2uTQauR9TJcbjE

from opencomic.

ollm avatar ollm commented on July 29, 2024

Thanks to you too for trying all the suggestions.

from opencomic.

Megs108 avatar Megs108 commented on July 29, 2024

:)

from opencomic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.