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

EPub3.openBook error : JNI ERROR (app bug): local reference table overflow (max=512) #103

Open
romaingiard opened this issue Sep 7, 2016 · 2 comments

Comments

@romaingiard
Copy link

When I try to open an epub file (With many entries in opf) got the error: JNI ERROR (app bug): local reference table overflow (max=512)

Have you got any idea ?
Thakn you.

Below the stack trace

09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113] JNI ERROR (app bug): local reference table overflow (max=512)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113] local reference table dump:
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]   Last 10 entries (of 512):
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       511: 0x12e6ba20 java.lang.String "images_pages-cha... (44 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       510: 0x12e6b980 java.lang.String "images_pages-cha... (44 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       509: 0x12e6b8e0 java.lang.String "images_pages-cha... (44 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       508: 0x12e6b840 java.lang.String "images_pages-cha... (45 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       507: 0x12e6b7a0 java.lang.String "images_pages-cha... (55 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       506: 0x12e6b700 java.lang.String "images_pages-cha... (41 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       505: 0x12e6b620 java.lang.String "images_pages-cha... (41 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       504: 0x12e6b580 java.lang.String "images_pages-cha... (41 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       503: 0x12e6b4e0 java.lang.String "images_pages-cha... (41 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       502: 0x12e6b440 java.lang.String "images_pages-cha... (46 chars)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]   Summary:
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]       445 of java.lang.String (445 unique instances)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]         1 of org.readium.sdk.android.Container
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]        20 of java.lang.String (20 unique instances)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]         1 of java.util.ArrayList
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113]        45 of java.lang.String (45 unique instances)
09-07 15:54:57.218 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/indirect_reference_table.cc:113] 
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290] Runtime aborting...
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290] Aborting thread:
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290] "Thread-753" prio=5 tid=24 Runnable
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   | group="" sCount=0 dsCount=0 obj=0x132586e0 self=0xef288400
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   | sysTid=2194 nice=0 cgrp=apps sched=0/0 handle=0xf0053000
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   | state=R schedstat=( 365097814 21938595 123 ) utm=36 stm=0 core=5 HZ=100
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   | stack=0xdf600000-0xdf602000 stackSize=1036KB
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   | held mutexes= "abort lock" "mutator lock"(shared held)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #00 pc 00004640  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #01 pc 00002e8d  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #02 pc 0023f2d7  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*, BacktraceMap*)+70)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #03 pc 00224a7b  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, BacktraceMap*) const+154)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #04 pc 00214701  /system/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*)+24)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #05 pc 00214983  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+390)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #06 pc 00214b85  /system/lib/libart.so (art::Runtime::Abort()+72)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #07 pc 000a65bb  /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #08 pc 00151d3b  /system/lib/libart.so (art::IndirectReferenceTable::Add(unsigned int, art::mirror::Object*)+346)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #09 pc 001c5aeb  /system/lib/libart.so (art::JNI::CallStaticObjectMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+298)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #10 pc 000b7eff  /system/lib/libart.so (art::CheckJNI::CallStaticObjectMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+90)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #11 pc 000d3549  /data/app/nordsoft.com.readiumbibliotheque-2/lib/arm/libepub3.so (_JNIEnv::CallStaticObjectMethod(_jclass*, _jmethodID*, ...)+28)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #12 pc 000d9b07  /data/app/nordsoft.com.readiumbibliotheque-2/lib/arm/libepub3.so (Java_org_readium_sdk_android_Package_nativeGetManifestTable+234)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   native: #13 pc 001f00e3  /data/dalvik-cache/arm/data@[email protected]@[email protected] (Java_org_readium_sdk_android_Package_nativeGetManifestTable__J+90)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   at org.readium.sdk.android.Package.nativeGetManifestTable(Native method)
09-07 15:54:57.230 28369-2194/nordsoft.com.readiumbibliotheque A/art: art/runtime/runtime.cc:290]   at `org.readium.sdk.android.Package.loadData(Package.java:166)

@rkwright
Copy link
Member

rkwright commented Sep 7, 2016

@romaingiard Hm. Looks like a bug. How MANY entries are in the OPF? By entries do you mean manifest items? Is it possible to share the book?

@romaingiard
Copy link
Author

I think It's ok , I modified SDK C++ when I roll back it works good

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

No branches or pull requests

2 participants