Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed crash on fb2 parser couldn't parse xml encoding #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OSemenovBoyarka
Copy link

This is probably bug in xml parser library, for now just catched all exceptions so if something wrong in library - skip book details and show as is

Here is example of log:

01-18 15:05:48.539: W/System.err(2932): java.io.IOException: Unknown encoding
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.Fb2InstantParser.getXmlEncoding(Fb2InstantParser.java:92)
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.Fb2InstantParser.createSource(Fb2InstantParser.java:47)
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.Fb2InstantParser.<init>(Fb2InstantParser.java:40)
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.InstantParser.parseFb2Zip(InstantParser.java:68)
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.InstantParser.parseFile(InstantParser.java:40)
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.Parser.parse(Parser.java:48)
01-18 15:05:48.539: W/System.err(2932):     at ebook.parser.Parser.parse(Parser.java:35)
01-18 15:05:48.539: W/System.err(2932):     at com.harasoft.relaunch.BooksBase.getEbookName(BooksBase.java:175)
01-18 15:05:48.539: W/System.err(2932):     at com.harasoft.relaunch.BooksBase.getEbookName(BooksBase.java:216)
01-18 15:05:48.539: W/System.err(2932):     at com.harasoft.relaunch.ReLaunch.drawDirectory(ReLaunch.java:1130)
01-18 15:05:48.539: W/System.err(2932):     at com.harasoft.relaunch.ReLaunch.onStart(ReLaunch.java:2695)
01-18 15:05:48.539: W/System.err(2932):     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
01-18 15:05:48.539: W/System.err(2932):     at android.app.Activity.performStart(Activity.java:3740)
01-18 15:05:48.539: W/System.err(2932):     at android.app.Activity.performRestart(Activity.java:3768)
01-18 15:05:48.539: W/System.err(2932):     at android.app.Activity.performResume(Activity.java:3773)
01-18 15:05:48.539: W/System.err(2932):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2937)
01-18 15:05:48.539: W/System.err(2932):     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2965)
01-18 15:05:48.539: W/System.err(2932):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1889)
01-18 15:05:48.539: W/System.err(2932):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-18 15:05:48.539: W/System.err(2932):     at android.os.Looper.loop(Looper.java:123)
01-18 15:05:48.539: W/System.err(2932):     at android.app.ActivityThread.main(ActivityThread.java:4363)
01-18 15:05:48.547: W/System.err(2932):     at java.lang.reflect.Method.invokeNative(Native Method)
01-18 15:05:48.547: W/System.err(2932):     at java.lang.reflect.Method.invoke(Method.java:521)
01-18 15:05:48.547: W/System.err(2932):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-18 15:05:48.547: W/System.err(2932):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-18 15:05:48.547: W/System.err(2932):     at dalvik.system.NativeStart.main(Native Method)

@OSemenovBoyarka
Copy link
Author

Please, review this :)

@ghost
Copy link

ghost commented Dec 10, 2015

Is there a binary I can install somewhere?

@OSemenovBoyarka
Copy link
Author

Sorry, I've missed binary somewhere. But you can try to build it from source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant