maximeh / script.myepisodes

Kodi plugin for MyEpisodes.com
GNU General Public License v2.0
10 stars 5 forks source link

Memory leak #8

Closed tibouh closed 10 years ago

tibouh commented 10 years ago

Hello.

I just installed the 1.0.12 version on a fresh OpenELEC 3.2.4 RPi version.

I watched an entire episode and checked the MyEpisodes website but nothing was updated.

I checked the log and got two errors (one at the start of the episode and one at the end).

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'Player' object has no attribute '_playbackLock'
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.myepisodes/default.py", line 109, in onPlayBackStarted
                                                self._setUp()
                                              File "/storage/.xbmc/addons/script.myepisodes/default.py", line 63, in _setUp
                                                self._playbackLock.set()
                                            AttributeError: 'Player' object has no attribute '_playbackLock'
                                            -->End of Python script error report<--

and

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'Player' object has no attribute '_lastPos'
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.myepisodes/default.py", line 152, in onPlayBackEnded
                                                actual_percent = (self._lastPos/self._totalTime)*100
                                            AttributeError: 'Player' object has no attribute '_lastPos'
                                            -->End of Python script error report<--

Thanks for you help. Thibault

maximeh commented 10 years ago

Thank you for reporting this !

Did you configure the plugin ? Did you see a connected when you started XBMC ?

Also, could you please, do this with the debug enabled ? It may give me more information. I will try to reproduce, but I need to install OpenElec first, I'll try to find some time to do that.

tibouh commented 10 years ago

Hello.

Indeed I wasn't connected to my account. I didn't see the popup 'Authentication failed'.

Now it works perfect!

Thank you.

2014-02-13 22:29 GMT+01:00 Maxime Hadjinlian notifications@github.com:

Thank you for reporting this !

Did you configure the plugin ? Did you see a connected when you started XBMC ?

Also, could you please, do this with the debug enabled ? It may give me more information. I will try to reproduce, but I need to install OpenElec first, I'll try to find some time to do that.

Reply to this email directly or view it on GitHubhttps://github.com/maximeh/script.myepisodes/issues/8#issuecomment-35028179 .

maximeh commented 10 years ago

You're welcome.

This has helped me see that there was something wrong with the code, so I am in the process of fixing this, thanks to you !