JNI ERROR (app bug): local reference table overflow (max=512) Android

Posted

技术标签:

【中文标题】JNI ERROR (app bug): local reference table overflow (max=512) Android【英文标题】: 【发布时间】:2016-12-01 04:07:13 【问题描述】:

我正在使用滑块库在我运行并且程序崩溃时向我显示此错误 它工作正常,突然我现在运行不工作真的很奇怪的问题。

Here 是代码。

 '<com.daimajia.slider.library.SliderLayout
                    android:id="@+id/slider"
                    android:layout_
                    android:layout_centerInParent="true"
                    android:layout_
                    android:scaleType="centerCrop"
                    custom:auto_cycle="true"
                    custom:indicator_visibility="visible"
                    custom:pager_animation="Accordion"
                    custom:pager_animation_span="1100" />'



        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115] JNI ERROR (app bug): local reference table overflow (max=512)
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115] local reference table dump:
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]   Last 10 entries (of 512):
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       511: 0x12c81c00 grand.myapp.MainPage
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       510: 0x12ea6280 java.lang.String "LinearLayout"
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       509: 0x12c81c00 grand.myapp.MainPage
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       508: 0x1302d000 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       507: 0x1302c800 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       506: 0x1302c000 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       505: 0x1302b800 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       504: 0x1302b000 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       503: 0x1302a800 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       502: 0x1302a000 com.daimajia.slider.library.SliderLayout
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]   Summary:
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]         2 of grand.myapp.MainPage (1 unique instances)
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]       503 of com.daimajia.slider.library.SliderLayout (503 unique instances)
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]         2 of java.lang.Class (2 unique instances)
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]         1 of java.lang.String[] (3 elements)
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115]         4 of java.lang.String (4 unique instances)
        07-27 10:37:45.382: A/art(26770): art/runtime/indirect_reference_table.cc:115] 
        07-27 10:37:46.722: A/art(26770): art/runtime/barrier.cc:90] Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count
        07-27 10:37:46.722: A/art(26770): art/runtime/runtime.cc:370] Runtime aborting --- recursively, so no thread-specific detail!
        07-27 10:37:46.722: A/art(26770): art/runtime/runtime.cc:370] 
        07-27 10:37:46.723: A/libc(26770): Fatal signal 6 (SIGABRT), code -6 in tid 26770 (grand.myapp)

【问题讨论】:

欢迎来到 Stack Overflow!我尽可能地编辑了你的问题。但是,添加代码和描述,以便更多具有该主题知识的人看到它。请在您遇到的特定错误消息中进行编辑,以防有必要识别特定问题。祝你好运! 【参考方案1】:

终于问题解决了真是太奇怪了 我发现我用这个名字创建了一个布局 当我更改滑块布局时,一切正常:)

【讨论】:

以上是关于JNI ERROR (app bug): local reference table overflow (max=512) Android的主要内容,如果未能解决你的问题,请参考以下文章

JNI内存泄露JNI ERROR (app bug): local reference table overflow (max=512)

Android : JNI ERROR (app bug): local reference table overflow (max=512)

JNI ERROR (app bug): local reference table overflow (max=512)

JNI ERROR (app bug): local reference table overflow (max=512)

Android Webrtc JNI ERROR (app bug): local reference table overflow (max=512)

JNI ERROR (app bug): local reference table overflow (max=512) Android