<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 28, 2016, at 10:13 AM, artcodex . &lt;<a href="mailto:avi.brenner@gmail.com" class="">avi.brenner@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I'm not sure if this is the right forum to ask this question, but I'm currently running into following issue</div><div class="">with using the JavaScriptCore API:</div></div></div></blockquote><div><br class=""></div>This is an OK place for this conversation. IRC also works on #webkit. I’m saamyjoon on there.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class=""><i class="">I'm building an application that uses&nbsp;<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap" class="">JavaScriptCore</code>&nbsp;on Android. So I'm building my own API which has generally worked well, but now that it's running on complex back and forward code that has callbacks between JS code and C++ I'm running into an issue where I'm hitting a&nbsp;<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap" class="">EXC_BAD_ACCESS</code>&nbsp;in&nbsp;<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap" class="">JSLockHolder::JSLockHolder(JSC::ExecState*)</code>.</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class=""><i class="">It seems fairly inconsistent in that when I put breakpoints randomly in my code while debugging sometimes I hit this, sometimes I don't. When running the app straight though I always seem to hit the issue at the same point.</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class=""><i class="">For me right now this is hitting during a call to&nbsp;<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap" class="">JSValueProtect</code>, but if I were to remove that call it would just hit at the next call that uses&nbsp;<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap" class="">JSLockHolder</code>.</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class=""><i class="">I have a test demo that hits this on a Mac build that uses the JavaScriptCore.framework as well (so it doesn't appear to be any issues with my Android jsc library build).</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class="">Thanks in advance.<i class="">&nbsp;</i><span style="font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class="">Let me know if any more info could be provided for clarity.</span></p><div class=""><br class=""></div></div></div></div></blockquote>For anybody to be able to help you here, we need <i class="">much</i> more information on how you’re using JSC and what the code that’s hitting this problem is doing.</div><div><br class=""></div><div>- Saam</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class=""><span style="font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class="">Avi Brenner</span></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif" class=""><i class=""><br class=""></i></p></div></div>
_______________________________________________<br class="">jsc-dev mailing list<br class=""><a href="mailto:jsc-dev@lists.webkit.org" class="">jsc-dev@lists.webkit.org</a><br class="">https://lists.webkit.org/mailman/listinfo/jsc-dev<br class=""></div></blockquote></div><br class=""></body></html>