finite8 0 Posted April 21, 2015 Share Posted April 21, 2015 (edited) Getting a Complete Lockup in Kodi. Setup: - HTPC running EMBY Server with ServerWMC - Raspberry Pi 1 (Model running OpenELEC 5.0.8 Installed Addins (other than defaults) - Emby Repository - Emby Addin (installed from repository) - PVR Client for ServerWMC Failed Resolution Attempts - Complete Rebuild of SD Card - Cleared Database in Kodi - Installed Heatsinks on Raspberry Pi + Fan cooled. Steps to reproduce - Power up Pi - Kodi Starts - PVR Client successfully syncs channels and EPG data. - Emby starts syncing. Progresses at a good pace, processing titles faster than i can count per second. - Screen eventually dims, continues syncing. - Eventually slows down as it appears to start processing a large batch of movie titles. Progresses about 1 title every 5 - 10 minutes. - about 1 hr in, complete system lockup. UI unresponsive, unable to SSH, no longer responds to pings. Full Log (21,075Kb): https://dl.dropboxusercontent.com/u/36477635/kodi%2020150451%2022%2045.log I also have the logs from a previous attempt. Interestingly, this one caused a reboot of Kodi only (not a full OS reboot), but they both seem to have failed at the same point, trying to process 407 Movie Titles in one hit. Pushing the memory limits trying to deserialize that much JSON data in one hit? Previous attempt logs (caused a kodi reboot) (21,105Kb): https://dl.dropboxusercontent.com/u/36477635/kodi%2020150421%2020%2047.log Edit: This issue continues to persist in 0.0.30 Edited April 25, 2015 by finite8 Link to comment Share on other sites More sharing options...
steini 1 Posted April 21, 2015 Share Posted April 21, 2015 My model A completely freezes when playing with Emby so I guess you need rpi2 Link to comment Share on other sites More sharing options...
finite8 0 Posted April 21, 2015 Author Share Posted April 21, 2015 My model A completely freezes when playing with Emby so I guess you need rpi2 The model A only has 256Mb RAM so it has a fair bit less to work with. I got it working fine playing 1080p content prior to dying syncing Emby. I even got it playing Live TV as well (although a bit slow, but that may have been due to the WiFi at the time). The TV it's plugged in to isn't full HD so it has a slightly easier job. Link to comment Share on other sites More sharing options...
finite8 0 Posted April 25, 2015 Author Share Posted April 25, 2015 I think part of the solution may be in here: https://changelog.com/ijson-parse-streams-of-json-in-python/ This would allow you to read each JSON object one at a time, rather deserialize the entire JSON response in one hit. Sounds like this would save you from both having to store in memory the entire response in a character array as well as avoid having to store in memory the entire deserialized JSON data as well. I haven't touched python before (primarily a c# dev) but if i find time over the next few days, i will jump in and see if i can refactor it and see if that improves it. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 25, 2015 Share Posted April 25, 2015 Make sure you try with logging off. It is on by default during the beta. Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 5, 2015 Share Posted October 5, 2015 Did you ever have any luck with this? I think I am having the same issue. Pi managed to eventually finish its sync but nothing plays. I can start items using remote control but sending something using remote app adds item to playlist and then never starts playing. Later I seem to lose network connectivity. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 5, 2015 Share Posted October 5, 2015 @@reggierat Post your Kodi log: http://emby.media/community/index.php?/topic/17599-how-to-report-a-problem/ Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 5, 2015 Share Posted October 5, 2015 (edited) Please find log attached, i have trimmed it down to what i think is relevant as the full log was 80MB. Just to elaborate further, i am running openelec 5.08 with a patch to support the Wolfson DAC. Previously this was running flawlessly using a shared mysql library. Emby config is working wonderfully on the main htpc in the lounge room so happy my path substitution is all ok. This unit will run headless to deliver music to the bedroom. I appreciate your time Might be unrelated but worth mentioning now that i think about it. I initially had trouble installed the Repository, i had it saved on a network share and after installing it would be empty. Moving the zip to one of the PI's on folders fixed the issue log - edited.txt Edited October 5, 2015 by reggierat Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 5, 2015 Share Posted October 5, 2015 The repository might be empty, that's why you open the context menu and hit refresh to make items appear. Please install the github version and let me know if it resolves your issue: https://github.com/MediaBrowser/Emby.Kodi - Install from zip in Kodi. Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 5, 2015 Share Posted October 5, 2015 Forcing a refresh did not help either. Installing it from local storage did though. Will try the github version when I get home in a few hours. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 5, 2015 Share Posted October 5, 2015 Do you remember where you grabbed the repo from? Just curious Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 5, 2015 Share Posted October 5, 2015 just checked my download history http://www.mb3admin.com/downloads/addons/xbmb3c/kodi-repo/repository.emby.kodi-1.0.2.zip Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 5, 2015 Share Posted October 5, 2015 Yeah, that's the correct link. Hm that's odd that it turned up empty and even refresh had no effect. Oh well, at least you manage to solve the issue. Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 5, 2015 Share Posted October 5, 2015 have just tried installing from Github starting playlist from remote app created playlist on device, it looked like it was going to start and then hung log https://drive.google.com/folderview?id=0B7xuNcO5FjjYNERqbGNUR1ltUUE&usp=sharing Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 5, 2015 Share Posted October 5, 2015 Looks like your starting Kodi when the network is not ready yet. Is there an option somewhere in Kodi that allows you to delay Kodi boot until network is ready? Something similar to that? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 5, 2015 Share Posted October 5, 2015 (edited) Sorry that I can't be more help, it seems something is wrong, however I'm not sure what. That's what your log basically contains, not sure what this means... I don't own a PI, maybe someone else will help out: 13:24:40 T:2980050000 ERROR: CecLogMessage - could not open a connection (try 5) 13:24:41 T:2980050000 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8) It got the proper path from the add-on for playback and then nothing, like you said. You could try to use local path instead of plugin path to see if you get a better experience (add-on settings > sync option) Then reset and let your content resync. Edited October 5, 2015 by Angelblue05 Link to comment Share on other sites More sharing options...
Vidman 589 Posted October 5, 2015 Share Posted October 5, 2015 Something to do with hdmi-cec perhaps Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 5, 2015 Share Posted October 5, 2015 Just thinking about the next move and how to best move forward with this. next i will disable CEC in addons (not even sure why it is on given this usually runs headless and just uses the analog audio out) create a new Emby user with limited data, access to 1-2 music folders only to reduce resync time until it is tested and working use local path and resync all data (i may have this on already but i don't think i did a full resync) fresh install of Openelec 5.08 perhaps install latest beta 5.95.x any thoughts or feedback would be greatly appreciated Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 7, 2015 Share Posted October 7, 2015 Well that was easy! Happy to report that Direct Stream Music Library - Off Use local paths instead of add-on redirect - On Has fixed my playback issues Appreciate everyone's time who looked at this 1 Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 7, 2015 Share Posted October 7, 2015 Probably would have worked this out sooner but I didn't realise a reset and resync was required when turning on Use local paths Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 7, 2015 Share Posted October 7, 2015 You could try to use local path instead of plugin path to see if you get a better experience (add-on settings > sync option) Then reset and let your content resync. Glad you worked it out. Link to comment Share on other sites More sharing options...
reggierat 18 Posted October 11, 2015 Share Posted October 11, 2015 so yesterday afternoon i had enough time to sit down and look at this again. i created a new user with access to 2 albums so i could re-sync the database quickly in between changing settings. results as follows Direct stream yesUse local no10s start, fast track switching, responsive 12secsDirect stream noUse local no10s start, fast track switching, 15s album changeDirect stream noUse local yes10s start, fast track switching, 17sDirect stream yesUse local use yes10s start, fast track switching, 17s So it looks like it was totally my fault all along I think without realising i needed to resync the database anytime i changed a setting i had changed something without a resync and therefore broken it myself. Noob mistake sorry if i wasted anyone's time 1 Link to comment Share on other sites More sharing options...
Recommended Posts