Error Loading the Database

Hi,
I installed Kodi on my Raspberry Pi 4 (4Gb Ram), installed the Kodi Jellyfin Plugin and scanned my Database first time and It stopped at about 25% process. The Error Log (only part cause of restrictions):

2020-11-03 18:50:20.029 T:2660230000 NOTICE: JELLYFIN.database -> ERROR::jellyfin_kodi/database/init.py:163 type: <type ‘exceptions.MemoryError’> value:
2020-11-03 18:50:39.441 T:2660230000 NOTICE: Previous line repeats 1 times.
2020-11-03 18:50:39.442 T:2660230000 NOTICE: JELLYFIN.full_sync -> ERROR::jellyfin_kodi/full_sync.py:257 full sync exited unexpectedly
2020-11-03 18:50:39.482 T:2660230000 NOTICE: JELLYFIN.full_sync -> ERROR::jellyfin_kodi/full_sync.py:258
Traceback (most recent call last):
File “jellyfin_kodi/full_sync.py”, line 243, in process_library
medialibrary[‘CollectionType’]
File “jellyfin_kodi/helper/wrapper.py”, line 41, in wrapper
result = func(self, dialog=dialog, *args, **kwargs)
File “jellyfin_kodi/full_sync.py”, line 337, in tvshows
for episodes in server.get_episode_by_show(show[‘Id’]):
File “jellyfin_kodi/downloader.py”, line 145, in get_episode_by_show
for items in _get_items(query):
File “jellyfin_kodi/downloader.py”, line 287, in _get_items
for params, result in zip(query_params, results):
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/_base.py”, line 580, in map
yield future.result()
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/_base.py”, line 400, in result
return self.__get_result()
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/_base.py”, line 359, in __get_result
reraise(self._exception, self._traceback)
File "/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/compat.py", line 107, in reraise
exec(‘raise exc_type, exc_value, traceback’, {}, locals
)
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/thread.py”, line 61, in run
result = self.fn(*self.args, **self.kwargs)
File “jellyfin_kodi/downloader.py”, line 285, in
results = p.map(lambda params: _get(url, params, server_id=server_id), query_params)
File “jellyfin_kodi/downloader.py”, line 54, in _get
return _http(“GET”, get_jellyfinserver_url(handler), {‘params’: params}, server_id)
File “jellyfin_kodi/downloader.py”, line 50, in _http
return Jellyfin(server_id).http.request(request)
File “jellyfin_kodi/jellyfin/http.py”, line 161, in request
response = r.json()
File “/storage/.kodi/addons/script.module.requests/lib/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
File “/storage/.kodi/addons/script.module.requests/lib/requests/models.py”, line 861, in text
content = str(self.content, encoding, errors=‘replace’)
MemoryError
2020-11-03 18:50:39.513 T:2660230000 NOTICE: JELLYFIN.full_sync -> INFO::jellyfin_kodi/full_sync.py:586 --<[ fullsync ]
2020-11-03 18:50:39.531 T:2660230000 NOTICE: JELLYFIN.library -> ERROR::jellyfin_kodi/library.py:319
Traceback (most recent call last):
File “jellyfin_kodi/library.py”, line 315, in startup
sync.libraries()
File “jellyfin_kodi/full_sync.py”, line 101, in libraries
self.start()
File “jellyfin_kodi/full_sync.py”, line 186, in start
self.process_library(library)
File “jellyfin_kodi/full_sync.py”, line 243, in process_library
medialibrary[‘CollectionType’]
File “jellyfin_kodi/helper/wrapper.py”, line 41, in wrapper
result = func(self, dialog=dialog, *args, **kwargs)
File “jellyfin_kodi/full_sync.py”, line 337, in tvshows
for episodes in server.get_episode_by_show(show[‘Id’]):
File “jellyfin_kodi/downloader.py”, line 145, in get_episode_by_show
for items in _get_items(query):
File “jellyfin_kodi/downloader.py”, line 287, in _get_items
for params, result in zip(query_params, results):
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/_base.py”, line 580, in map
yield future.result()
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/_base.py”, line 400, in result
return self.__get_result()
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/_base.py”, line 359, in __get_result
reraise(self._exception, self._traceback)
File "/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/compat.py", line 107, in reraise
exec(‘raise exc_type, exc_value, traceback’, {}, locals
)
File “/storage/.kodi/addons/script.module.futures/lib/concurrent/futures/thread.py”, line 61, in run
result = self.fn(*self.args, **self.kwargs)
File “jellyfin_kodi/downloader.py”, line 285, in
results = p.map(lambda params: _get(url, params, server_id=server_id), query_params)
File “jellyfin_kodi/downloader.py”, line 54, in _get
return _http(“GET”, get_jellyfinserver_url(handler), {‘params’: params}, server_id)
File “jellyfin_kodi/downloader.py”, line 50, in _http
return Jellyfin(server_id).http.request(request)
File “jellyfin_kodi/jellyfin/http.py”, line 161, in request
response = r.json()
File “/storage/.kodi/addons/script.module.requests/lib/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
File “/storage/.kodi/addons/script.module.requests/lib/requests/models.py”, line 861, in text
content = str(self.content, encoding, errors=‘replace’)
MemoryError
2020-11-03 18:50:52.147 T:2643456880 NOTICE: JELLYFIN.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:56 path: ?content_type=video params: {
“content_type”: “video”
}
2020-11-03 18:50:52.825 T:2643456880 NOTICE: JELLYFIN.main -> INFO::default.py:39 —<[ default ]
2020-11-03 18:51:01.407 T:2643456880 NOTICE: JELLYFIN.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:56 path: ?mode=restartservice params: {
“mode”: “restartservice”
}
2020-11-03 18:51:01.414 T:2643456880 NOTICE: JELLYFIN.main -> INFO::default.py:39 —<[ default ]
2020-11-03 18:51:02.088 T:2727605104 NOTICE: JELLYFIN.main -> ERROR::service.py:54 RestartService
Traceback (most recent call last):
File “service.py”, line 52, in run
service.service()
File “jellyfin_kodi/entrypoint/service.py”, line 116, in service
raise Exception(‘RestartService’)
Exception: RestartService
2020-11-03 18:51:02.100 T:2727605104 NOTICE: JELLYFIN.entrypoint.service -> INFO::jellyfin_kodi/entrypoint/service.py:409 —<[ EXITING ]
2020-11-03 18:51:02.219 T:2727605104 NOTICE: JELLYFIN.jellyfin.http -> INFO::jellyfin_kodi/jellyfin/http.py:47 --<[ session/2887484752 ]
2020-11-03 18:51:02.219 T:2685641584 ERROR: No handlers could be found for logger “root”
2020-11-03 18:51:02.226 T:2685641584 NOTICE: JELLYFIN.jellyfin.ws_client -> ERROR::jellyfin_kodi/jellyfin/ws_client.py:67 tuple index out of range
2020-11-03 18:51:02.232 T:2685641584 NOTICE: JELLYFIN.jellyfin.ws_client -> INFO::jellyfin_kodi/jellyfin/ws_client.py:64 —<[ websocket ]
2020-11-03 18:51:02.239 T:2727605104 NOTICE: JELLYFIN -> INFO::jellyfin_kodi/jellyfin/init.py:76 —[ STOPPED ALL JELLYFINCLIENTS ]—
2020-11-03 18:51:02.244 T:2727605104 NOTICE: JELLYFIN.entrypoint.service -> INFO::jellyfin_kodi/entrypoint/service.py:431 —<<<[ JELLYFIN ]
2020-11-03 18:51:02.245 T:2727605104 ERROR: Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
File “/storage/.kodi/addons/plugin.video.jellyfin/service.py”, line 62, in run
service.reload_objects()
File “/storage/.kodi/addons/plugin.video.jellyfin/jellyfin_kodi/entrypoint/service.py”, line 396, in reload_objects
del sys.modules[mod]
KeyError: u’objects.kodi.queries_texture’
2020-11-03 18:51:02.253 T:2798642032 NOTICE: JELLYFIN.main -> INFO::service.py:92 --<[ service ]
2020-11-03 18:51:02.576 T:2694034288 NOTICE: JELLYFIN.monitor -> INFO::jellyfin_kodi/monitor.py:460 —<[ listener ]
2020-11-03 18:51:03.132 T:2660230000 NOTICE: JELLYFIN.library -> INFO::jellyfin_kodi/library.py:104 —<[ library ]
2020-11-03 18:51:03.239 T:2798642032 WARNING: CPythonInvoker(1, /storage/.kodi/addons/plugin.video.jellyfin/service.py): the python script “/storage/.kodi/addons/plugin.video.jellyfin/service.py” has left several classes in memory that we couldn’t clean up. The classes include: N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N14PythonBindings30XBMCAddon_xbmc_Player_DirectorE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE
2020-11-03 18:51:11.946 T:2660230000 NOTICE: JELLYFIN.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:56 path: ?mode=managelibs params: {
“mode”: “managelibs”
}
2020-11-03 18:51:12.143 T:2660230000 NOTICE: JELLYFIN.main -> INFO::default.py:39 —<[ default ]
2020-11-03 18:51:21.871 T:2660230000 NOTICE: JELLYFIN.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:56 path: ?mode=refreshboxsets params: {
“mode”: “refreshboxsets”
}
2020-11-03 18:51:21.883 T:2660230000 NOTICE: JELLYFIN.main -> INFO::default.py:39 —<[ default ]
2020-11-03 18:51:25.799 T:2660230000 NOTICE: JELLYFIN.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:56 path: ?mode=updatelibs params: {
“mode”: “updatelibs”
}
2020-11-03 18:51:25.809 T:2660230000 NOTICE: JELLYFIN.main -> INFO::default.py:39 —<[ default ]
2020-11-03 18:51:57.446 T:3011906016 NOTICE: Quitting due to POSIX signal
2020-11-03 18:51:57.479 T:3011906016 NOTICE: Stopping player
2020-11-03 18:51:57.479 T:3011906016 NOTICE: Storing total System Uptime
2020-11-03 18:51:57.479 T:3011906016 NOTICE: Saving settings
2020-11-03 18:51:57.486 T:3011906016 NOTICE: Saving skin settings
2020-11-03 18:51:57.488 T:3011906016 NOTICE: Stopping all
2020-11-03 18:51:57.488 T:3011906016 NOTICE: ES: Stopping event server
2020-11-03 18:51:57.679 T:2479203184 NOTICE: ES: UDP Event server stopped
2020-11-03 18:51:58.418 T:3011906016 NOTICE: stopping zeroconf publishing
2020-11-03 18:51:58.423 T:3011906016 NOTICE: CWebServer[8080]: Stopped
2020-11-03 18:51:58.424 T:3011906016 NOTICE: stop dvd detect media
2020-11-03 18:51:58.565 T:3011906016 NOTICE: Application stopped
2020-11-03 18:51:58.766 T:3011906016 NOTICE: XBApplicationEx: destroying…
2020-11-03 18:51:59.346 T:3011906016 NOTICE: unload skin
2020-11-03 18:51:59.466 T:3011906016 NOTICE: unload sections
2020-11-03 18:51:59.837 T:3011906016 NOTICE: XBApplicationEx: application stopped!

This should have been fixed in this PR and will be included in the next release https://github.com/jellyfin/jellyfin-kodi/pull/410.

If you don’t want to wait, you should be able to use this recent build which includes the fix.

https://artprodsu6weu.artifacts.visualstudio.com/Aa752b3a7-9db7-4862-a13c-768672f19bbe/7cce6c46-d610-45e3-9fb7-65a6bfd1b671/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2plbGx5ZmluLXByb2plY3QvcHJvamVjdElkLzdjY2U2YzQ2LWQ2MTAtNDVlMy05ZmI3LTY1YTZiZmQxYjY3MS9idWlsZElkLzE3MzQ0L2FydGlmYWN0TmFtZS9wbHVnaW4udmlkZW8uamVsbHlmaW4tcHkyLTIwMjAxMTAyLjM1/content?format=zip

Ok, thank you.

I’ll try that.