Comments (2)
So far this appears to be a performance issue on the Android emulators only, but I only have one physical Android device to test on. I also see "disk I/O" errors on the emulator which lead to the same result - database queries that fail. This makes more sense than "database is locked" anyway -- SQLite is using WAL mode, which uses a secondary transaction log file. The solution on Android may be to implement a retry mechanism, but I would prefer to find the root cause why this happens first; I would expect SQLite to handle the slow storage better than it seems to.
from pvr.hdhomerundvr.
Root cause appears to have been the introduction of a connection pool for the SQLite database without cleaning up the steps and order of operations used when opening a new connection. Database schema and static table data were being reinitialized unnecessarily but more importantly ensuring that the database is set for WAL and setting up the busy handler was being done after these initialization tasks. These changes appear to have resolved the problem.
from pvr.hdhomerundvr.
Related Issues (20)
- Block trying to set up a recording rule for a channel that is only available on legacy devices HOT 2
- Create a wiki page describing how legacy devices are supported HOT 1
- Manually triggering a discovery event should log the entry/exit points HOT 1
- Update build environment to use Xcode 11.3.1 / Mac OS SDK 10.15 HOT 1
- Consider switch to wolfssl from OpenSSL HOT 3
- Update SQLite to version 3.38.0 HOT 2
- Update libcurl to 7.82.0 HOT 1
- Update libxml2 to 2.9.13 HOT 1
- Rework the update repository to also allow for prior versions HOT 1
- Canonicalize all file system paths prior to using them HOT 1
- Libelec on Raspberry Pi 4 HOT 2
- Channel Guide Missing on Fire TV Cube HOT 2
- Add ability to specify an HDHR device by fixed IP address
- Add ability to specify (fixed) IP address of HDHR appliance(s) to better integrate with VPNs HOT 4
- Upgrade to LibreELEC RPI 11.0 7-23 Nightly causes boot loop with pvr.hdhomerundvr enabled HOT 3
- Kodi Nexus 9-17 Nightly upgrade causes a compatibility issue with pvr.hdhomerundvr HOT 7
- Base Function Questions HOT 5
- New timer HOT 2
- How to display channel name in recordings HOT 2
- Slow enumeration of Recordings HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pvr.hdhomerundvr.