{ "id": "162509", "key": "TIMOB-23753", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-17T13:53:37.000+0000", "created": "2016-08-10T13:23:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "52369", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159984", "key": "TIMOB-23310", "fields": { "summary": "Android: Upgrade v8 and rebuild it with NDK 11", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "52366", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162464", "key": "TIMOB-23744", "fields": { "summary": "Android: Crash using Ti.Android.R values", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52365", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162465", "key": "TIMOB-23745", "fields": { "summary": "Android: Crash using Math.random", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-08-24T00:23:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This snippet of code:\r\n{code:javascript}\r\nTi.Network.addEventListener('change', function() {\r\n console.log('test');\r\n })\r\n{code}\r\n\r\nWill result in a hard crash:\r\n{code}\r\n08-10 07:41:49.296: I/DEBUG(85): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n08-10 07:41:49.296: I/DEBUG(85): Build fingerprint: 'generic/vbox86p/vbox86p:5.1/LMY47D/buildbot11172007:userdebug/test-keys'\r\n08-10 07:41:49.296: I/DEBUG(85): Revision: '0'\r\n08-10 07:41:49.296: I/DEBUG(85): ABI: 'x86'\r\n08-10 07:41:49.296: I/DEBUG(85): pid: 3345, tid: 3364, name: KrollRuntimeThr >>> com.appcelerator.sample.ti520 <<<\r\n08-10 07:41:49.296: I/DEBUG(85): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8549c081\r\n08-10 07:41:49.300: I/DEBUG(85): eax 8549c081 ebx e2681d60 ecx dc8dc81d edx dc8dc81d\r\n08-10 07:41:49.300: I/DEBUG(85): esi 39948671 edi 00000000\r\n08-10 07:41:49.300: I/DEBUG(85): xcs 00000023 xds 0000002b xes 0000002b xfs 0000006f xss 0000002b\r\n08-10 07:41:49.300: I/DEBUG(85): eip e1fb1f14 ebp e28ce148 esp e28cdec0 flags 00210296\r\n08-10 07:41:49.300: I/DEBUG(85): backtrace:\r\n08-10 07:41:49.300: I/DEBUG(85): #00 pc 007d4f14 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::internal::GlobalHandles::MakeWeak(v8::internal::Object**, void*, void (*)(v8::WeakCallbackData const&))+20)\r\n08-10 07:41:49.300: I/DEBUG(85): #01 pc 004b0c3b /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::V8::MakeWeak(v8::internal::Object**, void*, void (*)(v8::WeakCallbackData const&))+43)\r\n08-10 07:41:49.300: I/DEBUG(85): #02 pc 002badf8 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (titanium::JavaObject::getJavaObject()+88)\r\n08-10 07:41:49.300: I/DEBUG(85): #03 pc 002bfb6e /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (titanium::Proxy::hasListenersForEventType(v8::FunctionCallbackInfo const&)+174)\r\n08-10 07:41:49.300: I/DEBUG(85): #04 pc 004e10b4 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&))+148)\r\n08-10 07:41:49.300: I/DEBUG(85): #05 pc 0053fedb /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so\r\n08-10 07:41:49.300: I/DEBUG(85): #06 pc 005406ec /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so\r\n08-10 07:41:49.300: I/DEBUG(85): #07 pc 0000007d \r\n08-10 07:41:49.300: I/DEBUG(85): #08 pc 000a2ae2 \r\n08-10 07:41:49.300: I/DEBUG(85): #09 pc 000138f5 \r\n08-10 07:41:49.300: I/DEBUG(85): #10 pc 0006a0cf \r\n08-10 07:41:49.300: I/DEBUG(85): #11 pc 000138f5 \r\n08-10 07:41:49.300: I/DEBUG(85): #12 pc 0006a338 \r\n08-10 07:41:49.301: I/DEBUG(85): #13 pc 0001533d \r\n08-10 07:41:49.301: I/DEBUG(85): #14 pc 000112a2 \r\n08-10 07:41:49.301: I/DEBUG(85): #15 pc 007a25fc /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so\r\n08-10 07:41:49.301: I/DEBUG(85): #16 pc 007a2908 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*)+120)\r\n08-10 07:41:49.301: I/DEBUG(85): #17 pc 004d8ace /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::Script::Run(v8::Local)+382)\r\n08-10 07:41:49.301: I/DEBUG(85): #18 pc 004d8dd9 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::Script::Run()+73)\r\n08-10 07:41:49.301: I/DEBUG(85): #19 pc 002cfa76 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (void titanium::WrappedScript::EvalMachine<(titanium::WrappedScript::EvalInputFlags)0, (titanium::WrappedScript::EvalContextFlags)0, (titanium::WrappedScript::EvalOutputFlags)0>(v8::FunctionCallbackInfo const&)+262)\r\n08-10 07:41:49.301: I/DEBUG(85): #20 pc 002cfbeb /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (titanium::WrappedScript::CompileRunInThisContext(v8::FunctionCallbackInfo const&)+27)\r\n08-10 07:41:49.301: I/DEBUG(85): #21 pc 004e10b4 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&))+148)\r\n08-10 07:41:49.301: I/DEBUG(85): #22 pc 0053fedb /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so\r\n08-10 07:41:49.301: I/DEBUG(85): #23 pc 005406ec /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so\r\n08-10 07:41:49.301: I/DEBUG(85): #24 pc 0000007d \r\n08-10 07:41:49.301: I/DEBUG(85): #25 pc 00069ade \r\n08-10 07:41:49.301: I/DEBUG(85): #26 pc 00067792 \r\n08-10 07:41:49.301: I/DEBUG(85): #27 pc 00065bf6 \r\n08-10 07:41:49.301: I/DEBUG(85): #28 pc 0001533d \r\n08-10 07:41:49.301: I/DEBUG(85): #29 pc 000112a2 \r\n08-10 07:41:49.301: I/DEBUG(85): #30 pc 007a25fc /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so\r\n08-10 07:41:49.301: I/DEBUG(85): #31 pc 007a2908 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*)+120)\r\n08-10 07:41:49.301: I/DEBUG(85): #32 pc 004d6e63 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)+323)\r\n08-10 07:41:49.301: I/DEBUG(85): #33 pc 002c9b15 /data/app/com.appcelerator.sample.ti520-2/lib/x86/libkroll-v8.so (Java_org_appcelerator_kroll_runtime_v8_V8Runtime_nativeRunModule+389)\r\n08-10 07:41:49.301: I/DEBUG(85): #34 pc 003f8e2b /data/dalvik-cache/x86/data@app@com.appcelerator.sample.ti520-2@base.apk@classes.dex\r\n08-10 07:41:49.336: I/DEBUG(85): Tombstone written to: /data/tombstones/tombstone_08\r\n08-10 07:41:49.336: I/BootReceiver(667): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)\r\n08-10 07:41:49.359: I/Zygote(383): Process 3345 exited due to signal (11)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Crash when adding Ti.Network event listener", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 695, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2016-08-13T00:00:16.620Z", "endDate": "2016-08-27T00:00:00.000Z", "completeDate": "2016-08-29T03:18:08.942Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "392843", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Looks like maybe this is caused by being unable to unwrap the JS object to the native proxy somehow. My best guess is that I'm using args.Holder() when I should be using args.This() ?\r\n\r\nUsing debug libraries, I get the following crash:\r\n{code}\r\n********** Crash dump: **********\r\nBuild fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:6.0/MASTER/2872745:userdebug/test-keys'\r\npid: 2791, tid: 2791, name: dsg.sdfg >>> dsg.sdfg <<<\r\nsignal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x854a8081\r\nStack frame #00 pc 007ddcb4 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::internal::GlobalHandles::MakeWeak(v8::internal::Object**, void*, void (*)(v8::WeakCallbackData const&))+20): Routine void titanium::Proxy::inherit(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/Proxy.h:93\r\nStack frame #01 pc 004b99db /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::V8::MakeWeak(v8::internal::Object**, void*, void (*)(v8::WeakCallbackData const&))+43): Routine ??\r\n??:0\r\nStack frame #02 pc 002ba628 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (titanium::JavaObject::getJavaObject()+88): Routine ??\r\n??:0\r\nStack frame #03 pc 002c0bce /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (titanium::Proxy::hasListenersForEventType(v8::FunctionCallbackInfo const&)+174): Routine ??\r\n??:0\r\nStack frame #04 pc 004e9e54 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&))+148): Routine ??\r\n??:0\r\nStack frame #05 pc 00548c7b /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so: Routine ??\r\n??:0\r\nStack frame #06 pc 0054948c /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so: Routine ??\r\n??:0\r\nStack frame #07 pc 0000007d \r\nStack frame #08 pc 0006ace2 \r\nStack frame #09 pc 000138f5 \r\nStack frame #10 pc 0006a83e \r\nStack frame #11 pc 0001533d \r\nStack frame #12 pc 000112a2 \r\nStack frame #13 pc 007ab39c /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so: Routine titanium::network::HTTPClientProxy::open(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/../../generated/ti.modules.titanium.network.HTTPClientProxy.cpp:2493\r\nStack frame #14 pc 007ab6a8 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*)+120): Routine titanium::network::HTTPClientProxy::getResponseText(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/../../generated/ti.modules.titanium.network.HTTPClientProxy.cpp:2540 (discriminator 2)\r\nStack frame #15 pc 004e186e /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::Script::Run(v8::Local)+382): Routine ??\r\n??:0\r\nStack frame #16 pc 004e1b79 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::Script::Run()+73): Routine ??\r\n??:0\r\nStack frame #17 pc 002d0af6 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (void titanium::WrappedScript::EvalMachine<(titanium::WrappedScript::EvalInputFlags)0, (titanium::WrappedScript::EvalContextFlags)0, (titanium::WrappedScript::EvalOutputFlags)0>(v8::FunctionCallbackInfo const&)+262): Routine ??\r\n??:0\r\nStack frame #18 pc 002d0c6b /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (titanium::WrappedScript::CompileRunInThisContext(v8::FunctionCallbackInfo const&)+27): Routine ??\r\n??:0\r\nStack frame #19 pc 004e9e54 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&))+148): Routine ??\r\n??:0\r\nStack frame #20 pc 00548c7b /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so: Routine ??\r\n??:0\r\nStack frame #21 pc 0054948c /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so: Routine ??\r\n??:0\r\nStack frame #22 pc 0000007d \r\nStack frame #23 pc 0006a51e \r\nStack frame #24 pc 000681d2 \r\nStack frame #25 pc 000666d6 \r\nStack frame #26 pc 0001533d \r\nStack frame #27 pc 000112a2 \r\nStack frame #28 pc 007ab39c /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so: Routine titanium::network::HTTPClientProxy::open(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/../../generated/ti.modules.titanium.network.HTTPClientProxy.cpp:2493\r\nStack frame #29 pc 007ab6a8 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*)+120): Routine titanium::network::HTTPClientProxy::getResponseText(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/../../generated/ti.modules.titanium.network.HTTPClientProxy.cpp:2540 (discriminator 2)\r\nStack frame #30 pc 004dfc03 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)+323): Routine ??\r\n??:0\r\nStack frame #31 pc 002cab95 /data/app/dsg.sdfg-1/lib/x86/libkroll-v8.so (Java_org_appcelerator_kroll_runtime_v8_V8Runtime_nativeRunModule+389): Routine ??\r\n??:0\r\nStack frame #32 pc 007e6bf0 /data/app/dsg.sdfg-1/oat/x86/base.odex (offset 0x4f7000)\r\nCrash dump is completed\r\n\r\n********** Crash dump: **********\r\nBuild fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:6.0/MASTER/2872745:userdebug/test-keys'\r\npid: 2994, tid: 2994, name: dsg.sdfg >>> dsg.sdfg <<<\r\nsignal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------\r\nStack frame #00 pc 000840b6 /system/lib/libc.so (tgkill+22)\r\nStack frame #01 pc 00082498 /system/lib/libc.so (pthread_kill+70)\r\nStack frame #02 pc 000280a5 /system/lib/libc.so (raise+36)\r\nStack frame #03 pc 0002187d /system/lib/libc.so (abort+80)\r\nStack frame #04 pc 000255e1 /system/lib/libc.so (__libc_fatal+32)\r\nStack frame #05 pc 000219fc /system/lib/libc.so (__assert2+60)\r\nStack frame #06 pc 005e5302 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (titanium::Proxy* titanium::NativeObject::Unwrap(v8::Local)+129): Routine titanium::Proxy* titanium::NativeObject::Unwrap(v8::Local) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/NativeObject.h:47 (discriminator 3)\r\nStack frame #07 pc 005e3216 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (titanium::Proxy::hasListenersForEventType(v8::FunctionCallbackInfo const&)+156): Routine titanium::Proxy::hasListenersForEventType(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/Proxy.cpp:249 (discriminator 1)\r\nStack frame #08 pc 0096d436 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&))+154): Routine v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&)) at /Users/cwilliams/repos/v8_titanium/v8/out/../src/api-arguments.cc:15 (discriminator 1)\r\nStack frame #09 pc 00a13e6c /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine HandleApiCallHelper at /Users/cwilliams/repos/v8_titanium/v8/out/../src/builtins.cc:4312\r\nStack frame #10 pc 00a03d46 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine Builtin_Impl_HandleApiCall at /Users/cwilliams/repos/v8_titanium/v8/out/../src/builtins.cc:4330\r\nStack frame #11 pc 00a03cce /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine Builtin_HandleApiCall at /Users/cwilliams/repos/v8_titanium/v8/out/../src/builtins.cc:4327 (discriminator 24)\r\nStack frame #12 pc 0000007d \r\nStack frame #13 pc 0006ada2 \r\nStack frame #14 pc 00013915 \r\nStack frame #15 pc 0006a8fe \r\nStack frame #16 pc 0001535d \r\nStack frame #17 pc 000112c2 \r\nStack frame #18 pc 00e29a63 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine Invoke at /Users/cwilliams/repos/v8_titanium/v8/out/../src/execution.cc:98\r\nStack frame #19 pc 00e29e33 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*)+735): Routine v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*) at /Users/cwilliams/repos/v8_titanium/v8/out/../src/execution.cc:154 (discriminator 3)\r\nStack frame #20 pc 009317d5 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::Script::Run(v8::Local)+659): Routine v8::Script::Run(v8::Local) at /Users/cwilliams/repos/v8_titanium/v8/out/../src/api.cc:1793 (discriminator 1)\r\nStack frame #21 pc 0093192c /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::Script::Run()+150): Routine v8::Script::Run() at /Users/cwilliams/repos/v8_titanium/v8/out/../src/api.cc:1805 (discriminator 1)\r\nStack frame #22 pc 005fd28e /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (void titanium::WrappedScript::EvalMachine<(titanium::WrappedScript::EvalInputFlags)0, (titanium::WrappedScript::EvalContextFlags)0, (titanium::WrappedScript::EvalOutputFlags)0>(v8::FunctionCallbackInfo const&)+2055): Routine v8::Local::operator->() const at /Users/cwilliams/repos/titanium_mobile/dist/android/libv8/5.1.281.59/debug/include/v8.h:242\r\nStack frame #23 pc 005f878d /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (titanium::WrappedScript::CompileRunInThisContext(v8::FunctionCallbackInfo const&)+29): Routine titanium::WrappedScript::CompileRunInThisContext(v8::FunctionCallbackInfo const&) at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/modules/ScriptsModule.cpp:178\r\nStack frame #24 pc 0096d436 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&))+154): Routine v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo const&)) at /Users/cwilliams/repos/v8_titanium/v8/out/../src/api-arguments.cc:15 (discriminator 1)\r\nStack frame #25 pc 00a13e6c /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine HandleApiCallHelper at /Users/cwilliams/repos/v8_titanium/v8/out/../src/builtins.cc:4312\r\nStack frame #26 pc 00a03d46 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine Builtin_Impl_HandleApiCall at /Users/cwilliams/repos/v8_titanium/v8/out/../src/builtins.cc:4330\r\nStack frame #27 pc 00a03cce /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine Builtin_HandleApiCall at /Users/cwilliams/repos/v8_titanium/v8/out/../src/builtins.cc:4327 (discriminator 24)\r\nStack frame #28 pc 0000007d \r\nStack frame #29 pc 0006a5de \r\nStack frame #30 pc 00068292 \r\nStack frame #31 pc 00066796 \r\nStack frame #32 pc 0001535d \r\nStack frame #33 pc 000112c2 \r\nStack frame #34 pc 00e29a63 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so: Routine Invoke at /Users/cwilliams/repos/v8_titanium/v8/out/../src/execution.cc:98\r\nStack frame #35 pc 00e29e33 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*)+735): Routine v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*) at /Users/cwilliams/repos/v8_titanium/v8/out/../src/execution.cc:154 (discriminator 3)\r\nStack frame #36 pc 00942c88 /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)+612): Routine v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) at /Users/cwilliams/repos/v8_titanium/v8/out/../src/api.cc:4498 (discriminator 1)\r\nStack frame #37 pc 005f216e /data/app/dsg.sdfg-2/lib/x86/libkroll-v8.so (Java_org_appcelerator_kroll_runtime_v8_V8Runtime_nativeRunModule+1100): Routine Java_org_appcelerator_kroll_runtime_v8_V8Runtime_nativeRunModule at /Users/cwilliams/repos/titanium_mobile/android/runtime/v8/src/native/V8Runtime.cpp:273 (discriminator 5)\r\nStack frame #38 pc 007e5ca0 /data/app/dsg.sdfg-2/oat/x86/base.odex (offset 0x4f6000)\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-08-10T13:51:28.000+0000", "updated": "2016-08-10T13:51:28.000+0000" }, { "id": "392845", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Thinking back, I had run into something similar to this for some method calls on proxies - the This/Holder object wasn't the object wrapping the proxy as we expected (likely due to some lazy instantiation/wrapping stuff we do around the proxies). In that scenario, I hacked it to basically search up the prototype chain of Holder to find the proxy we're looking for: https://github.com/appcelerator/titanium_mobile/pull/8041/files#diff-16204ab8e9743a30e6e6f874a876539eR227", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-08-10T14:48:51.000+0000", "updated": "2016-08-10T14:48:51.000+0000" }, { "id": "392851", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "You are talking about the Proxy::unwrap method? Already tried that and it still crashed", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2016-08-10T15:44:07.000+0000", "updated": "2016-08-10T15:44:07.000+0000" }, { "id": "392867", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/8208", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-08-10T16:58:20.000+0000", "updated": "2016-08-10T16:58:20.000+0000" }, { "id": "394014", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{Ti.Network}} event listener does not cause a crash.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.1.201608190732\r\nTi SDK : 6.0.0.v20160822133504\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 6.0.0-26\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-24T00:23:14.000+0000", "updated": "2016-08-24T00:23:26.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }