{"action":"created","issue":{"url":"https://api.github.com/repos/EricssonResearch/openwebrtc/issues/177","labels_url":"https://api.github.com/repos/EricssonResearch/openwebrtc/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/EricssonResearch/openwebrtc/issues/177/comments","events_url":"https://api.github.com/repos/EricssonResearch/openwebrtc/issues/177/events","html_url":"https://github.com/EricssonResearch/openwebrtc/issues/177","id":57807282,"number":177,"title":"[Cerbero] JavaScriptCore issue on 64-bit iOS","user":{"login":"stefanalund","id":190856,"avatar_url":"https://avatars.githubusercontent.com/u/190856?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanalund","html_url":"https://github.com/stefanalund","followers_url":"https://api.github.com/users/stefanalund/followers","following_url":"https://api.github.com/users/stefanalund/following{/other_user}","gists_url":"https://api.github.com/users/stefanalund/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanalund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanalund/subscriptions","organizations_url":"https://api.github.com/users/stefanalund/orgs","repos_url":"https://api.github.com/users/stefanalund/repos","events_url":"https://api.github.com/users/stefanalund/events{/privacy}","received_events_url":"https://api.github.com/users/stefanalund/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EricssonResearch/openwebrtc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-02-16T13:59:53Z","updated_at":"2015-03-25T10:38:51Z","closed_at":null,"body":"Applications that use the OWR bridge (e.g. hybrid apps like Bowser) crashes when running on 64-bit devices:\r\n\r\n```\r\n** Message: Loaded namespace: GLib\r\n** Message: Loaded namespace: GObject\r\n** Message: Loaded namespace: Gio\r\n** Message: Loaded namespace: GIRepository\r\n** Message: Loaded namespace: Owr\r\nWARNING: no real random source present!\r\n(lldb) bt all\r\n  thread #1: tid = 0x231a38, 0x00000001992d7078 libsystem_kernel.dylib`__psynch_cvwait + 8, queue = 'com.apple.main-thread'\r\n    frame #0: 0x00000001992d7078 libsystem_kernel.dylib`__psynch_cvwait + 8\r\n    frame #1: 0x0000000199372fe4 libsystem_pthread.dylib`_pthread_cond_wait + 624\r\n    frame #2: 0x00000001002bb678 SimpleDemo`g_cond_wait(cond=<unavailable>, mutex=<unavailable>) + 56 at gthread-posix.c:767\r\n    frame #3: 0x00000001002bc320 SimpleDemo`g_async_queue_pop_intern_unlocked(queue=0x0000000170a65840, wait=1, end_time=-1) + 116 at gasyncqueue.c:419\r\n    frame #4: 0x00000001002bc26c SimpleDemo`g_async_queue_pop(queue=0x0000000170a65840) + 44 at gasyncqueue.c:453\r\n    frame #5: 0x00000001004b4538 SimpleDemo`owr_bridge_start_in_thread + 56 at owr_bridge.c:441\r\n    frame #6: 0x0000000100064280 SimpleDemo`+[OpenWebRTCViewController initOpenWebRTC](self=0x0000000100869b50, _cmd=0x000000010061eda4) + 20 at OpenWebRTCViewController.m:52\r\n    frame #7: 0x00000001000651b4 SimpleDemo`-[SimpleDemoAppDelegate application:didFinishLaunchingWithOptions:](self=0x00000001740119d0, _cmd=0x000000018d3829aa, application=0x000000013cd1c4a0, launchOptions=0x0000000000000000) + 140 at SimpleDemoAppDelegate.m:37\r\n    frame #8: 0x000000018cc1e6f0 UIKit`-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 304\r\n    frame #9: 0x000000018ce35688 UIKit`-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2284\r\n    frame #10: 0x000000018ce37e08 UIKit`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1480\r\n    frame #11: 0x000000018ce364a0 UIKit`-[UIApplication workspaceDidEndTransaction:] + 184\r\n    frame #12: 0x000000019066562c FrontBoardServices`__31-[FBSSerialQueue performAsync:]_block_invoke + 28\r\n    frame #13: 0x00000001883b6a28 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20\r\n    frame #14: 0x00000001883b5b30 CoreFoundation`__CFRunLoopDoBlocks + 312\r\n    frame #15: 0x00000001883b4154 CoreFoundation`__CFRunLoopRun + 1756\r\n    frame #16: 0x00000001882e10a4 CoreFoundation`CFRunLoopRunSpecific + 396\r\n    frame #17: 0x000000018cc17aac UIKit`-[UIApplication _run] + 552\r\n    frame #18: 0x000000018cc12aa4 UIKit`UIApplicationMain + 1488\r\n    frame #19: 0x0000000100065aa8 SimpleDemo`main(argc=1, argv=0x000000016fd9f9d0) + 116 at main.m:14\r\n    frame #20: 0x00000001991bea08 libdyld.dylib`start + 4\r\n\r\n  thread #3: tid = 0x231a89, 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #0: 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #1: 0x0000000199371394 libsystem_pthread.dylib`_pthread_wqthread + 992\r\n    frame #2: 0x0000000199370fa8 libsystem_pthread.dylib`start_wqthread + 4\r\n\r\n  thread #4: tid = 0x231a8a, 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #0: 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #1: 0x0000000199371394 libsystem_pthread.dylib`_pthread_wqthread + 992\r\n\r\n  thread #5: tid = 0x231a92, 0x00000001992bcc94 libsystem_kernel.dylib`kevent64 + 8, queue = 'com.apple.libdispatch-manager'\r\n    frame #0: 0x00000001992bcc94 libsystem_kernel.dylib`kevent64 + 8\r\n    frame #1: 0x00000001015bd258 libdispatch.dylib`_dispatch_mgr_invoke + 276\r\n    frame #2: 0x00000001015aeef8 libdispatch.dylib`_dispatch_mgr_thread + 52\r\n\r\n  thread #6: tid = 0x231a95, 0x00000001992d7570 libsystem_kernel.dylib`__semwait_signal + 8, name = 'gputools.smt_poll.0x174223c80'\r\n    frame #0: 0x00000001992d7570 libsystem_kernel.dylib`__semwait_signal + 8\r\n    frame #1: 0x00000001991f9930 libsystem_c.dylib`nanosleep + 216\r\n    frame #2: 0x00000001991f984c libsystem_c.dylib`usleep + 68\r\n    frame #3: 0x0000000101604914 GPUToolsCore`smt_poll_thread_entry(void*) + 144\r\n    frame #4: 0x0000000199373e80 libsystem_pthread.dylib`_pthread_body + 164\r\n    frame #5: 0x0000000199373ddc libsystem_pthread.dylib`_pthread_start + 160\r\n\r\n  thread #7: tid = 0x231a98, 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #0: 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #1: 0x0000000199371394 libsystem_pthread.dylib`_pthread_wqthread + 992\r\n\r\n  thread #8: tid = 0x231a99, 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #0: 0x00000001992d7c78 libsystem_kernel.dylib`__workq_kernreturn + 8\r\n    frame #1: 0x0000000199371394 libsystem_pthread.dylib`_pthread_wqthread + 992\r\n\r\n* thread #9: tid = 0x231ab0, 0x0000000189b769a4 JavaScriptCore`JSC::JSCallbackObject<JSC::JSDestructibleObject>::construct(JSC::ExecState*) + 256, name = 'owr-bridge-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x468)\r\n    frame #0: 0x0000000189b769a4 JavaScriptCore`JSC::JSCallbackObject<JSC::JSDestructibleObject>::construct(JSC::ExecState*) + 256\r\n    frame #1: 0x00000001898b8f0c JavaScriptCore`JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 296\r\n    frame #2: 0x0000000189bea100 JavaScriptCore`llint_entry + 24944\r\n    frame #3: 0x0000000189bea10c JavaScriptCore`llint_entry + 24956\r\n    frame #4: 0x0000000189be3d74 JavaScriptCore`callToJavaScript + 308\r\n    frame #5: 0x0000000189b523d8 JavaScriptCore`JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 48\r\n    frame #6: 0x000000018989e80c JavaScriptCore`JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) + 7652\r\n    frame #7: 0x000000018989c8b8 JavaScriptCore`JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, JSC::JSValue*) + 476\r\n    frame #8: 0x0000000189b707a8 JavaScriptCore`JSEvaluateScript + 408\r\n  * frame #9: 0x00000001004b45fc SimpleDemo`evaluate_script(context=0x00000001045df4b0, script=<unavailable>, script_len=<unavailable>, script_name=<unavailable>) + 108 at owr_bridge.c:292\r\n    frame #10: 0x00000001004b4470 SimpleDemo`run(msg_queue=<unavailable>) + 2512 at owr_bridge.c:414\r\n    frame #11: 0x0000000100289054 SimpleDemo`g_thread_proxy(data=0x0000000103d54000) + 96 at gthread.c:764\r\n    frame #12: 0x0000000199373e80 libsystem_pthread.dylib`_pthread_body + 164\r\n    frame #13: 0x0000000199373ddc libsystem_pthread.dylib`_pthread_start + 160\r\n\r\n  thread #10: tid = 0x231ab1, 0x00000001992d7078 libsystem_kernel.dylib`__psynch_cvwait + 8, name = 'JavaScriptCore::BlockFree'\r\n    frame #0: 0x00000001992d7078 libsystem_kernel.dylib`__psynch_cvwait + 8\r\n    frame #1: 0x0000000199372fe4 libsystem_pthread.dylib`_pthread_cond_wait + 624\r\n    frame #2: 0x00000001982d0d60 libc++.1.dylib`std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 140\r\n    frame #3: 0x00000001899d6264 JavaScriptCore`JSC::BlockAllocator::waitForDuration(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 180\r\n    frame #4: 0x000000018986d4f4 JavaScriptCore`JSC::BlockAllocator::blockFreeingThreadMain() + 80\r\n    frame #5: 0x0000000189868b10 JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 24\r\n    frame #6: 0x0000000199373e80 libsystem_pthread.dylib`_pthread_body + 164\r\n    frame #7: 0x0000000199373ddc libsystem_pthread.dylib`_pthread_start + 160\r\n\r\n  thread #11: tid = 0x231ab2, 0x00000001992d7078 libsystem_kernel.dylib`__psynch_cvwait + 8, name = 'JavaScriptCore::Marking'\r\n    frame #0: 0x00000001992d7078 libsystem_kernel.dylib`__psynch_cvwait + 8\r\n    frame #1: 0x0000000199372fe4 libsystem_pthread.dylib`_pthread_cond_wait + 624\r\n    frame #2: 0x00000001982d0cb0 libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56\r\n    frame #3: 0x0000000189b1684c JavaScriptCore`JSC::GCThread::waitForNextPhase() + 156\r\n    frame #4: 0x0000000189b168f0 JavaScriptCore`JSC::GCThread::gcThreadMain() + 92\r\n    frame #5: 0x0000000189868b10 JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 24\r\n    frame #6: 0x0000000199373e80 libsystem_pthread.dylib`_pthread_body + 164\r\n    frame #7: 0x0000000199373ddc libsystem_pthread.dylib`_pthread_start + 160\r\n(lldb) print context\r\n(SeedContext) $0 = 0x00000001045df4b0\r\n(lldb) print seed_script\r\n\r\n![screen shot 2015-02-14 at 09 59 06](https://cloud.githubusercontent.com/assets/190856/6213083/6d9fe46c-b5ec-11e4-8bb8-277549eba66e.png)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/EricssonResearch/openwebrtc/issues/comments/85976671","html_url":"https://github.com/EricssonResearch/openwebrtc/issues/177#issuecomment-85976671","issue_url":"https://api.github.com/repos/EricssonResearch/openwebrtc/issues/177","id":85976671,"user":{"login":"sdroege","id":301846,"avatar_url":"https://avatars.githubusercontent.com/u/301846?v=3","gravatar_id":"","url":"https://api.github.com/users/sdroege","html_url":"https://github.com/sdroege","followers_url":"https://api.github.com/users/sdroege/followers","following_url":"https://api.github.com/users/sdroege/following{/other_user}","gists_url":"https://api.github.com/users/sdroege/gists{/gist_id}","starred_url":"https://api.github.com/users/sdroege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdroege/subscriptions","organizations_url":"https://api.github.com/users/sdroege/orgs","repos_url":"https://api.github.com/users/sdroege/repos","events_url":"https://api.github.com/users/sdroege/events{/privacy}","received_events_url":"https://api.github.com/users/sdroege/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T10:38:51Z","updated_at":"2015-03-25T10:38:51Z","body":"rm -rf dist/* does though ;)"}}