-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: TypeError: Object has been destroyed at main.js #5553
Comments
During the crash FreeTube didn't have time to properly shutdown so it thinks it is still running. Close FreeTube, go to |
Looks like it has a different name on Linux but yes try deleting all three singleton files (on Windows it's just one). |
I deleted the three and restared Freetube, same error, the files got created again and are labled as |
I found out the following:
The fact these files persist after a crash doesn't even seem to be the issue, since their deletion has no effect. Something else seems to be broken, which causes FreeTube to crash every time, regenerating the Singleton* files. Please also note that any reinstallation process won't delete any configuration files or user data, which in this case are located in .config/FreeTube. Assuming the issue lies in this directory and some invalid file causes the crash, there are generally two possible solutions, while in both cases you should back up the complete ~/.config/FreeTube folder, because that's where all your personal data and your settings are stored. To copy them, you can use the following command or use the GUI if you prefer:
|
While FreeTube is not running, there would be no reason for a history.db~ file to exist, maybe try renaming that (e.g. to history2.db~), in case that solves the issue, and no relevant data is lost, you can delete it. I suppose the relevant files you might want to keep for solution 2 are the following:
However, don't rely on that and better keep a complete backup of .config/FreeTube for some time. |
None of your user data is corrupted.
On Windows the "is already running" stuff happens with just one file called |
I have to say I'm surprised that you never had any problems every other time that your computer crashed with FreeTube open, you definitely just got lucky the other times, because when the app doesn't shutdown properly then you should expect stuff to be broken. |
I did exactly this, i deleted the Freetube folder from .config entirely, restarted freetube, it worked, but was empty and new, so i copied back just the 4 files into the newly created Freetube directory in .config again, and guess what... Same Crash, Same Error Message AGAIN, just the 4 db files caused this Maybe this is reproducable, somehow if these 4 files of mine are corrupted, i can upload them, someone can delete their .config/Freetube, start the app again, then put the 4 files back and restart the app again, it should break like mine does i suppose. I did this twice now, same results |
In that case I'll close this as a duplicate of the existing open issue, as the cause remains a mystery because looking at the code there is no connection between the code that produces the error and the databases. duplicate of #4762 |
Well any suggestions as to what I could do or try tho? Do i really have to save goodbye to all my saved playlists, subscriptions, and history? |
You can try to only copy one of the 4 files back at a time to identify which is causing the crash. To be sure, you can remove that corrupted file to check the remaining ones as well. From there, you can continue to use the valid files, and we need to figure out how to save your user data from the corrupted ones. |
Sorry for the delayed reply, but I think I have identified the cause. It is profiles.db, i think in an improper shutdown, it gets corrupted. See the weird and very long line of Once i removed that weird corruption at the end, and saved it, Freetube works normally again! |
I suggest a feature implementation which automatically checks for corruption in profiles.db when such a crash happens, and automatically clean the file. |
just had a similar issue resolved by a malformed json object in subscription-cache.db -- this seems like it may be possible in any .db file and should likely be checked for / more gracefully handled in any of them. It was additionally causing our subscriptions not to load and just spin forever, which is also now resolved by removing that file. |
Guidelines
Describe the bug
My PC (Ubuntu 22.04.4 LTS) crashed, which is not unusual, its an old one with a very degraded battery, so it turns off when the power goes off. This time however I was using FreeTube when my pc shut down, and since I booted it back up, FreeTube won't start at all and I get this error:
I have tried uninstalling and reinstalling FreeTube (v0.21.3) through Software Install, but the problem persists.
Expected Behavior
It should work just fine like every other time my machine has crashed, this time however it broke FreeTube permanently somehow. Even Reinstalling doesn't seem to work
Issue Labels
causes crash, usability issue
FreeTube Version
v0.21.3
Operating System Version
Ubuntu 22.04.4 LTS
Installation Method
.deb
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
No response
Additional Information
No response
Nightly Build
The text was updated successfully, but these errors were encountered: