Couple of weeks after firmware updating I started to get Autotimer error every time when it runs.
One specific autotimer item is causing the error. If I disable that item, no more errors.

Autotimer error log:
I have done couple of experiments, and here is the summary:
Some kind of resource limitation issue?
One specific autotimer item is causing the error. If I disable that item, no more errors.

Autotimer error log:
Code:
<160600.3889> 15:39:56.3095 [eEPGCache] lookup events with 'Simpsonit' in title (ignore case)
<160600.5162> 15:39:56.4369 [Task] >>> Error: [<Components.Task.FailedPostcondition object at 0x69a99340>]
<160600.5169> 15:39:56.4375 [Task] job Components.Task.Job name=Automaattiajastus #tasks=23 completed with [<Components.Task.FailedPostcondition object at 0x69a99340>] in Components.Task.Task name=Simpsonit_14
<160600.5184> 15:39:56.4390 [Task] unrecoverable task failure
<160600.5186> 15:39:56.4392 Automaattiajastus
Virhe: [Failure instance: Traceback: <class 'SystemError'>: <built-in function eEPGCache_search> returned a result with an error set
/usr/lib/python3.9/threading.py:973:_bootstrap_inner
/usr/lib/python3.9/threading.py:910:run
/usr/lib/python3.9/site-packages/twisted/_threads/_threadworker.py:47:work
/usr/lib/python3.9/site-packages/twisted/_threads/_team.py:181:doWork
--- <exception caught here> ---
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:238:inContext
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:254:<lambda>
/usr/lib/python3.9/site-packages/twisted/python/context.py:118:callWithContext
/usr/lib/python3.9/site-packages/twisted/python/context.py:83:callWithContext
/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimer.py:344:JobStart
/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimer.py:441:parseTimer
]<160600.5188> 15:39:56.4394
I have done couple of experiments, and here is the summary:
- If there are lot of search results (~50 or more) for a keyword in autotimer, it fails.
- Easy to reproduce by using OpenWebIf AutoTimer->Simulate.
- The issue is not in the AutoTimer itself. It seems to be an EPG search issue. I reproduced the same kind of issue without autotimer, if searching the same keyword from EPG by WWW-browser:
http://<IP-address>/web/epgsearch?search=<keyword> - I tried to limit the number of search results by modifying the python file: /usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimer.py line 441
Original (maxmatches=3000):
epgmatches = epgcache.search(('RITBDSE', 3000, EPG_searchType, match, caseMap[timer.searchCase])) or []
Modified (maxmatches=44):
epgmatches = epgcache.search(('RITBDSE', 44, EPG_searchType, match, caseMap[timer.searchCase])) or []
No AutoTimer error after that modification. (bigger maxmatches >= 45 gives the error) - Same here: /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/services.py line 1001:
Original:
events = epgcache.search(('IBDTSENRW', 128, search_type, sstr, 1))
Modified:
events = epgcache.search(('IBDTSENRW', 43, search_type, sstr, 1))
No Search error after that modification.
Some kind of resource limitation issue?

