Sad Face when casting from NAS or Playing via Emby

After doing a bit of research, it appears that Windows 10 is using UPnP/DLNA to stream content to Kodi. Based on what is written here, Kodi seems to be acting as a UPnP Client, so it looks very much like this might be a Kodi issue. TBH, UPnP/DNLA on Kodi does seem to have a few issues and you might well have encountered one of its weaknesses.

DO you have any ideas what to do next?

As @dillthedog wrote UPnP is not the best supported solution for Kodi. I am wondering why you are using that to cast via Win10 especially if you have the central NAS. Would it make more sense to do this Kodi style?

It was purly being done as a way to troubleshoot and it was the easiest method to do it.

My ideal set up is to have the Emby plugin and do it through that.

Ok if that is the easiest method to troubleshoot that I suggest that you provide full/complete debug enabled logs after you got the Sad Face so that we can try to help you on that.
Also suggest to check the network stability on the Vero.

Ok heres what ive done:

Fresh Install latest OSMC for Vero4k
Installed the Emby Repo
installed Emby
Gave it my Emby server login details

It starts to Sync and then crashes very often when its trying to Sync the TV shows and Movies.

Here is a log Full Log:
https://paste.osmc.tv/iguyolunik

I had repeated issues when running the Emby add-on on a Raspberry Pi 1 during its initial media-sync phase but subsequent startups used the fast sync plugin on the server and sailed through without further issues. On my Vero4K, it all worked first time for me.

I can see that kodi.bin is crashing. For example:

Oct 14 18:49:30 emby_tv kernel: kodi.bin[1046]: unhandled level 3 translation fault (11) at 0x00000004, esr 0x92000007
Oct 14 18:49:30 emby_tv kernel: pgd = ffffffc0609da000
Oct 14 18:49:30 emby_tv kernel: [00000004] *pgd=0000000000317003, *pmd=000000006094f003, *pte=0000000000000000
Oct 14 18:49:30 emby_tv kernel: 
Oct 14 18:49:30 emby_tv kernel: CPU: 0 PID: 1046 Comm: kodi.bin Tainted: G           O 3.14.29-37-osmc #1
Oct 14 18:49:30 emby_tv kernel: task: ffffffc06012ca80 ti: ffffffc062090000 task.ti: ffffffc062090000
Oct 14 18:49:30 emby_tv kernel: PC is at 0x59b58c
Oct 14 18:49:30 emby_tv kernel: LR is at 0x2aaaaaab
Oct 14 18:49:30 emby_tv kernel: pc : [<000000000059b58c>] lr : [<000000002aaaaaab>] pstate: 20000030
Oct 14 18:49:30 emby_tv kernel: sp : 00000000d2675e00
Oct 14 18:49:30 emby_tv kernel: x12: 00000000d2675e60 
Oct 14 18:49:30 emby_tv kernel: x11: 0000000000000000 x10: 0000000000071ce0 
Oct 14 18:49:30 emby_tv kernel: x9 : 0000000000000000 x8 : 0000000000540000 
Oct 14 18:49:30 emby_tv kernel: x7 : 00000000d2675e18 x6 : 00000000d2676068 
Oct 14 18:49:30 emby_tv kernel: x5 : 0000000000000000 x4 : 0000000000071cb8 
Oct 14 18:49:30 emby_tv kernel: x3 : 000000000000002c x2 : 0000000000700000 
Oct 14 18:49:30 emby_tv kernel: x1 : 0000000000000000 x0 : 00000000d2675e18 

The unhandled translation fault is above my pay grade and @sam_nazarko will need to cast his eye over it.

Per Samā€™s post #5, we need Kodi debug logs to help diagnose the issue.

Heres the Kodi log after another crash:

https://paste.osmc.tv/awigoyewoq

Iā€™ll leave the complicated stuff to Sam but I noticed this line:

21:19:54.830 T:3722703856  NOTICE: EMBY.librarysync -> DEBUG:: An exception occurred: Fast sync server plugin is not enabled.

Is it correct that the Fast sync server plugin isnā€™t enabled?

It was disabled today but not prior I disabled it thinking it might be causing the issues. Its now enabled I will await another crash and upload a kodi log.

Just ot make sure were talking about the same thing you mean the plugin on the Emby server itself ? Now called Emby.Kodi Sync Queue?

Yes. v2.0.0.0 on my system.

Yep its reinstalled now so far now issues but im not holding my breathe. :cry:

Iā€™ve no idea about Emby

If it happens again, a full set of logs may give some clues.

Sam

After playing several just fine it started crashing again. Here are a set of full logs:
https://paste.osmc.tv/padatezuja

Letā€™s wait for @sam_nazarko but maybe try with CEC disabled

Oct 15 12:12:03 emby_tv kernel: PeripBusCEC[5103]: unhandled level 3 translation fault (11) at 0xeff41b0c, esr 0x92000007
Oct 15 12:12:03 emby_tv kernel: pgd = ffffffc047a7a000
Oct 15 12:12:03 emby_tv kernel: [eff41b0c] *pgd=00000000471e3003, *pmd=000000005f1f3003, *pte=0000000000000000
Oct 15 12:12:03 emby_tv kernel: 
Oct 15 12:12:03 emby_tv kernel: CPU: 1 PID: 5103 Comm: PeripBusCEC Tainted: G           O 3.14.29-37-osmc #1
Oct 15 12:12:03 emby_tv kernel: task: ffffffc058868a80 ti: ffffffc06200c000 task.ti: ffffffc06200c000
Oct 15 12:12:03 emby_tv kernel: PC is at 0xf606b376
Oct 15 12:12:03 emby_tv kernel: LR is at 0xf6411e73
Oct 15 12:12:03 emby_tv kernel: pc : [<00000000f606b376>] lr : [<00000000f6411e73>] pstate: 800d0030
Oct 15 12:12:03 emby_tv kernel: sp : 00000000ee717c88
Oct 15 12:12:03 emby_tv kernel: x12: 0000000000000000 
Oct 15 12:12:03 emby_tv kernel: x11: 00000000edecd740 x10: 00000000f6413e8c 
Oct 15 12:12:03 emby_tv kernel: x9 : 0000000000000000 x8 : 00000000ede00010 
Oct 15 12:12:03 emby_tv kernel: x7 : 00000000ee717cf8 x6 : 00000000eff41b08 
Oct 15 12:12:03 emby_tv kernel: x5 : 0000000000290030 x4 : 00000000efcb1ad8 
Oct 15 12:12:03 emby_tv kernel: x3 : 00000000efb7f538 x2 : 00000000c0000000 
Oct 15 12:12:03 emby_tv kernel: x1 : 0000000000000000 x0 : 00000000ede00010

Hereā€™s a grep for ā€œunhandled levelā€ in the system journal:

Oct 14 18:49:30 emby_tv kernel: kodi.bin[1046]: unhandled level 3 translation fault (11) at 0x00000004, esr 0x92000007
Oct 14 18:50:32 emby_tv kernel: kodi.bin[1397]: unhandled level 2 translation fault (11) at 0xcf1a9d6c, esr 0x92000006
Oct 14 18:51:31 emby_tv kernel: kodi.bin[1762]: unhandled level 3 translation fault (11) at 0x00000004, esr 0x92000007
Oct 14 18:52:33 emby_tv kernel: kodi.bin[2050]: unhandled level 2 translation fault (11) at 0xa67ed706, esr 0x92000006
Oct 14 18:53:53 emby_tv kernel: kodi.bin[2452]: unhandled level 2 translation fault (11) at 0x30534b4e, esr 0x92000006
Oct 14 18:57:20 emby_tv kernel: kodi.bin[3630]: unhandled level 3 translation fault (11) at 0xe7008b8c, esr 0x92000007
Oct 14 19:08:22 emby_tv kernel: LanguageInvoker[7937]: unhandled level 3 permission fault (11) at 0x00400000, esr 0x9200004f
Oct 14 19:11:09 emby_tv kernel: kodi.bin[9096]: unhandled level 2 translation fault (11) at 0xd1805d60, esr 0x92000006
Oct 14 19:19:15 emby_tv kernel: kodi.bin[12375]: unhandled level 2 translation fault (11) at 0x1d60cad1, esr 0x92000006
Oct 14 19:31:16 emby_tv kernel: kodi.bin[17243]: unhandled level 3 translation fault (11) at 0xd50fda2c, esr 0x92000007
Oct 14 19:34:27 emby_tv kernel: kodi.bin[18511]: unhandled level 3 translation fault (11) at 0xd500341c, esr 0x92000007
Oct 14 19:37:42 emby_tv kernel: kodi.bin[19793]: unhandled level 3 translation fault (11) at 0xd3ef43b4, esr 0x92000007
Oct 14 19:44:16 emby_tv kernel: kodi.bin[22372]: unhandled level 3 translation fault (11) at 0x00000074, esr 0x92000007
Oct 14 19:48:06 emby_tv kernel: LanguageInvoker[22581]: unhandled level 2 translation fault (11) at 0x042dfec5, esr 0x92000006
Oct 14 19:59:46 emby_tv kernel: kodi.bin[27215]: unhandled level 3 translation fault (11) at 0x0000392c, esr 0x92000007
Oct 15 12:09:11 emby_tv kernel: VideoPlayer[4994]: unhandled level 3 translation fault (11) at 0xef7fdafc, esr 0x92000007
Oct 15 12:12:03 emby_tv kernel: PeripBusCEC[5103]: unhandled level 3 translation fault (11) at 0xeff41b0c, esr 0x92000007

Although most failures are with kodi.bin, the error is more widespread.

Hi @dillthedog @fzinken @sam_nazarko So ive disabled CEC and things seemed to go well for a while but it still crashed.

Here is a full log:
https://paste.osmc.tv/bodihexula

Any ideas?

Did you ever disable Emby? To me that looked like the culprit.

A few crashes were fixed a few days ago:

  1. Login via the command line
  2. Edit the file /etc/apt/sources.list
  3. Add the following line: deb http://apt.osmc.tv jessie-devel main
  4. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  5. Your system should have have received the update.

Please see if the issue is resolved.

I also recommend you edit /etc/apt/sources.list again and remove the line that you added after updating. This will return you to the normal update channel.

Well fingers crossed maybe its now resolved as its now syncing without crashing, heres a list of things ive done incase this comes up again:

  1. Installed the update as suggested by @sam_nazarko.
  2. re-created the kodi DB as suggested by @dillthedog.
  3. Disabled CEC.
  4. Re-added the Emby plugin and installed.
  5. Set up with default options.
  6. Signed in to Emby via the Plugin.

It normally crashes when syncing so this is why im thinking its fixed but I will monitor and report back if not.

Well @sam_nazarko doesnā€™t look like it worked during playback it crashes bellow is the full log :frowning:

https://paste.osmc.tv/ibajatewux