社区
Android
帖子详情
android.database.sqlite.SQLiteDiskIOException: disk I/O error的异常问题
longzhanfeng
2013-09-10 10:21:56
这几天改bug,不小心改出这个问题来了 主要是操作了sqlite数据库,db.query的时候莫名奇妙的就抛出这个异常, 百度 google一直都找不到是什么原因导致的。试了在查询的时候 因为是多线程操作 也给db对象也上锁了。,,可是还是会有这个异常抛出来,各位兄弟们,有解决过这个问题的吗 可以给点建议吗
...全文
3239
4
打赏
收藏
android.database.sqlite.SQLiteDiskIOException: disk I/O error的异常问题
这几天改bug,不小心改出这个问题来了 主要是操作了sqlite数据库,db.query的时候莫名奇妙的就抛出这个异常, 百度 google一直都找不到是什么原因导致的。试了在查询的时候 因为是多线程操作 也给db对象也上锁了。,,可是还是会有这个异常抛出来,各位兄弟们,有解决过这个问题的吗 可以给点建议吗
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
longzhanfeng
2013-11-02
打赏
举报
回复
我解决了。。不过是一行行代码排除的。。用极光推送的sdk 有个resume方法 频繁的resume 就会这样。。。估计是内存不足,或者对sqlite的操作太频繁就会这样,我当时是这样解决的,不过看见你的异常,应该是多线程的问题,试试在每个调用db的方法上 都给方法名上锁 试试。这个崩溃很莫名其妙的。。很难定位
小土豆007
2013-10-30
打赏
举报
回复
楼主,这个问题解决的怎么样了,现在我也碰到了这个问题,还没找到原因。 10-30 11:47:14.997 E/AndroidRuntime( 1597): FATAL EXCEPTION: Thread-193 10-30 11:47:14.997 E/AndroidRuntime( 1597): android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 522) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at android.content.ContentProviderProxy.query(ContentProviderNative.java:385) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at android.content.ContentResolver.query(ContentResolver.java:414) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at android.content.ContentResolver.query(ContentResolver.java:357) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at com.android.gallery3d.data.LocalAlbum.getMediaItemCount(LocalAlbum.java:232) 10-30 11:47:14.997 E/AndroidRuntime( 1597): at com.android.gallery3d.data.MediaSet.getTotalMediaItemCount(MediaSet.java:111)
longzhanfeng
2013-09-11
打赏
举报
回复
我在每个调用db对象的地方 都加了一个对象锁 理论上应该避免了并发的原因呀,但是还是莫名奇妙的爆这个问题
iltgcl
2013-09-11
打赏
举报
回复
多线程并发写操作造成,建议创建DAO对象,提供同步方式的api。所有数据库访问必须通过DAO对象来进行。
svn
sqlite
3清理失败解决工具
svn
sqlite
3清理失败解决工具svn
sqlite
3清理失败解决工具svn
sqlite
3清理失败解决工具
Sqlite
数据库文件
Sqlite
数据库报错:
database
disk
image is malformed 按照博文的方法终于解决了我的
问题
: cmd切换到该目录下然后输入:
sqlite
3 old.db .dump > newsfeed.sql 和
sqlite
3 new.db < newsfeed.sql
The
database
disk
image is malformed 错误修复工具
sqlite
出现 The
database
disk
image is malformed
问题
得修复工具 使用方式 repairTool.exe 旧库的名字 新库的名字
Python Cookbook, 2nd Edition
• Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic Python Cookbook, 2nd Edition By David Ascher, Alex Martelli, Anna Ravenscroft Publisher : O'Reilly Pub Date : March 2005 ISBN : 0-596-00797-3 Pages : 844 Copyright Preface The Design of the Book The Implementation of the Book Using the Code from This Book Audience Organization Further Reading Conventions Used in This Book How to Contact Us Safari® Enabled Acknowledgments Chapter 1. Text Introduction Recipe 1.1. Processing a String One Character at a Time Recipe 1.2. Converting Between Characters and Numeric Codes Recipe 1.3. Testing Whether an Object Is String-like Recipe 1.4. Aligning Strings Recipe 1.5. Trimming Space from the Ends of a String Recipe 1.6. Combining Strings Recipe 1.7. Reversing a String by Words or Characters Recipe 1.8. Checking Whether a String Contains a Set of Characters Recipe 1.9. Simplifying Usage of Strings' translate Method Recipe 1.10. Filtering a String for a Set of Characters Recipe 1.11. Checking Whether a String Is Text or Binary Recipe 1.12. Controlling Case Recipe 1.13. Accessing Substrings Recipe 1.14. Changing the Indentation of a Multiline String Recipe 1.15. Expanding and Compressing Tabs Recipe 1.16. Interpolating Variables in a String Recipe 1.17. Interpolating Variables in a Stringin Python 2.4 Recipe 1.18. Replacing Multiple Patterns in a Single Pass Recipe 1.19. Checking a String for Any of Multiple Endings Recipe 1.20. Handling International Text with Unicode Recipe 1.21. Converting Between Unicode and Plain Strings Recipe 1.22. Printing Unicode Charactersto Standard Output
数据库
异常
android
.
database
.
sqlite
.
SQLite
Disk
IOException
:
disk
I/O
error
(code 1802)
遇到的一些
SQLite
异常
android
.
database
.
sqlite
.
SQLite
Disk
IOException
:
disk
I/O
error
(code 1802) 原因:The
SQLITE
_IOERR_FSTAT
error
code is an extended
error
code for
SQLITE
_IOERR indicating an I/O
error
in the...
Android
80,471
社区成员
91,385
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章