Open GoogleCodeExporter opened 9 years ago
07-31 14:35:38.685: W/dalvikvm(13686): ReferenceTable overflow (max=1024)
07-31 14:35:38.685: W/dalvikvm(13686): JNI pinned array reference table
(0x5fc810) dump:
07-31 14:35:38.685: W/dalvikvm(13686): Last 10 entries (of 1024):
07-31 14:35:38.685: W/dalvikvm(13686): 1023: 0x4130ada8 char[] (29
elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1022: 0x4130a768 char[] (29
elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1021: 0x413ad8d0 char[] (29
elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1020: 0x413aa990 char[] (36
elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1019: 0x40ea2eb0 char[] (5 elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1018: 0x40e262d8 char[] (5 elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1017: 0x40ee8000 char[] (4 elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1016: 0x40e97418 char[] (4 elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1015: 0x413a9e38 char[] (22
elements)
07-31 14:35:38.685: W/dalvikvm(13686): 1014: 0x413a9858 char[] (33
elements)
07-31 14:35:38.685: W/dalvikvm(13686): Summary:
07-31 14:35:38.685: W/dalvikvm(13686): 1 of byte[] (128 elements)
07-31 14:35:38.685: W/dalvikvm(13686): 50 of char[] (4 elements) (2
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 50 of char[] (5 elements) (2
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 25 of char[] (22 elements) (25
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (23 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (24 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (25 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (27 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (28 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 508 of char[] (29 elements) (508
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (31 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 49 of char[] (33 elements) (49
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 25 of char[] (34 elements) (25
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 50 of char[] (36 elements) (50
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 25 of char[] (37 elements) (25
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 49 of char[] (39 elements) (49
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (44 elements) (24
unique instances)
07-31 14:35:38.685: W/dalvikvm(13686): 24 of char[] (63 elements) (24
unique instances)
07-31 14:35:38.685: E/dalvikvm(13686): Failed adding to JNI pinned array ref
table (1024 entries)
07-31 14:35:38.685: I/dalvikvm(13686): "main" prio=5 tid=1 RUNNABLE
07-31 14:35:38.685: I/dalvikvm(13686): | group="main" sCount=0 dsCount=0
obj=0x40a59460 self=0x343830
07-31 14:35:38.685: I/dalvikvm(13686): | sysTid=13686 nice=0 sched=0/0
cgrp=default handle=1074517384
07-31 14:35:38.685: I/dalvikvm(13686): | schedstat=( 23316582697 3886607959
27513 ) utm=2194 stm=137 core=0
07-31 14:35:38.685: I/dalvikvm(13686): at
android.graphics.Paint.native_measureText(Native Method)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.graphics.Paint.measureText(Paint.java:1288)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.lib.gui.PaintScreen.getTextWidth(PaintScreen.java:153)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.lib.gui.TextObj.prepTxt(TextObj.java:107)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.lib.gui.TextObj.<init>(TextObj.java:65)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.lib.gui.TextObj.<init>(TextObj.java:50)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.marker.ImageMarker.drawTitle(ImageMarker.java:135)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.marker.ImageMarker.draw(ImageMarker.java:120)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.DataView.draw(DataView.java:252)
07-31 14:35:38.685: I/dalvikvm(13686): at
org.mixare.AugmentedView.onDraw(MixView.java:1411)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.View.draw(View.java:10978)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.ViewGroup.drawChild(ViewGroup.java:2887)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.ViewGroup.drawChild(ViewGroup.java:2885)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.ViewGroup.drawChild(ViewGroup.java:2885)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.view.View.draw(View.java:10981)
07-31 14:35:38.685: I/dalvikvm(13686): at
android.widget.FrameLayout.draw(FrameLayout.java:450)
07-31 14:35:38.685: I/dalvikvm(13686): at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:212
6)
07-31 14:35:38.690: I/dalvikvm(13686): at
android.view.ViewRootImpl.draw(ViewRootImpl.java:2026)
07-31 14:35:38.690: I/dalvikvm(13686): at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634)
07-31 14:35:38.690: I/dalvikvm(13686): at
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
07-31 14:35:38.690: I/dalvikvm(13686): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-31 14:35:38.690: I/dalvikvm(13686): at
android.os.Looper.loop(Looper.java:137)
07-31 14:35:38.690: I/dalvikvm(13686): at
android.app.ActivityThread.main(ActivityThread.java:4575)
07-31 14:35:38.690: I/dalvikvm(13686): at
java.lang.reflect.Method.invokeNative(Native Method)
07-31 14:35:38.690: I/dalvikvm(13686): at
java.lang.reflect.Method.invoke(Method.java:511)
07-31 14:35:38.690: I/dalvikvm(13686): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-31 14:35:38.690: I/dalvikvm(13686): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-31 14:35:38.690: I/dalvikvm(13686): at
dalvik.system.NativeStart.main(Native Method)
07-31 14:35:38.690: E/dalvikvm(13686): VM aborting
Sorry, Eclipse gave me wrong Log.
Original comment by klemens....@gmail.com
on 31 Jul 2012 at 12:44
[deleted comment]
Changing the method getTextWidth to the following seems to fix the issue.
public float getTextWidth(String txt) {
char[] seq = new char[txt.length()];
for(int i =0; i < txt.length(); i++) {
seq[i] = txt.charAt(i);
}
return paint.measureText(seq, 0, seq.length);
//return paint.measureText(txt);
}
Original comment by edwin.sc...@gmail.com
on 10 Sep 2012 at 9:30
The fix does not work on HTC One X, Android 4.0.4 (work so far on avery other
thing I've tested)
Any clues?
Thanks
Original comment by chebo...@gmail.com
on 15 Nov 2012 at 9:37
Update, Motorola XT910, Android 4.0.4 also crashes the same way... so it seems
Android 4.0.4 s the issue
Original comment by chebo...@gmail.com
on 15 Nov 2012 at 9:51
IF you look at the native code you will see that the char[] is properly
released, so that is not faulty.
if you alote alocate the result to a float instead of returning it straight
away it will not crash. Probably because the GC will kick in and release the
object (again!)
Original comment by edwin.sc...@gmail.com
on 12 Dec 2012 at 4:06
Don't measure text always on every marker.draw method, use measure text/call
prepTxt if and only if there is change in text
Original comment by ashok200...@gmail.com
on 26 Dec 2012 at 11:49
public float getTextWidth(String txt) {
char[] seq = new char[txt.length()];
for(int i =0; i < txt.length(); i++) {
seq[i] = txt.charAt(i);
}
Rect bounds = new Rect();
paint.getTextBounds(seq, 0, seq.length, bounds);
return bounds.width();
//float width = paint.measureText(seq, 0, seq.length);
//return paint.measureText(txt);
}
Use this one...
All the fixes above doesn't work for me (Galaxy S3 & Galaxy Nexus with Android
4.2). getTextBounds seems to work fine.
Original comment by LeonardF...@googlemail.com
on 4 Feb 2013 at 8:07
NEXT ONE!
02-04 21:41:40.375: W/dalvikvm(15512): ReferenceTable overflow (max=1024)
02-04 21:41:40.375: W/dalvikvm(15512): JNI pinned array reference table
(0x58e29288) dump:
02-04 21:41:40.375: W/dalvikvm(15512): Last 10 entries (of 1024):
02-04 21:41:40.375: W/dalvikvm(15512): 1023: 0x40cf8c78 char[] (3 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1022: 0x40cf6af8 char[] (1 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1021: 0x40cf6ac0 char[] (1 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1020: 0x40cf6be8 char[] (1 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1019: 0x412f5e10 char[] (2 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1018: 0x41aa2b68 char[] (20
elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1017: 0x41aa24c8 char[] (20
elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1016: 0x41aa1b10 char[] (29
elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1015: 0x41aa0c58 char[] (55
elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1014: 0x41a9fda0 char[] (55
elements)
02-04 21:41:40.375: W/dalvikvm(15512): Summary:
02-04 21:41:40.375: W/dalvikvm(15512): 3 of char[] (1 elements) (3
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 1 of char[] (2 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 1 of char[] (3 elements)
02-04 21:41:40.375: W/dalvikvm(15512): 35 of char[] (19 elements) (35
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 102 of char[] (20 elements) (102
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 66 of char[] (21 elements) (66
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 68 of char[] (22 elements) (68
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (24 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (25 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 68 of char[] (26 elements) (68
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (27 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (28 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (29 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (32 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (33 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (34 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 68 of char[] (36 elements) (68
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 68 of char[] (37 elements) (68
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (38 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (39 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 68 of char[] (42 elements) (68
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (48 elements) (34
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 68 of char[] (55 elements) (68
unique instances)
02-04 21:41:40.375: W/dalvikvm(15512): 34 of char[] (167 elements) (34
unique instances)
02-04 21:41:40.375: E/dalvikvm(15512): Failed adding to JNI pinned array ref
table (1024 entries)
02-04 21:41:40.375: I/dalvikvm(15512): "main" prio=5 tid=1 RUNNABLE
02-04 21:41:40.375: I/dalvikvm(15512): | group="main" sCount=0 dsCount=0
obj=0x40c5a9a0 self=0x56d27010
02-04 21:41:40.375: I/dalvikvm(15512): | sysTid=15512 nice=0 sched=0/0
cgrp=apps handle=1074455516
02-04 21:41:40.375: I/dalvikvm(15512): | state=R schedstat=( 50000856686
11349814126 73097 ) utm=4680 stm=320 core=0
02-04 21:41:40.375: I/dalvikvm(15512): at
libcore.icu.NativeDecimalFormat.open(Native Method)
02-04 21:41:40.375: I/dalvikvm(15512): at
libcore.icu.NativeDecimalFormat.<init>(NativeDecimalFormat.java:123)
02-04 21:41:40.380: I/dalvikvm(15512): at
java.text.DecimalFormat.initNative(DecimalFormat.java:556)
02-04 21:41:40.380: I/dalvikvm(15512): at
java.text.DecimalFormat.<init>(DecimalFormat.java:551)
02-04 21:41:40.380: I/dalvikvm(15512): at
java.text.DecimalFormat.<init>(DecimalFormat.java:529)
02-04 21:41:40.380: I/dalvikvm(15512): at
org.mixare.POIMarker.drawTextBlock(POIMarker.java:98)
02-04 21:41:40.380: I/dalvikvm(15512): at
org.mixare.LocalMarker.draw(LocalMarker.java:200)
02-04 21:41:40.380: I/dalvikvm(15512): at
org.mixare.DataView.draw(DataView.java:250)
02-04 21:41:40.380: I/dalvikvm(15512): at
org.mixare.AugmentedView.onDraw(MixView.java:1215)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.draw(View.java:13707)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12645)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12689)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2910)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12583)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12689)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2910)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12583)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12689)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2910)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12583)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.View.getDisplayList(View.java:12689)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1198)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.ViewRootImpl.draw(ViewRootImpl.java:2173)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2045)
02-04 21:41:40.380: I/dalvikvm(15512): at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1854)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.view.Choreographer.doCallbacks(Choreographer.java:562)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.view.Choreographer.doFrame(Choreographer.java:532)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.os.Handler.handleCallback(Handler.java:725)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.os.Handler.dispatchMessage(Handler.java:92)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.os.Looper.loop(Looper.java:137)
02-04 21:41:40.385: I/dalvikvm(15512): at
android.app.ActivityThread.main(ActivityThread.java:5191)
02-04 21:41:40.385: I/dalvikvm(15512): at
java.lang.reflect.Method.invokeNative(Native Method)
02-04 21:41:40.385: I/dalvikvm(15512): at
java.lang.reflect.Method.invoke(Method.java:511)
02-04 21:41:40.385: I/dalvikvm(15512): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
02-04 21:41:40.385: I/dalvikvm(15512): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
02-04 21:41:40.385: I/dalvikvm(15512): at
dalvik.system.NativeStart.main(Native Method)
02-04 21:41:40.385: E/dalvikvm(15512): VM aborting
02-04 21:41:40.385: A/libc(15512): Fatal signal 11 (SIGSEGV) at 0xdeadd00d
(code=1), thread 15512 (ob.android.os49)
Original comment by LeonardF...@googlemail.com
on 4 Feb 2013 at 8:43
So after 15 minutes boring testing...
in the class org.mixare.POIMarker in Line 99 &
in the class org.mixare.LocalMarker in Line 232:
Exchange the Line
"DecimalFormat df = new DecimalFormat("@#");"
with
"DecimalFormat df = DECIMAL_FORMAT;"
and add the following class attribute:
private static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("@#");
Maybe it will work now =D
Original comment by LeonardF...@googlemail.com
on 4 Feb 2013 at 9:12
Okay Guys, forget all my posts... today i've got the same error with
getTextBounds... Any ideas?
Original comment by LeonardF...@googlemail.com
on 5 Feb 2013 at 11:10
Is there any solution for this bug? It seems to exist from 4 to above
Original comment by alue...@jig.es
on 12 Feb 2013 at 9:28
Same error in galaxy nexus (4.2) nexus 7 (4.2). In nexus one (2.3) works fine.
None of the upper solutions worked for me.
Original comment by contempl...@gmail.com
on 12 Mar 2013 at 9:38
Not having this error on Acer Iconia A500 os: 4.0.1, but having this error on
motorola razr hd os:4.1.2.
the errors are occurring at:
at org.mixare.lib.gui.PaintScreen.getTextWidth(PaintScreen.java:153)
at org.mixare.lib.gui.TextObj.prepTxt(TextObj.java:107)
at org.mixare.lib.gui.TextObj.<init>(TextObj.java:65)
at org.mixare.lib.gui.TextObj.<init>(TextObj.java:50)
at org.mixare.POIMarker.drawTextBlock(POIMarker.java:107)
at org.mixare.LocalMarker.draw(LocalMarker.java:200)
at org.mixare.DataView.draw(DataView.java:257)
at org.mixare.AugmentedView.onDraw(MixView.java:1041)
(PaintScreen.java:153) return paint.measureText(txt);
I have noticed that this error only happens alot (idk the exact number) POI are
on screen at the same time.
due to number of reference to this one line the amount of memory required to
hold all of the above references
for just a singe poi.
if this is true then for every poi there are 8 entries to the table so after
128 poi, provided table is entirely empty it would over flow. it is safe to say
that the table is not empty.
I am fairly new to java/android. I dont know how to delete or free the local
references once they have served there purpose.
Original comment by calebro...@gmail.com
on 29 Apr 2013 at 3:28
I got the same error on my android 4.1.2 system.
If I didn't change DecimalFormat df = new DecimalFormat("@#");
Then I will get error like:
07-08 17:37:33.220: W/dalvikvm(9345): ReferenceTable overflow (max=1024)
07-08 17:37:33.220: W/dalvikvm(9345): JNI pinned array reference table
(0x5c64d1a8) dump:
07-08 17:37:33.220: W/dalvikvm(9345): Last 10 entries (of 1024):
07-08 17:37:33.220: W/dalvikvm(9345): 1023: 0x42c50730 char[] (3 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1022: 0x41e47e00 char[] (1 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1021: 0x41e47dc8 char[] (1 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1020: 0x41e47ef0 char[] (1 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1019: 0x42c50680 char[] (2 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1018: 0x42848d48 char[] (19 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1017: 0x4254b3f0 char[] (20 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1016: 0x4254ae08 char[] (20 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1015: 0x42503530 char[] (20 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1014: 0x428cfe68 char[] (24 elements)
07-08 17:37:33.220: W/dalvikvm(9345): Summary:
07-08 17:37:33.220: W/dalvikvm(9345): 3 of char[] (1 elements) (3
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 1 of char[] (2 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 1 of char[] (3 elements)
07-08 17:37:33.220: W/dalvikvm(9345): 204 of char[] (19 elements) (204
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 459 of char[] (20 elements) (459
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 51 of char[] (21 elements) (51
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 102 of char[] (22 elements) (102
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 51 of char[] (24 elements) (51
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 51 of char[] (26 elements) (51
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 50 of char[] (29 elements) (50
unique instances)
07-08 17:37:33.220: W/dalvikvm(9345): 51 of char[] (31 elements) (51
unique instances)
07-08 17:37:33.220: E/dalvikvm(9345): Failed adding to JNI pinned array ref
table (1024 entries)
07-08 17:37:33.220: I/dalvikvm(9345): "main" prio=5 tid=1 RUNNABLE
07-08 17:37:33.220: I/dalvikvm(9345): | group="main" sCount=0 dsCount=0
obj=0x41d835c8 self=0x40013010
07-08 17:37:33.220: I/dalvikvm(9345): | sysTid=9345 nice=0 sched=0/0
cgrp=apps handle=1075054128
07-08 17:37:33.220: I/dalvikvm(9345): | schedstat=( 0 0 0 ) utm=12297 stm=583
core=1
07-08 17:37:33.220: I/dalvikvm(9345): at
libcore.icu.NativeDecimalFormat.open(Native Method)
07-08 17:37:33.220: I/dalvikvm(9345): at
libcore.icu.NativeDecimalFormat.<init>(NativeDecimalFormat.java:123)
07-08 17:37:33.220: I/dalvikvm(9345): at
java.text.DecimalFormat.initNative(DecimalFormat.java:565)
07-08 17:37:33.220: I/dalvikvm(9345): at
java.text.DecimalFormat.<init>(DecimalFormat.java:560)
07-08 17:37:33.220: I/dalvikvm(9345): at
java.text.DecimalFormat.<init>(DecimalFormat.java:538)
07-08 17:37:33.220: I/dalvikvm(9345): at
org.mixare.POIMarker.drawTextBlock(POIMarker.java:98)
07-08 17:37:33.220: I/dalvikvm(9345): at
org.mixare.LocalMarker.draw(LocalMarker.java:200)
07-08 17:37:33.220: I/dalvikvm(9345): at
org.mixare.DataView.draw(DataView.java:250)
07-08 17:37:33.220: I/dalvikvm(9345): at
org.mixare.AugmentedView.onDraw(MixView.java:1209)
if I change to DecimalFormat df = DECIMAL_FORMAT;
and add a class attribute:
private static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("@#");
then I will get error like the following:
07-08 17:54:52.650: W/dalvikvm(11343): JNI pinned array reference table
(0x5c3df0e0) dump:
07-08 17:54:52.650: W/dalvikvm(11343): Last 10 entries (of 1024):
07-08 17:54:52.650: W/dalvikvm(11343): 1023: 0x42788030 char[] (19
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1022: 0x42787a70 char[] (22
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1021: 0x42787540 char[] (21
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1020: 0x42787050 char[] (20
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1019: 0x42784e70 char[] (20
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1018: 0x42784978 char[] (20
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1017: 0x42784468 char[] (20
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1016: 0x42783c30 char[] (31
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1015: 0x42783720 char[] (20
elements)
07-08 17:54:52.650: W/dalvikvm(11343): 1014: 0x42783250 char[] (19
elements)
07-08 17:54:52.650: W/dalvikvm(11343): Summary:
07-08 17:54:52.650: W/dalvikvm(11343): 205 of char[] (19 elements) (205
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 460 of char[] (20 elements) (460
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 52 of char[] (21 elements) (52
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 103 of char[] (22 elements) (103
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 51 of char[] (24 elements) (51
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 51 of char[] (26 elements) (51
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 51 of char[] (29 elements) (51
unique instances)
07-08 17:54:52.650: W/dalvikvm(11343): 51 of char[] (31 elements) (51
unique instances)
07-08 17:54:52.650: E/dalvikvm(11343): Failed adding to JNI pinned array ref
table (1024 entries)
07-08 17:54:52.650: I/dalvikvm(11343): "main" prio=5 tid=1 RUNNABLE
07-08 17:54:52.650: I/dalvikvm(11343): | group="main" sCount=0 dsCount=0
obj=0x41d835c8 self=0x40013010
07-08 17:54:52.650: I/dalvikvm(11343): | sysTid=11343 nice=0 sched=0/0
cgrp=apps handle=1075054128
07-08 17:54:52.650: I/dalvikvm(11343): | schedstat=( 0 0 0 ) utm=320 stm=16
core=1
07-08 17:54:52.650: I/dalvikvm(11343): at
android.graphics.Paint.native_measureText(Native Method)
07-08 17:54:52.650: I/dalvikvm(11343): at
android.graphics.Paint.measureText(Paint.java:1343)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.lib.gui.PaintScreen.getTextWidth(PaintScreen.java:153)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.lib.gui.TextObj.prepTxt(TextObj.java:107)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.lib.gui.TextObj.<init>(TextObj.java:65)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.lib.gui.TextObj.<init>(TextObj.java:50)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.POIMarker.drawTextBlock(POIMarker.java:109)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.LocalMarker.draw(LocalMarker.java:200)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.DataView.draw(DataView.java:250)
07-08 17:54:52.650: I/dalvikvm(11343): at
org.mixare.AugmentedView.onDraw(MixView.java:1209)
Anyone could help me? Thanks a lot.
Original comment by pingge9...@gmail.com
on 8 Jul 2013 at 10:00
I got the same error on my nexus4 (Android 4.2.2)
but on Galaxy Tab 7.7 not have this error.!!!
I hope someone to help me.
Thanks.
Original comment by zerntri...@gmail.com
on 10 Jul 2013 at 7:32
Hi,
I am getting error when the code is run on Sony Xperia (Android 4.2.2). The
same code works fine on Samsung Tab 2.
The log file is attached.
Original comment by binsp...@gmail.com
on 22 Sep 2013 at 7:28
Attachments:
I am getting exactly same error like pingge9...@gmail.com. My device is running
on Jelly Bean 4.1.2 or above. Anybody can help?
Original comment by hherdina...@gmail.com
on 1 Oct 2013 at 7:58
Is there any solution for this issue i am facing the same problem
Original comment by vamshigu...@gmail.com
on 5 Nov 2013 at 10:55
I almost complitly change code and problem is still there i cant locate where.
Original comment by goran.vi...@gmail.com
on 6 Nov 2013 at 3:34
after a long time testing and searching in google.
maybe it can work if you add "System.gc();"in the end of POIMaker's
drawTextBlock().->To claen the ref table BUT PS: System.gc() will work
frequently(hope it's OK,I'm new in JNI).
I have try and work well.But whether any other issue will happen need testing .
welcome discussion.
Original comment by chenchen...@gmail.com
on 10 Nov 2013 at 8:37
For me, I was able to mitigate the issue by making the POIMarker only create a
new TextObj when the distance changes -- I made "textStr" in drawTextBlock()
into a class-level field, and only did the constructor on textBlock when that
string would change.
Original comment by gad...@gmail.com
on 26 Dec 2013 at 7:06
Hi everybody,
i also have the same problem.
i installed mixarelib and mixare projects into workspace and wrote my own json
url without any error. Mixare project works without any problem but if i change
mixare to a library and call as "Intent intent1 = new
Intent(AugmentedActivity.this,org.mixare.MixView.class);", i start to get same
error. I also added System.gc() at the end of drawTextBlock() method, yes it
doesnt give error but started to run too slow and show pois temporarily. Is
there any solution of you about that?
Note: there is no problem on samsung note 3, i get error on samsung s3 (android
4.1.2)
Original comment by sonmez...@gmail.com
on 12 Mar 2014 at 12:37
Hi everybody!
- Add System.gc() at the end of draw() method in DataView class.
Original comment by thanhlua...@gmail.com
on 2 Dec 2014 at 3:26
Original issue reported on code.google.com by
klemens....@gmail.com
on 31 Jul 2012 at 12:40