Coder Social home page Coder Social logo

Comments (9)

marcelveldt avatar marcelveldt commented on August 11, 2024

Please test again with the latest release. This issue should be fixed.

from plugin.audio.spotify.

Alphix avatar Alphix commented on August 11, 2024

Nope, doesn't seem to be fixed. Now I get spotty zombie processes instead...

from plugin.audio.spotify.

marcelveldt avatar marcelveldt commented on August 11, 2024

OK, I'll take a look at it later this week. User switching is kind of a pain to implement.

from plugin.audio.spotify.

marcelveldt avatar marcelveldt commented on August 11, 2024

Would it be possible to provide me your kodi logfile after you did some user switching ?
btw, you can ignore the spotty processes, they will be cleaned up automatically

from plugin.audio.spotify.

Alphix avatar Alphix commented on August 11, 2024

Logfile attached....the only thing which looks suspicious is the "script didn't stop in 5 seconds - let's kill it" part...note that right now Kodi seems to crash on user switch with the spotify plugin enabled rather than spotify just not working anymore (that's why the log file is so short....kodi crashed).

kodi.txt

from plugin.audio.spotify.

marcelveldt avatar marcelveldt commented on August 11, 2024

Like I said, user switching is very sensitive.
I will look at this asap

from plugin.audio.spotify.

marcelveldt avatar marcelveldt commented on August 11, 2024

Hmmm, your log is a bit confusing. It wants to shutdown right after it started. Did you switch the user right after starting up Kodi ?

Maybe you should wait a bit longer until you switch ?
Python scripts are executed in alphabetically order by Kodi. So at login/startup it will start each python service (including spotify). If you shutdown Kodi or switch a user it send a shutdown command to each python add-on but this is done again one-by-one and not all at once. So if add-on 1 is still processing something it blocks the shutdown for other addons too.

I made sure that the add-on responds very quickly when Kodi requests a shutdown (within 1 second all background processing is ended) but the startup takes a few seconds and that is blocking.

So in theory if the add-on is in it's blocking, startup state and Kodi tries to send a shutdown it will not respond in time and Kodi kills the process and that's exactly what bring it into a useless state because the web proxy port is still hogged by the previous process.

Like I said I will look into it but this is a very sensitive process.

from plugin.audio.spotify.

Alphix avatar Alphix commented on August 11, 2024

Sorry for the long delay, this kind of fell off my radar.

Yes, in the log I provided I switch users almost immediately....but the results are exactly the same if I wait a minute and then perform the user switch (I can provide a separate log if necessary).

from plugin.audio.spotify.

marcelveldt avatar marcelveldt commented on August 11, 2024

new version will be available on the repo within a few minutes, can you give that a try ?

from plugin.audio.spotify.

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.