Open fire-bot opened 4 years ago
07-14 08:52:42.154 8583 8943 W Slf4jAndroidLogger: Caused by: java.io.FileNotFoundException: /storage/emulated/0/Android/data/net.bible.android.activity/files/lucene/Sword/KJV.Creating/_m.tvf: open failed: EACCES (Permission denied)
Why it does not get permission its own folder?
Installing API 24 image in emulator and trying.
No crash occurred.
I think this is a Android bug, I've had a similar permission issue in another app a few times.
Sent by Errors Andbible. Created by fire.
I was indexing the KJV in the background and it seemed to crash before it was finished.
--- WRITE BUG REPORT ABOVE THIS LINE ---
Instructions:
Tell us briefly what did you do / what happened when the issue took place. Example:
1. Opened app
2. Clicked window menu
-> Crash
Sometimes screenshot also is beneficial in resolving issues. Please use this function to report as soon as you have noticed it taking place. You can also use this function after opening the app, after the crash has taken place.
Device info:
And Bible version: 3.3.380#ee705e092 (built 16/06/20 15:22:00)
Android version: 7.0
Android SDK version: 24
Manufacturer: motorola
Model: Moto G (4)
Storage Mb free: 421
Used heap memory in Mb: 33
Max heap memory in Mb: 192
Exception:
org.crosswire.jsword.book.BookException: Failed to initialize Lucene search engine.
at org.crosswire.jsword.index.lucene.LuceneIndex.(LuceneIndex.java:241)
at org.crosswire.jsword.index.lucene.LuceneIndexManager.scheduleIndexCreation(LuceneIndexManager.java:143)
at net.bible.service.sword.index.IndexCreator$scheduleIndexCreation$work$1.run(IndexCreator.kt:39)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.io.FileNotFoundException: /storage/emulated/0/Android/data/net.bible.android.activity/files/lucene/Sword/KJV.Creating/_m.tvf: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:455)
at java.io.RandomAccessFile.(RandomAccessFile.java:247)
at org.apache.lucene.store.FSDirectory$FSIndexOutput.(FSDirectory.java:441)
at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:306)
at org.apache.lucene.index.TermVectorsTermsWriter.initTermVectorsWriter(TermVectorsTermsWriter.java:132)
at org.apache.lucene.index.TermVectorsTermsWriter.finishDocument(TermVectorsTermsWriter.java:151)
at org.apache.lucene.index.TermVectorsTermsWriter$PerDoc.finish(TermVectorsTermsWriter.java:258)
at org.apache.lucene.index.DocFieldProcessorPerThread$PerDoc.finish(DocFieldProcessorPerThread.java:353)
at org.apache.lucene.index.DocumentsWriter$WaitQueue.writeDocument(DocumentsWriter.java:1404)
at org.apache.lucene.index.DocumentsWriter$WaitQueue.add(DocumentsWriter.java:1424)
at org.apache.lucene.index.DocumentsWriter.finishDocument(DocumentsWriter.java:1043)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:772)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2060)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2034)
at org.crosswire.jsword.index.lucene.LuceneIndex.generateSearchIndexImpl(LuceneIndex.java:459)
at org.crosswire.jsword.index.lucene.LuceneIndex.(LuceneIndex.java:207)
... 3 more
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:187)
at libcore.io.IoBridge.open(IoBridge.java:441)
... 18 more
Sent from ProtonMail mobile
--
Best regards,
Tuomas
Attachments: