android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 14)

03-31 12:19:37.634 E/IMemory ( 1002): cannot dup fd=49, size=1048576, err=0 (Too many open files)

03-31 12:19:37.634 E/IMemory ( 1002): cannot map BpMemoryHeap (binder=0x67eee880), size=1048576, fd=-1 (Bad file number)

03-31 12:19:37.634 I/AwesomePlayer(  107): AwesomePlayer::AwesomePlayer()in

03-31 12:19:37.634 I/AwesomePlayer(  107): AwesomePlayer::AwesomePlayer()aftermClient.connect()

03-31 12:19:37.644 I/WAVExtractor(  107): mBytesPerSample 2 mNumChannels 1 PCMBytesPresent 30080 offset 44 size 0

03-31 12:19:37.644 I/WAVExtractor(  107): ---->mNumSamples 15040 mSampleRate 16000 duration_us 940000

03-31 12:19:37.644 I/WAVExtractor(  107): mBytesPerSample 2 mNumChannels 1 PCMBytesPresent 30080 offset 44 size 0

03-31 12:19:37.644 I/WAVExtractor(  107): ---->mNumSamples 15040 mSampleRate 16000 duration_us 940000

03-31 12:19:37.654 D/CrashReport( 1002): [Util] Unzip 310 bytes data with type Gzip

03-31 12:19:37.654 D/CrashReport( 1002): [Upload] Response cmd is: 0, length of sBuffer is: 271

03-31 12:19:37.654 I/CrashReport( 1002): [Upload] Success: crash

03-31 12:19:37.654 E/SQLiteLog( 1002): (14) cannot open file at line 30176 of [00bb9c9ce4]

03-31 12:19:37.654 E/SQLiteLog( 1002): (14) os_unix.c:30176: (24) open(/data/data/com.product/databases/bugly_db_-journal) - 

03-31 12:19:37.654 E/SQLiteLog( 1002): (14) cannot open file at line 30176 of [00bb9c9ce4]

03-31 12:19:37.654 E/SQLiteLog( 1002): (14) os_unix.c:30176: (24) open(/data/data/com.product/databases/bugly_db_-journal) - 

03-31 12:19:37.664 E/SQLiteLog( 1002): (14) statement aborts at 17: [SELECT * FROM t_lr WHERE _tp = 3] unable to open database file

03-31 12:19:37.664 E/SQLiteQuery( 1002): exception: unable to open database file (code 14); query: SELECT * FROM t_lr WHERE _tp = 3

03-31 12:19:37.664 W/CrashReport( 1002): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 14)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:838)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)

03-31 12:19:37.664 W/CrashReport( 1002):    at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)

03-31 12:19:37.664 W/CrashReport( 1002):    at com.tencent.bugly.proguard.ak.a(BUGLY:437)

03-31 12:19:37.664 W/CrashReport( 1002):    at com.tencent.bugly.proguard.aq.a(BUGLY:283)

03-31 12:19:37.664 W/CrashReport( 1002):    at com.tencent.bugly.proguard.ar.a(BUGLY:183)

03-31 12:19:37.664 W/CrashReport( 1002):    at com.tencent.bugly.proguard.ar.run(BUGLY:482)

03-31 12:19:37.664 W/CrashReport( 1002):    at java.lang.Thread.run(Thread.java:856)

问题的解决方案:
感谢这个博主

里面有提到出现这个问题的几个原因,其中第二点指出,fd的文件句柄,在每个进程中只能有1024个fd句柄,在项目中使用SoundPlay播放本机的音频数据,我加载之后没有正确的释放,造成了句柄没有释放,造成句柄泄露.
我找了2天,此刻我的心情,激动的说不出话来.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值