DBDigital / nookdevs

Automatically exported from code.google.com/p/nookdevs Please note I am not a developer. I only created this to prevent the code from being lost with the shutdown of GoogleCode. If you wish to work on this, contact me and I will add you. :)
0 stars 0 forks source link

nookLibrary needs to wrap try around ScannedFile call #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I'm not sure which epub file is causing this problem but I see this in 
  adb lolcat :

E/AndroidRuntime( 2129): Uncaught handler: thread Thread-13 exiting due to
uncaught exception         
E/AndroidRuntime( 2129): java.lang.OutOfMemoryError                       

E/AndroidRuntime( 2129):        at
java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:99) 

E/AndroidRuntime( 2129):        at
java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:170)   

E/AndroidRuntime( 2129):        at
java.lang.StringBuffer.append(StringBuffer.java:225)               
E/AndroidRuntime( 2129):        at
com.bravo.ecm.service.ScannedFile.setTitle(ScannedFile.java:527)   
E/AndroidRuntime( 2129):        at
com.nookdevs.library.EpubMetaReader.parse(EpubMetaReader.java:199) 
E/AndroidRuntime( 2129):        at
com.nookdevs.library.EpubMetaReader.<init>(EpubMetaReader.java:57) 
E/AndroidRuntime( 2129):        at
com.bravo.ecm.service.ScannedFile.updateMetaData(ScannedFile.java:310)    

E/AndroidRuntime( 2129):        at
com.bravo.ecm.service.ScannedFile.<init>(ScannedFile.java:329)     
E/AndroidRuntime( 2129):        at
com.bravo.ecm.service.ScannedFile.<init>(ScannedFile.java:315)     
E/AndroidRuntime( 2129):        at
com.nookdevs.library.OtherBooks.retrieveFiles(OtherBooks.java:385) 
E/AndroidRuntime( 2129):        at
com.nookdevs.library.OtherBooks.retrieveFiles(OtherBooks.java:375) 
E/AndroidRuntime( 2129):        at
com.nookdevs.library.OtherBooks.retrieveFiles(OtherBooks.java:375) 
E/AndroidRuntime( 2129):        at
com.nookdevs.library.OtherBooks.retrieveFiles(OtherBooks.java:375) 
E/AndroidRuntime( 2129):        at
com.nookdevs.library.OtherBooks.getOtherBooks(OtherBooks.java:354) 
E/AndroidRuntime( 2129):        at
com.nookdevs.library.NookLibrary$7.run(NookLibrary.java:455)       
E/AndroidRuntime( 2129):        at java.lang.Thread.run(Thread.java:1058) 

E

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
nook 1.3/nookLibrary 0.09

Please provide any additional information below.

Original issue reported on code.google.com by bgalbre...@gmail.com on 25 Apr 2010 at 5:25

GoogleCodeExporter commented 8 years ago
I tried adding a try/catch around the sf = new ScannedFile(), but it still 
failed. 
It appears that nookLibrary is using too much memory when you get up to around 
2100
books.

Original comment by bgalbre...@gmail.com on 25 Apr 2010 at 8:38

GoogleCodeExporter commented 8 years ago
I probably have to add code to clear some of the cache data. I think this is 
what is 
causing the issue. 
I only have ~1000 books in my nook and never had this issue. So, I'll add the 
code 
and attach the apk file to this issue for testing. It will probably be next 
weekend.

Original comment by hari.swa...@gmail.com on 25 Apr 2010 at 11:19

GoogleCodeExporter commented 8 years ago
Can you give it a try with the attached package?

Original comment by hari.swa...@gmail.com on 26 Apr 2010 at 9:28

Attachments:

GoogleCodeExporter commented 8 years ago
I haven't tried your attached package, but I noticed that you had updated
ScannedFile, and recompiled it while I was working on adding the additional 1.3 
icons
to nookLauncher.  It worked for me with 2700 files.

Original comment by bgalbre...@gmail.com on 27 Apr 2010 at 7:20

GoogleCodeExporter commented 8 years ago
ok. great. Now, someone has to check it with 20,000 files :)
I guess that can wait.

Original comment by hari.swa...@gmail.com on 27 Apr 2010 at 12:36

GoogleCodeExporter commented 8 years ago

Original comment by hari.swa...@gmail.com on 25 Jun 2010 at 12:56