Solved Play next automatically not working right
#16
Please post new log with component logging for video and avtiming enabled
Reply
#17
(2018-04-30, 06:51)FernetMenta Wrote: Please post new log with component logging for video and avtiming enabled
 Here you go: https://pastebin.com/WjzaDYR5
Ignore the first play instance, I stopped it early by mistake.

Edit: Your plugin fix works. Thank you.
Reply
#18
Looks like I have been digging in the wrong place. There seems to be an additional busy dialog that we never leave and as a result rendering video gets not executed anymore. Things start going wring with this erorr:
00:24:09.034 T:13892   ERROR: XFILE::CDirectory::GetDirectory - Error getting C:\portable\KodiLeia\portable_data\userdata\addon_data\plugin.video.emby\temp\

Any idea what this means?
Reply
#19
Ok give me a few, I've seen that line.

Edit: This line is regarding deleting local files regarding the video (temporary subtitle files), I guess it's complaining the folder doesn't exists in this scenario -- I've commented out the line that causes this error, but the issue persists. Do you want a new log?
Reply
#20
Let's analyze this log: https://pastebin.com/YtqK5bLq

- line 2728, first file ends
00:59:00.198 T:5648   DEBUG: CApplication::OnPlayBackEnded: CApplication::OnPlayBackEnded

- 2740, some python script
00:59:00.215 T:10256   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Emby('plugin://plugin.video.emby/','2','?mode=play&id=ef57c12813fdf633c915683736bbb06b&dbid=1266','resume:false')

- 2751, busy dialog gets opened (most likely waiting on python) -> this one never gets closed again!
00:59:00.452 T:10256   DEBUG: ------ Window Init (DialogBusy.xml) ------

- 2839, python waring
00:59:04.464 T:4588 WARNING: CPythonInvoker(3, C:\portable\KodiLeia\portable_data\addons\plugin.video.emby\default.py): the python script "C:\portable\KodiLeia\portable_data\addons\plugin.video.emby\default.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmcaddon::Addon

- 2965, busy dialog waiting for playback to start
00:59:04.566 T:10256   DEBUG: ------ Window Init (DialogBusy.xml) ------
Reply
#21
@FernetMenta 

https://pastebin.com/cKYHtH6C

I've removed the line that caused the error you pointed out. First play works fine, second play still has the buffer/update image every 10 seconds only issue. I've stopped playback then and did a play attempt of the second file, which works fine, so you can hopefully spot the difference between play #2 and play #3. Let me know if there's anything more I can provide.

Edit: I just saw your new post - Does the same thing happen in the new log I provided?
Reply
#22
Can you run with debugger and halt execution when the issue occurs? I would be interested in the call stack of the main therad.
Reply
#23
(2018-04-30, 10:20)FernetMenta Wrote: Can you run with debugger and halt execution when the issue occurs? I would be interested in the call stack of the main therad.
 I don't know how to do that for you? Sad Is it simple to get setup? I got VS2017 installed, kodi-build + compiled Kodi still (.exe and the .pdb).
Reply
#24
As an alternative you could provide step-by-step instructions (including strm files) how to reproduce the issue on a clean system.
Reply
#25
Ok so you are saying otherwise, it works/looks fine? I will do some testing tomorrow. Just so you know, I maintain the emby add-on, and this was not an issue with Krypton. Something changed with Leia, but since you say otherwise it looks fine, I will do additional testing to make sure it's not something about the add-on that's causing this. I'm not certain how it could be since we are using setResolvedUrl as we should.

Thanks again for your assistance.
Reply
#26
I want to reproduce the issue here but need detailled instruction how to do this?
Reply
#27
can you try with this change? https://github.com/xbmc/xbmc/pull/13832

EDIT: won't help. I really need to reproduce the issue on my system

EDIT2: please apply https://github.com/xbmc/xbmc/pull/13833 and see what happens
Reply
#28
(2018-04-30, 16:34)FernetMenta Wrote: EDIT2: please apply https://github.com/xbmc/xbmc/pull/13833 and see what happens
 Crashes Kodi before playback happens. I'm trying to think of a way to get you quickly setup. But first I'm reviewing the add-on code to make sure nothing weird is happening.
Reply
#29
(2018-05-01, 00:34)angelblue05 Wrote:
(2018-04-30, 16:34)FernetMenta Wrote: EDIT2: please apply https://github.com/xbmc/xbmc/pull/13833 and see what happens
 Crashes Kodi before playback happens. 
 This was the plan. If you run with debugger (F5 with VS), you get a call stack. 
The problem is that the busy dialog opened for GetDirectory is not closed. Are you sure you call endOfDirectory from your script?
Reply
#30
(2018-05-01, 07:45)FernetMenta Wrote:
(2018-05-01, 00:34)angelblue05 Wrote:
(2018-04-30, 16:34)FernetMenta Wrote: EDIT2: please apply https://github.com/xbmc/xbmc/pull/13833 and see what happens
 Crashes Kodi before playback happens. 
 This was the plan. If you run with debugger (F5 with VS), you get a call stack. 
The problem is that the busy dialog opened for GetDirectory is not closed. Are you sure you call endOfDirectory from your script?


Ok thanks. Sorry I didn't get the chance to do anything today. Yes endOfDirectory is called when playback is sent. I'll keep you posted.
Reply

Logout Mark Read Team Forum Stats Members Help
Play next automatically not working right0