Bug 23916 - JNI ERROR (app bug): local reference table overflow (max=512)
Summary: JNI ERROR (app bug): local reference table overflow (max=512)
Status: RESOLVED DUPLICATE of bug 22444
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.18.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-10-18 04:29 UTC by renan jegouzo
Modified: 2014-10-20 11:36 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 22444

Description renan jegouzo 2014-10-18 04:29:45 UTC
E/dalvikvm( 8304): JNI ERROR (app bug): local reference table overflow (max=512)
W/dalvikvm( 8304): JNI local reference table (0x8226a6b0) dump:
W/dalvikvm( 8304):   Last 10 entries (of 512):
W/dalvikvm( 8304):       511: 0x42dd80e0 java.util.zip.Inflater
W/dalvikvm( 8304):       510: 0x42df8f70 byte[] (786432 elements)
W/dalvikvm( 8304):       509: 0x42dcce38 byte[] (16384 elements)
W/dalvikvm( 8304):       508: 0x42dd7918 java.util.zip.ZipFile$ZipInflaterInputStream
W/dalvikvm( 8304):       507: 0x415c8ca8 java.lang.Class<android.graphics.BitmapFactory>
W/dalvikvm( 8304):       506: 0x42dd7918 java.util.zip.ZipFile$ZipInflaterInputStream
W/dalvikvm( 8304):       505: 0x42efb470 java.lang.String "Content/book/cha... (62 chars)
W/dalvikvm( 8304):       504: 0x42d95680 java.lang.String "Content/book/cha... (62 chars)
W/dalvikvm( 8304):       503: 0x42d95230 java.lang.String "Content/book/cha... (62 chars)
W/dalvikvm( 8304):       502: 0x42d94470 java.lang.String "Content/book/cha... (62 chars)
W/dalvikvm( 8304):   Summary:
W/dalvikvm( 8304):         1 of java.lang.Class
W/dalvikvm( 8304):       506 of java.lang.String (506 unique instances)
W/dalvikvm( 8304):         1 of byte[] (16384 elements)
W/dalvikvm( 8304):         1 of byte[] (786432 elements)
W/dalvikvm( 8304):         1 of java.util.zip.Inflater
W/dalvikvm( 8304):         2 of java.util.zip.ZipFile$ZipInflaterInputStream (1 unique instances)
E/dalvikvm( 8304): Failed adding to JNI local ref table (has 512 entries)
I/dalvikvm( 8304): "Thread-2091" prio=5 tid=16 RUNNABLE
I/dalvikvm( 8304):   | group="main" sCount=0 dsCount=0 obj=0x420add60 self=0x7afb9128
I/dalvikvm( 8304):   | sysTid=8353 nice=0 sched=0/0 cgrp=apps handle=2063279080
I/dalvikvm( 8304):   | state=R schedstat=( 0 0 0 ) utm=1769 stm=353 core=0
I/dalvikvm( 8304):   at java.util.zip.Inflater.inflateImpl(Native Method)
I/dalvikvm( 8304):   at java.util.zip.Inflater.inflate(Inflater.java:228)
I/dalvikvm( 8304):   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
I/dalvikvm( 8304):   at java.util.zip.ZipFile$ZipInflaterInputStream.read(ZipFile.java:506)
I/dalvikvm( 8304):   at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
I/dalvikvm( 8304):   at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:620)
I/dalvikvm( 8304):   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:596)
I/dalvikvm( 8304):   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:634)
I/dalvikvm( 8304):   at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 8304): 
E/dalvikvm( 8304): VM aborting
F/libc    ( 8304): Fatal signal 6 (SIGABRT) at 0x00002070 (code=-6), thread 8353 (Thread-2086)


Xamarin Studio
Version 5.5.2 (build 3)
Installation UUID: 2a46676f-5eb8-4569-9aa7-630cd15bdfc2
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

Xamarin.Android
Version: 4.18.0 (Business Edition)
Android SDK: /Users/renanyoy/android sdk
	Supported Android versions:
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Apple Developer Tools
Xcode 6.0.1 (6528)
Build 6A317

Xamarin.iOS
Version: 8.2.0.207 (Business Edition)
Hash: 3bf072d
Branch: 
Build date: 2014-10-15 21:44:26-0400

Xamarin.Mac
Version:

Build Information
Release ID: 505020003
Git revision: 6d4c806e383ba366b15fbccca9ddc1ba94f8d5ad
Build date: 2014-10-15 15:00:36-04
Xamarin addins: 069ddd29bb70a42238142eee9bac21a5e4b2f9f9

Operating System
Mac OS X 10.10.0
Darwin macbook.home 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 1 renan jegouzo 2014-10-18 04:34:47 UTC
if I'm using a c# zip library my code works, but I need to use the zipalign optimization provided by the java/android native zip library.
Comment 2 Parmendra Kumar 2014-10-20 11:34:22 UTC
Could you please provide us the test steps you followed. If possible please
attach a test project that demonstrates the issue.

Also could you please attach the Ide logs? To get XS Ide Log : Open XS>Help> Open Log Directory> IDE.log file (with latest timestamp)
Comment 3 Parmendra Kumar 2014-10-20 11:36:47 UTC
Marking this issue as duplicate of Bug 22444.

*** This bug has been marked as a duplicate of bug 22444 ***