Bug 693923 - MUPDF running on Android
Summary: MUPDF running on Android
Status: RESOLVED INVALID
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows 7
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 11:38 UTC by Amr Mohsen
Modified: 2014-02-25 10:49 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
java.lang.ExceptionInInitializerError (23.51 KB, image/png)
2013-04-18 11:38 UTC, Amr Mohsen
Details
loading the mupdf in the MUPDFCore class (10.89 KB, image/png)
2013-04-18 12:50 UTC, Amr Mohsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amr Mohsen 2013-04-18 11:38:42 UTC
Created attachment 9573 [details]
java.lang.ExceptionInInitializerError

Hello,

After I have built the MUPDF and importing it to the Eclipse, every time I try to run it on emulator or any android device it produce this error in the logcat _see the attachment_ error is: java.lang.ExceptionInInitializerError.
Comment 1 Robin Watts 2013-04-18 12:03:24 UTC
So your log trace clearly points you at MuPDFActivity.java at line 215. Looking there, I see the following:

	System.out.println(e);

It seems odd to me that this line should cause such an error. Are you sure you haven't made changes to the code?

At any rate, towards the top of openFile, you should see:

	System.out.println("Trying to open "+path);

It would be interesting to know what path you are trying to open.

You'll probably find it easier to solve this if you visit us on irc in the #ghostscript channel. See the mupdf.com site for a weblink you can use.
Comment 2 Amr Mohsen 2013-04-18 12:50:43 UTC
Created attachment 9574 [details]
loading the mupdf in the MUPDFCore class

Actually, when I tried to debug step by step, I reached to "MUPDFCore" class and in that line "System.loadLibrary("mupdf");" it give me the Error "java.lang.ExceptionInInitializerError", I have pushed a pdf file to the emulator and when I select it, it gives me that error, I am trying to solve this bug 2 weeks, I really appreciate if I can chat with someone who knows the solution, this is my email "amrmohsen91@gmail.com"
Comment 3 Robin Watts 2013-04-18 13:52:59 UTC
(In reply to comment #2)
> Created attachment 9574 [details]
> loading the mupdf in the MUPDFCore class
> 
> Actually, when I tried to debug step by step, I reached to "MUPDFCore" class
> and in that line "System.loadLibrary("mupdf");" it give me the Error
> "java.lang.ExceptionInInitializerError",

So the problem is in the loading of the native library. I would assume there is an error in the way you have linked it. Without knowing more of what you have done, there isn't much I can help with here.

Does MuPDF work as downloaded from google play?

> I have pushed a pdf file to the
> emulator and when I select it, it gives me that error, I am trying to solve
> this bug 2 weeks, I really appreciate if I can chat with someone who knows
> the solution, this is my email "amrmohsen91@gmail.com"

You can chat to us live by going here:

http://webchat.freenode.net/?channels=ghostscript
Comment 4 Robin Watts 2013-04-29 11:00:31 UTC
Closing.