Kodi Community Forum
Kore app keeps reconnecting - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: Kodi Remote for Android Official Forum (https://forum.kodi.tv/forumdisplay.php?fid=129)
+---- Thread: Kore app keeps reconnecting (/showthread.php?tid=224288)

Pages: 1 2 3


RE: Kore app keeps reconnecting - Alchete - 2015-04-16

Thank you sstefano75. I did the same thing as you -- "Allow Program on Other System to Control Kodi". Rebooted.

Switched the remote app (Kore) over to use TCP, which finally worked.

And, the remote now remains connected.

(Prior to this, I didn't see anything peculiar with Wireshark)

----------------

So, is everyone who's been having trouble using OpenELEC?

syncd, perhaps you could try duplicating the issue using OpenELEC...

Cheers.


RE: Kore app keeps reconnecting - syncd - 2015-04-16

@Alchete Your firewall is probably blocking traffic on 9090, but that's beside the point because the issue here is with HTTP.

@sstefano75 What version of Kodi and in what system are you running it on (OpenElec?)?

@Tolriq Thanks for the info. I hate to work around these issues, but i'll try that. Ideally i'd like to avoid including real okhttp, but it might help indeed (maybe not for this issue, which seems to be an issue on Kodi's webserver side).

I'll post back later with some other questions/suggestions


RE: Kore app keeps reconnecting - Tolriq - 2015-04-16

If you want to support Frodo > last version and Android 4.0 to 5.1 you'll have to include a lot of workaround Wink

The biggest problem with Kodi webserver is that each Kodi build will link to some version of microhttpd and not the one validated by the Team despite what it's said Smile

So on Windows, old and bugged version that have problems with keep alive, and on linux whatever version is on the device or what was chosen during build, meaning a lot of version that all have potential problems.
Add over this bugged http stack on some Android version, and completely bugged stack on some manufacturer devices and you start to cry and start coding workaround all over to have something that more or less works.


RE: Kore app keeps reconnecting - sstefano75 - 2015-04-16

@syncd

I'm running OpenELEC 5.0.8 with Kodi 14.2 on a Raspberry Pi 2 Mod B.


RE: Kore app keeps reconnecting - syncd - 2015-04-16

@Alchete @sstefano75

Can you please try the following version. After installation, make sure you go into the server settings and uncheck the "use TCP" checkbox, so that it uses only HTTP.

https://drive.google.com/file/d/0B8b8P_pnImuPUllYNmxpQXpPOE0/view?usp=sharing

Please report if it works.


RE: Kore app keeps reconnecting - sstefano75 - 2015-04-16

@syncd

It works, good job!


RE: Kore app keeps reconnecting - syncd - 2015-04-17

This was only a quick hack, if it also works for @Alchete i'll make it more robust tomorrow. It's what Tolriq said, disabling keep-alive, which is something that shouldn't really be done...


RE: Kore app keeps reconnecting - Alchete - 2015-04-17

syncd, I tried your newest version and HTTP still constantly disconnects for me. Android 5.1 / OpenELEC 4.2.1

BTW, to be clear, I'm testing the disconnects by playing some content and going to the "Remote" screen. Under those conditions, the HTTP version disconnects every 3 seconds while the TCP version does not.

If you think knowing what the invalid HTTP status line response is, then maybe you can put some logcat calls to print it in your next debug build. I wasn't successful in trying to find it via Wireshark.


RE: Kore app keeps reconnecting - sstefano75 - 2015-04-17

just to complete the informations, I have:
Android is 4.4.2
OpenELEC 5.0.8 (Kodi 14.2)

I did the same as Alchete: I disabled the TCP checkbox, played some contents and switched to the "Remote" screen.
On my android device (LG D620) the last version worked fine.


RE: Kore app keeps reconnecting - syncd - 2015-04-17

@Alchete @sstefano75 thank you. And yes that's the test i'd like to see: TCP unchecked and playing some content on the remote screen.

@Alchete i can't get the response code, the exception is thrown when it tries to get it. Anyway, i would just like to confirm that it is something like a space before the RC and not another issue.

I'll think about this and report later.

BTW, anyone knows a trick to get OpenELEC working on a VM in VirtualBox? Currently it doesn't recognize the graphics driver so it fails.


RE: Kore app keeps reconnecting - Alchete - 2015-04-17

(2015-04-17, 09:56)syncd Wrote: BTW, anyone knows a trick to get OpenELEC working on a VM in VirtualBox? Currently it doesn't recognize the graphics driver so it fails.
From searching around, it doesn't sound like people have had much success with that.

Another option might be to install OpenELEC on a USB stick/external HD, and then boot your computer from that.

I would have thought this would be fairly straightforward, as in creating the LiveStick and then choosing another USB stick for the installation, but there's a more complex series of instructions here: http://www.htpcbeginner.com/install-openelec-on-usb-stick-raspberry-pi/


RE: Kore app keeps reconnecting - sstefano75 - 2015-04-18

@syncd

it seems that no one managed to run OpenELEC on a Virtualbox VM.

But, maybe, could be possible to emulate Raspberry Pi hardware as explained here:
http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/

If the emultated hardware is 100% compatible with the Raspberry hardware, maybe the OpenELEC Raspberry built could run...


RE: Kore app keeps reconnecting - syncd - 2015-04-18

Thanks, i'll take a look at that.

In the meantime, i'd appreciate some more help. Could you try this version:
https://drive.google.com/file/d/0B8b8P_pnImuPWl9LN3plUlhwWW8/view?usp=sharing

Make sure "Use TCP" is unchecked, and get the logs with logcat. This version shouldn't work for you, but i want to take a look at the logs to check where it is failing.

Thanks


RE: Kore app keeps reconnecting - sstefano75 - 2015-04-18

@syncd

I did the test and I confirm what you said: this last version doesn't works.

Here is the log file:
https://drive.google.com/file/d/0BwXVSb8iojQHYlVrd3RWZUp4eTA/view?usp=sharing


Re: RE: Kore app keeps reconnecting - Milhouse - 2015-04-19

(2015-04-17, 09:56)syncd Wrote: BTW, anyone knows a trick to get OpenELEC working on a VM in VirtualBox? Currently it doesn't recognize the graphics driver so it fails.

OpenELEC dropped VM support a while back - bugger to support and hardly anyone used it. Probably cheaper/easier to simply acquire a real RPi1 or RPi2 and use as a Kore test client, it is after all what an awful lot of Kore users will be using themselves.