Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNI ERROR (app bug): accessed deleted global reference #66

Closed
NitroXenon opened this issue Sep 10, 2016 · 6 comments
Closed

JNI ERROR (app bug): accessed deleted global reference #66

NitroXenon opened this issue Sep 10, 2016 · 6 comments

Comments

@NitroXenon
Copy link

NitroXenon commented Sep 10, 2016

09-10 12:11:44.183 7478 8530 E     art                                          JNI ERROR (app bug): accessed deleted global reference 0x100752
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: use of deleted global reference 0x100752
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]     from long com.squareup.duktape.Duktape.createContext()
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410] "RxIoScheduler-20" daemon prio=5 tid=82 Runnable
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   | group="main" sCount=0 dsCount=0 obj=0x339f5b20 self=0x7f0474d000
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   | sysTid=8530 nice=0 cgrp=bg_non_interactive sched=0/0 handle=0x7f60d03440
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   | state=R schedstat=( 100964150 70105114 208 ) utm=9 stm=1 core=5 HZ=100
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   | stack=0x7f60c01000-0x7f60c03000 stackSize=1037KB
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   | held mutexes= "mutator lock"(shared held)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #00 pc 000000000048a5b0  /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+200)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #01 pc 0000000000459358  /system/lib64/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEP12BacktraceMap+224)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #02 pc 000000000030d764  /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1004)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #03 pc 000000000030e138  /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+224)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #04 pc 000000000045988c  /system/lib64/libart.so (_ZNK3art6Thread13DecodeJObjectEP8_jobject+548)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #05 pc 0000000000351d3c  /system/lib64/libart.so (_ZN3art3JNI17GetStaticMethodIDEP7_JNIEnvP7_jclassPKcS6_+464)
09-10 12:11:44.263 7478 8530 F     art                                          art/runtime/java_vm_ext.cc:410]   native: #06 pc 00000000001529c8  /system/lib64/libart.so (_ZN3art8CheckJNI17GetStaticMethodIDEP7_JNIEnvP7_jclassPKcS6_+560) 
@ghost
Copy link

ghost commented Sep 10, 2016

Interesting. Thanks for the report, I'm trying to narrow down the issue now. Can you describe the circumstances that cause this? Does it happen every time or occasionally? Are you calling Duktape.create from multiple threads concurrently?

@NitroXenon
Copy link
Author

NitroXenon commented Sep 10, 2016

Yes I was calling it from multiple threads. My app just threw this error and crashed after half of the JavaScript was being evaluated.

@swankjesse
Copy link
Contributor

Are you using one Duktape instance per thread?

@NitroXenon
Copy link
Author

Yes

@ghost
Copy link

ghost commented Sep 11, 2016

This should be fixed by #67. Please re-open if not.

@ghost ghost closed this as completed Sep 11, 2016
@NitroXenon
Copy link
Author

Alright thanks. :D

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants