mpv-android
mpv-android copied to clipboard
feat: mpv_node implementation for java
Tried an instance of getter and commandNode each and they appear to work as expected.
However, apparently <API26 devices have a limit of 512 local references they can hold
F art : art/runtime/indirect_reference_table.cc:127] JNI ERROR (app bug): local reference table overflow (max=512)
F art : art/runtime/indirect_reference_table.cc:127] local reference table dump:
F art : art/runtime/indirect_reference_table.cc:127] Last 10 entries (of 512):
F art : art/runtime/indirect_reference_table.cc:127] 511: 0x12f6eb20 java.lang.String "event"
F art : art/runtime/indirect_reference_table.cc:127] 510: 0x12f8da90 java.util.HashMap
F art : art/runtime/indirect_reference_table.cc:127] 509: 0x12f73160 is.xyz.mpv.MPVNode$IntNode
F art : art/runtime/indirect_reference_table.cc:127] 508: 0x12eae2c0 java.lang.String "playlist_entry_i... (17 chars)
F art : art/runtime/indirect_reference_table.cc:127] 507: 0x12f73150 is.xyz.mpv.MPVNode$StringNode
F art : art/runtime/indirect_reference_table.cc:127] 506: 0x12f07d60 java.lang.String "stop"
F art : art/runtime/indirect_reference_table.cc:127] 505: 0x12f07d20 java.lang.String "reason"
F art : art/runtime/indirect_reference_table.cc:127] 504: 0x12f73140 is.xyz.mpv.MPVNode$StringNode
F art : art/runtime/indirect_reference_table.cc:127] 503: 0x12f077a0 java.lang.String "end-file"
F art : art/runtime/indirect_reference_table.cc:127] 502: 0x12f07720 java.lang.String "event"
F art : art/runtime/indirect_reference_table.cc:127] Summary:
F art : art/runtime/indirect_reference_table.cc:127] 116 of is.xyz.mpv.MPVNode$StringNode (116 unique instances)
F art : art/runtime/indirect_reference_table.cc:127] 30 of is.xyz.mpv.MPVNode$IntNode (30 unique instances)
F art : art/runtime/indirect_reference_table.cc:127] 263 of java.lang.String (263 unique instances)
F art : art/runtime/indirect_reference_table.cc:127] 103 of java.util.HashMap (103 unique instances)
F art : art/runtime/indirect_reference_table.cc:127]
F art : art/runtime/runtime.cc:368] Runtime aborting...
F art : art/runtime/runtime.cc:368]
F libc : Fatal signal 6 (SIGABRT), code -6 in tid 24049 (Thread-4211)
F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG : Build fingerprint: 'samsung/grandpplteser/grandpplte:6.0.1/MMB29T/G532FXWU1ASB1:user/release-keys'
F DEBUG : Revision: '5'
F DEBUG : ABI: 'arm'
F DEBUG : pid: 24030, tid: 24049, name: Thread-4211 >>> is.xyz.mpv <<<
F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
F DEBUG : Abort message: 'art/runtime/indirect_reference_table.cc:127] JNI ERROR (app bug): local reference table overflow (max=512)'
F DEBUG : r0 00000000 r1 00005df1 r2 00000006 r3 9a13c978
F DEBUG : r4 9a13c980 r5 9a13c930 r6 0000000b r7 0000010c
F DEBUG : r8 9a13c769 r9 b4323820 sl b433de44 fp b42f1be8
F DEBUG : ip 00000006 sp 9a13c6c0 lr b6cf0de5 pc b6cf31d4 cpsr 40070010
F DEBUG :
F DEBUG : backtrace:
F DEBUG : #00 pc 000431d4 /system/lib/libc.so (tgkill+12)
F DEBUG : #01 pc 00040de1 /system/lib/libc.so (pthread_kill+32)
F DEBUG : #02 pc 0001c7e7 /system/lib/libc.so (raise+10)
F DEBUG : #03 pc 00019a65 /system/lib/libc.so (__libc_android_abort+34)
F DEBUG : #04 pc 00017600 /system/lib/libc.so (abort+4)
F DEBUG : #05 pc 0031caed /system/lib/libart.so (_ZN3art7Runtime5AbortEv+200)
F DEBUG : #06 pc 000f37e9 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2092)
F DEBUG : #07 pc 001d42d7 /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+226)
F DEBUG : #08 pc 00267d5d /system/lib/libart.so (_ZN3art3JNI12NewStringUTFEP7_JNIEnvPKc+324)
F DEBUG : #09 pc 00003ea1 /data/app/is.xyz.mpv-1/base.apk (offset 0x2ab8000)
F DEBUG : #10 pc 00003f03 /data/app/is.xyz.mpv-1/base.apk (offset 0x2ab8000)
F DEBUG : #11 pc 00003be5 /data/app/is.xyz.mpv-1/base.apk (offset 0x2ab8000)
F DEBUG : #12 pc 000406e3 /system/lib/libc.so (_ZL15__pthread_startPv+30)
F DEBUG : #13 pc 0001a0e9 /system/lib/libc.so (__start_thread+6)
@obscenelyvague can you try the same thing with this fix?
Thanks, not seeing crash anymore.