Skip to content
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

[FavoriteMedia]: Crash when loading local database (PTB) #267

Open
LilyBageL opened this issue Jul 31, 2024 · 6 comments
Open

[FavoriteMedia]: Crash when loading local database (PTB) #267

LilyBageL opened this issue Jul 31, 2024 · 6 comments
Labels
TBD To Be Determined : not sure if there is a bug

Comments

@LilyBageL
Copy link

Discord Build

Stable

Discord Version

ptb 314440 (7ee63e1) Host 1.0.1094 x64 (50115) Build Override: N/A Windows 11 64-bit (10.0.22631)

Plugin Version

v1.10.1

Steps To Reproduce

1. Load Discord Test Build
Nothing appears in Ctrl+Shift+I console other than a few warnings for a few of the other 23 plugins I have

2. Open any channel with textbox

3. Open Image, Video, Audio, File tab of FavoriteMedia
Nothing appears in console other than a bunch of:
GET (Media link of media that's not loading) 404 (Not Found)
and
Could not load media: (Media link of media that's not loading)

4. Click on Local database icon

5. Popup of local database shows (custom red outline blocks to cover my unspeakable past)
image

6. After a few seconds (nothing new appears in console) it instantly CTD and the BetterDiscord crash popup shows
config.json as follows (media links removed to hide my unspeakable past):
FavoriteMedia.config.json

Describe the bug

When I open the local database to try and cache or clear cache and re-cache, it doesn't even load the database info in the popup screen, it just crashes. I tried setting allowcaching to false (seen in config attachment) and true several times, doesn't fix the issue. I checked the related issues prior to making this issue post, you mention that the related bugs were fixed in 10.1, but it still continues to manifest in my build, so I reckon the issue I'm encountering is different.

I have ~600 images and ~100 videos saved using the plugin, the amount might be the troublemaker? I have five times the amount of gifs, but I don't use the FavoriteMedia gifs feature because it's bugged and unsynced with my vanilla discord gifs on my build. The saved videos are affected the most out of all the tabs, having almost half of them without a preview.

I removed the media links in the config.json because ninety percent of the things I save are either horrid or horrid or horrid or horrid. But if necessary to diagnose the problem, I will provide the original, thousand-links config.json file.

Screenshots

- Videos with broken previews (image of the local database popup attached in steps to reproduce)
image

- Images with broken previews
image

- My lineup of plugins
"BDFDB": true,
"ZeresPluginLibrary": true,
"AllCallTimeCounter": true,
"BetterAudioPlayer": true,
"BetterFormattingRedux": true,
"BetterVolume": true,
"CharCounter": true,
"CompleteTimestamps": true,
"FavoriteMedia": true,
"FriendNotifications": true,
"GameActivityToggle": true,
"GifVideoPlayer": true,
"ImageUtilities": true,
"AppNotifications": false,
"InvisibleTyping": true,
"MessageUtilities": true,
"PluginRepo": true,
"RemovedConnectionAlerts": true,
"ServerDetails": true,
"SpellCheck": true,
"StaffTag": true,
"ThemeRepo": true,
"Translator": true,
"UrbanDictionary": true,
"VoiceActivity": true

@LilyBageL LilyBageL added the TBD To Be Determined : not sure if there is a bug label Jul 31, 2024
@LilyBageL
Copy link
Author

Using the old 1.9.1 version distributed in another issue post, which had the "refresh urls" option, fixed the problem.
I'll use that version temporarily until a patch or update is pushed out!

@LilyBageL
Copy link
Author

Still experiencing this problem in 1.10.5, I tried rooting out if it's a plugin conflicting to no avail, loaded with only favorite media, zeres, and BDFDB, but it still crashed when loading the database. Right now the old 1.9.1 crashes the client as well so I have no way to refresh the URL embeds. I'm hoping for a fix or a loophole to bypass this issue at your earliest convenience!

@Hackertester172
Copy link

still experiencing i need the old one updated with this fix too maybe just make a seperate for both people

@zabersan
Copy link

zabersan commented Nov 24, 2024

@LilyBageL

Still experiencing this problem in 1.10.5, I tried rooting out if it's a plugin conflicting to no avail, loaded with only favorite media, zeres, and BDFDB, but it still crashed when loading the database. Right now the old 1.9.1 crashes the client as well so I have no way to refresh the URL embeds. I'm hoping for a fix or a loophole to bypass this issue at your earliest convenience!

Perhaps it's a media issue? I was getting straight crashes when ever I'd open a server with the plugin enabled, even if enabled standalone. However I just reinstalled the plugin, after renaming the extension in the plugins folder, and it's working fine now, albeit all the saved media I had on it is gone, but my client isn't crash looping anymore.

btw I'm on stable 347699 (5cba0fe) Host 1.0.9171 x64 (55464) Build Override: N/A Windows 11 64-bit (10.0.22631) running v1.11.1 with 45 Plugins and 1 theme enabled.

EDIT: My saved files are NOT gone, I was on the wrong category lol.

@LilyBageL
Copy link
Author

LilyBageL commented Nov 25, 2024

Well I tried troubleshooting it weeks ago by removing the config file which had all the saved media, it crashes like how I pointed out in the OP even with zero things to cache, then I fucked up and lost my saved media but the issue is still there. Strangely enough the images did fix itself I think after the newest update, but the videos are still without embed

I think Dastan did give us a way to refresh url without caching in a patch weeks ago now that I'm looking around the notes, I'll test it later

@LilyBageL
Copy link
Author

it do be working doe LETS GOOOOOOO bug is still not fixed but there's a way to refresh URLs manually now.
Thanks daddy Dastan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TBD To Be Determined : not sure if there is a bug
Projects
None yet
Development

No branches or pull requests

3 participants