digimezzo / dopamine

The audio player that keeps it simple
https://digimezzo.github.io/site/
GNU General Public License v3.0
1.58k stars 110 forks source link

Dopamine white-screen on app launch. #682

Closed Root1-2 closed 2 months ago

Root1-2 commented 2 months ago

image

So, I have been using Dopamine for some time. But suddenly, the app doesn't launch, stuck on white-screen for a long time. After 5-10 min, the dopamine app launch. I have tried uninstalling the app and then reinstalling and it still doesn't work. Only if I reinstall the app by deleting the configuration files/cache, the app launch work properly. Even then after few uses/days, the app stuck on white-screen at launch for 5-10min again.

digimezzo commented 2 months ago

@Root1-2 I have a few questions:

image

image

Root1-2 commented 2 months ago
  1. I am using the preview 33 version.

  2. Console is empty. image

  3. Ran using cmd. This shows up on the cmd and nothing on the console log either. image

digimezzo commented 2 months ago

@Root1-2 Strange. Must be something in the settings or Dopamine.db that is broken. COudl you zip your Dopamine folder and send it or attach it to this issue?

image

Root1-2 commented 2 months ago

Sure. Here is the zip file:

https://mega.nz/file/m3whwKCI#dIF2QFB75SjwhTTjFlvciOovMX87bZAX9fM_0QlKkQU

digimezzo commented 2 months ago

@Root1-2 I tihnk it's a problem with the queue. You have 15000 songs in the queue and Dopamine tries to load metadata for each of these 15000 songs. It takes a lot of times and hangs until it is done. I'm going to try to fix that.

Root1-2 commented 2 months ago

Yeah sometime I play from the songs section and it automatically add all of the songs in the queue.

digimezzo commented 2 months ago

Yeah sometime I play from the songs section and it automatically add all of the songs in the queue.

That explains it. Good thing you're using it with such a big collection. I don't have that many files to test with. I'll fix the queue. It shouldn't be fetching metadata for files that are already in the database.

digimezzo commented 2 months ago

@Root1-2 This nightly build should fix the problem: https://github.com/digimezzo/dopamine/actions/runs/10869139490

Root1-2 commented 2 months ago

Thank you, good sir. It's working now.

digimezzo commented 2 months ago

Thank you, good sir. It's working now.

You're welcome. Thanks for testing it out. I'm pushing this fix for Preview 34.