android集成EASYAR,当识别的图片较多时,会出现错误,导致程序崩溃,具体bug如下?求解,谢谢

0 投票
最新提问 8月 16, 2017 用户: liwenxue (120 分)
JNI ERROR (app bug): local reference table overflow (max=512)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138] local reference table dump:
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]   Last 10 entries (of 512):
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       511: 0x12e8b480 java.lang.String "cn.easyar.ImageT... (21 chars)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       510: 0x12f374c0 java.lang.String "UTF-8"
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       509: 0x70b61580 java.lang.Class<java.lang.String>
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       508: 0x12d7f3a8 byte[] (21 elements)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       507: 0x71265e80 java.lang.Class<dalvik.system.PathClassLoader>
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       506: 0x12c3f820 cn.easyar.ImageTarget
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       505: 0x12e41880 java.lang.Class<cn.easyar.ImageTarget>
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       504: 0x12e8b400 java.lang.String "cn.easyar.ImageT... (21 chars)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       503: 0x12f37540 java.lang.String "UTF-8"
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       502: 0x70b61580 java.lang.Class<java.lang.String>
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]   Summary:
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]        71 of cn.easyar.ImageTarget (71 unique instances)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       219 of java.lang.Class (6 unique instances)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]       147 of java.lang.String (147 unique instances)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]         1 of java.lang.String[] (3 elements)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]        72 of byte[] (21 elements) (72 unique instances)
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]         1 of java.util.ArrayList
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]         1 of dalvik.system.PathClassLoader
08-16 17:13:29.040 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/indirect_reference_table.cc:138]
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408] Runtime aborting...
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408] Aborting thread:
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408] "main" prio=5 tid=1 Runnable
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   | group="" sCount=0 dsCount=0 obj=0x76fa2578 self=0xe8584f00
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   | sysTid=28513 nice=0 cgrp=default sched=0/0 handle=0xeb311534
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   | state=R schedstat=( 716249478 135015631 1323 ) utm=59 stm=12 core=6 HZ=100
08-16 17:13:29.129 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   | stack=0xff34f000-0xff351000 stackSize=8MB
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   | held mutexes= "abort lock" "mutator lock"(shared held)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at java.lang.VMClassLoader.findLoadedClass!(Native method)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at java.lang.ClassLoader.loadClass(ClassLoader.java:362)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at cn.easyar.ImageTarget.setupAll(Native method)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at com.guangyiedu.jiudou.helloar.HelloAR.loadAllFromJsonFile(HelloAR.java:121)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at com.guangyiedu.jiudou.helloar.HelloAR.initialize(HelloAR.java:148)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   at com.guangyiedu.jiudou.helloar.GLView.onAttachedToWindow(GLView.java:45)
08-16 17:13:29.130 28513-28513/com.guangyiedu.jiudou A/art: art/runtime/runtime.cc:408]   - locked <0x067b8520> (a com.guangyiedu.jiudou.helloar.HelloAR)

1个回答

0 投票
最新回答 8月 17, 2017 用户: kenn (19,220 分)
问题已修复,将在下个版本中发出。
欢迎来到 EasyAR Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...