Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Fetching Crash #18

Open
d-voidheart opened this issue Feb 14, 2022 · 7 comments
Open

Fetching Crash #18

d-voidheart opened this issue Feb 14, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@d-voidheart
Copy link

Hey friend, first of all, thank you a lot for the 4PT. I'd like to advertise about some problems with 2.60 version. When I add long repositories (many lines of script in repo.yml file), it crashes 4PT many times. I don't know if the homebrew has item limit, but checking the logs I realised that your default repo load more than 300 lines of script, and the repo that I added has almost this value too. I've tried to remove your default repo but I can't. Other bug is about the delete files action, sometimes when I try to delete it crashes 4PT again.

@d-voidheart d-voidheart changed the title Fetchind Crash Fetching Crash Feb 14, 2022
@victorrjimenezz victorrjimenezz self-assigned this Feb 14, 2022
@victorrjimenezz victorrjimenezz added the bug Something isn't working label Feb 14, 2022
@victorrjimenezz
Copy link
Owner

victorrjimenezz commented Feb 14, 2022

Hi!! I’m happy to see that you’re interested in the app. Regarding your concerns:

there should be no limit to the amount of repositories/packages loaded. Could you please share the logfile of a crashed session?

regarding the app crashing when deleting, does it crash when deleting a download, a repository, or both? Could you also share the logfile of a crashed session?

Thank you for sharing your concerns, this helps 4pt improve a lot! :)

@d-voidheart
Copy link
Author

Hey friend. It crashes when I try to delete repositories. I realised something: the first time we open 4PT and it just has default repo (www.4pt-project.com) it works really well. Then we add a new repo and wait it loads, and it also works. But when we close 4PT and reopen later with the repos saved, it tries to load all repos at the same time and I GUESS that there is the error, I think it causes the crash when 4PT tries to load all repos at the same time and it gives some conflict. I don't have the log files anymore cause I was trying to solve in some ways. I realised when the 4PT already has more than 1 repos saved, and it crashes, we can solve this turning the internet off and opening the app. When it opens, it shows the registered repos links but without load, then if you delete the default repo (your 4PT repo) and then turn on the internet, the other repos loads correctly, and when we close 4PT and reopen this way, your repo appears in the last position and all repos above it loads well.

@victorrjimenezz
Copy link
Owner

Hey friend. It crashes when I try to delete repositories. I realised something: the first time we open 4PT and it just has default repo (www.4pt-project.com) it works really well. Then we add a new repo and wait it loads, and it also works. But when we close 4PT and reopen later with the repos saved, it tries to load all repos at the same time and I GUESS that there is the error, I think it causes the crash when 4PT tries to load all repos at the same time and it gives some conflict. I don't have the log files anymore cause I was trying to solve in some ways. I realised when the 4PT already has more than 1 repos saved, and it crashes, we can solve this turning the internet off and opening the app. When it opens, it shows the registered repos links but without load, then if you delete the default repo (your 4PT repo) and then turn on the internet, the other repos loads correctly, and when we close 4PT and reopen this way, your repo appears in the last position and all repos above it loads well.

I understand, thank you for sharing!! I'll investigate this issues, could you please share the logfile located at /data/4PT/logs/ ?
Logs can provide useful information for fixing these bugs! :)

@d-voidheart
Copy link
Author

4PT Logs.zip Here is friend.

@victorrjimenezz
Copy link
Owner

4PT Logs.zip Here is friend.

Thank you! This provides very useful information. It seems to me that it crashes after failing to fetch a specific pkg. You can see in this line:
[Mon Feb 14 19:58:13 2022] addPKG: FAILED TO FETCH: https://repo.pspkgs.workers.dev/1:/last2dlc.pkg

@d-voidheart
Copy link
Author

Nice! So, if the owner of this repo delete this PKG, 4PT will work correctly, right? The issue is on this PKG file, is that correct?

@victorrjimenezz
Copy link
Owner

Nice! So, if the owner of this repo delete this PKG, 4PT will work correctly, right? The issue is on this PKG file, is that correct?

Correct. That might be the issue. However, if this is it, the solution should not be to remove the pkg, the app should not crash even if the PKG is corrupted, it should just discard it! I'll work on this! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant