Log in or register to post comments

Failed adding to JNI local ref table - Videoplay back sample

November 16, 2012 - 1:34am #1

I was using Vuforia Video playback example and changed the datasets and videos and it was working good. The issue came when i started adding more than 9 image targets in the project.

Whenever i have 10 or more image targets then my app crashes :-( Am not familiar in debugging android, althought used adb logcat and found some strange error am getting(posted below.

Can you please help me out.

 

D/dalvikvm(10547): Shared lib '/data/data/com.Behappy.Innovation/lib/libQCARWr

apper.so' already loaded in same CL 0x407bded8

D/dalvikvm(10547): GC_CONCURRENT freed 502K, 8% free 7785K/8391K, paused 1ms+1ms

 

W/dalvikvm(10547): ReferenceTable overflow (max=512)

W/dalvikvm(10547): Last 10 entries in JNI local reference table:

W/dalvikvm(10547):   502: 0x407d7cd0 cls=Lcom/qualcomm/QCARUnityPlayer/QCARPlaye

rNativeActivity; (268 bytes)

W/dalvikvm(10547):   503: 0x407d4e68 cls=Ljava/lang/Class; 'Lcom/qualcomm/QCARUn

ityPlayer/QCARPlayerNativeActivity;' (164 bytes)

W/dalvikvm(10547):   504: 0x407b9188 cls=Ljava/lang/Class; 'Lcom/unity3d/player/

ReflectionHelper;' (164 bytes)

W/dalvikvm(10547):   505: 0x407d0098 cls=Ljava/lang/reflect/Method; (60 bytes)

W/dalvikvm(10547):   506: 0x407d4e68 cls=Ljava/lang/Class; 'Lcom/qualcomm/QCARUn

ityPlayer/QCARPlayerNativeActivity;' (164 bytes)

W/dalvikvm(10547):   507: 0x40175310 cls=Ljava/lang/Class; 'Ljava/lang/Class;' (

188 bytes)

W/dalvikvm(10547):   508: 0x407b9188 cls=Ljava/lang/Class; 'Lcom/unity3d/player/

ReflectionHelper;' (164 bytes)

W/dalvikvm(10547):   509: 0x40875fd0 cls=Ljava/lang/reflect/Method; (60 bytes)

W/dalvikvm(10547):   510: 0x407d5078 cls=Ljava/lang/String; (28 bytes)

W/dalvikvm(10547):   511: 0x407f24d0 cls=Ljava/lang/String; (28 bytes)

W/dalvikvm(10547): JNI local reference table summary (512 entries):

W/dalvikvm(10547):   162 of Ljava/lang/Class; 164B (2 unique)

W/dalvikvm(10547):    48 of Ljava/lang/Class; 188B (1 unique)

W/dalvikvm(10547):    19 of Ljava/lang/Class; 260B (1 unique)

W/dalvikvm(10547):    10 of Ljava/lang/Class; 308B (1 unique)

W/dalvikvm(10547):    10 of Ljava/lang/reflect/Constructor; 44B (10 unique)

W/dalvikvm(10547):    19 of Ljava/lang/reflect/Field; 36B (19 unique)

W/dalvikvm(10547):    85 of Ljava/lang/reflect/Method; 60B (85 unique)

W/dalvikvm(10547):   108 of Ljava/lang/String; 28B (80 unique)

W/dalvikvm(10547):     1 of Ljava/lang/String; 36B

W/dalvikvm(10547):    16 of [I 36B (16 unique)

W/dalvikvm(10547):     5 of [I 108B (1 unique)

W/dalvikvm(10547):    19 of Lcom/qualcomm/QCARUnityPlayer/QCARPlayerNativeActivi

ty; 268B (1 unique)

W/dalvikvm(10547):    10 of Lcom/qualcomm/VuforiaMedia/VideoPlayerHelper; 76B (1

0 unique)

W/dalvikvm(10547): Memory held directly by tracked refs is 11296 bytes

E/dalvikvm(10547): Failed adding to JNI local ref table (has 512 entries)

I/dalvikvm(10547): "GLThread 15" prio=5 tid=13 RUNNABLE

I/dalvikvm(10547):   | group="main" sCount=0 dsCount=0 obj=0x407b9cf8 self=0x1a7

010

I/dalvikvm(10547):   | sysTid=10560 nice=0 sched=0/0 cgrp=default handle=1732912

 

I/dalvikvm(10547):   | schedstat=( 3311486903 503199094 3185 ) utm=292 stm=38 co

re=0

I/dalvikvm(10547):   at android.content.res.AssetManager.openAssetFd(Native Meth

od)

I/dalvikvm(10547):   at android.content.res.AssetManager.openFd(AssetManager.jav

a:331)

I/dalvikvm(10547):   at com.qualcomm.VuforiaMedia.VideoPlayerHelper.isFileInAsse

tsFolder(VideoPlayerHelper.java:869)

I/dalvikvm(10547):   at com.unity3d.player.UnityPlayer.nativeRender(Native Metho

d)

I/dalvikvm(10547):   at com.unity3d.player.UnityPlayer.onDrawFrame((null):-1)

I/dalvikvm(10547):   at com.qualcomm.QCARUnityPlayer.QCARUnityPlayer.onDrawFrame

(QCARUnityPlayer.java:67)

I/dalvikvm(10547):   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfa

ceView.java:1432)

I/dalvikvm(10547):   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.

java:1185)

I/dalvikvm(10547):

E/dalvikvm(10547): VM aborting

I/DEBUG   ( 9838): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *

**

I/DEBUG   ( 9838): Build fingerprint: 'samsung/GT-P6210/GT-P6210:3.2/HTJ85B/UEKJ

C:user/release-keys'

I/DEBUG   ( 9838): pid: 10547, tid: 10560  >>> com.Behappy.Innovation <<<

I/DEBUG   ( 9838): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00

d

Failed adding to JNI local ref table - Videoplay back sample

November 21, 2012 - 8:40pm #4

Thank you for the clarification.

And am new to android development...so can you please provide me some url's that will define about VideoPlayerHelper API with some samples. Your help is much appreciated.

Thank you.

Failed adding to JNI local ref table - Videoplay back sample

November 19, 2012 - 12:47pm #3

This is a limitation of the device, which results in an out of memory error arising from the inability to manage so many media player references. The number of references will differ by device. My advice is to load your videos to the player instances programmatically at runtime using the VideoPlayerHelper API. So you would use fewer Video prefab instance and assign your videos to these dynamically when they are needed.

Failed adding to JNI local ref table - Videoplay back sample

November 18, 2012 - 8:03pm #2

Can you please say, what went wrong here ???

Waiting eagerly :-(

Log in or register to post comments