• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 11
[Release] Common plugin cache
I've uploaded a log from my system (Android, Galaxy S3 i9300) with the plugin set to load when XBMC starts. I just load XBMC, see the error popup ("Failed to start commoncache. Check log.") and run the XBMC log uploader.

It's a clean install of a Gotham Alpha with data/cache wiped from Application Manager and only the YouTube plugin and log uploader added, commoncache debugging enabled and system debugging enabled. The log file is at http://xbmclogs.com/show.php?id=105479

I couldn't see anything obvious in the log -- is there anything else I can do to try and track down the issue?
Reply
The problem with android is that it is considered a posix, and thus an unix socket is used.
Unfortunately, depending on where the temp dir is, what filesystem, permissions, ..., creating an unix socket is not always possible.

This patch forces to use INET socket for android, the same way as for win32.

Is this plugin still maintained and by whom?

Code:
--- StorageServer.py.orig       2014-01-29 11:28:17.158679600 +0100
+++ StorageServer.py    2014-01-29 12:51:34.918376900 +0100
@@ -24,6 +24,7 @@
import hashlib
import inspect
import string
+import xbmc

try: import sqlite
except: pass
@@ -131,8 +132,8 @@
         self._log("", 2)
         if not self.socket or check_stale:
             self._log("Checking", 4)
-            if self.platform == "win32":
-                self._log("Windows", 4)
+            if self.platform == "win32" or xbmc.getCondVisibility('system.platform.android'):
+                self._log("Windows/Android", 4)
                 port = self.settings.getSetting("port")
                 self.socket = ("127.0.0.1", int(port))
             else:
@@ -196,8 +197,7 @@
         if not self._startDB():
             self._startDB()

-        print "Platform: " + self.platform
-        if self.platform == "win32":
+        if self.platform == "win32" or xbmc.getCondVisibility('system.platform.android'):
             sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         else:
             sock = socket.socket(socket.AF_UNIX)
@@ -252,7 +252,7 @@
         self._log("Closing down")
         sock.close()
         # self.conn.close()
-        if not self.platform == "win32":
+        if not self.platform == "win32" and not xbmc.getCondVisibility('system.platform.android'):
             if self.xbmcvfs.exists(self.socket):
                 self._log("Deleting socket file")
                 self.xbmcvfs.delete(self.socket)
@@ -644,7 +644,7 @@
     def _connect(self):
         self._log("", 3)
         self._sock_init()
-        if self.platform == "win32":
+        if self.platform == "win32" or xbmc.getCondVisibility('system.platform.android'):
             self.soccon = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         else:
             self.soccon = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
Reply
https://github.com/HenrikDK/xbmc-common-...-functions
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
(2014-01-29, 14:52)Martijn Wrote: https://github.com/HenrikDK/xbmc-common-...-functions
Rather https://github.com/HenrikDK/xbmc-common-cache but thanks for the hint Wink

[EDIT]
PR created: https://github.com/HenrikDK/xbmc-common-cache/pull/1
Reply
there are also multiple problems reported regarding UTF-8 en/coding problems
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
(2014-01-29, 15:11)Martijn Wrote: there are also multiple problems reported regarding UTF-8 en/coding problems
Any posts / tickets, while I'm on it?
Reply
http://forum.xbmc.org/showthread.php?tid...pid1587330
Not an isolated case. Reproducible when having non standard characters in your profile path

opened ticket for it as well
https://github.com/HenrikDK/xbmc-common-cache/issues/2


either just remove the print statements or encode them to use UTF-8 (iirc)
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
https://github.com/HenrikDK/xbmc-common-cache/pull/3
Reply
folks, any idea when the latest fix (by Koying) for android will be available in the nightlies?
Reply
or perhaps I have it worng. Perhaps Koying has made a fix to the Common plugin cache add-on? If so when can we expect it to be rolled out?
Thanks.
Reply
Code:
18:53:47 T:5044   ERROR: EXCEPTION: Could not get AddonPtr given a script id of script.common.plugin.cache.beta.If you are trying to use 'os.getcwd' to set the path, you cannot do that in a Versione: 2.1.0 plugin.

This happens every time I use your plugin from mine
Reply
after the upgrade to beta using gotham last night

Code:
10:54:53 T:224   ERROR: EXCEPTION: Could not get AddonPtr given a script id of script.common.plugin.cache.beta.If you are trying to use 'os.getcwd' to set the path, you cannot do that in a Version: 2.1.0 plugin.
10:54:54 T:224   ERROR: Previous line repeats 1 times.
10:54:54 T:224   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: Could not get AddonPtr given a script id of script.common.plugin.cache.beta.If you are trying to use 'os.getcwd' to set the path, you cannot do that in a Version: 2.1.0 plugin.
                                            Traceback (most recent call last):
Reply
Hi

Sorry not sure what this add-on does, but I just turned on my HTPC (OpenElec / XBMC V12.2 / Aeon MQ5) and it said it was updating the Cinema Experience and Common Plugin Cache add-ons. Now every time it loads XBMC I get a script failed on the Common plugin cache. Please see the XBMC debug log file and the references to Exceptions.

http://xbmclogs.com/show.php?id=125996

If I look in the add-ons - services area it says the Common Plugin Cache is version 2.5.3

Thank you
Reply
(2014-02-06, 20:11)cw-kid Wrote: Hi

Sorry not sure what this add-on does, but I just turned on my HTPC (OpenElec / XBMC V12.2 / Aeon MQ5) and it said it was updating the Cinema Experience and Common Plugin Cache add-ons. Now every time it loads XBMC I get a script failed on the Common plugin cache. Please see the XBMC debug log file and the references to Exceptions.

http://xbmclogs.com/show.php?id=125996

If I look in the add-ons - services area it says the Common Plugin Cache is version 2.5.3

Thank you

I'm getting the same thing.
Reply
same issue here as of today...
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 11

Logout Mark Read Team Forum Stats Members Help
[Release] Common plugin cache1