[dev] Android JNI OnEventListener crash

2015-08-28 Thread Kourt, Tim A
/ Thank you, Tim From: Hung Yu-Hsin [mailto:hun...@hotmail.com] Sent: Thursday, August 27, 2015 8:59 PM To: Kourt, Tim A; iotivity-dev at lists.iotivity.org Subject: RE: [dev] Android JNI OnEventListener crash Hi Tim, I've tried your patch, unfortunately the client still has crash issue. Ho

[dev] Android JNI OnEventListener crash

2015-08-28 Thread Hung Yu-Hsin
im.a.ko...@intel.com To: hungys at hotmail.com; iotivity-dev at lists.iotivity.org Subject: RE: [dev] Android JNI OnEventListener crash Date: Thu, 27 Aug 2015 21:56:32 + Hi Yu-Hsin, The most probable cause of this crash is OcResource object going out of scope before all of the GET

[dev] Android JNI OnEventListener crash

2015-08-27 Thread Kourt, Tim A
lists.iotivity.org Subject: [dev] Android JNI OnEventListener crash Dear devs, Recently I found that when Android client sends GET request to server frequently (e.g. polling), there will be random crashes due to JNI level being aborted. The exception basically says the native code try to access

[dev] Android JNI OnEventListener crash

2015-08-18 Thread Yu-Hsin Hung
Sorry, forgot to mention I also try using env->IsSameObject(m_jwListener, NULL) to check if the reference is deleted, but still no luck. Testing devices: Nexus 5, Nexus 6 Best Regard,? ===? Yu-Hsin Hung, Intern, Mediatek Graduate Student,?Institute of Computer Science and Engineering, Nationa

[dev] Android JNI OnEventListener crash

2015-08-18 Thread Yu-Hsin Hung
Dear devs, Recently I found that when Android client sends GET request to server frequently (e.g. polling), there will be random crashes due to JNI level being aborted. The exception basically says the native code try to access deleted weak global reference. After tracing the implementation, I